public class JavaUtilRegexCapabilities extends java.lang.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(java.lang.String pattern)
Called by the constructor of
RegexTermEnum allowing
implementations to cache a compiled version of the regular
expression pattern. |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
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!
|
public void compile(java.lang.String pattern)
RegexCapabilitiesRegexTermEnum allowing
implementations to cache a compiled version of the regular
expression pattern.compile in interface RegexCapabilitiespattern - regular expression patternpublic boolean match(java.lang.String string)
match in interface RegexCapabilitiesRegexCapabilities.compile(java.lang.String).public java.lang.String prefix()
RegexCapabilitiesprefix in interface RegexCapabilitiesRegexCapabilities.compile(java.lang.String). May return null.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.