org.apache.lucene.search
Class FilteredTermEnum
- java.lang.Object
-
- org.apache.lucene.index.TermEnum
-
- org.apache.lucene.search.FilteredTermEnum
-
- Direct Known Subclasses:
- FuzzyTermEnum, WildcardTermEnum
public abstract class FilteredTermEnum extends TermEnum
Abstract class for enumerating a subset of all terms.Term enumerations are always ordered by Term.compareTo(). Each term in the enumeration is greater than all that precede it.
-
-
Constructor Summary
Constructors Constructor and Description FilteredTermEnum()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voidclose()Closes the enumeration to further activity, freeing resources.abstract floatdifference()Equality measure on the termintdocFreq()Returns the docFreq of the current Term in the enumeration.booleannext()Increments the enumeration to the next element.Termterm()Returns the current Term in the enumeration.
-
-
-
Method Detail
-
difference
public abstract float difference()
Equality measure on the term
-
docFreq
public int docFreq()
Returns the docFreq of the current Term in the enumeration. Returns -1 if no Term matches or all terms have been enumerated.
-
next
public boolean next() throws java.io.IOExceptionIncrements the enumeration to the next element. True if one exists.
-
term
public Term term()
Returns the current Term in the enumeration. Returns null if no Term matches or all terms have been enumerated.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG