Closeable, AutoCloseablepublic class WildcardTermEnum extends FilteredTermEnum
Term enumerations are always ordered by Term.compareTo(). Each term in the enumeration is greater than all that precede it.
| Modifier and Type | Field | Description |
|---|---|---|
static char |
WILDCARD_CHAR |
|
static char |
WILDCARD_STRING |
String equality with support for wildcards
|
actualEnum, currentTerm| Constructor | Description |
|---|---|
WildcardTermEnum(IndexReader reader,
Term term) |
Creates a new
WildcardTermEnum. |
| Modifier and Type | Method | Description |
|---|---|---|
float |
difference() |
Equality measure on the term
|
boolean |
endEnum() |
Indicates the end of the enumeration has been reached
|
protected boolean |
termCompare(Term term) |
Equality compare on the term
|
static boolean |
wildcardEquals(String pattern,
int patternIdx,
String string,
int stringIdx) |
Determines if a word matches a wildcard pattern.
|
public static final char WILDCARD_STRING
public static final char WILDCARD_CHAR
public WildcardTermEnum(IndexReader reader, Term term) throws IOException
WildcardTermEnum.
After calling the constructor the enumeration is already pointing to the first valid term if such a term exists.
IOExceptionprotected final boolean termCompare(Term term)
FilteredTermEnumtermCompare in class FilteredTermEnumpublic float difference()
FilteredTermEnumdifference in class FilteredTermEnumpublic final boolean endEnum()
FilteredTermEnumendEnum in class FilteredTermEnumCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.