|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.store.instantiated.InstantiatedTermDocs
public class InstantiatedTermDocs
A TermDocs
navigating an InstantiatedIndexReader
.
Field Summary | |
---|---|
protected InstantiatedTermDocumentInformation |
currentDocumentInformation
|
protected InstantiatedTerm |
currentTerm
|
Constructor Summary | |
---|---|
InstantiatedTermDocs(InstantiatedIndexReader reader)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected InstantiatedTermDocumentInformation currentDocumentInformation
protected InstantiatedTerm currentTerm
Constructor Detail |
---|
public InstantiatedTermDocs(InstantiatedIndexReader reader)
Method Detail |
---|
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
public void close()
close
in interface org.apache.lucene.index.TermDocs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |