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
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnalyzer(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 StringGet the actual kind when_kind()equalsAnalyzer.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customAnalyzerdefined by a plugin?final Analyzer.Kind_kind()Get the of the kind of variant held by this object.arabic()Get thearabicvariant value.armenian()Get thearmenianvariant value.basque()Get thebasquevariant value.bengali()Get thebengalivariant value.Get thebrazilianvariant value.Get thebulgarianvariant value.catalan()Get thecatalanvariant value.chinese()Get thechinesevariant value.cjk()Get thecjkvariant value.custom()Get thecustomvariant value.czech()Get theczechvariant value.danish()Get thedanishvariant value.dutch()Get thedutchvariant value.english()Get theenglishvariant value.estonian()Get theestonianvariant value.Get thefingerprintvariant value.finnish()Get thefinnishvariant value.french()Get thefrenchvariant value.galician()Get thegalicianvariant value.german()Get thegermanvariant value.greek()Get thegreekvariant value.hindi()Get thehindivariant value.Get thehungarianvariant value.Get theicu_analyzervariant value.Get theindonesianvariant value.irish()Get theirishvariant value.booleanisArabic()Is this variant instance of kindarabic?booleanIs this variant instance of kindarmenian?booleanisBasque()Is this variant instance of kindbasque?booleanIs this variant instance of kindbengali?booleanIs this variant instance of kindbrazilian?booleanIs this variant instance of kindbulgarian?booleanIs this variant instance of kindcatalan?booleanIs this variant instance of kindchinese?booleanisCjk()Is this variant instance of kindcjk?booleanisCustom()Is this variant instance of kindcustom?booleanisCzech()Is this variant instance of kindczech?booleanisDanish()Is this variant instance of kinddanish?booleanisDutch()Is this variant instance of kinddutch?booleanIs this variant instance of kindenglish?booleanIs this variant instance of kindestonian?booleanIs this variant instance of kindfingerprint?booleanIs this variant instance of kindfinnish?booleanisFrench()Is this variant instance of kindfrench?booleanIs this variant instance of kindgalician?booleanisGerman()Is this variant instance of kindgerman?booleanisGreek()Is this variant instance of kindgreek?booleanisHindi()Is this variant instance of kindhindi?booleanIs this variant instance of kindhungarian?booleanIs this variant instance of kindicu_analyzer?booleanIs this variant instance of kindindonesian?booleanisIrish()Is this variant instance of kindirish?booleanIs this variant instance of kinditalian?booleanIs this variant instance of kindkeyword?booleanIs this variant instance of kindkuromoji?booleanIs this variant instance of kindlatvian?booleanIs this variant instance of kindlithuanian?booleanisNori()Is this variant instance of kindnori?booleanIs this variant instance of kindnorwegian?booleanIs this variant instance of kindpattern?booleanIs this variant instance of kindpersian?booleanIs this variant instance of kindportuguese?booleanIs this variant instance of kindromanian?booleanIs this variant instance of kindrussian?booleanIs this variant instance of kindserbian?booleanisSimple()Is this variant instance of kindsimple?booleanIs this variant instance of kindsnowball?booleanisSorani()Is this variant instance of kindsorani?booleanIs this variant instance of kindspanish?booleanIs this variant instance of kindstandard?booleanisStop()Is this variant instance of kindstop?booleanIs this variant instance of kindswedish?booleanisThai()Is this variant instance of kindthai?booleanIs this variant instance of kindturkish?booleanIs this variant instance of kindwhitespace?italian()Get theitalianvariant value.keyword()Get thekeywordvariant value.kuromoji()Get thekuromojivariant value.latvian()Get thelatvianvariant value.Get thelithuanianvariant value.nori()Get thenorivariant value.Get thenorwegianvariant value.static Analyzerpattern()Get thepatternvariant value.persian()Get thepersianvariant value.Get theportuguesevariant value.romanian()Get theromanianvariant value.russian()Get therussianvariant value.serbian()Get theserbianvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsimple()Get thesimplevariant value.snowball()Get thesnowballvariant value.sorani()Get thesoranivariant value.spanish()Get thespanishvariant value.standard()Get thestandardvariant value.stop()Get thestopvariant value.swedish()Get theswedishvariant value.thai()Get thethaivariant value.toString()turkish()Get theturkishvariant value.Get thewhitespacevariant 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:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Analyzer.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Analyzer.Kind,Object>
-
of
-
isArabic
public boolean isArabic()Is this variant instance of kindarabic? -
arabic
Get thearabicvariant value.- Throws:
IllegalStateException- if the current variant is not of thearabickind.
-
isArmenian
public boolean isArmenian()Is this variant instance of kindarmenian? -
armenian
Get thearmenianvariant value.- Throws:
IllegalStateException- if the current variant is not of thearmeniankind.
-
isBasque
public boolean isBasque()Is this variant instance of kindbasque? -
basque
Get thebasquevariant value.- Throws:
IllegalStateException- if the current variant is not of thebasquekind.
-
isBengali
public boolean isBengali()Is this variant instance of kindbengali? -
bengali
Get thebengalivariant value.- Throws:
IllegalStateException- if the current variant is not of thebengalikind.
-
isBrazilian
public boolean isBrazilian()Is this variant instance of kindbrazilian? -
brazilian
Get thebrazilianvariant value.- Throws:
IllegalStateException- if the current variant is not of thebraziliankind.
-
isBulgarian
public boolean isBulgarian()Is this variant instance of kindbulgarian? -
bulgarian
Get thebulgarianvariant value.- Throws:
IllegalStateException- if the current variant is not of thebulgariankind.
-
isCatalan
public boolean isCatalan()Is this variant instance of kindcatalan? -
catalan
Get thecatalanvariant value.- Throws:
IllegalStateException- if the current variant is not of thecatalankind.
-
isChinese
public boolean isChinese()Is this variant instance of kindchinese? -
chinese
Get thechinesevariant value.- Throws:
IllegalStateException- if the current variant is not of thechinesekind.
-
isCjk
public boolean isCjk()Is this variant instance of kindcjk? -
cjk
Get thecjkvariant value.- Throws:
IllegalStateException- if the current variant is not of thecjkkind.
-
isCustom
public boolean isCustom()Is this variant instance of kindcustom? -
custom
Get thecustomvariant value.- Throws:
IllegalStateException- if the current variant is not of thecustomkind.
-
isCzech
public boolean isCzech()Is this variant instance of kindczech? -
czech
Get theczechvariant value.- Throws:
IllegalStateException- if the current variant is not of theczechkind.
-
isDanish
public boolean isDanish()Is this variant instance of kinddanish? -
danish
Get thedanishvariant value.- Throws:
IllegalStateException- if the current variant is not of thedanishkind.
-
isDutch
public boolean isDutch()Is this variant instance of kinddutch? -
dutch
Get thedutchvariant value.- Throws:
IllegalStateException- if the current variant is not of thedutchkind.
-
isEnglish
public boolean isEnglish()Is this variant instance of kindenglish? -
english
Get theenglishvariant value.- Throws:
IllegalStateException- if the current variant is not of theenglishkind.
-
isEstonian
public boolean isEstonian()Is this variant instance of kindestonian? -
estonian
Get theestonianvariant value.- Throws:
IllegalStateException- if the current variant is not of theestoniankind.
-
isFingerprint
public boolean isFingerprint()Is this variant instance of kindfingerprint? -
fingerprint
Get thefingerprintvariant value.- Throws:
IllegalStateException- if the current variant is not of thefingerprintkind.
-
isFinnish
public boolean isFinnish()Is this variant instance of kindfinnish? -
finnish
Get thefinnishvariant value.- Throws:
IllegalStateException- if the current variant is not of thefinnishkind.
-
isFrench
public boolean isFrench()Is this variant instance of kindfrench? -
french
Get thefrenchvariant value.- Throws:
IllegalStateException- if the current variant is not of thefrenchkind.
-
isGalician
public boolean isGalician()Is this variant instance of kindgalician? -
galician
Get thegalicianvariant value.- Throws:
IllegalStateException- if the current variant is not of thegaliciankind.
-
isGerman
public boolean isGerman()Is this variant instance of kindgerman? -
german
Get thegermanvariant value.- Throws:
IllegalStateException- if the current variant is not of thegermankind.
-
isGreek
public boolean isGreek()Is this variant instance of kindgreek? -
greek
Get thegreekvariant value.- Throws:
IllegalStateException- if the current variant is not of thegreekkind.
-
isHindi
public boolean isHindi()Is this variant instance of kindhindi? -
hindi
Get thehindivariant value.- Throws:
IllegalStateException- if the current variant is not of thehindikind.
-
isHungarian
public boolean isHungarian()Is this variant instance of kindhungarian? -
hungarian
Get thehungarianvariant value.- Throws:
IllegalStateException- if the current variant is not of thehungariankind.
-
isIcuAnalyzer
public boolean isIcuAnalyzer()Is this variant instance of kindicu_analyzer? -
icuAnalyzer
Get theicu_analyzervariant value.- Throws:
IllegalStateException- if the current variant is not of theicu_analyzerkind.
-
isIndonesian
public boolean isIndonesian()Is this variant instance of kindindonesian? -
indonesian
Get theindonesianvariant value.- Throws:
IllegalStateException- if the current variant is not of theindonesiankind.
-
isIrish
public boolean isIrish()Is this variant instance of kindirish? -
irish
Get theirishvariant value.- Throws:
IllegalStateException- if the current variant is not of theirishkind.
-
isItalian
public boolean isItalian()Is this variant instance of kinditalian? -
italian
Get theitalianvariant value.- Throws:
IllegalStateException- if the current variant is not of theitaliankind.
-
isKeyword
public boolean isKeyword()Is this variant instance of kindkeyword? -
keyword
Get thekeywordvariant value.- Throws:
IllegalStateException- if the current variant is not of thekeywordkind.
-
isKuromoji
public boolean isKuromoji()Is this variant instance of kindkuromoji? -
kuromoji
Get thekuromojivariant value.- Throws:
IllegalStateException- if the current variant is not of thekuromojikind.
-
isLatvian
public boolean isLatvian()Is this variant instance of kindlatvian? -
latvian
Get thelatvianvariant value.- Throws:
IllegalStateException- if the current variant is not of thelatviankind.
-
isLithuanian
public boolean isLithuanian()Is this variant instance of kindlithuanian? -
lithuanian
Get thelithuanianvariant value.- Throws:
IllegalStateException- if the current variant is not of thelithuaniankind.
-
isNori
public boolean isNori()Is this variant instance of kindnori? -
nori
Get thenorivariant value.- Throws:
IllegalStateException- if the current variant is not of thenorikind.
-
isNorwegian
public boolean isNorwegian()Is this variant instance of kindnorwegian? -
norwegian
Get thenorwegianvariant value.- Throws:
IllegalStateException- if the current variant is not of thenorwegiankind.
-
isPattern
public boolean isPattern()Is this variant instance of kindpattern? -
pattern
Get thepatternvariant value.- Throws:
IllegalStateException- if the current variant is not of thepatternkind.
-
isPersian
public boolean isPersian()Is this variant instance of kindpersian? -
persian
Get thepersianvariant value.- Throws:
IllegalStateException- if the current variant is not of thepersiankind.
-
isPortuguese
public boolean isPortuguese()Is this variant instance of kindportuguese? -
portuguese
Get theportuguesevariant value.- Throws:
IllegalStateException- if the current variant is not of theportuguesekind.
-
isRomanian
public boolean isRomanian()Is this variant instance of kindromanian? -
romanian
Get theromanianvariant value.- Throws:
IllegalStateException- if the current variant is not of theromaniankind.
-
isRussian
public boolean isRussian()Is this variant instance of kindrussian? -
russian
Get therussianvariant value.- Throws:
IllegalStateException- if the current variant is not of therussiankind.
-
isSerbian
public boolean isSerbian()Is this variant instance of kindserbian? -
serbian
Get theserbianvariant value.- Throws:
IllegalStateException- if the current variant is not of theserbiankind.
-
isSimple
public boolean isSimple()Is this variant instance of kindsimple? -
simple
Get thesimplevariant value.- Throws:
IllegalStateException- if the current variant is not of thesimplekind.
-
isSnowball
public boolean isSnowball()Is this variant instance of kindsnowball? -
snowball
Get thesnowballvariant value.- Throws:
IllegalStateException- if the current variant is not of thesnowballkind.
-
isSorani
public boolean isSorani()Is this variant instance of kindsorani? -
sorani
Get thesoranivariant value.- Throws:
IllegalStateException- if the current variant is not of thesoranikind.
-
isSpanish
public boolean isSpanish()Is this variant instance of kindspanish? -
spanish
Get thespanishvariant value.- Throws:
IllegalStateException- if the current variant is not of thespanishkind.
-
isStandard
public boolean isStandard()Is this variant instance of kindstandard? -
standard
Get thestandardvariant value.- Throws:
IllegalStateException- if the current variant is not of thestandardkind.
-
isStop
public boolean isStop()Is this variant instance of kindstop? -
stop
Get thestopvariant value.- Throws:
IllegalStateException- if the current variant is not of thestopkind.
-
isSwedish
public boolean isSwedish()Is this variant instance of kindswedish? -
swedish
Get theswedishvariant value.- Throws:
IllegalStateException- if the current variant is not of theswedishkind.
-
isThai
public boolean isThai()Is this variant instance of kindthai? -
thai
Get thethaivariant value.- Throws:
IllegalStateException- if the current variant is not of thethaikind.
-
isTurkish
public boolean isTurkish()Is this variant instance of kindturkish? -
turkish
Get theturkishvariant value.- Throws:
IllegalStateException- if the current variant is not of theturkishkind.
-
isWhitespace
public boolean isWhitespace()Is this variant instance of kindwhitespace? -
whitespace
Get thewhitespacevariant value.- Throws:
IllegalStateException- if the current variant is not of thewhitespacekind.
-
_isCustom
public boolean _isCustom()Is this a customAnalyzerdefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsAnalyzer.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin 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:
serializein interfaceJsonpSerializable
-
toString
-
setupAnalyzerDeserializer
-