public interface RegexCapabilities
RegexQuery
for a regular
expression implementation.Modifier and Type | Method and Description |
---|---|
void |
compile(String pattern)
Called by the constructor of
RegexTermEnum allowing
implementations to cache a compiled version of the regular
expression pattern. |
boolean |
match(String string) |
String |
prefix()
A wise prefix implementation can reduce the term enumeration (and thus increase performance)
of RegexQuery dramatically!
|
void compile(String pattern)
RegexTermEnum
allowing
implementations to cache a compiled version of the regular
expression pattern.pattern
- regular expression patternboolean match(String string)
string
- compile(java.lang.String)
.String prefix()
compile(java.lang.String)
. May return null.