Package org.apache.lucene.queries.spans
Interface SpanCollector
public interface SpanCollector
An interface defining the collection of postings information from the leaves of a
Spans
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
collectLeaf
Collect information from postings- Parameters:
postings
- aPostingsEnum
position
- the position of the PostingsEnumterm
- theTerm
for this postings list- Throws:
IOException
- on error
-
reset
void reset()Call to indicate that the driving Spans has moved to a new position
-