Uses of Class
org.apache.lucene.index.TermsEnum
-
-
Uses of TermsEnum in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs with parameters of type TermsEnum Modifier and Type Method Description abstract BlockTermStatePostingsWriterBase. writeTerm(BytesRef term, TermsEnum termsEnum, FixedBitSet docsSeen, NormsProducer norms)Write all postings for one term; use the providedTermsEnumto pull aPostingsEnum.BlockTermStatePushPostingsWriterBase. writeTerm(BytesRef term, TermsEnum termsEnum, FixedBitSet docsSeen, NormsProducer norms) -
Uses of TermsEnum in org.apache.lucene.codecs.blocktree
Methods in org.apache.lucene.codecs.blocktree that return TermsEnum Modifier and Type Method Description TermsEnumFieldReader. intersect(CompiledAutomaton compiled, BytesRef startTerm)TermsEnumFieldReader. iterator() -
Uses of TermsEnum in org.apache.lucene.index
Subclasses of TermsEnum in org.apache.lucene.index Modifier and Type Class Description classAutomatonTermsEnumA FilteredTermsEnum that enumerates terms based upon what is accepted by a DFA.classBaseTermsEnumA base TermsEnum that adds default implementations forBaseTermsEnum.attributes()BaseTermsEnum.termState()BaseTermsEnum.seekExact(BytesRef)BaseTermsEnum.seekExact(BytesRef, TermState)In some cases, the default implementation may be slow and consume huge memory, so subclass SHOULD have its own implementation if possible.classFilteredTermsEnumAbstract class for enumerating a subset of all terms.static classFilterLeafReader.FilterTermsEnumBase class for filteringTermsEnumimplementations.classMultiTermsEnumclassSingleTermsEnumSubclass of FilteredTermsEnum for enumerating a single term.Fields in org.apache.lucene.index declared as TermsEnum Modifier and Type Field Description static TermsEnumTermsEnum. EMPTYAn empty TermsEnum for quickly returning an empty instance e.g.protected TermsEnumFilterLeafReader.FilterTermsEnum. inThe underlying TermsEnum instance.protected TermsEnumFilteredTermsEnum. tenumThe delegateTermsEnum.Methods in org.apache.lucene.index that return TermsEnum Modifier and Type Method Description TermsEnumMultiTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)TermsEnumSortedDocValues. intersect(CompiledAutomaton automaton)TermsEnumSortedSetDocValues. intersect(CompiledAutomaton automaton)TermsEnumTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)Returns a TermsEnum that iterates over all terms and documents that are accepted by the providedCompiledAutomaton.TermsEnumFilterLeafReader.FilterTerms. iterator()TermsEnumMultiTerms. iterator()abstract TermsEnumTerms. iterator()Returns an iterator that will step through all terms.TermsEnumMultiTermsEnum. reset(org.apache.lucene.index.MultiTermsEnum.TermsEnumIndex[] termsEnumsIndex)The terms array must be newly created TermsEnum, ieBytesRefIterator.next()has not yet been called.TermsEnumSortedDocValues. termsEnum()Returns aTermsEnumover the values.TermsEnumSortedSetDocValues. termsEnum()Returns aTermsEnumover the values.Methods in org.apache.lucene.index with parameters of type TermsEnum Modifier and Type Method Description static OrdinalMapOrdinalMap. build(IndexReader.CacheKey owner, TermsEnum[] subs, long[] weights, float acceptableOverheadRatio)Creates an ordinal map that allows mapping ords to/from a merged space fromsubs.Constructors in org.apache.lucene.index with parameters of type TermsEnum Constructor Description AutomatonTermsEnum(TermsEnum tenum, CompiledAutomaton compiled)Construct an enumerator based upon an automaton, enumerating the specified field, working on a supplied TermsEnumFilteredTermsEnum(TermsEnum tenum)Creates a filteredTermsEnumon a terms enum.FilteredTermsEnum(TermsEnum tenum, boolean startWithSeek)Creates a filteredTermsEnumon a terms enum.FilterTermsEnum(TermsEnum in)Creates a new FilterTermsEnumSingleTermsEnum(TermsEnum tenum, BytesRef termText)Creates a newSingleTermsEnum. -
Uses of TermsEnum in org.apache.lucene.search
Subclasses of TermsEnum in org.apache.lucene.search Modifier and Type Class Description classFuzzyTermsEnumSubclass of TermsEnum for enumerating all terms that are similar to the specified filter term.Methods in org.apache.lucene.search that return TermsEnum Modifier and Type Method Description protected TermsEnumAutomatonQuery. getTermsEnum(Terms terms, AttributeSource atts)protected TermsEnumFuzzyQuery. getTermsEnum(Terms terms, AttributeSource atts)TermsEnumMultiTermQuery. getTermsEnum(Terms terms)Constructs an enumeration that expands the pattern term.protected abstract TermsEnumMultiTermQuery. getTermsEnum(Terms terms, AttributeSource atts)Construct the enumeration to be used, expanding the pattern term.protected TermsEnumMultiTermQuery.RewriteMethod. getTermsEnum(MultiTermQuery query, Terms terms, AttributeSource atts)Returns theMultiTermQuerysTermsEnum -
Uses of TermsEnum in org.apache.lucene.spatial.prefix
Fields in org.apache.lucene.spatial.prefix declared as TermsEnum Modifier and Type Field Description protected TermsEnumAbstractPrefixTreeQuery.BaseTermsEnumTraverser. termsEnum -
Uses of TermsEnum in org.apache.lucene.util.automaton
Methods in org.apache.lucene.util.automaton that return TermsEnum Modifier and Type Method Description TermsEnumCompiledAutomaton. getTermsEnum(Terms terms) -
Uses of TermsEnum in org.elasticsearch.common.lucene.index
Subclasses of TermsEnum in org.elasticsearch.common.lucene.index Modifier and Type Class Description classFilterableTermsEnumA frequency TermsEnum that returns frequencies derived from a collection of cached leaf termEnums.classFreqTermsEnumA frequency terms enum that maintains a cache of docFreq, totalTermFreq, or both for repeated term lookup. -
Uses of TermsEnum in org.elasticsearch.index.fielddata
Subclasses of TermsEnum in org.elasticsearch.index.fielddata Modifier and Type Class Description classRamAccountingTermsEnumTermsEnumthat takes a CircuitBreaker, increasing the breaker every time.next(...)is called.Constructors in org.elasticsearch.index.fielddata with parameters of type TermsEnum Constructor Description RamAccountingTermsEnum(TermsEnum termsEnum, CircuitBreaker breaker, AbstractIndexFieldData.PerValueEstimator estimator, String fieldName) -
Uses of TermsEnum in org.elasticsearch.index.fielddata.plain
Methods in org.elasticsearch.index.fielddata.plain that return TermsEnum Modifier and Type Method Description TermsEnumAbstractIndexFieldData.PerValueEstimator. beforeLoad(Terms terms)Execute any pre-loading estimations for the terms.TermsEnumPagedBytesIndexFieldData.PagedBytesEstimator. beforeLoad(Terms terms)Determine whether the BlockTreeTermsReader.FieldReader can be used for estimating the field data, adding the estimate to the circuit breaker if it can, otherwise wrapping the terms in a RamAccountingTermsEnum to be estimated on a per-term basis.protected TermsEnumAbstractIndexOrdinalsFieldData. filter(Terms terms, TermsEnum iterator, LeafReader reader)Methods in org.elasticsearch.index.fielddata.plain with parameters of type TermsEnum Modifier and Type Method Description voidAbstractIndexFieldData.PerValueEstimator. afterLoad(TermsEnum termsEnum, long actualUsed)Possibly adjust a circuit breaker after field data has been loaded, now that the actual amount of memory used by the field data is knownvoidPagedBytesIndexFieldData.PagedBytesEstimator. afterLoad(TermsEnum termsEnum, long actualUsed)Adjust the circuit breaker now that terms have been loaded, getting the actual used either from the parameter (if estimation worked for the entire set), or from the TermsEnum if it has been wrapped in a RamAccountingTermsEnum.protected TermsEnumAbstractIndexOrdinalsFieldData. filter(Terms terms, TermsEnum iterator, LeafReader reader)
-