public abstract class TermEnum
extends java.lang.Object
implements java.io.Closeable
Term enumerations are always ordered by Term.compareTo(). Each term in the enumeration is greater than all that precede it.
Constructor and Description |
---|
TermEnum() |
Modifier and Type | Method and 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 java.io.IOException
java.io.IOException
public abstract Term term()
public abstract int docFreq()
public abstract void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.