/// <summary> /// Expert: Creates an array of leaf slices each holding a subset of the given leaves. /// Each <see cref="LeafSlice"/> is executed in a single thread. By default there /// will be one <see cref="LeafSlice"/> per leaf (<see cref="AtomicReaderContext"/>). /// </summary> protected virtual LeafSlice[] Slices(IList <AtomicReaderContext> leaves) { LeafSlice[] slices = new LeafSlice[leaves.Count]; for (int i = 0; i < slices.Length; i++) { slices[i] = new LeafSlice(leaves[i]); } return(slices); }
public SearcherCallableNoSort(ReentrantLock @lock, IndexSearcher searcher, LeafSlice slice, Weight weight, ScoreDoc after, int nDocs, HitQueue hq) { this.@lock = @lock; this.searcher = searcher; this.weight = weight; this.after = after; this.nDocs = nDocs; this.hq = hq; this.slice = slice; }
public SearcherCallableWithSort(ReentrantLock @lock, IndexSearcher searcher, LeafSlice slice, Weight weight, FieldDoc after, int nDocs, TopFieldCollector hq, Sort sort, bool doDocScores, bool doMaxScore) { this.@lock = @lock; this.searcher = searcher; this.weight = weight; this.nDocs = nDocs; this.hq = hq; this.sort = sort; this.slice = slice; this.after = after; this.doDocScores = doDocScores; this.doMaxScore = doMaxScore; }