Class Analyzer
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
-
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
Modifier and Type Method Description AnalyzerVariant_get()Analyzer.Kind_kind()Get the of the kind of variant held by this object.CustomAnalyzercustom()Get thecustomvariant value.DutchAnalyzerdutch()Get thedutchvariant value.FingerprintAnalyzerfingerprint()Get thefingerprintvariant value.IcuAnalyzericuAnalyzer()Get theicu_analyzervariant value.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?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.SnowballAnalyzersnowball()Get thesnowballvariant value.StandardAnalyzerstandard()Get thestandardvariant value.StopAnalyzerstop()Get thestopvariant value.WhitespaceAnalyzerwhitespace()Get thewhitespacevariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Analyzer
-
-
Method Details
-
_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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
Get thewhitespacevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thewhitespacekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupAnalyzerDeserializer
-