|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.regex.JakartaRegexpCapabilities
public class JakartaRegexpCapabilities
Implementation tying Jakarta Regexp
to RegexQuery. Thanks to some internals of Jakarta Regexp, this
has a solid prefix() implementation.
| Field Summary | |
|---|---|
static int |
FLAG_MATCH_CASEINDEPENDENT
Flag to specify that matching should be case-independent (folded) |
static int |
FLAG_MATCH_NORMAL
Flag to specify normal, case-sensitive matching behaviour. |
| Constructor Summary | |
|---|---|
JakartaRegexpCapabilities()
Constructs a RegexCapabilities with the default MATCH_NORMAL match style. |
|
JakartaRegexpCapabilities(int flags)
Constructs a RegexCapabilities with the provided match flags. |
|
| Method Summary | |
|---|---|
void |
compile(String pattern)
Called by the constructor of RegexTermEnum allowing
implementations to cache a compiled version of the regular
expression pattern. |
boolean |
equals(Object o)
|
int |
hashCode()
|
boolean |
match(String string)
|
String |
prefix()
A wise prefix implementation can reduce the term enumeration (and thus increase performance) of RegexQuery dramatically! |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FLAG_MATCH_NORMAL
public static final int FLAG_MATCH_CASEINDEPENDENT
| Constructor Detail |
|---|
public JakartaRegexpCapabilities()
public JakartaRegexpCapabilities(int flags)
flags - The matching style| Method Detail |
|---|
public void compile(String pattern)
RegexCapabilitiesRegexTermEnum allowing
implementations to cache a compiled version of the regular
expression pattern.
compile in interface RegexCapabilitiespattern - regular expression patternpublic boolean match(String string)
match in interface RegexCapabilitiesRegexCapabilities.compile(java.lang.String).public String prefix()
RegexCapabilities
prefix in interface RegexCapabilitiesRegexCapabilities.compile(java.lang.String). May return null.public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||