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, POSITIONS
NO_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() |
featureRequested
all, empty, range, slowAdvance
protected 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 PostingsEnum
IOException
public int nextPosition() throws IOException
nextPosition
in class PostingsEnum
IOException
public int startOffset() throws IOException
startOffset
in class PostingsEnum
IOException
public int endOffset() throws IOException
endOffset
in class PostingsEnum
IOException
public BytesRef getPayload() throws IOException
getPayload
in class PostingsEnum
IOException
public int docID()
docID
in class DocIdSetIterator
public int nextDoc() throws IOException
nextDoc
in class DocIdSetIterator
IOException
protected PostingsEnum getPostings(STUniformSplitTermsWriter.SegmentPostings segmentPostings) throws IOException
IOException
public int advance(int target)
advance
in class DocIdSetIterator
public long cost()
cost
in class DocIdSetIterator
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.