Module org.elasticsearch.xcore
Class SimpleTermCountEnum
java.lang.Object
org.apache.lucene.index.TermsEnum
org.elasticsearch.xpack.core.termsenum.action.SimpleTermCountEnum
- All Implemented Interfaces:
org.apache.lucene.util.BytesRefIterator
public class SimpleTermCountEnum
extends org.apache.lucene.index.TermsEnum
A utility class for fields that need to support autocomplete via
MappedFieldType.getTerms(IndexReader, String, boolean, String)
but can't return a raw Lucene TermsEnum.-
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.apache.lucene.index.TermsEnum
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.util.AttributeSourceintdocFreq()org.apache.lucene.index.ImpactsEnumimpacts(int flags) org.apache.lucene.util.BytesRefnext()longord()org.apache.lucene.index.PostingsEnumpostings(org.apache.lucene.index.PostingsEnum reuse, int flags) org.apache.lucene.util.IOBooleanSupplierprepareSeekExact(org.apache.lucene.util.BytesRef bytesRef) org.apache.lucene.index.TermsEnum.SeekStatusseekCeil(org.apache.lucene.util.BytesRef text) voidseekExact(long ord) booleanseekExact(org.apache.lucene.util.BytesRef text) voidseekExact(org.apache.lucene.util.BytesRef term, org.apache.lucene.index.TermState state) org.apache.lucene.util.BytesRefterm()org.apache.lucene.index.TermStatelongMethods inherited from class org.apache.lucene.index.TermsEnum
postings
-
Constructor Details
-
SimpleTermCountEnum
-
SimpleTermCountEnum
-
-
Method Details
-
term
- Specified by:
termin classorg.apache.lucene.index.TermsEnum- Throws:
IOException
-
next
- Throws:
IOException
-
docFreq
- Specified by:
docFreqin classorg.apache.lucene.index.TermsEnum- Throws:
IOException
-
attributes
public org.apache.lucene.util.AttributeSource attributes()- Specified by:
attributesin classorg.apache.lucene.index.TermsEnum
-
prepareSeekExact
public org.apache.lucene.util.IOBooleanSupplier prepareSeekExact(org.apache.lucene.util.BytesRef bytesRef) throws IOException - Specified by:
prepareSeekExactin classorg.apache.lucene.index.TermsEnum- Throws:
IOException
-
seekExact
- Specified by:
seekExactin classorg.apache.lucene.index.TermsEnum- Throws:
IOException
-
seekCeil
public org.apache.lucene.index.TermsEnum.SeekStatus seekCeil(org.apache.lucene.util.BytesRef text) throws IOException - Specified by:
seekCeilin classorg.apache.lucene.index.TermsEnum- Throws:
IOException
-
seekExact
- Specified by:
seekExactin classorg.apache.lucene.index.TermsEnum- Throws:
IOException
-
seekExact
public void seekExact(org.apache.lucene.util.BytesRef term, org.apache.lucene.index.TermState state) throws IOException - Specified by:
seekExactin classorg.apache.lucene.index.TermsEnum- Throws:
IOException
-
ord
- Specified by:
ordin classorg.apache.lucene.index.TermsEnum- Throws:
IOException
-
totalTermFreq
- Specified by:
totalTermFreqin classorg.apache.lucene.index.TermsEnum- Throws:
IOException
-
postings
public org.apache.lucene.index.PostingsEnum postings(org.apache.lucene.index.PostingsEnum reuse, int flags) throws IOException - Specified by:
postingsin classorg.apache.lucene.index.TermsEnum- Throws:
IOException
-
impacts
- Specified by:
impactsin classorg.apache.lucene.index.TermsEnum- Throws:
IOException
-
termState
- Specified by:
termStatein classorg.apache.lucene.index.TermsEnum- Throws:
IOException
-