org.apache.lucene.search
public class WildcardTermEnum extends FilteredTermEnum
Term enumerations are always ordered by Term.compareTo(). Each term in the enumeration is greater than all that precede it.
Version: $Id: WildcardTermEnum.java 472959 2006-11-09 16:21:50Z yonik $
Field Summary | |
---|---|
static char | WILDCARD_CHAR |
static char | WILDCARD_STRING
String equality with support for wildcards
|
Constructor Summary | |
---|---|
WildcardTermEnum(IndexReader reader, Term term)
Creates a new WildcardTermEnum . |
Method Summary | |
---|---|
void | close() |
float | difference() |
boolean | endEnum() |
protected boolean | termCompare(Term term) |
static boolean | wildcardEquals(String pattern, int patternIdx, String string, int stringIdx)
Determines if a word matches a wildcard pattern.
|
WildcardTermEnum
. Passing in a
Term
that does not contain a
WILDCARD_CHAR
will cause an exception to be thrown.
After calling the constructor the enumeration is already pointing to the first valid term if such a term exists.