Closeable, AutoCloseableFilteredTermEnum, FilterIndexReader.FilterTermEnumpublic abstract class TermEnum extends Object implements Closeable
Term enumerations are always ordered by Term.compareTo(). Each term in the enumeration is greater than all that precede it.
| Constructor | Description |
|---|---|
TermEnum() |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
public abstract boolean next()
throws IOException
IOExceptionpublic abstract Term term()
public abstract int docFreq()
public abstract void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.