/** * Ensure setFreqCurrentDoc is called, if not already called for the current doc. */ private void ensureFreq() throws IOException { int currentDoc = docID(); if (lastScoredDoc != currentDoc) { setFreqCurrentDoc(); lastScoredDoc = currentDoc; } }
public boolean next() throws IOException { if (firstTime) { more = spans.next(); firstTime = false; } return setFreqCurrentDoc(); }
/** * Ensure setFreqCurrentDoc is called, if not already called for the current doc. */ private void ensureFreq() throws IOException { int currentDoc = docID(); if (lastScoredDoc != currentDoc) { setFreqCurrentDoc(); lastScoredDoc = currentDoc; } }
/** * Ensure setFreqCurrentDoc is called, if not already called for the current doc. */ private void ensureFreq() throws IOException { int currentDoc = docID(); if (lastScoredDoc != currentDoc) { setFreqCurrentDoc(); lastScoredDoc = currentDoc; } }
public boolean next() throws IOException { if (firstTime) { more = spans.next(); firstTime = false; } return setFreqCurrentDoc(); }
/** * Ensure setFreqCurrentDoc is called, if not already called for the current doc. */ private void ensureFreq() throws IOException { int currentDoc = docID(); if (lastScoredDoc != currentDoc) { setFreqCurrentDoc(); lastScoredDoc = currentDoc; } }
public boolean skipTo(int target) throws IOException { if (firstTime) { more = spans.skipTo(target); firstTime = false; } if (! more) { return false; } if (spans.doc() < target) { // setFreqCurrentDoc() leaves spans.doc() ahead more = spans.skipTo(target); } return setFreqCurrentDoc(); }
public boolean skipTo(int target) throws IOException { if (firstTime) { more = spans.skipTo(target); firstTime = false; } if (! more) { return false; } if (spans.doc() < target) { // setFreqCurrentDoc() leaves spans.doc() ahead more = spans.skipTo(target); } return setFreqCurrentDoc(); }