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

@JsonpDeserializable
public class Analyzer
extends java.lang.Object
implements TaggedUnion<JsonpSerializable>, JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • _type

      public java.lang.String _type()
      Description copied from interface: TaggedUnion
      Get the of the type of the variant held by this union object.
      Specified by:
      _type in interface TaggedUnion<JsonpSerializable>
      Returns:
      the variant type
    • _get

      public JsonpSerializable _get()
      Specified by:
      _get in interface TaggedUnion<JsonpSerializable>
    • custom

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

      public FingerprintAnalyzer fingerprint()
      Get the fingerprint variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the fingerprint kind.
    • 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.
    • keyword

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

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

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

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

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

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

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

      public StopAnalyzer stop()
      Get the stop variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the stop kind.
    • 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​(DelegatingDeserializer<Analyzer.Builder> op)