EnhancementsPayloadIterator
public class PayloadIterator extends Object
Modifier and Type | Field | Description |
---|---|---|
protected byte[] |
buffer |
|
protected int |
payloadLength |
Constructor | Description |
---|---|
PayloadIterator(org.apache.lucene.index.IndexReader indexReader,
org.apache.lucene.index.Term term) |
|
PayloadIterator(org.apache.lucene.index.IndexReader indexReader,
org.apache.lucene.index.Term term,
byte[] buffer) |
Modifier and Type | Method | 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(org.apache.lucene.index.IndexReader indexReader, org.apache.lucene.index.Term term) throws IOException
IOException
public PayloadIterator(org.apache.lucene.index.IndexReader indexReader, org.apache.lucene.index.Term term, byte[] buffer) throws IOException
IOException
public boolean init() throws IOException
setdoc(int)
. Returns false if there is no category list found
(no setdoc() will never return true).IOException
public boolean setdoc(int docId) throws IOException
Users should call this method with increasing docIds, and implementations can assume that this is the case.
IOException
public byte[] getBuffer()
public int getPayloadLength()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.