Class FreqTermsEnum
java.lang.Object
org.apache.lucene.index.TermsEnum
org.elasticsearch.common.lucene.index.FilterableTermsEnum
org.elasticsearch.common.lucene.index.FreqTermsEnum
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.lucene.util.BytesRefIterator
,org.elasticsearch.core.Releasable
A frequency terms enum that maintains a cache of docFreq, totalTermFreq, or both for repeated term lookup.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.TermsEnum
org.apache.lucene.index.TermsEnum.SeekStatus
-
Field Summary
Fields inherited from class org.elasticsearch.common.lucene.index.FilterableTermsEnum
current, currentDocFreq, currentTotalTermFreq, docsEnumFlag, NOT_FOUND
Fields inherited from class org.apache.lucene.index.TermsEnum
EMPTY
-
Constructor Summary
ConstructorDescriptionFreqTermsEnum(org.apache.lucene.index.IndexReader reader, String field, boolean needDocFreq, boolean needTotalTermFreq, org.apache.lucene.search.Query filter, BigArrays bigArrays)
-
Method Summary
Methods inherited from class org.elasticsearch.common.lucene.index.FilterableTermsEnum
attributes, docFreq, impacts, next, ord, postings, seekCeil, seekExact, seekExact, term, termState, totalTermFreq
Methods inherited from class org.apache.lucene.index.TermsEnum
postings
-
Constructor Details
-
FreqTermsEnum
public FreqTermsEnum(org.apache.lucene.index.IndexReader reader, String field, boolean needDocFreq, boolean needTotalTermFreq, @Nullable org.apache.lucene.search.Query filter, BigArrays bigArrays) throws IOException- Throws:
IOException
-
-
Method Details
-
seekExact
- Overrides:
seekExact
in classFilterableTermsEnum
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.elasticsearch.core.Releasable
-