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