org.apache.lucene.search.regex
public interface RegexCapabilities
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 | match(String string) |
String | prefix()
A wise prefix implementation can reduce the term enumeration (and thus performance)
of RegexQuery dramatically!
|
Parameters: pattern regular expression pattern
Parameters: string
Returns: true if string matches the pattern last passed to RegexCapabilities.
Returns: static non-regex prefix of the pattern last passed to RegexCapabilities. May return null.