protected class STMergingTermsEnum.MultiSegmentsPostingsEnum extends PostingsEnum
PostingsEnum as a single PostingsEnum,
for one field and one term.
This PostingsEnum does not extend FilterLeafReader.FilterPostingsEnum
because it updates the delegate for each segment.
| Modifier and Type | Field and Description |
|---|---|
protected int |
docId |
protected MergeState.DocMap |
docMap |
protected PostingsEnum |
postingsEnum |
protected boolean |
postingsEnumExhausted |
protected int |
postingsFlags |
protected PostingsEnum[] |
reusablePostingsEnums |
protected int |
segmentIndex |
protected List<STUniformSplitTermsWriter.SegmentPostings> |
segmentPostingsList |
ALL, FREQS, NONE, OFFSETS, PAYLOADS, POSITIONSNO_MORE_DOCS| Modifier | Constructor and Description |
|---|---|
protected |
MultiSegmentsPostingsEnum(int numSegments) |
| Modifier and Type | Method and Description |
|---|---|
int |
advance(int target) |
long |
cost() |
int |
docID() |
int |
endOffset() |
int |
freq() |
BytesRef |
getPayload() |
protected PostingsEnum |
getPostings(STUniformSplitTermsWriter.SegmentPostings segmentPostings) |
int |
nextDoc() |
int |
nextPosition() |
protected void |
reset(List<STUniformSplitTermsWriter.SegmentPostings> segmentPostingsList)
Resets/reuse this
PostingsEnum. |
protected void |
setPostingFlags(int flags) |
int |
startOffset() |
featureRequestedall, empty, range, slowAdvanceprotected final PostingsEnum[] reusablePostingsEnums
protected List<STUniformSplitTermsWriter.SegmentPostings> segmentPostingsList
protected int segmentIndex
protected PostingsEnum postingsEnum
protected boolean postingsEnumExhausted
protected MergeState.DocMap docMap
protected int docId
protected int postingsFlags
protected void reset(List<STUniformSplitTermsWriter.SegmentPostings> segmentPostingsList)
PostingsEnum.segmentPostingsList - List of segment postings ordered by segment index.protected void setPostingFlags(int flags)
public int freq()
throws IOException
freq in class PostingsEnumIOExceptionpublic int nextPosition()
throws IOException
nextPosition in class PostingsEnumIOExceptionpublic int startOffset()
throws IOException
startOffset in class PostingsEnumIOExceptionpublic int endOffset()
throws IOException
endOffset in class PostingsEnumIOExceptionpublic BytesRef getPayload() throws IOException
getPayload in class PostingsEnumIOExceptionpublic int docID()
docID in class DocIdSetIteratorpublic int nextDoc()
throws IOException
nextDoc in class DocIdSetIteratorIOExceptionprotected PostingsEnum getPostings(STUniformSplitTermsWriter.SegmentPostings segmentPostings) throws IOException
IOExceptionpublic int advance(int target)
advance in class DocIdSetIteratorpublic long cost()
cost in class DocIdSetIteratorCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.