|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.index.TermEnum org.apache.lucene.search.FilteredTermEnum org.apache.lucene.search.WildcardTermEnum
public class WildcardTermEnum
Subclass of FilteredTermEnum for enumerating all terms that match the specified wildcard filter term.
Term enumerations are always ordered by Term.compareTo(). Each term in the enumeration is greater than all that precede it.
Field Summary | |
---|---|
static char |
WILDCARD_CHAR
|
static char |
WILDCARD_STRING
String equality with support for wildcards |
Fields inherited from class org.apache.lucene.search.FilteredTermEnum |
---|
actualEnum, currentTerm |
Constructor Summary | |
---|---|
WildcardTermEnum(IndexReader reader,
Term term)
Creates a new WildcardTermEnum . |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.lucene.search.FilteredTermEnum |
---|
close, docFreq, next, setEnum, term |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char WILDCARD_STRING
public static final char WILDCARD_CHAR
Constructor Detail |
---|
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.
IOException
Method Detail |
---|
protected final boolean termCompare(Term term)
FilteredTermEnum
termCompare
in class FilteredTermEnum
public float difference()
FilteredTermEnum
difference
in class FilteredTermEnum
public final boolean endEnum()
FilteredTermEnum
endEnum
in class FilteredTermEnum
public static final boolean wildcardEquals(String pattern, int patternIdx, String string, int stringIdx)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |