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.
Code to maintain and access indices.
Code to search indices.
Some utility classes.
Finite-state automaton for regular expressions.
-
Uses of TermsEnum in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs that return TermsEnumModifier and TypeMethodDescriptionBlockTreeTermsReader.FieldReader.intersect
(CompiledAutomaton compiled, BytesRef startTerm) Methods in org.apache.lucene.codecs with parameters of type TermsEnumModifier and TypeMethodDescriptionvoid
TermsConsumer.merge
(MergeState mergeState, FieldInfo.IndexOptions indexOptions, TermsEnum termsEnum) Default merge impl -
Uses of TermsEnum in org.apache.lucene.index
Subclasses of TermsEnum in org.apache.lucene.indexModifier and TypeClassDescriptionstatic class
Base class for filteringTermsEnum
implementations.class
Abstract class for enumerating a subset of all terms.final class
final class
Subclass of FilteredTermsEnum for enumerating a single term.Fields in org.apache.lucene.index declared as TermsEnumModifier and TypeFieldDescriptionstatic final TermsEnum
TermsEnum.EMPTY
An empty TermsEnum for quickly returning an empty instance e.g.protected final TermsEnum
FilterAtomicReader.FilterTermsEnum.in
The underlying TermsEnum instance.Methods in org.apache.lucene.index that return TermsEnumModifier and TypeMethodDescriptionDocTermOrds.getOrdTermsEnum
(AtomicReader reader) Returns a TermsEnum that implements ord.MultiTerms.intersect
(CompiledAutomaton compiled, BytesRef startTerm) Terms.intersect
(CompiledAutomaton compiled, BytesRef startTerm) Returns a TermsEnum that iterates over all terms that are accepted by the providedCompiledAutomaton
.abstract TermsEnum
Returns an iterator that will step through all terms.MultiTermsEnum.reset
(org.apache.lucene.index.MultiTermsEnum.TermsEnumIndex[] termsEnumsIndex) The terms array must be newly created TermsEnum, ieBytesRefIterator.next()
has not yet been called.SortedDocValues.termsEnum()
Returns aTermsEnum
over the values.SortedSetDocValues.termsEnum()
Returns aTermsEnum
over the values.Methods in org.apache.lucene.index with parameters of type TermsEnumModifier and TypeMethodDescriptionabstract TermsEnum
Returns an iterator that will step through all terms.DocTermOrds.lookupTerm
(TermsEnum termsEnum, int ord) Returns the term (BytesRef
) corresponding to the provided ordinal.protected void
Subclass can override thisConstructors in org.apache.lucene.index with parameters of type TermsEnumModifierConstructorDescriptionFilteredTermsEnum
(TermsEnum tenum) Creates a filteredTermsEnum
on a terms enum.FilteredTermsEnum
(TermsEnum tenum, boolean startWithSeek) Creates a filteredTermsEnum
on a terms enum.Creates a new FilterTermsEnumOrdinalMap
(Object owner, TermsEnum[] subs) Creates an ordinal map that allows mapping ords to/from a merged space fromsubs
.SingleTermsEnum
(TermsEnum tenum, BytesRef termText) Creates a newSingleTermsEnum
. -
Uses of TermsEnum in org.apache.lucene.search
Subclasses of TermsEnum in org.apache.lucene.searchModifier and TypeClassDescriptionclass
Subclass of TermsEnum for enumerating all terms that are similar to the specified filter term.class
Subclass of FilteredTermEnum for enumerating all terms that match the specified prefix filter term.class
Subclass of FilteredTermEnum for enumerating all terms that match the specified range parameters.Methods in org.apache.lucene.search that return TermsEnumModifier and TypeMethodDescriptionprotected TermsEnum
FuzzyTermsEnum.getAutomatonEnum
(int editDistance, BytesRef lastTerm) return an automata-based enum for matching up to editDistance from lastTerm, if possibleprotected TermsEnum
AutomatonQuery.getTermsEnum
(Terms terms, AttributeSource atts) protected TermsEnum
FuzzyQuery.getTermsEnum
(Terms terms, AttributeSource atts) protected final TermsEnum
MultiTermQuery.getTermsEnum
(Terms terms) Convenience method, if no attributes are needed: This simply passes empty attributes and is equal to:getTermsEnum(terms, new AttributeSource())
protected abstract TermsEnum
MultiTermQuery.getTermsEnum
(Terms terms, AttributeSource atts) Construct the enumeration to be used, expanding the pattern term.protected TermsEnum
MultiTermQuery.RewriteMethod.getTermsEnum
(MultiTermQuery query, Terms terms, AttributeSource atts) Returns theMultiTermQuery
sTermsEnum
protected TermsEnum
NumericRangeQuery.getTermsEnum
(Terms terms, AttributeSource atts) protected TermsEnum
PrefixQuery.getTermsEnum
(Terms terms, AttributeSource atts) protected TermsEnum
TermRangeQuery.getTermsEnum
(Terms terms, AttributeSource atts) Methods in org.apache.lucene.search with parameters of type TermsEnumModifier and TypeMethodDescriptionprotected void
swap in a new actual enum to proxy toConstructors in org.apache.lucene.search with parameters of type TermsEnumModifierConstructorDescriptionPrefixTermsEnum
(TermsEnum tenum, BytesRef prefixText) TermRangeTermsEnum
(TermsEnum tenum, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper) Enumerates all terms greater/equal thanlowerTerm
but less/equal thanupperTerm
. -
Uses of TermsEnum in org.apache.lucene.util
Methods in org.apache.lucene.util that return TermsEnumModifier and TypeMethodDescriptionstatic TermsEnum
NumericUtils.filterPrefixCodedInts
(TermsEnum termsEnum) Filters the givenTermsEnum
by accepting only prefix coded 32 bit terms with a shift value of 0.static TermsEnum
NumericUtils.filterPrefixCodedLongs
(TermsEnum termsEnum) Filters the givenTermsEnum
by accepting only prefix coded 64 bit terms with a shift value of 0.Methods in org.apache.lucene.util with parameters of type TermsEnumModifier and TypeMethodDescriptionstatic TermsEnum
NumericUtils.filterPrefixCodedInts
(TermsEnum termsEnum) Filters the givenTermsEnum
by accepting only prefix coded 32 bit terms with a shift value of 0.static TermsEnum
NumericUtils.filterPrefixCodedLongs
(TermsEnum termsEnum) Filters the givenTermsEnum
by accepting only prefix coded 64 bit terms with a shift value of 0. -
Uses of TermsEnum in org.apache.lucene.util.automaton
Methods in org.apache.lucene.util.automaton that return TermsEnum