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 class
Analyzer.Builder
static class
Analyzer.Kind
Analyzer
variant 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.CustomAnalyzer
custom()
Get thecustom
variant value.DutchAnalyzer
dutch()
Get thedutch
variant value.FingerprintAnalyzer
fingerprint()
Get thefingerprint
variant value.IcuAnalyzer
icuAnalyzer()
Get theicu_analyzer
variant value.boolean
isCustom()
Is this variant instance of kindcustom
?boolean
isDutch()
Is this variant instance of kinddutch
?boolean
isFingerprint()
Is this variant instance of kindfingerprint
?boolean
isIcuAnalyzer()
Is this variant instance of kindicu_analyzer
?boolean
isKeyword()
Is this variant instance of kindkeyword
?boolean
isKuromoji()
Is this variant instance of kindkuromoji
?boolean
isLanguage()
Is this variant instance of kindlanguage
?boolean
isNori()
Is this variant instance of kindnori
?boolean
isPattern()
Is this variant instance of kindpattern
?boolean
isSimple()
Is this variant instance of kindsimple
?boolean
isSnowball()
Is this variant instance of kindsnowball
?boolean
isStandard()
Is this variant instance of kindstandard
?boolean
isStop()
Is this variant instance of kindstop
?boolean
isWhitespace()
Is this variant instance of kindwhitespace
?KeywordAnalyzer
keyword()
Get thekeyword
variant value.KuromojiAnalyzer
kuromoji()
Get thekuromoji
variant value.LanguageAnalyzer
language()
Get thelanguage
variant value.NoriAnalyzer
nori()
Get thenori
variant value.static Analyzer
of(java.util.function.Function<Analyzer.Builder,ObjectBuilder<Analyzer>> fn)
PatternAnalyzer
pattern()
Get thepattern
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupAnalyzerDeserializer(ObjectDeserializer<Analyzer.Builder> op)
SimpleAnalyzer
simple()
Get thesimple
variant value.SnowballAnalyzer
snowball()
Get thesnowball
variant value.StandardAnalyzer
standard()
Get thestandard
variant value.StopAnalyzer
stop()
Get thestop
variant value.WhitespaceAnalyzer
whitespace()
Get thewhitespace
variant 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:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Analyzer.Kind,AnalyzerVariant>
- Returns:
- the variant kind
-
_get
- Specified by:
_get
in 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 thecustom
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecustom
kind.
-
isDutch
public boolean isDutch()Is this variant instance of kinddutch
? -
dutch
Get thedutch
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedutch
kind.
-
isFingerprint
public boolean isFingerprint()Is this variant instance of kindfingerprint
? -
fingerprint
Get thefingerprint
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefingerprint
kind.
-
isIcuAnalyzer
public boolean isIcuAnalyzer()Is this variant instance of kindicu_analyzer
? -
icuAnalyzer
Get theicu_analyzer
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theicu_analyzer
kind.
-
isKeyword
public boolean isKeyword()Is this variant instance of kindkeyword
? -
keyword
Get thekeyword
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thekeyword
kind.
-
isKuromoji
public boolean isKuromoji()Is this variant instance of kindkuromoji
? -
kuromoji
Get thekuromoji
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thekuromoji
kind.
-
isLanguage
public boolean isLanguage()Is this variant instance of kindlanguage
? -
language
Get thelanguage
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thelanguage
kind.
-
isNori
public boolean isNori()Is this variant instance of kindnori
? -
nori
Get thenori
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thenori
kind.
-
isPattern
public boolean isPattern()Is this variant instance of kindpattern
? -
pattern
Get thepattern
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepattern
kind.
-
isSimple
public boolean isSimple()Is this variant instance of kindsimple
? -
simple
Get thesimple
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesimple
kind.
-
isSnowball
public boolean isSnowball()Is this variant instance of kindsnowball
? -
snowball
Get thesnowball
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesnowball
kind.
-
isStandard
public boolean isStandard()Is this variant instance of kindstandard
? -
standard
Get thestandard
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thestandard
kind.
-
isStop
public boolean isStop()Is this variant instance of kindstop
? -
stop
Get thestop
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thestop
kind.
-
isWhitespace
public boolean isWhitespace()Is this variant instance of kindwhitespace
? -
whitespace
Get thewhitespace
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thewhitespace
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupAnalyzerDeserializer
-