public class InstantiatedTermDocs extends Object implements org.apache.lucene.index.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(org.apache.lucene.index.Term term) |
void |
seek(org.apache.lucene.index.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 void seek(org.apache.lucene.index.Term term)
seek
in interface org.apache.lucene.index.TermDocs
public void seek(org.apache.lucene.index.TermEnum termEnum)
seek
in interface org.apache.lucene.index.TermDocs
public int doc()
doc
in interface org.apache.lucene.index.TermDocs
public int freq()
freq
in interface org.apache.lucene.index.TermDocs
public boolean next()
next
in interface org.apache.lucene.index.TermDocs
public int read(int[] docs, int[] freqs)
read
in interface org.apache.lucene.index.TermDocs
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.
skipTo
in interface org.apache.lucene.index.TermDocs