@Override public int docID() { return conjunction.docID(); }
@Override public int docID() { return conjunction.docID(); }
@Override public int docID() { if (in == null) { return -1; } else { return in.docID(); } }
@Override public int docID() { return reqApproximation.docID(); }
@Override public int docID() { return docsWithField.docID(); }
@Override public int docID() { return approximation.docID(); }
@Override public int docID() { return disi.docID(); }
@Override public int docID() { return docsWithField.docID(); }
@Override public int docID() { return docsWithField.docID(); }
@Override public int docID() { return conjunction.docID(); }
@Override public int docID() { return matcher.approximation.docID(); }
@Override public int docID() { return lead.docID(); }
@Override public int docID() { return lead1.docID(); }
@Override public int docID() { return docsWithField.docID(); }
@Override public boolean matches() throws IOException { final int doc = reqApproximation.docID(); // check if the doc is not excluded int exclDoc = exclApproximation.docID(); if (exclDoc < doc) { exclDoc = exclApproximation.advance(doc); } if (exclDoc != doc) { return matchesOrNull(reqTwoPhaseIterator); } return matchesOrNull(reqTwoPhaseIterator) && !matchesOrNull(exclTwoPhaseIterator); }
@Override public boolean matches() throws IOException { final int doc = reqApproximation.docID(); // check if the doc is not excluded int exclDoc = exclApproximation.docID(); if (exclDoc < doc) { exclDoc = exclApproximation.advance(doc); } if (exclDoc != doc) { return matchesOrNull(reqTwoPhaseIterator); } return !matchesOrNull(exclTwoPhaseIterator) && matchesOrNull(reqTwoPhaseIterator); }
/** Slow (linear) implementation of {@link #advance} relying on * {@link #nextDoc()} to advance beyond the target position. */ protected final int slowAdvance(int target) throws IOException { assert docID() < target; int doc; do { doc = nextDoc(); } while (doc < target); return doc; }
@Override public long getValue( String field ) { if ( ensureValidDisi() ) { if ( docValuesCache.containsKey( field ) ) { return docValuesCache.get( field ).get( currentIdIterator.docID() ); } NumericDocValues docValues = currentDocs.readDocValues( field ); docValuesCache.put( field, docValues ); return docValues.get( currentIdIterator.docID() ); } else { // same as DocValues.emptyNumeric()#get // which means, getValue carries over the semantics of NDV // -1 would also be a possibility here. return 0; } }