org.hibernate.search.analyzer.impl

## Class NamedLuceneAnalyzerReference

- java.lang.Object
- - org.hibernate.search.analyzer.impl.LuceneAnalyzerReference
  - - org.hibernate.search.analyzer.impl.NamedLuceneAnalyzerReference

- All Implemented Interfaces:
    Closeable, AutoCloseable, AnalyzerReference
  Direct Known Subclasses:
    NamedLuceneNormalizerReference

      public class NamedLuceneAnalyzerReference
      extends LuceneAnalyzerReference

  A reference to a Lucene analyzer that also provides a name for this analyzer.

  Such a reference may initially only contain the analyzer name, but in this case it will be fully initialized with the actual analyzer later.

  Author:
    Davide D'Alto

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NamedLuceneAnalyzerReference(String name)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Close analyzer if possible
    `protected Analyzer` | `createAnalyzer(org.hibernate.search.analyzer.impl.LuceneAnalyzerBuilder builder)`
    `Analyzer` | `getAnalyzer()`
    `String` | `getAnalyzerName()`
    `void` | `initialize(org.hibernate.search.analyzer.impl.LuceneAnalyzerBuilder builder)`
    `boolean` | `isInitialized()`
    `boolean` | `isNormalizer(String fieldName)`
    `String` | `toString()`

    - ### Methods inherited from class org.hibernate.search.analyzer.impl.LuceneAnalyzerReference

      `is, unwrap`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### NamedLuceneAnalyzerReference

          public NamedLuceneAnalyzerReference(String name)

  - ### Method Detail

    - #### getAnalyzerName

          public String getAnalyzerName()

    - #### isNormalizer

          public boolean isNormalizer(String fieldName)

      Parameters:
        `fieldName` - name of the field whose analyzer is to be inspected
      Returns:
        `true` if the analyzer for the field with the given name is a normalizer, `false` otherwise.

    - #### getAnalyzer

          public Analyzer getAnalyzer()

      Specified by:
        `getAnalyzer` in class `LuceneAnalyzerReference`

    - #### isInitialized

          public boolean isInitialized()

    - #### initialize

          public void initialize(org.hibernate.search.analyzer.impl.LuceneAnalyzerBuilder builder)

    - #### createAnalyzer

          protected Analyzer createAnalyzer(org.hibernate.search.analyzer.impl.LuceneAnalyzerBuilder builder)

    - #### close

          public void close()

      Description copied from interface: `AnalyzerReference`
      Close analyzer if possible

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved