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
SpanCollectorcollectLeaf in interface SpanCollectorpostings - a PostingsEnumposition - the position of the PostingsEnumterm - the Term for this postings listjava.io.IOException - on errorpublic void reset()
SpanCollectorreset in interface SpanCollectorpublic java.util.Collection<byte[]> getPayloads()