public class SpanNearPayloadCheckQuery extends SpanPositionCheckQuery
SpanPositionCheckQuery.AcceptStatus, SpanPositionCheckQuery.PositionCheckSpan| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<byte[]> |
payloadToMatch |
match| Constructor and Description |
|---|
SpanNearPayloadCheckQuery(SpanNearQuery match,
java.util.Collection<byte[]> payloadToMatch) |
| Modifier and Type | Method and Description |
|---|---|
protected SpanPositionCheckQuery.AcceptStatus |
acceptPosition(Spans spans)
Implementing classes are required to return whether the current position is a match for the passed in
"match"
SpanQuery. |
java.lang.Object |
clone()
Returns a clone of this query.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString(java.lang.String field)
Prints a query to a string, with
field assumed to be the
default field and omitted. |
extractTerms, getField, getMatch, getSpans, rewritecreateWeightcombine, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weightpublic SpanNearPayloadCheckQuery(SpanNearQuery match, java.util.Collection<byte[]> payloadToMatch)
match - The underlying SpanQuery to checkpayloadToMatch - The Collection of payloads to matchprotected SpanPositionCheckQuery.AcceptStatus acceptPosition(Spans spans) throws java.io.IOException
SpanPositionCheckQuerySpanQuery.
This is only called if the underlying Spans.next() for the
match is successfulacceptPosition in class SpanPositionCheckQueryspans - The Spans instance, positioned at the spot to checkjava.io.IOExceptionSpans.next()public java.lang.String toString(java.lang.String field)
Queryfield assumed to be the
default field and omitted.
The representation used is one that is supposed to be readable
by QueryParser. However,
there are the following limitations:
public java.lang.Object clone()
QueryCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.