public boolean skipTo(int docNr) throws IOException { return scorer.skipTo(docNr); } public Explanation explain(int docNr) throws IOException {
public boolean skipTo(int docNr) throws IOException { return scorer.skipTo(docNr); } public Explanation explain(int docNr) throws IOException {
public boolean skipTo(int target) throws IOException { return reqScorer.skipTo(target); }
public boolean skipTo(int target) throws IOException { return reqScorer.skipTo(target); }
/** Skips to the first match beyond the current whose document number is * greater than or equal to a given target. * * <p>When this method is used the {@link #explain(int)} method should not be used. * * @param target The target document number. * @return true iff there is such a match. */ public boolean skipTo(int target) throws IOException { if (countingSumScorer == null) { initCountingSumScorer(); } return countingSumScorer.skipTo(target); }
public final boolean topSkipToAndAdjustElsePop(int target) throws IOException { return checkAdjustElsePop( topHSD.scorer.skipTo(target)); }
/** Skips to the first match beyond the current whose document number is * greater than or equal to a given target. * * <p>When this method is used the {@link #explain(int)} method should not be used. * * @param target The target document number. * @return true iff there is such a match. */ public boolean skipTo(int target) throws IOException { if (countingSumScorer == null) { initCountingSumScorer(); } return countingSumScorer.skipTo(target); }
public final boolean topSkipToAndAdjustElsePop(int target) throws IOException { return checkAdjustElsePop( topHSD.scorer.skipTo(target)); }
public boolean skipTo(int target) throws IOException { Iterator i = scorers.iterator(); while (more && i.hasNext()) { more = ((Scorer)i.next()).skipTo(target); } if (more) sortScorers(); // re-sort scorers return doNext(); }
public boolean next() throws IOException { boolean hasNext = subQueryScorer.next(); if(hasNext) { for(int i = 0; i < valSrcScorers.length; i++) { valSrcScorers[i].skipTo(subQueryScorer.doc()); } } return hasNext; }
public boolean skipTo(int target) throws IOException { if (firstTime) return init(target); else if (more) more = scorers[(scorers.length-1)].skipTo(target); return doNext(); }
public boolean skipTo(int target) throws IOException { if (firstTime) return init(target); else if (more) more = scorers[(scorers.length-1)].skipTo(target); return doNext(); }
private boolean doNext() throws IOException { int first=0; Scorer lastScorer = scorers[scorers.length-1]; Scorer firstScorer; while (more && (firstScorer=scorers[first]).doc() < (lastDoc=lastScorer.doc())) { more = firstScorer.skipTo(lastDoc); lastScorer = firstScorer; first = (first == (scorers.length-1)) ? 0 : first+1; } return more; }
private boolean doNext() throws IOException { int first=0; Scorer lastScorer = scorers[scorers.length-1]; Scorer firstScorer; while (more && (firstScorer=scorers[first]).doc() < (lastDoc=lastScorer.doc())) { more = firstScorer.skipTo(lastDoc); lastScorer = firstScorer; first = (first == (scorers.length-1)) ? 0 : first+1; } return more; }
public boolean next() throws IOException { boolean hasNext = subQueryScorer.next(); if(hasNext) { for(int i = 0; i < valSrcScorers.length; i++) { valSrcScorers[i].skipTo(subQueryScorer.doc()); } } return hasNext; }
private boolean doNext() throws IOException { while (more && first().doc() < last().doc()) { // find doc w/ all clauses more = first().skipTo(last().doc()); // skip first upto last scorers.addLast(scorers.removeFirst()); // move first to last } return more; // found a doc with all clauses }
public Explanation explain(int doc) throws IOException { Explanation res = new Explanation(); if (exclScorer.skipTo(doc) && (exclScorer.doc() == doc)) { res.setDescription("excluded"); } else { res.setDescription("not excluded"); res.addDetail(reqScorer.explain(doc)); } return res; } }
public Explanation explain(int doc) throws IOException { Explanation res = new Explanation(); if (exclScorer.skipTo(doc) && (exclScorer.doc() == doc)) { res.setDescription("excluded"); } else { res.setDescription("not excluded"); res.addDetail(reqScorer.explain(doc)); } return res; } }