public class JavaUtilRegexCapabilities extends Object implements RegexCapabilities
prefix()
that queries using this implementation will enumerate and
attempt to match(java.lang.String)
each term for the specified field in the index.Constructor and Description |
---|
JavaUtilRegexCapabilities() |
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 |
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!
|
public void compile(String pattern)
RegexCapabilities
RegexTermEnum
allowing
implementations to cache a compiled version of the regular
expression pattern.compile
in interface RegexCapabilities
pattern
- regular expression patternpublic boolean match(String string)
match
in interface RegexCapabilities
RegexCapabilities.compile(java.lang.String)
.public String prefix()
RegexCapabilities
prefix
in interface RegexCapabilities
RegexCapabilities.compile(java.lang.String)
. May return null.Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.