Defines basic operations needed by
RegexQuery for a regular
expression implementation.
Method Summary
void
compile(String pattern) Called by the constructor of
RegexTermEnum allowing
implementations to cache a compiled version of the regular
expression pattern.
prefix() A wise prefix implementation can reduce the term enumeration (and thus performance)
of RegexQuery dramatically!
static non-regex prefix of the pattern last passed to RegexCapabilities.compile.
Called by the constructor of
RegexTermEnum allowing
implementations to cache a compiled version of the regular
expression pattern.
Parameters: pattern - regular expression pattern
A wise prefix implementation can reduce the term enumeration (and thus performance)
of RegexQuery dramatically!
static non-regex prefix of the pattern last passed to RegexCapabilities.compile. May return null.