DisiWrapper getSubMatches() throws IOException { // iteration order does not matter for (DisiWrapper w : unverifiedMatches) { if (w.twoPhaseView.matches()) { w.next = verifiedMatches; verifiedMatches = w; } } unverifiedMatches.clear(); return verifiedMatches; }
@Override public void reset() throws IOException { queue.clear(); boolean first = true; for(T sub : subs) {
@Override public int freq() throws IOException { int doc = docID(); if (doc == posQueueDoc) { return freq; } freq = 0; started = false; posQueue.clear(); for (PostingsAndPosition pp : subs) { if (pp.pe.docID() == doc) { pp.pos = pp.pe.nextPosition(); pp.upto = pp.pe.freq(); posQueue.add(pp); freq += pp.upto; } } return freq; }
@Override public boolean matches() throws IOException { verifiedMatches = null; unverifiedMatches.clear();
DisiWrapper getSubMatches() throws IOException { // iteration order does not matter for (DisiWrapper w : unverifiedMatches) { if (w.twoPhaseView.matches()) { w.next = verifiedMatches; verifiedMatches = w; } } unverifiedMatches.clear(); return verifiedMatches; }
DisiWrapper getSubMatches() throws IOException { // iteration order does not matter for (DisiWrapper w : unverifiedMatches) { if (w.twoPhaseView.matches()) { w.next = verifiedMatches; verifiedMatches = w; } } unverifiedMatches.clear(); return verifiedMatches; }
DisiWrapper getSubMatches() throws IOException { // iteration order does not matter for (DisiWrapper w : unverifiedMatches) { if (w.twoPhaseView.matches()) { w.next = verifiedMatches; verifiedMatches = w; } } unverifiedMatches.clear(); return verifiedMatches; }
private void reset() throws IOException { intervalQueue.clear(); for (DisiWrapper dw = disiQueue.topList(); dw != null; dw = dw.next) { dw.intervals.nextInterval(); intervalQueue.add(dw.intervals); } current = EMPTY; }
@Override public void reset() throws IOException { queue.clear(); boolean first = true; for(T sub : subs) {
@Override protected void reset() throws IOException { queueEnd = start = end = -1; this.queue.clear(); loop: for (IntervalIterator it : subIterators) { if (it.nextInterval() == NO_MORE_INTERVALS) { break; } if (allowOverlaps == false) { while (hasOverlaps(it)) { if (it.nextInterval() == NO_MORE_INTERVALS) { break loop; } } } queue.add(it); updateRightExtreme(it); } }
@Override public int freq() throws IOException { int doc = docID(); if (doc == posQueueDoc) { return freq; } freq = 0; started = false; posQueue.clear(); for (PostingsAndPosition pp : subs) { if (pp.pe.docID() == doc) { pp.pos = pp.pe.nextPosition(); pp.upto = pp.pe.freq(); posQueue.add(pp); freq += pp.upto; } } return freq; }
@Override public boolean matches() throws IOException { verifiedMatches = null; unverifiedMatches.clear();
@Override public boolean matches() throws IOException { verifiedMatches = null; unverifiedMatches.clear();
@Override public boolean matches() throws IOException { verifiedMatches = null; unverifiedMatches.clear();