Package org.apache.lucene.queries.spans
Interface SpanCollector
-
- 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 aSpans
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
collectLeaf(PostingsEnum postings, int position, Term term)
Collect information from postingsvoid
reset()
Call to indicate that the driving Spans has moved to a new position
-
-
-
Method Detail
-
collectLeaf
void collectLeaf(PostingsEnum postings, int position, Term term) throws java.io.IOException
Collect information from postings- Parameters:
postings
- aPostingsEnum
position
- the position of the PostingsEnumterm
- theTerm
for this postings list- Throws:
java.io.IOException
- on error
-
reset
void reset()
Call to indicate that the driving Spans has moved to a new position
-
-