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.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.
-
-
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 void
close()
float
difference()
boolean
endEnum()
protected boolean
termCompare(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:
termCompare
in classorg.apache.lucene.search.FilteredTermEnum
-
difference
public final float difference()
- Specified by:
difference
in classorg.apache.lucene.search.FilteredTermEnum
-
endEnum
public final boolean endEnum()
- Specified by:
endEnum
in classorg.apache.lucene.search.FilteredTermEnum
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classorg.apache.lucene.search.FilteredTermEnum
- Throws:
IOException
-
-