public class SpanRegexQuery extends SpanQuery implements RegexQueryCapable
RegexQuery allowing regular expression
queries to be nested within other SpanQuery subclasses.| Constructor and Description |
|---|
SpanRegexQuery(Term term) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getField() |
PayloadSpans |
getPayloadSpans(IndexReader reader) |
RegexCapabilities |
getRegexImplementation() |
Spans |
getSpans(IndexReader reader) |
Term |
getTerm() |
java.util.Collection |
getTerms() |
int |
hashCode() |
Query |
rewrite(IndexReader reader) |
void |
setRegexImplementation(RegexCapabilities impl) |
java.lang.String |
toString(java.lang.String field) |
createWeightclone, combine, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weightpublic SpanRegexQuery(Term term)
public Term getTerm()
public Query rewrite(IndexReader reader) throws java.io.IOException
public Spans getSpans(IndexReader reader) throws java.io.IOException
public PayloadSpans getPayloadSpans(IndexReader reader) throws java.io.IOException
getPayloadSpans in class SpanQueryjava.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString(java.lang.String field)
public void setRegexImplementation(RegexCapabilities impl)
setRegexImplementation in interface RegexQueryCapablepublic RegexCapabilities getRegexImplementation()
getRegexImplementation in interface RegexQueryCapableCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.