Class PhraseHelper.OffsetSpanCollector
java.lang.Object
org.apache.lucene.search.uhighlight.PhraseHelper.OffsetSpanCollector
- All Implemented Interfaces:
SpanCollector
- Enclosing class:
PhraseHelper
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Map
<BytesRef, PhraseHelper.SpanCollectedOffsetsEnum> -
Constructor Summary
Constructors -
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
-
Field Details
-
termToOffsetsEnums
Map<BytesRef,PhraseHelper.SpanCollectedOffsetsEnum> termToOffsetsEnums
-
-
Constructor Details
-
OffsetSpanCollector
private OffsetSpanCollector()
-
-
Method Details
-
collectLeaf
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:
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
-