Uses of Class
org.apache.lucene.index.TermsEnum
Packages that use TermsEnum
Package
Description
Codecs API: API for customization of the encoding and structure of the index.
BlockTree terms dictionary.
Code to maintain and access indices.
Code to search indices.
Finite-state automaton for regular expressions.
-
Uses of TermsEnum in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs with parameters of type TermsEnumModifier and TypeMethodDescriptionabstract BlockTermStatePostingsWriterBase.writeTerm(BytesRef term, TermsEnum termsEnum, FixedBitSet docsSeen, NormsProducer norms) Write all postings for one term; use the providedTermsEnumto pull aPostingsEnum.final BlockTermStatePushPostingsWriterBase.writeTerm(BytesRef term, TermsEnum termsEnum, FixedBitSet docsSeen, NormsProducer norms) -
Uses of TermsEnum in org.apache.lucene.codecs.lucene90.blocktree
Methods in org.apache.lucene.codecs.lucene90.blocktree that return TermsEnum -
Uses of TermsEnum in org.apache.lucene.index
Subclasses of TermsEnum in org.apache.lucene.indexModifier and TypeClassDescriptionclassA FilteredTermsEnum that enumerates terms based upon what is accepted by a DFA.classA 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.static classWrapper class for TermsEnum that is used by ExitableTerms for implementing an exitable enumeration of terms.classAbstract class for enumerating a subset of all terms.static classBase class for filteringTermsEnumimplementations.final classfinal classSubclass of FilteredTermsEnum for enumerating a single term.Fields in org.apache.lucene.index declared as TermsEnumModifier and TypeFieldDescriptionstatic final TermsEnumTermsEnum.EMPTYAn empty TermsEnum for quickly returning an empty instance e.g.protected final TermsEnumFilterLeafReader.FilterTermsEnum.inThe underlying TermsEnum instance.protected final TermsEnumFilteredTermsEnum.tenumThe delegateTermsEnum.Methods in org.apache.lucene.index that return TermsEnumModifier and TypeMethodDescriptionExitableDirectoryReader.ExitableTerms.intersect(CompiledAutomaton compiled, BytesRef startTerm) FilterSortedDocValues.intersect(CompiledAutomaton automaton) FilterSortedSetDocValues.intersect(CompiledAutomaton automaton) MultiTerms.intersect(CompiledAutomaton compiled, BytesRef startTerm) SortedDocValues.intersect(CompiledAutomaton automaton) SortedSetDocValues.intersect(CompiledAutomaton automaton) Terms.intersect(CompiledAutomaton compiled, BytesRef startTerm) Returns a TermsEnum that iterates over all terms and documents that are accepted by the providedCompiledAutomaton.ExitableDirectoryReader.ExitableTerms.iterator()FilterLeafReader.FilterTerms.iterator()MultiTerms.iterator()abstract TermsEnumTerms.iterator()Returns an iterator that will step through all terms.MultiTermsEnum.reset(org.apache.lucene.index.TermsEnumIndex[] termsEnumsIndex) The terms array must be newly created TermsEnum, ieBytesRefIterator.next()has not yet been called.FilterSortedDocValues.termsEnum()FilterSortedSetDocValues.termsEnum()SortedDocValues.termsEnum()Returns aTermsEnumover the values.SortedSetDocValues.termsEnum()Returns aTermsEnumover the values.Methods in org.apache.lucene.index with parameters of type TermsEnumModifier and TypeMethodDescriptionstatic 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 TermsEnumModifierConstructorDescriptionAutomatonTermsEnum(TermsEnum tenum, CompiledAutomaton compiled) Construct an enumerator based upon an automaton, enumerating the specified field, working on a supplied TermsEnumExitableTermsEnum(TermsEnum termsEnum, QueryTimeout queryTimeout) Constructor *protectedFilteredTermsEnum(TermsEnum tenum) Creates a filteredTermsEnumon a terms enum.protectedFilteredTermsEnum(TermsEnum tenum, boolean startWithSeek) Creates a filteredTermsEnumon a terms enum.protectedCreates 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.searchModifier and TypeClassDescriptionfinal classSubclass of TermsEnum for enumerating all terms that are similar to the specified filter term.Methods in org.apache.lucene.search that return TermsEnumModifier and TypeMethodDescriptionprotected TermsEnumAutomatonQuery.getTermsEnum(Terms terms, AttributeSource atts) protected TermsEnumFuzzyQuery.getTermsEnum(Terms terms, AttributeSource atts) final 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 theMultiTermQuerysTermsEnumprotected TermsEnumTermInSetQuery.getTermsEnum(Terms terms, AttributeSource atts) Methods in org.apache.lucene.search with parameters of type TermsEnumModifier and TypeMethodDescriptionstatic floatPhraseQuery.termPositionsCost(TermsEnum termsEnum) Returns an expected cost in simple operations of processing the occurrences of a term in a document that contains the term. -
Uses of TermsEnum in org.apache.lucene.util.automaton
Methods in org.apache.lucene.util.automaton that return TermsEnum