Serializable
, Cloneable
public class SpanNearPayloadCheckQuery extends SpanPositionCheckQuery
SpanPositionCheckQuery.AcceptStatus, SpanPositionCheckQuery.PositionCheckSpan
Modifier and Type | Field | Description |
---|---|---|
protected Collection<byte[]> |
payloadToMatch |
match
Constructor | Description |
---|---|
SpanNearPayloadCheckQuery(SpanNearQuery match,
Collection<byte[]> payloadToMatch) |
Modifier and Type | Method | 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 . |
Object |
clone() |
Returns a clone of this query.
|
boolean |
equals(Object o) |
|
int |
hashCode() |
|
String |
toString(String field) |
Prints a query to a string, with
field assumed to be the
default field and omitted. |
finalize, getClass, notify, notifyAll, wait, wait, wait
combine, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight
extractTerms, getField, getMatch, getSpans, rewrite
createWeight
protected final Collection<byte[]> payloadToMatch
public SpanNearPayloadCheckQuery(SpanNearQuery match, Collection<byte[]> payloadToMatch)
match
- The underlying SpanQuery
to checkpayloadToMatch
- The Collection
of payloads to matchprotected SpanPositionCheckQuery.AcceptStatus acceptPosition(Spans spans) throws IOException
SpanPositionCheckQuery
SpanQuery
.
This is only called if the underlying Spans.next()
for the
match is successfulacceptPosition
in class SpanPositionCheckQuery
spans
- The Spans
instance, positioned at the spot to checkIOException
Spans.next()
public String toString(String field)
Query
field
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:
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.