Class Analyzer
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.Analyzer
- All Implemented Interfaces:
JsonpSerializable
,OpenTaggedUnion<Analyzer.Kind,
,Object> TaggedUnion<Analyzer.Kind,
Object>
@JsonpDeserializable
public class Analyzer
extends Object
implements OpenTaggedUnion<Analyzer.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAnalyzer
(AnalyzerVariant value) Build a custom plugin-definedAnalyzer
, given its kind and some JSON data -
Method Summary
Modifier and TypeMethodDescription_custom()
Get the custom plugin-defined variant value.final String
Get the actual kind when_kind()
equalsAnalyzer.Kind._Custom
(plugin-defined variant).final Object
_get()
boolean
Is this a customAnalyzer
defined by a plugin?final Analyzer.Kind
_kind()
Get the of the kind of variant held by this object.custom()
Get thecustom
variant value.dutch()
Get thedutch
variant value.Get thefingerprint
variant value.Get theicu_analyzer
variant value.boolean
isCustom()
Is this variant instance of kindcustom
?boolean
isDutch()
Is this variant instance of kinddutch
?boolean
Is this variant instance of kindfingerprint
?boolean
Is this variant instance of kindicu_analyzer
?boolean
Is this variant instance of kindkeyword
?boolean
Is this variant instance of kindkuromoji
?boolean
Is this variant instance of kindlanguage
?boolean
isNori()
Is this variant instance of kindnori
?boolean
Is this variant instance of kindpattern
?boolean
isSimple()
Is this variant instance of kindsimple
?boolean
Is this variant instance of kindsnowball
?boolean
Is this variant instance of kindstandard
?boolean
isStop()
Is this variant instance of kindstop
?boolean
Is this variant instance of kindwhitespace
?keyword()
Get thekeyword
variant value.kuromoji()
Get thekuromoji
variant value.language()
Get thelanguage
variant value.nori()
Get thenori
variant value.static Analyzer
pattern()
Get thepattern
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
simple()
Get thesimple
variant value.snowball()
Get thesnowball
variant value.standard()
Get thestandard
variant value.stop()
Get thestop
variant value.toString()
Get thewhitespace
variant value.
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Analyzer
-
Analyzer
Build a custom plugin-definedAnalyzer
, given its kind and some JSON data
-
-
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,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<Analyzer.Kind,
Object>
-
of
-
isCustom
public boolean isCustom()Is this variant instance of kindcustom
? -
custom
Get thecustom
variant value.- Throws:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
IllegalStateException
- if the current variant is not of thewhitespace
kind.
-
_isCustom
public boolean _isCustom()Is this a customAnalyzer
defined by a plugin? -
_customKind
Get the actual kind when_kind()
equalsAnalyzer.Kind._Custom
(plugin-defined variant).- Specified by:
_customKind
in interfaceOpenTaggedUnion<Analyzer.Kind,
Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException
- if the current variant is notAnalyzer.Kind._Custom
.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-
setupAnalyzerDeserializer
-