Class TokenizerDefinition
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.TokenizerDefinition
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<TokenizerDefinition.Kind,TokenizerDefinitionVariant>
@JsonpDeserializable public class TokenizerDefinition extends java.lang.Object implements TaggedUnion<TokenizerDefinition.Kind,TokenizerDefinitionVariant>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenizerDefinition.Builderstatic classTokenizerDefinition.KindTokenizerDefinitionvariant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TokenizerDefinition>_DESERIALIZER -
Constructor Summary
Constructors Constructor Description TokenizerDefinition(TokenizerDefinitionVariant value) -
Method Summary
Modifier and Type Method Description TokenizerDefinitionVariant_get()TokenizerDefinition.Kind_kind()Get the of the kind of variant held by this object.CharGroupTokenizercharGroup()Get thechar_groupvariant value.EdgeNGramTokenizeredgeNgram()Get theedge_ngramvariant value.IcuTokenizericuTokenizer()Get theicu_tokenizervariant value.booleanisCharGroup()Is this variant instance of kindchar_group?booleanisEdgeNgram()Is this variant instance of kindedge_ngram?booleanisIcuTokenizer()Is this variant instance of kindicu_tokenizer?booleanisKeyword()Is this variant instance of kindkeyword?booleanisKuromojiTokenizer()Is this variant instance of kindkuromoji_tokenizer?booleanisLetter()Is this variant instance of kindletter?booleanisLowercase()Is this variant instance of kindlowercase?booleanisNgram()Is this variant instance of kindngram?booleanisNoriTokenizer()Is this variant instance of kindnori_tokenizer?booleanisPathHierarchy()Is this variant instance of kindpath_hierarchy?booleanisPattern()Is this variant instance of kindpattern?booleanisStandard()Is this variant instance of kindstandard?booleanisUaxUrlEmail()Is this variant instance of kinduax_url_email?booleanisWhitespace()Is this variant instance of kindwhitespace?KeywordTokenizerkeyword()Get thekeywordvariant value.KuromojiTokenizerkuromojiTokenizer()Get thekuromoji_tokenizervariant value.LetterTokenizerletter()Get thelettervariant value.LowercaseTokenizerlowercase()Get thelowercasevariant value.NGramTokenizerngram()Get thengramvariant value.NoriTokenizernoriTokenizer()Get thenori_tokenizervariant value.static TokenizerDefinitionof(java.util.function.Function<TokenizerDefinition.Builder,ObjectBuilder<TokenizerDefinition>> fn)PathHierarchyTokenizerpathHierarchy()Get thepath_hierarchyvariant value.PatternTokenizerpattern()Get thepatternvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTokenizerDefinitionDeserializer(ObjectDeserializer<TokenizerDefinition.Builder> op)StandardTokenizerstandard()Get thestandardvariant value.UaxEmailUrlTokenizeruaxUrlEmail()Get theuax_url_emailvariant value.WhitespaceTokenizerwhitespace()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
-
TokenizerDefinition
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<TokenizerDefinition.Kind,TokenizerDefinitionVariant>- Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<TokenizerDefinition.Kind,TokenizerDefinitionVariant>
-
of
public static TokenizerDefinition of(java.util.function.Function<TokenizerDefinition.Builder,ObjectBuilder<TokenizerDefinition>> fn) -
isCharGroup
public boolean isCharGroup()Is this variant instance of kindchar_group? -
charGroup
Get thechar_groupvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thechar_groupkind.
-
isEdgeNgram
public boolean isEdgeNgram()Is this variant instance of kindedge_ngram? -
edgeNgram
Get theedge_ngramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theedge_ngramkind.
-
isIcuTokenizer
public boolean isIcuTokenizer()Is this variant instance of kindicu_tokenizer? -
icuTokenizer
Get theicu_tokenizervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theicu_tokenizerkind.
-
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.
-
isKuromojiTokenizer
public boolean isKuromojiTokenizer()Is this variant instance of kindkuromoji_tokenizer? -
kuromojiTokenizer
Get thekuromoji_tokenizervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekuromoji_tokenizerkind.
-
isLetter
public boolean isLetter()Is this variant instance of kindletter? -
letter
Get thelettervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theletterkind.
-
isLowercase
public boolean isLowercase()Is this variant instance of kindlowercase? -
lowercase
Get thelowercasevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelowercasekind.
-
isNgram
public boolean isNgram()Is this variant instance of kindngram? -
ngram
Get thengramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thengramkind.
-
isNoriTokenizer
public boolean isNoriTokenizer()Is this variant instance of kindnori_tokenizer? -
noriTokenizer
Get thenori_tokenizervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenori_tokenizerkind.
-
isPathHierarchy
public boolean isPathHierarchy()Is this variant instance of kindpath_hierarchy? -
pathHierarchy
Get thepath_hierarchyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepath_hierarchykind.
-
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.
-
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.
-
isUaxUrlEmail
public boolean isUaxUrlEmail()Is this variant instance of kinduax_url_email? -
uaxUrlEmail
Get theuax_url_emailvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theuax_url_emailkind.
-
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
-
setupTokenizerDefinitionDeserializer
protected static void setupTokenizerDefinitionDeserializer(ObjectDeserializer<TokenizerDefinition.Builder> op)
-