public class SpanPayloadCheckQuery extends SpanPositionCheckQuery
Do not use this with a SpanQuery that contains a SpanNearQuery.
Instead, use SpanNearPayloadCheckQuery since it properly handles the fact that payloads
aren't ordered by SpanNearQuery.
| Modifier and Type | Field and Description |
|---|---|
protected Collection<byte[]> |
payloadToMatch |
match| Constructor and Description |
|---|
SpanPayloadCheckQuery(SpanQuery match,
Collection<byte[]> payloadToMatch) |
| Modifier and Type | Method and Description |
|---|---|
protected FilterSpans.AcceptStatus |
acceptPosition(Spans spans)
Implementing classes are required to return whether the current position is a match for the passed in
"match"
SpanQuery. |
SpanPayloadCheckQuery |
clone()
Returns a clone of this query.
|
boolean |
equals(Object o)
Returns true iff
o is equal to this. |
int |
hashCode() |
String |
toString(String field)
Prints a query to a string, with
field assumed to be the
default field and omitted. |
extractTerms, getField, getMatch, getSpans, rewritecreateWeightprotected final Collection<byte[]> payloadToMatch
public SpanPayloadCheckQuery(SpanQuery match, Collection<byte[]> payloadToMatch)
match - The underlying SpanQuery to checkpayloadToMatch - The Collection of payloads to matchprotected FilterSpans.AcceptStatus acceptPosition(Spans spans) throws IOException
SpanPositionCheckQuerySpanQuery.
This is only called if the underlying last Spans.nextStartPosition() for the
match indicated a valid start position.acceptPosition in class SpanPositionCheckQueryspans - The Spans instance, positioned at the spot to checkIOExceptionDocIdSetIterator.nextDoc()public String toString(String field)
Queryfield assumed to be the
default field and omitted.public SpanPayloadCheckQuery clone()
Querypublic boolean equals(Object o)
SpanPositionCheckQueryo is equal to this.equals in class SpanPositionCheckQuerypublic int hashCode()
hashCode in class SpanPositionCheckQueryCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.