private class PhraseHelper.OffsetSpanCollector extends java.lang.Object implements SpanCollector
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<BytesRef,PhraseHelper.SpanCollectedOffsetsEnum> |
termToOffsetsEnums |
Modifier | Constructor and Description |
---|---|
private |
OffsetSpanCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collectLeaf(PostingsEnum postings,
int position,
Term term)
Collect information from postings
|
void |
reset()
Call to indicate that the driving Spans has moved to a new position
|
java.util.Map<BytesRef,PhraseHelper.SpanCollectedOffsetsEnum> termToOffsetsEnums
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