Module org.apache.lucene.queries
Class PayloadScoreQuery.PayloadSpans
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.queries.spans.Spans
org.apache.lucene.queries.spans.FilterSpans
org.apache.lucene.queries.payloads.PayloadScoreQuery.PayloadSpans
- All Implemented Interfaces:
SpanCollector
- Enclosing class:
PayloadScoreQuery
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.queries.spans.FilterSpans
FilterSpans.AcceptStatus -
Field Summary
FieldsFields inherited from class org.apache.lucene.queries.spans.FilterSpans
inFields inherited from class org.apache.lucene.queries.spans.Spans
NO_MORE_POSITIONSFields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FilterSpans.AcceptStatusReturns 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.voidcollectLeaf(PostingsEnum postings, int position, Term term) Collect information from postingsprotected voidCalled each time the scorer's SpanScorer is advanced during frequency calculationprotected voidCalled before the current doc's frequency is calculatedvoidreset()Call to indicate that the driving Spans has moved to a new positionMethods inherited from class org.apache.lucene.queries.spans.FilterSpans
advance, asTwoPhaseIterator, collect, cost, docID, endPosition, nextDoc, nextStartPosition, positionsCost, startPosition, toString, widthMethods inherited from class org.apache.lucene.search.DocIdSetIterator
all, empty, range, slowAdvance
-
Field Details
-
decoder
-
payloadsSeen
public int payloadsSeen -
payloadScore
public float payloadScore
-
-
Constructor Details
-
PayloadSpans
-
-
Method Details
-
accept
Description copied from class:FilterSpansReturns 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.- Specified by:
acceptin classFilterSpans- Throws:
IOException
-
doStartCurrentDoc
protected void doStartCurrentDoc()Description copied from class:SpansCalled before the current doc's frequency is calculated- Overrides:
doStartCurrentDocin classSpans
-
collectLeaf
Description copied from interface:SpanCollectorCollect information from postings- Specified by:
collectLeafin interfaceSpanCollector- Parameters:
postings- aPostingsEnumposition- the position of the PostingsEnumterm- theTermfor this postings list- Throws:
IOException- on error
-
reset
public void reset()Description copied from interface:SpanCollectorCall to indicate that the driving Spans has moved to a new position- Specified by:
resetin interfaceSpanCollector
-
doCurrentSpans
Description copied from class:SpansCalled each time the scorer's SpanScorer is advanced during frequency calculation- Overrides:
doCurrentSpansin classSpans- Throws:
IOException
-