public class SpanPayloadCheckQuery extends SpanQuery
| Modifier and Type | Class and Description |
|---|---|
class |
SpanPayloadCheckQuery.SpanPayloadCheckWeight
Weight that pulls its Spans using a PayloadSpanCollector
|
| Modifier and Type | Field and Description |
|---|---|
protected SpanQuery |
match |
protected Collection<byte[]> |
payloadToMatch |
| Constructor and Description |
|---|
SpanPayloadCheckQuery(SpanQuery match,
Collection<byte[]> payloadToMatch) |
| Modifier and Type | Method and Description |
|---|---|
protected FilterSpans.AcceptStatus |
checkPayloads(Collection<byte[]> candidate)
Check to see if the collected payloads match the required set.
|
SpanPayloadCheckQuery |
clone()
Returns a clone of this query.
|
SpanWeight |
createWeight(IndexSearcher searcher,
boolean needsScores)
Create a SpanWeight for this query
|
boolean |
equals(Object o) |
String |
getField()
Returns the name of the field matched by this query.
|
int |
hashCode() |
String |
toString(String field)
Prints a query to a string, with
field assumed to be the
default field and omitted. |
getTermContexts, getTermContextsprotected final Collection<byte[]> payloadToMatch
protected final SpanQuery match
public SpanPayloadCheckQuery(SpanQuery match, Collection<byte[]> payloadToMatch)
match - The underlying SpanQuery to checkpayloadToMatch - The Collection of payloads to matchpublic String getField()
SpanQuerypublic SpanWeight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException
SpanQuerycreateWeight in class SpanQuerysearcher - the IndexSearcher to be searched acrossneedsScores - if the query needs scoresIOException - on errorprotected FilterSpans.AcceptStatus checkPayloads(Collection<byte[]> candidate)
candidate - a collection of payloads from the current Spanspublic String toString(String field)
Queryfield assumed to be the
default field and omitted.public SpanPayloadCheckQuery clone()
QueryCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.