## Uses of Class
org.apache.lucene.index.TermsEnum

- Packages that use TermsEnum
  Package | Description
  --- | ---
  org.apache.lucene.codecs | Codecs API: API for customization of the encoding and structure of the index.
  org.apache.lucene.codecs.blocktree | BlockTree terms dictionary.
  org.apache.lucene.index | Code to maintain and access indices.
  org.apache.lucene.search | Code to search indices.
  org.apache.lucene.util.automaton | Finite-state automaton for regular expressions.

- - ### Uses of TermsEnum in org.apache.lucene.codecs

    Methods in org.apache.lucene.codecs with parameters of type TermsEnum
    Modifier and Type | Method and Description
    --- | ---
    `BlockTermState` | PushPostingsWriterBase.`writeTerm(BytesRef term, TermsEnum termsEnum, FixedBitSet docsSeen)`
    `abstract BlockTermState` | PostingsWriterBase.`writeTerm(BytesRef term, TermsEnum termsEnum, FixedBitSet docsSeen)` Write all postings for one term; use the provided `TermsEnum` to pull a `PostingsEnum`.

  - ### Uses of TermsEnum in org.apache.lucene.codecs.blocktree

    Methods in org.apache.lucene.codecs.blocktree that return TermsEnum
    Modifier and Type | Method and Description
    --- | ---
    `TermsEnum` | FieldReader.`intersect(CompiledAutomaton compiled, BytesRef startTerm)`
    `TermsEnum` | FieldReader.`iterator()`

  - ### Uses of TermsEnum in org.apache.lucene.index

    Subclasses of TermsEnum in org.apache.lucene.index
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AutomatonTermsEnum` A FilteredTermsEnum that enumerates terms based upon what is accepted by a DFA.
    `static class` | `ExitableDirectoryReader.ExitableTermsEnum` Wrapper class for TermsEnum that is used by ExitableTerms for implementing an exitable enumeration of terms.
    `class` | `FilteredTermsEnum` Abstract class for enumerating a subset of all terms.
    `static class` | `FilterLeafReader.FilterTermsEnum` Base class for filtering `TermsEnum` implementations.
    `class` | `MultiTermsEnum` Exposes `TermsEnum` API, merged from `TermsEnum` API of sub-segments.
    `class` | `SingleTermsEnum` Subclass of FilteredTermsEnum for enumerating a single term.

    Fields in org.apache.lucene.index declared as TermsEnum
    Modifier and Type | Field and Description
    --- | ---
    `static TermsEnum` | TermsEnum.`EMPTY` An empty TermsEnum for quickly returning an empty instance e.g.
    `protected TermsEnum` | FilterLeafReader.FilterTermsEnum.`in` The underlying TermsEnum instance.
    `protected TermsEnum` | FilteredTermsEnum.`tenum` The delegate `TermsEnum`.

    Methods in org.apache.lucene.index that return TermsEnum
    Modifier and Type | Method and Description
    --- | ---
    `TermsEnum` | SortedSetDocValues.`intersect(CompiledAutomaton automaton)` Returns a `TermsEnum` over the values, filtered by a `CompiledAutomaton` The enum supports `ord()`.
    `TermsEnum` | SortedDocValues.`intersect(CompiledAutomaton automaton)` Returns a `TermsEnum` over the values, filtered by a `CompiledAutomaton` The enum supports `ord()`.
    `TermsEnum` | Terms.`intersect(CompiledAutomaton compiled, BytesRef startTerm)` Returns a TermsEnum that iterates over all terms and documents that are accepted by the provided `CompiledAutomaton`.
    `TermsEnum` | MultiTerms.`intersect(CompiledAutomaton compiled, BytesRef startTerm)`
    `TermsEnum` | ExitableDirectoryReader.ExitableTerms.`intersect(CompiledAutomaton compiled, BytesRef startTerm)`
    `abstract TermsEnum` | Terms.`iterator()` Returns an iterator that will step through all terms.
    `TermsEnum` | MultiTerms.`iterator()`
    `TermsEnum` | ExitableDirectoryReader.ExitableTerms.`iterator()`
    `TermsEnum` | FilterLeafReader.FilterTerms.`iterator()`
    `TermsEnum` | MultiTermsEnum.`reset(org.apache.lucene.index.MultiTermsEnum.TermsEnumIndex[] termsEnumsIndex)` The terms array must be newly created TermsEnum, ie `BytesRefIterator.next()` has not yet been called.
    `TermsEnum` | LegacySortedDocValues.`termsEnum()` Deprecated. Returns a `TermsEnum` over the values.
    `TermsEnum` | SortedSetDocValues.`termsEnum()` Returns a `TermsEnum` over the values.
    `TermsEnum` | LegacySortedSetDocValues.`termsEnum()` Deprecated. Returns a `TermsEnum` over the values.
    `TermsEnum` | SortedDocValues.`termsEnum()` Returns a `TermsEnum` over the values.

    Methods in org.apache.lucene.index with parameters of type TermsEnum
    Modifier and Type | Method and Description
    --- | ---
    `static OrdinalMap` | OrdinalMap.`build(IndexReader.CacheKey owner, TermsEnum[] subs, long[] weights, float acceptableOverheadRatio)` Creates an ordinal map that allows mapping ords to/from a merged space from `subs`.

    Constructors in org.apache.lucene.index with parameters of type TermsEnum
    Constructor and Description
    `AutomatonTermsEnum(TermsEnum tenum, CompiledAutomaton compiled)` Construct an enumerator based upon an automaton, enumerating the specified field, working on a supplied TermsEnum
    `ExitableTermsEnum(TermsEnum termsEnum, QueryTimeout queryTimeout)` Constructor
    `FilteredTermsEnum(TermsEnum tenum)` Creates a filtered `TermsEnum` on a terms enum.
    `FilteredTermsEnum(TermsEnum tenum, boolean startWithSeek)` Creates a filtered `TermsEnum` on a terms enum.
    `FilterTermsEnum(TermsEnum in)` Creates a new FilterTermsEnum
    `SingleTermsEnum(TermsEnum tenum, BytesRef termText)` Creates a new `SingleTermsEnum`.

  - ### Uses of TermsEnum in org.apache.lucene.search

    Subclasses of TermsEnum in org.apache.lucene.search
    Modifier and Type | Class and Description
    --- | ---
    `class` | `FuzzyTermsEnum` Subclass 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 and Description
    --- | ---
    `protected TermsEnum` | MultiTermQuery.RewriteMethod.`getTermsEnum(MultiTermQuery query, Terms terms, AttributeSource atts)` Returns the `MultiTermQuery`s `TermsEnum`
    `protected 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 TermsEnum` | AutomatonQuery.`getTermsEnum(Terms terms, AttributeSource atts)`
    `protected abstract TermsEnum` | MultiTermQuery.`getTermsEnum(Terms terms, AttributeSource atts)` Construct the enumeration to be used, expanding the pattern term.
    `protected TermsEnum` | FuzzyQuery.`getTermsEnum(Terms terms, AttributeSource atts)`

  - ### Uses of TermsEnum in org.apache.lucene.util.automaton

    Methods in org.apache.lucene.util.automaton that return TermsEnum
    Modifier and Type | Method and Description
    --- | ---
    `TermsEnum` | CompiledAutomaton.`getTermsEnum(Terms terms)` Return a `TermsEnum` intersecting the provided `Terms` with the terms accepted by this automaton.

Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.