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:
java.io.Closeable
,java.lang.AutoCloseable
,org.apache.lucene.util.BytesRefIterator
,Releasable
public class FreqTermsEnum extends FilterableTermsEnum implements Releasable
A frequency terms enum that maintains a cache of docFreq, totalTermFreq, or both for repeated term lookup.
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.common.lucene.index.FilterableTermsEnum
current, currentDocFreq, currentTotalTermFreq, docsEnumFlag, NOT_FOUND
-
-
Constructor Summary
Constructors Constructor Description FreqTermsEnum(org.apache.lucene.index.IndexReader reader, java.lang.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
docFreq, next, ord, postings, seekCeil, seekExact, term, totalTermFreq
-
-
-
-
Method Detail
-
seekExact
public boolean seekExact(org.apache.lucene.util.BytesRef text) throws java.io.IOException
- Overrides:
seekExact
in classFilterableTermsEnum
- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceReleasable
-
-