com.lucene.index
Class TermEnum
java.lang.Object
|
+--com.lucene.index.TermEnum
- public abstract class TermEnum
- extends Object
Abstract class for enumerating terms.
Term enumerations are always ordered by Term.compareTo(). Each term in
the enumeration is greater than all that precede it.
Method Summary |
abstract void |
close()
Closes the enumeration to further activity, freeing resources. |
abstract int |
docFreq()
Returns the docFreq of the current Term in the enumeration. |
abstract boolean |
next()
Increments the enumeration to the next element. |
abstract 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 |
TermEnum
public TermEnum()
next
public abstract boolean next()
throws IOException
- Increments the enumeration to the next element. True if one exists.
term
public abstract Term term()
- Returns the current Term in the enumeration.
Initially invalid, valid after next() called for the first time.
docFreq
public abstract int docFreq()
- Returns the docFreq of the current Term in the enumeration.
Initially invalid, valid after next() called for the first time.
close
public abstract void close()
throws IOException
- Closes the enumeration to further activity, freeing resources.