Beispiel #1
0
 public FileSegmentSearch(FileSegment segment, FileSegmentSearchResult result)
 {
     Key      = segment.Key;
     Segment  = segment;
     Status   = FileSegmentSearchStatus.Complete;
     _matches = new ImmutableArray <long>(result.Indicies);
 }
Beispiel #2
0
 public FileSegmentSearch(FileSegmentSearch segmentSearch, FileSegmentSearchResult result)
 {
     //this can only be the tail as the tail will continue to grow
     Key      = segmentSearch.Key;
     Segment  = new FileSegment(segmentSearch.Segment, result.End);
     Status   = FileSegmentSearchStatus.Complete;
     _matches = segmentSearch._matches.Add(result.Indicies);
 }