private class PayloadScoreQuery.PayloadSpans extends FilterSpans implements SpanCollector
FilterSpans.AcceptStatus
Modifier and Type | Field and Description |
---|---|
private PayloadDecoder |
decoder |
float |
payloadScore |
int |
payloadsSeen |
in
NO_MORE_POSITIONS
NO_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, width
all, empty, range, slowAdvance
private 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
FilterSpans
accept
in class FilterSpans
java.io.IOException
protected void doStartCurrentDoc()
Spans
doStartCurrentDoc
in class Spans
public void collectLeaf(PostingsEnum postings, int position, Term term) throws java.io.IOException
SpanCollector
collectLeaf
in interface SpanCollector
postings
- a PostingsEnum
position
- the position of the PostingsEnumterm
- the Term
for this postings listjava.io.IOException
- on errorpublic void reset()
SpanCollector
reset
in interface SpanCollector
protected void doCurrentSpans() throws java.io.IOException
Spans
doCurrentSpans
in class Spans
java.io.IOException