Class Analyzer
- java.lang.Object
-
- org.opensearch.client.opensearch._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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnalyzer.Builderstatic classAnalyzer.KindAnalyzervariant kinds.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Analyzer>_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description Analyzer(AnalyzerVariant value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyzerVariant_get()Analyzer.Kind_kind()Get the of the kind of variant held by this object.CjkAnalyzercjk()Get thecjkvariant value.CustomAnalyzercustom()Get thecustomvariant value.DutchAnalyzerdutch()Get thedutchvariant value.FingerprintAnalyzerfingerprint()Get thefingerprintvariant value.IcuAnalyzericuAnalyzer()Get theicu_analyzervariant value.booleanisCjk()Is this variant instance of kindcjk?booleanisCustom()Is this variant instance of kindcustom?booleanisDutch()Is this variant instance of kinddutch?booleanisFingerprint()Is this variant instance of kindfingerprint?booleanisIcuAnalyzer()Is this variant instance of kindicu_analyzer?booleanisKeyword()Is this variant instance of kindkeyword?booleanisKuromoji()Is this variant instance of kindkuromoji?booleanisLanguage()Is this variant instance of kindlanguage?booleanisNori()Is this variant instance of kindnori?booleanisPattern()Is this variant instance of kindpattern?booleanisSimple()Is this variant instance of kindsimple?booleanisSmartcn()Is this variant instance of kindcjk?booleanisSnowball()Is this variant instance of kindsnowball?booleanisStandard()Is this variant instance of kindstandard?booleanisStop()Is this variant instance of kindstop?booleanisWhitespace()Is this variant instance of kindwhitespace?KeywordAnalyzerkeyword()Get thekeywordvariant value.KuromojiAnalyzerkuromoji()Get thekuromojivariant value.LanguageAnalyzerlanguage()Get thelanguagevariant value.NoriAnalyzernori()Get thenorivariant value.static Analyzerof(java.util.function.Function<Analyzer.Builder,ObjectBuilder<Analyzer>> fn)PatternAnalyzerpattern()Get thepatternvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupAnalyzerDeserializer(ObjectDeserializer<Analyzer.Builder> op)SimpleAnalyzersimple()Get thesimplevariant value.SmartcnAnalyzersmartcn()Get thecjkvariant value.SnowballAnalyzersnowball()Get thesnowballvariant value.StandardAnalyzerstandard()Get thestandardvariant value.StopAnalyzerstop()Get thestopvariant value.WhitespaceAnalyzerwhitespace()Get thewhitespacevariant value.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<Analyzer> _DESERIALIZER
-
-
Constructor Detail
-
Analyzer
public Analyzer(AnalyzerVariant value)
-
-
Method Detail
-
_kind
public final Analyzer.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Analyzer.Kind,AnalyzerVariant>- Returns:
- the variant kind
-
_get
public final AnalyzerVariant _get()
- Specified by:
_getin interfaceTaggedUnion<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 kindcustom?
-
custom
public CustomAnalyzer custom()
Get thecustomvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecustomkind.
-
isDutch
public boolean isDutch()
Is this variant instance of kinddutch?
-
dutch
public DutchAnalyzer dutch()
Get thedutchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedutchkind.
-
isFingerprint
public boolean isFingerprint()
Is this variant instance of kindfingerprint?
-
fingerprint
public FingerprintAnalyzer fingerprint()
Get thefingerprintvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefingerprintkind.
-
isIcuAnalyzer
public boolean isIcuAnalyzer()
Is this variant instance of kindicu_analyzer?
-
icuAnalyzer
public IcuAnalyzer icuAnalyzer()
Get theicu_analyzervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theicu_analyzerkind.
-
isKeyword
public boolean isKeyword()
Is this variant instance of kindkeyword?
-
keyword
public KeywordAnalyzer keyword()
Get thekeywordvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekeywordkind.
-
isKuromoji
public boolean isKuromoji()
Is this variant instance of kindkuromoji?
-
kuromoji
public KuromojiAnalyzer kuromoji()
Get thekuromojivariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekuromojikind.
-
isLanguage
public boolean isLanguage()
Is this variant instance of kindlanguage?
-
language
public LanguageAnalyzer language()
Get thelanguagevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelanguagekind.
-
isNori
public boolean isNori()
Is this variant instance of kindnori?
-
nori
public NoriAnalyzer nori()
Get thenorivariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenorikind.
-
isPattern
public boolean isPattern()
Is this variant instance of kindpattern?
-
pattern
public PatternAnalyzer pattern()
Get thepatternvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepatternkind.
-
isSimple
public boolean isSimple()
Is this variant instance of kindsimple?
-
simple
public SimpleAnalyzer simple()
Get thesimplevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesimplekind.
-
isSnowball
public boolean isSnowball()
Is this variant instance of kindsnowball?
-
snowball
public SnowballAnalyzer snowball()
Get thesnowballvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesnowballkind.
-
isStandard
public boolean isStandard()
Is this variant instance of kindstandard?
-
standard
public StandardAnalyzer standard()
Get thestandardvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestandardkind.
-
isStop
public boolean isStop()
Is this variant instance of kindstop?
-
stop
public StopAnalyzer stop()
Get thestopvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestopkind.
-
isWhitespace
public boolean isWhitespace()
Is this variant instance of kindwhitespace?
-
whitespace
public WhitespaceAnalyzer whitespace()
Get thewhitespacevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thewhitespacekind.
-
isSmartcn
public boolean isSmartcn()
Is this variant instance of kindcjk?
-
smartcn
public SmartcnAnalyzer smartcn()
Get thecjkvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecjkkind.
-
isCjk
public boolean isCjk()
Is this variant instance of kindcjk?
-
cjk
public CjkAnalyzer cjk()
Get thecjkvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecjkkind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
setupAnalyzerDeserializer
protected static void setupAnalyzerDeserializer(ObjectDeserializer<Analyzer.Builder> op)
-
-