public class PayloadSpanCollector extends java.lang.Object implements SpanCollector
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<byte[]> |
payloads |
Constructor and Description |
---|
PayloadSpanCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collectLeaf(PostingsEnum postings,
int position,
Term term)
Collect information from postings
|
java.util.Collection<byte[]> |
getPayloads() |
void |
reset()
Call to indicate that the driving Spans has moved to a new position
|
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
public java.util.Collection<byte[]> getPayloads()