Package org.apache.lucene.payloads
Class PayloadSpanCollector
java.lang.Object
org.apache.lucene.payloads.PayloadSpanCollector
- All Implemented Interfaces:
SpanCollector
SpanCollector for collecting payloads
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
collectLeaf
(PostingsEnum postings, int position, Term term) Collection<byte[]>
void
reset()
-
Constructor Details
-
PayloadSpanCollector
public PayloadSpanCollector()
-
-
Method Details
-
collectLeaf
- Specified by:
collectLeaf
in interfaceSpanCollector
- Throws:
IOException
-
reset
public void reset()- Specified by:
reset
in interfaceSpanCollector
-
getPayloads
- Returns:
- the collected payloads
-