}
}
private void getPayloads(Collection payloads, SpanQuery query)
throws IOException {
PayloadSpans spans = query.getPayloadSpans(reader);
while (spans.next() == true) {
if (spans.isPayloadAvailable()) {
Collection payload = spans.getPayload();
Iterator it = payload.iterator();
while (it.hasNext()) {
byte[] bytes = (byte[]) it.next();
payloads.add(bytes);
}