java.lang.Object
org.opensearch.client.opensearch._types.analysis.Analyzer
All Implemented Interfaces:
JsonpSerializable, PlainJsonSerializable, TaggedUnion<Analyzer.Kind,AnalyzerVariant>

@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class Analyzer extends Object implements TaggedUnion<Analyzer.Kind,AnalyzerVariant>, PlainJsonSerializable
  • 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

    • isCjk

      public boolean isCjk()
      Is this variant instance of kind cjk?
    • cjk

      public CjkAnalyzer cjk()
      Get the cjk variant value.
      Throws:
      IllegalStateException - if the current variant is not the cjk kind.
    • isCustom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public boolean isPhone()
      Is this variant instance of kind phone?
    • phone

      public PhoneAnalyzer phone()
      Get the phone variant value.
      Throws:
      IllegalStateException - if the current variant is not the phone kind.
    • isSimple

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

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

      public boolean isSmartcn()
      Is this variant instance of kind smartcn?
    • smartcn

      public SmartcnAnalyzer smartcn()
      Get the smartcn variant value.
      Throws:
      IllegalStateException - if the current variant is not the smartcn kind.
    • isSnowball

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

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

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

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

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

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

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

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

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

      @Nonnull public Analyzer.Builder toBuilder()
    • builder

      @Nonnull public static Analyzer.Builder builder()
    • setupAnalyzerDeserializer

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object