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.TermDocspublic void seek(org.apache.lucene.index.TermEnum termEnum)
seek in interface org.apache.lucene.index.TermDocspublic int doc()
doc in interface org.apache.lucene.index.TermDocspublic int freq()
freq in interface org.apache.lucene.index.TermDocspublic boolean next()
next in interface org.apache.lucene.index.TermDocspublic int read(int[] docs,
int[] freqs)
read in interface org.apache.lucene.index.TermDocspublic 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.TermDocspublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.lucene.index.TermDocsCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.