- All Known Implementing Classes:
PayloadScoreQuery.PayloadSpans,PayloadSpanCollector,PhraseHelper.OffsetSpanCollector,SpanPayloadCheckQuery.PayloadChecker
public interface SpanCollector
An interface defining the collection of postings information from the leaves of a
Spans-
Method Summary
Modifier and TypeMethodDescriptionvoidcollectLeaf(PostingsEnum postings, int position, Term term) Collect information from postingsvoidreset()Call to indicate that the driving Spans has moved to a new position
-
Method Details
-
collectLeaf
Collect information from postings- Parameters:
postings- aPostingsEnumposition- the position of the PostingsEnumterm- theTermfor this postings list- Throws:
IOException- on error
-
reset
void reset()Call to indicate that the driving Spans has moved to a new position
-