Class Analyzer
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.Analyzer
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<JsonpSerializable>
@JsonpDeserializable public class Analyzer extends java.lang.Object implements TaggedUnion<JsonpSerializable>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnalyzer.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Analyzer>_DESERIALIZERstatic java.lang.StringCUSTOMstatic java.lang.StringFINGERPRINTstatic java.lang.StringICU_ANALYZERstatic java.lang.StringKEYWORDstatic java.lang.StringKUROMOJIstatic java.lang.StringLANGUAGEstatic java.lang.StringNORIstatic java.lang.StringPATTERNstatic java.lang.StringSIMPLEstatic java.lang.StringSTANDARDstatic java.lang.StringSTOPstatic java.lang.StringWHITESPACE -
Constructor Summary
Constructors Constructor Description Analyzer(AnalyzerVariant value)Analyzer(ObjectBuilder<T> builder)Analyzer(java.util.function.Function<Analyzer.Builder,Analyzer.Builder> fn) -
Method Summary
Modifier and Type Method Description JsonpSerializable_get()java.lang.String_type()Get the of the type of the variant held by this union object.CustomAnalyzercustom()Get thecustomvariant value.FingerprintAnalyzerfingerprint()Get thefingerprintvariant value.IcuAnalyzericuAnalyzer()Get theicu_analyzervariant value.KeywordAnalyzerkeyword()Get thekeywordvariant value.KuromojiAnalyzerkuromoji()Get thekuromojivariant value.LanguageAnalyzerlanguage()Get thelanguagevariant value.NoriAnalyzernori()Get thenorivariant value.PatternAnalyzerpattern()Get thepatternvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupAnalyzerDeserializer(DelegatingDeserializer<Analyzer.Builder> op)SimpleAnalyzersimple()Get thesimplevariant 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, waitMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
CUSTOM
public static final java.lang.String CUSTOM- See Also:
- Constant Field Values
-
FINGERPRINT
public static final java.lang.String FINGERPRINT- See Also:
- Constant Field Values
-
ICU_ANALYZER
public static final java.lang.String ICU_ANALYZER- See Also:
- Constant Field Values
-
KEYWORD
public static final java.lang.String KEYWORD- See Also:
- Constant Field Values
-
KUROMOJI
public static final java.lang.String KUROMOJI- See Also:
- Constant Field Values
-
LANGUAGE
public static final java.lang.String LANGUAGE- See Also:
- Constant Field Values
-
NORI
public static final java.lang.String NORI- See Also:
- Constant Field Values
-
PATTERN
public static final java.lang.String PATTERN- See Also:
- Constant Field Values
-
SIMPLE
public static final java.lang.String SIMPLE- See Also:
- Constant Field Values
-
STANDARD
public static final java.lang.String STANDARD- See Also:
- Constant Field Values
-
STOP
public static final java.lang.String STOP- See Also:
- Constant Field Values
-
WHITESPACE
public static final java.lang.String WHITESPACE- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
Analyzer
-
Analyzer
-
Analyzer
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<JsonpSerializable>- Returns:
- the variant type
-
_get
- Specified by:
_getin interfaceTaggedUnion<JsonpSerializable>
-
custom
Get thecustomvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecustomkind.
-
fingerprint
Get thefingerprintvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefingerprintkind.
-
icuAnalyzer
Get theicu_analyzervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theicu_analyzerkind.
-
keyword
Get thekeywordvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekeywordkind.
-
kuromoji
Get thekuromojivariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekuromojikind.
-
language
Get thelanguagevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelanguagekind.
-
nori
Get thenorivariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenorikind.
-
pattern
Get thepatternvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepatternkind.
-
simple
Get thesimplevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesimplekind.
-
standard
Get thestandardvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestandardkind.
-
stop
Get thestopvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestopkind.
-
whitespace
Get thewhitespacevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thewhitespacekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupAnalyzerDeserializer
-