org.apache.lucene.search.regex

Class JavaUtilRegexCapabilities

public class JavaUtilRegexCapabilities extends Object implements RegexCapabilities

An implementation tying Java's built-in java.util.regex to RegexQuery. Note that because this implementation currently only returns null from {@link #prefix} that queries using this implementation will enumerate and attempt to {@link #match} each term for the specified field in the index.
Method Summary
voidcompile(String pattern)
booleanequals(Object o)
inthashCode()
booleanmatch(String string)
Stringprefix()

Method Detail

compile

public void compile(String pattern)

equals

public boolean equals(Object o)

hashCode

public int hashCode()

match

public boolean match(String string)

prefix

public String prefix()
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.