## Uses of Class
org.apache.lucene.util.AttributeFactory

- Packages that use AttributeFactory
  Package | Description
  --- | ---
  org.apache.lucene.analysis | Text analysis.
  org.apache.lucene.analysis.standard | Fast, general-purpose grammar-based tokenizer `StandardTokenizer` implements the Word Break rules from the Unicode Text Segmentation algorithm, as specified in Unicode Standard Annex #29.
  org.apache.lucene.util | Some utility classes.

- - ### Uses of AttributeFactory in org.apache.lucene.analysis

    Fields in org.apache.lucene.analysis declared as AttributeFactory
    Modifier and Type | Field and Description
    --- | ---
    `static AttributeFactory` | TokenStream.`DEFAULT_TOKEN_ATTRIBUTE_FACTORY` Default `AttributeFactory` instance that should be used for TokenStreams.

    Methods in org.apache.lucene.analysis that return AttributeFactory
    Modifier and Type | Method and Description
    --- | ---
    `protected AttributeFactory` | AnalyzerWrapper.`attributeFactory(String fieldName)`
    `protected AttributeFactory` | Analyzer.`attributeFactory(String fieldName)` Return the `AttributeFactory` to be used for `analysis` and `normalization` on the given `FieldName`.

    Constructors in org.apache.lucene.analysis with parameters of type AttributeFactory
    Constructor and Description
    `Tokenizer(AttributeFactory factory)` Construct a tokenizer with no input, awaiting a call to `Tokenizer.setReader(java.io.Reader)` to provide input.
    `TokenStream(AttributeFactory factory)` A TokenStream using the supplied AttributeFactory for creating new `Attribute` instances.

  - ### Uses of AttributeFactory in org.apache.lucene.analysis.standard

    Constructors in org.apache.lucene.analysis.standard with parameters of type AttributeFactory
    Constructor and Description
    `StandardTokenizer(AttributeFactory factory)` Creates a new StandardTokenizer with a given `AttributeFactory`

  - ### Uses of AttributeFactory in org.apache.lucene.util

    Subclasses of AttributeFactory in org.apache.lucene.util
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `AttributeFactory.StaticImplementationAttributeFactory<A extends AttributeImpl>` Expert: AttributeFactory returning an instance of the given `clazz` for the attributes it implements.

    Fields in org.apache.lucene.util declared as AttributeFactory
    Modifier and Type | Field and Description
    --- | ---
    `static AttributeFactory` | AttributeFactory.`DEFAULT_ATTRIBUTE_FACTORY` This is the default factory that creates `AttributeImpl`s using the class name of the supplied `Attribute` interface class by appending `Impl` to it.

    Methods in org.apache.lucene.util that return AttributeFactory
    Modifier and Type | Method and Description
    --- | ---
    `AttributeFactory` | AttributeSource.`getAttributeFactory()` returns the used AttributeFactory.
    `static <A extends AttributeImpl> AttributeFactory` | AttributeFactory.`getStaticImplementation(AttributeFactory delegate, Class<A> clazz)` Returns an AttributeFactory returning an instance of the given `clazz` for the attributes it implements.

    Methods in org.apache.lucene.util with parameters of type AttributeFactory
    Modifier and Type | Method and Description
    --- | ---
    `static <A extends AttributeImpl> AttributeFactory` | AttributeFactory.`getStaticImplementation(AttributeFactory delegate, Class<A> clazz)` Returns an AttributeFactory returning an instance of the given `clazz` for the attributes it implements.

    Constructors in org.apache.lucene.util with parameters of type AttributeFactory
    Constructor and Description
    `AttributeSource(AttributeFactory factory)` An AttributeSource using the supplied `AttributeFactory` for creating new `Attribute` instances.
    `StaticImplementationAttributeFactory(AttributeFactory delegate, Class<A> clazz)` Expert: Creates an AttributeFactory returning `clazz` as instance for the attributes it implements and for all other attributes calls the given delegate factory.

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