|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.TermEnum
org.apache.lucene.store.instantiated.InstantiatedTermEnum
public class InstantiatedTermEnum
A TermEnum
navigating an InstantiatedIndexReader
.
Constructor Summary | |
---|---|
InstantiatedTermEnum(InstantiatedIndexReader reader)
|
|
InstantiatedTermEnum(InstantiatedIndexReader reader,
int startPosition)
|
Method Summary | |
---|---|
void |
close()
Closes the enumeration to further activity, freeing resources. |
int |
docFreq()
Returns the docFreq of the current Term in the enumeration. |
boolean |
next()
Increments the enumeration to the next element. |
boolean |
skipTo(Term target)
Skips terms to the first beyond the current whose value is greater or equal to target. |
Term |
term()
Returns the current Term in the enumeration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstantiatedTermEnum(InstantiatedIndexReader reader)
public InstantiatedTermEnum(InstantiatedIndexReader reader, int startPosition)
Method Detail |
---|
public boolean next()
next
in class TermEnum
public Term term()
term
in class TermEnum
public int docFreq()
docFreq
in class TermEnum
public void close()
close
in class TermEnum
public boolean skipTo(Term target) throws IOException
TermEnum
Returns true iff there is such an entry.
Behaves as if written:
public boolean skipTo(Term target) { do { if (!next()) return false; } while (target > term()); return true; }Some implementations are considerably more efficient than that.
skipTo
in class TermEnum
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |