public class InstantiatedTermDocs extends Object implements TermDocs
TermDocs
navigating an InstantiatedIndexReader
.Modifier and Type | Field and Description |
---|---|
protected InstantiatedTermDocumentInformation |
currentDocumentInformation |
protected InstantiatedTerm |
currentTerm |
Constructor and Description |
---|
InstantiatedTermDocs(InstantiatedIndexReader reader) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Does nothing
|
int |
doc() |
int |
freq() |
boolean |
next() |
int |
read(int[] docs,
int[] freqs) |
void |
seek(Term term) |
void |
seek(TermEnum termEnum) |
boolean |
skipTo(int target)
Skips entries to the first beyond the current whose document number is
greater than or equal to target.
|
protected InstantiatedTermDocumentInformation currentDocumentInformation
protected InstantiatedTerm currentTerm
public InstantiatedTermDocs(InstantiatedIndexReader reader)
public boolean skipTo(int target)
Returns true if there is such an entry.
Behaves as if written:
boolean skipTo(int target) { do { if (!next()) return false; } while (target > doc()); return true; }This implementation is considerably more efficient than that.
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.