Class STMergingTermsEnum
java.lang.Object
org.apache.lucene.index.TermsEnum
org.apache.lucene.codecs.uniformsplit.sharedterms.STMergingTermsEnum
- All Implemented Interfaces:
BytesRefIterator
Combines
PostingsEnum
for the same term for a given field from multiple segments. It is
used during segment merging.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Combines multiple segmentsPostingsEnum
as a singlePostingsEnum
, for one field and one term.Nested classes/interfaces inherited from class org.apache.lucene.index.TermsEnum
TermsEnum.SeekStatus
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final STMergingTermsEnum.MultiSegmentsPostingsEnum
protected BytesRef
-
Constructor Summary
ModifierConstructorDescriptionprotected
STMergingTermsEnum
(String fieldName, int numSegments) Constructs aSTMergingTermsEnum
for a given field. -
Method Summary
Modifier and TypeMethodDescriptionint
docFreq()
impacts
(int flags) next()
long
ord()
postings
(PostingsEnum reuse, int flags) protected void
reset
(BytesRef term, List<org.apache.lucene.codecs.uniformsplit.sharedterms.STUniformSplitTermsWriter.SegmentPostings> segmentPostings) Resets thisSTMergingTermsEnum
with a new term and its list ofSTUniformSplitTermsWriter.SegmentPostings
to combine.void
seekExact
(long ord) boolean
void
term()
long
-
Field Details
-
fieldName
-
multiPostingsEnum
-
term
-
-
Constructor Details
-
STMergingTermsEnum
Constructs aSTMergingTermsEnum
for a given field.
-
-
Method Details
-
reset
protected void reset(BytesRef term, List<org.apache.lucene.codecs.uniformsplit.sharedterms.STUniformSplitTermsWriter.SegmentPostings> segmentPostings) Resets thisSTMergingTermsEnum
with a new term and its list ofSTUniformSplitTermsWriter.SegmentPostings
to combine.- Parameters:
segmentPostings
- List sorted by segment index.
-
attributes
- Specified by:
attributes
in classTermsEnum
-
seekExact
- Specified by:
seekExact
in classTermsEnum
- Throws:
IOException
-
seekCeil
-
seekExact
public void seekExact(long ord) -
seekExact
- Specified by:
seekExact
in classTermsEnum
- Throws:
IOException
-
term
-
ord
public long ord() -
docFreq
public int docFreq() -
totalTermFreq
public long totalTermFreq()- Specified by:
totalTermFreq
in classTermsEnum
-
postings
-
impacts
-
termState
-
next
-