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 org.apache.lucene.search.FilteredTermEnumSubclass 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.
-
-
Constructor Summary
Constructors Constructor Description RegexTermEnum(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term, RegexCapabilities regexImpl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()floatdifference()booleanendEnum()protected booleantermCompare(org.apache.lucene.index.Term term)
-
-
-
Constructor Detail
-
RegexTermEnum
public RegexTermEnum(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term, RegexCapabilities regexImpl) throws IOException- Throws:
IOException
-
-
Method Detail
-
termCompare
protected final boolean termCompare(org.apache.lucene.index.Term term)
- Specified by:
termComparein classorg.apache.lucene.search.FilteredTermEnum
-
difference
public final float difference()
- Specified by:
differencein classorg.apache.lucene.search.FilteredTermEnum
-
endEnum
public final boolean endEnum()
- Specified by:
endEnumin classorg.apache.lucene.search.FilteredTermEnum
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.lucene.search.FilteredTermEnum- Throws:
IOException
-
-