public class STMergingTermsEnum extends TermsEnum
PostingsEnum for the same term for a given field from
multiple segments. It is used during segment merging.| Modifier and Type | Class and Description |
|---|---|
protected class |
STMergingTermsEnum.MultiSegmentsPostingsEnum
Combines multiple segments
PostingsEnum as a single PostingsEnum,
for one field and one term. |
TermsEnum.SeekStatus| Modifier and Type | Field and Description |
|---|---|
protected String |
fieldName |
protected STMergingTermsEnum.MultiSegmentsPostingsEnum |
multiPostingsEnum |
protected BytesRef |
term |
| Modifier | Constructor and Description |
|---|---|
protected |
STMergingTermsEnum(String fieldName,
int numSegments)
Constructs a
STMergingTermsEnum for a given field. |
| Modifier and Type | Method and Description |
|---|---|
AttributeSource |
attributes() |
int |
docFreq() |
ImpactsEnum |
impacts(int flags) |
BytesRef |
next() |
long |
ord() |
PostingsEnum |
postings(PostingsEnum reuse,
int flags) |
protected void |
reset(BytesRef term,
List<STUniformSplitTermsWriter.SegmentPostings> segmentPostings)
Resets this
STMergingTermsEnum with a new term and its list of
STUniformSplitTermsWriter.SegmentPostings to combine. |
TermsEnum.SeekStatus |
seekCeil(BytesRef text) |
boolean |
seekExact(BytesRef text) |
void |
seekExact(BytesRef term,
TermState state) |
void |
seekExact(long ord) |
BytesRef |
term() |
TermState |
termState() |
long |
totalTermFreq() |
protected final String fieldName
protected final STMergingTermsEnum.MultiSegmentsPostingsEnum multiPostingsEnum
protected BytesRef term
protected STMergingTermsEnum(String fieldName, int numSegments)
STMergingTermsEnum for a given field.protected void reset(BytesRef term, List<STUniformSplitTermsWriter.SegmentPostings> segmentPostings)
STMergingTermsEnum with a new term and its list of
STUniformSplitTermsWriter.SegmentPostings to combine.segmentPostings - List sorted by segment index.public AttributeSource attributes()
attributes in class TermsEnumpublic boolean seekExact(BytesRef text) throws IOException
seekExact in class TermsEnumIOExceptionpublic TermsEnum.SeekStatus seekCeil(BytesRef text)
public void seekExact(BytesRef term, TermState state) throws IOException
seekExact in class TermsEnumIOExceptionpublic long totalTermFreq()
totalTermFreq in class TermsEnumpublic PostingsEnum postings(PostingsEnum reuse, int flags)
public ImpactsEnum impacts(int flags)
public BytesRef next()
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.