public class PayloadIterator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected int |
payloadLength |
Constructor and Description |
---|
PayloadIterator(IndexReader indexReader,
Term term) |
PayloadIterator(IndexReader indexReader,
Term term,
byte[] buffer) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer()
Get the buffer with the content of the last read payload.
|
int |
getPayloadLength()
Get the length of the last read payload.
|
boolean |
init()
(re)initialize the iterator.
|
boolean |
setdoc(int docId)
Skip forward to document docId.
|
public PayloadIterator(IndexReader indexReader, Term term) throws java.io.IOException
java.io.IOException
public PayloadIterator(IndexReader indexReader, Term term, byte[] buffer) throws java.io.IOException
java.io.IOException
public boolean init() throws java.io.IOException
setdoc(int)
. Returns false if there is no category list found
(no setdoc() will never return true).java.io.IOException
public boolean setdoc(int docId) throws java.io.IOException
Users should call this method with increasing docIds, and implementations can assume that this is the case.
java.io.IOException
public byte[] getBuffer()
public int getPayloadLength()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.