docBase = context.docBase; final LeafFieldComparator[] comparators = queue.getComparators(context); final int[] reverseMul = queue.getReverseMul(); final Sort indexSort = context.reader().getMetaData().getSort();
canEarlyStopComparing; final int initialTotalHits = totalHits; return new MultiComparatorLeafCollector(queue.getComparators(context), queue.getReverseMul(), mayNeedScoresTwice) {
docBase = context.docBase; final int afterDoc = after.doc - docBase; return new MultiComparatorLeafCollector(queue.getComparators(context), queue.getReverseMul(), mayNeedScoresTwice) {
docBase = context.docBase; final int afterDoc = after.doc - docBase; return new MultiComparatorLeafCollector(queue.getComparators(context), queue.getReverseMul(), mayNeedScoresTwice) {
/** Creates a ToParentBlockJoinCollector. The provided sort must * not be null. If you pass true trackScores, all * ToParentBlockQuery instances must not use * ScoreMode.None. */ public ToParentBlockJoinCollector(Sort sort, int numParentHits, boolean trackScores, boolean trackMaxScore) throws IOException { // TODO: allow null sort to be specialized to relevance // only collector this.sort = sort; this.trackMaxScore = trackMaxScore; if (trackMaxScore) { maxScore = Float.MIN_VALUE; } //System.out.println("numParentHits=" + numParentHits); this.trackScores = trackScores; this.numParentHits = numParentHits; queue = FieldValueHitQueue.create(sort.getSort(), numParentHits); comparators = queue.getComparators(); }
docBase = context.docBase; final LeafFieldComparator[] comparators = queue.getComparators(context); final int[] reverseMul = queue.getReverseMul();
docBase = context.docBase; final LeafFieldComparator[] comparators = queue.getComparators(context); final int[] reverseMul = queue.getReverseMul();
@Override public LeafCollector getLeafCollector(final LeafReaderContext context) throws IOException { final LeafFieldComparator[] comparators = queue.getComparators(context); final int[] reverseMul = queue.getReverseMul(); final int docBase = context.docBase;
@Override protected void doSetNextReader(LeafReaderContext context) throws IOException { docBase = context.docBase; comparators = hitQueue.getComparators(context); pkNames = LuceneUtils.getPKNameDocValues(context.reader()); primaryKeys = LuceneUtils.getPKBytesDocValues(context.reader()); rowKeys = LuceneUtils.getRKBytesDocValues(context.reader()); for (String docValName : numericDocValueNamesToFetch) { numericDocValuesMap.put(docValName, context.reader().getNumericDocValues(docValName)); } for (String docValName : binaryDocValueNamesToFetch) { stringDocValues.put(docValName, context.reader().getSortedDocValues(docValName)); } }
docBase = context.docBase; final LeafFieldComparator[] comparators = queue.getComparators(context); final int[] reverseMul = queue.getReverseMul(); final Sort indexSort = context.reader().getMetaData().getSort();
canEarlyStopComparing; final int initialTotalHits = totalHits; return new MultiComparatorLeafCollector(queue.getComparators(context), queue.getReverseMul(), mayNeedScoresTwice) {