Package org.apache.lucene.search.regex
Class RegexTermEnum
- java.lang.Object
-
- org.apache.lucene.index.TermEnum
-
- org.apache.lucene.search.FilteredTermEnum
-
- org.apache.lucene.search.regex.RegexTermEnum
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class RegexTermEnum extends FilteredTermEnum
Subclass of FilteredTermEnum for enumerating all terms that match the specified regular expression term using the specified regular expression implementation.Term enumerations are always ordered by Term.compareTo(). Each term in the enumeration is greater than all that precede it.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.FilteredTermEnum
actualEnum, currentTerm
-
-
Constructor Summary
Constructors Constructor Description RegexTermEnum(IndexReader reader, Term term, RegexCapabilities regexImpl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the enumeration to further activity, freeing resources.floatdifference()Equality measure on the termbooleanendEnum()Indicates the end of the enumeration has been reachedprotected booleantermCompare(Term term)Equality compare on the term-
Methods inherited from class org.apache.lucene.search.FilteredTermEnum
docFreq, next, setEnum, term
-
-
-
-
Constructor Detail
-
RegexTermEnum
public RegexTermEnum(IndexReader reader, Term term, RegexCapabilities regexImpl) throws IOException
- Throws:
IOException
-
-
Method Detail
-
termCompare
protected final boolean termCompare(Term term)
Description copied from class:FilteredTermEnumEquality compare on the term- Specified by:
termComparein classFilteredTermEnum
-
difference
public final float difference()
Description copied from class:FilteredTermEnumEquality measure on the term- Specified by:
differencein classFilteredTermEnum
-
endEnum
public final boolean endEnum()
Description copied from class:FilteredTermEnumIndicates the end of the enumeration has been reached- Specified by:
endEnumin classFilteredTermEnum
-
close
public void close() throws IOExceptionDescription copied from class:FilteredTermEnumCloses the enumeration to further activity, freeing resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilteredTermEnum- Throws:
IOException
-
-