public static interface RegexCapabilities.RegexMatcher
Implementations return true for match(org.apache.lucene.util.BytesRef)
if the term
matches the regex.
Implementing prefix()
can restrict the TermsEnum to only
a subset of terms when the regular expression matches a constant
prefix.
NOTE: implementations cannot seek.
boolean match(BytesRef term)
term
- The term in bytes.RegexCapabilities.compile(java.lang.String)
.String prefix()
RegexCapabilities.compile(java.lang.String)
. May return null.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.