Class PhraseHelper.OffsetSpanCollector
- java.lang.Object
-
- org.apache.lucene.search.uhighlight.PhraseHelper.OffsetSpanCollector
-
- All Implemented Interfaces:
SpanCollector
- Enclosing class:
- PhraseHelper
private class PhraseHelper.OffsetSpanCollector extends java.lang.Object implements SpanCollector
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Map<BytesRef,PhraseHelper.SpanCollectedOffsetsEnum>
termToOffsetsEnums
-
Constructor Summary
Constructors Modifier Constructor Description private
OffsetSpanCollector()
-
Method Summary
All Methods Instance Methods Concrete 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
-
-
-
Field Detail
-
termToOffsetsEnums
java.util.Map<BytesRef,PhraseHelper.SpanCollectedOffsetsEnum> termToOffsetsEnums
-
-
Method Detail
-
collectLeaf
public void collectLeaf(PostingsEnum postings, int position, Term term) throws java.io.IOException
Description copied from interface:SpanCollector
Collect information from postings- Specified by:
collectLeaf
in interfaceSpanCollector
- Parameters:
postings
- aPostingsEnum
position
- the position of the PostingsEnumterm
- theTerm
for this postings list- Throws:
java.io.IOException
- on error
-
reset
public void reset()
Description copied from interface:SpanCollector
Call to indicate that the driving Spans has moved to a new position- Specified by:
reset
in interfaceSpanCollector
-
-