private class PayloadScoreQuery.PayloadSpans extends FilterSpans implements SpanCollector
FilterSpans.AcceptStatus| Modifier and Type | Field and Description |
|---|---|
private PayloadDecoder |
decoder |
float |
payloadScore |
int |
payloadsSeen |
inNO_MORE_POSITIONSNO_MORE_DOCS| Modifier | Constructor and Description |
|---|---|
private |
PayloadSpans(Spans in,
PayloadDecoder decoder) |
| Modifier and Type | Method and Description |
|---|---|
protected FilterSpans.AcceptStatus |
accept(Spans candidate)
Returns YES if the candidate should be an accepted match,
NO if it should not, and NO_MORE_IN_CURRENT_DOC if iteration
should move on to the next document.
|
void |
collectLeaf(PostingsEnum postings,
int position,
Term term)
Collect information from postings
|
protected void |
doCurrentSpans()
Called each time the scorer's SpanScorer is advanced during frequency calculation
|
protected void |
doStartCurrentDoc()
Called before the current doc's frequency is calculated
|
void |
reset()
Call to indicate that the driving Spans has moved to a new position
|
advance, asTwoPhaseIterator, collect, cost, docID, endPosition, nextDoc, nextStartPosition, positionsCost, startPosition, toString, widthall, empty, range, slowAdvanceprivate final PayloadDecoder decoder
public int payloadsSeen
public float payloadScore
private PayloadSpans(Spans in, PayloadDecoder decoder)
protected FilterSpans.AcceptStatus accept(Spans candidate) throws java.io.IOException
FilterSpansaccept in class FilterSpansjava.io.IOExceptionprotected void doStartCurrentDoc()
SpansdoStartCurrentDoc in class Spanspublic void collectLeaf(PostingsEnum postings, int position, Term term) throws java.io.IOException
SpanCollectorcollectLeaf in interface SpanCollectorpostings - a PostingsEnumposition - the position of the PostingsEnumterm - the Term for this postings listjava.io.IOException - on errorpublic void reset()
SpanCollectorreset in interface SpanCollectorprotected void doCurrentSpans()
throws java.io.IOException
SpansdoCurrentSpans in class Spansjava.io.IOException