|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.sandbox.queries.regex.JakartaRegexpCapabilities
public class JakartaRegexpCapabilities
Implementation tying Jakarta
Regexp to RegexQuery. Jakarta Regexp internally supports a
RegexCapabilities.RegexMatcher.prefix() implementation which can offer
performance gains under certain circumstances. Yet, the implementation appears
to be rather shaky as it doesn't always provide a prefix even if one would exist.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.lucene.sandbox.queries.regex.RegexCapabilities |
|---|
RegexCapabilities.RegexMatcher |
| Field Summary | |
|---|---|
static int |
FLAG_MATCH_CASEINDEPENDENT
Flag to specify that matching should be case-independent (folded) |
static int |
FLAG_MATCH_NORMAL
Flag to specify normal, case-sensitive matching behaviour. |
| Constructor Summary | |
|---|---|
JakartaRegexpCapabilities()
Constructs a RegexCapabilities with the default MATCH_NORMAL match style. |
|
JakartaRegexpCapabilities(int flags)
Constructs a RegexCapabilities with the provided match flags. |
|
| Method Summary | |
|---|---|
RegexCapabilities.RegexMatcher |
compile(String regex)
Called by the constructor of RegexTermsEnum allowing
implementations to cache a compiled version of the regular
expression pattern. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FLAG_MATCH_NORMAL
public static final int FLAG_MATCH_CASEINDEPENDENT
| Constructor Detail |
|---|
public JakartaRegexpCapabilities()
public JakartaRegexpCapabilities(int flags)
flags - The matching style| Method Detail |
|---|
public RegexCapabilities.RegexMatcher compile(String regex)
RegexCapabilitiesRegexTermsEnum allowing
implementations to cache a compiled version of the regular
expression pattern.
compile in interface RegexCapabilitiesregex - regular expression patternpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||