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. |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
fieldName |
protected STMergingTermsEnum.MultiSegmentsPostingsEnum |
multiPostingsEnum |
protected BytesRef |
term |
| Modifier | Constructor and Description |
|---|---|
protected |
STMergingTermsEnum(java.lang.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,
java.util.List<STUniformSplitTermsWriter.SegmentPostings> segmentPostings)
Resets this
STMergingTermsEnum with a new term and its list of
STUniformSplitTermsWriter.SegmentPostings to combine. |
SeekStatus |
seekCeil(BytesRef text) |
boolean |
seekExact(BytesRef text) |
void |
seekExact(BytesRef term,
TermState state) |
BytesRef |
term() |
TermState |
termState() |
long |
totalTermFreq() |
protected final java.lang.String fieldName
protected final STMergingTermsEnum.MultiSegmentsPostingsEnum multiPostingsEnum
protected BytesRef term
protected STMergingTermsEnum(java.lang.String fieldName,
int numSegments)
STMergingTermsEnum for a given field.protected void reset(BytesRef term,
java.util.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()
public boolean seekExact(BytesRef text)
throws java.io.IOException
java.io.IOExceptionpublic SeekStatus seekCeil(BytesRef text)
public void seekExact(BytesRef term,
TermState state)
throws java.io.IOException
java.io.IOExceptionpublic BytesRef term()
public long ord()
public int docFreq()
public long totalTermFreq()
public PostingsEnum postings(PostingsEnum reuse,
int flags)
public ImpactsEnum impacts(int flags)
public TermState termState()
public BytesRef next()
Data In Motion GmbH all rights reserved