public class PayloadIterator extends Object
getPayload(int)are deleted, since it is usually used to iterate on payloads of documents that matched a query. If you need to skip over deleted documents, you should do so before calling
|Modifier and Type||Method and Description|
public boolean setNextReader(AtomicReaderContext context) throws IOException
getPayload(int)calls will be made. Returns true iff this reader has payload for any of the documents belonging to the
Termgiven to the constructor.
public BytesRef getPayload(int docID) throws IOException
payloadof the given document, or
nullif the document does not exist, there are no more documents in the posting list, or the document exists but has not payload. The given document IDs are treated as local to the reader given to
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.