java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.Analyzer
All Implemented Interfaces:
JsonpSerializable, TaggedUnion<Analyzer.Kind,​AnalyzerVariant>

@JsonpDeserializable
public class Analyzer
extends java.lang.Object
implements TaggedUnion<Analyzer.Kind,​AnalyzerVariant>, JsonpSerializable
See Also:
API specification
  • Field Details

  • Constructor Details

  • Method Details

    • _kind

      public final Analyzer.Kind _kind()
      Description copied from interface: TaggedUnion
      Get the of the kind of variant held by this object.
      Specified by:
      _kind in interface TaggedUnion<Analyzer.Kind,​AnalyzerVariant>
      Returns:
      the variant kind
    • _get

      public final AnalyzerVariant _get()
      Specified by:
      _get in interface TaggedUnion<Analyzer.Kind,​AnalyzerVariant>
    • of

      public static Analyzer of​(java.util.function.Function<Analyzer.Builder,​ObjectBuilder<Analyzer>> fn)
    • isCustom

      public boolean isCustom()
      Is this variant instance of kind custom?
    • custom

      public CustomAnalyzer custom()
      Get the custom variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the custom kind.
    • isDutch

      public boolean isDutch()
      Is this variant instance of kind dutch?
    • dutch

      public DutchAnalyzer dutch()
      Get the dutch variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the dutch kind.
    • isFingerprint

      public boolean isFingerprint()
      Is this variant instance of kind fingerprint?
    • fingerprint

      public FingerprintAnalyzer fingerprint()
      Get the fingerprint variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the fingerprint kind.
    • isIcuAnalyzer

      public boolean isIcuAnalyzer()
      Is this variant instance of kind icu_analyzer?
    • icuAnalyzer

      public IcuAnalyzer icuAnalyzer()
      Get the icu_analyzer variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the icu_analyzer kind.
    • isKeyword

      public boolean isKeyword()
      Is this variant instance of kind keyword?
    • keyword

      public KeywordAnalyzer keyword()
      Get the keyword variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the keyword kind.
    • isKuromoji

      public boolean isKuromoji()
      Is this variant instance of kind kuromoji?
    • kuromoji

      public KuromojiAnalyzer kuromoji()
      Get the kuromoji variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the kuromoji kind.
    • isLanguage

      public boolean isLanguage()
      Is this variant instance of kind language?
    • language

      public LanguageAnalyzer language()
      Get the language variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the language kind.
    • isNori

      public boolean isNori()
      Is this variant instance of kind nori?
    • nori

      public NoriAnalyzer nori()
      Get the nori variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the nori kind.
    • isPattern

      public boolean isPattern()
      Is this variant instance of kind pattern?
    • pattern

      public PatternAnalyzer pattern()
      Get the pattern variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the pattern kind.
    • isSimple

      public boolean isSimple()
      Is this variant instance of kind simple?
    • simple

      public SimpleAnalyzer simple()
      Get the simple variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the simple kind.
    • isSnowball

      public boolean isSnowball()
      Is this variant instance of kind snowball?
    • snowball

      public SnowballAnalyzer snowball()
      Get the snowball variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the snowball kind.
    • isStandard

      public boolean isStandard()
      Is this variant instance of kind standard?
    • standard

      public StandardAnalyzer standard()
      Get the standard variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the standard kind.
    • isStop

      public boolean isStop()
      Is this variant instance of kind stop?
    • stop

      public StopAnalyzer stop()
      Get the stop variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the stop kind.
    • isWhitespace

      public boolean isWhitespace()
      Is this variant instance of kind whitespace?
    • whitespace

      public WhitespaceAnalyzer whitespace()
      Get the whitespace variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the whitespace kind.
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Specified by:
      serialize in interface JsonpSerializable
    • setupAnalyzerDeserializer

      protected static void setupAnalyzerDeserializer​(ObjectDeserializer<Analyzer.Builder> op)