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