Class TokenizerDefinition
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.TokenizerDefinition
- All Implemented Interfaces:
JsonpSerializable,OpenTaggedUnion<TokenizerDefinition.Kind,,Object> TaggedUnion<TokenizerDefinition.Kind,Object>
@JsonpDeserializable
public class TokenizerDefinition
extends Object
implements OpenTaggedUnion<TokenizerDefinition.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTokenizerDefinition(String kind, JsonData value) Build a custom plugin-definedTokenizerDefinition, 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()equalsTokenizerDefinition.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customTokenizerDefinitiondefined by a plugin?final TokenizerDefinition.Kind_kind()Get the of the kind of variant held by this object.Get thechar_groupvariant value.Get theedge_ngramvariant value.Get theicu_tokenizervariant value.booleanIs this variant instance of kindchar_group?booleanIs this variant instance of kindedge_ngram?booleanIs this variant instance of kindicu_tokenizer?booleanIs this variant instance of kindkeyword?booleanIs this variant instance of kindkuromoji_tokenizer?booleanisLetter()Is this variant instance of kindletter?booleanIs this variant instance of kindlowercase?booleanisNgram()Is this variant instance of kindngram?booleanIs this variant instance of kindnori_tokenizer?booleanIs this variant instance of kindpath_hierarchy?booleanIs this variant instance of kindpattern?booleanIs this variant instance of kindstandard?booleanIs this variant instance of kinduax_url_email?booleanIs this variant instance of kindwhitespace?keyword()Get thekeywordvariant value.Get thekuromoji_tokenizervariant value.letter()Get thelettervariant value.Get thelowercasevariant value.ngram()Get thengramvariant value.Get thenori_tokenizervariant value.static TokenizerDefinitionGet thepath_hierarchyvariant value.pattern()Get thepatternvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidstandard()Get thestandardvariant value.toString()Get theuax_url_emailvariant value.Get thewhitespacevariant value.
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
TokenizerDefinition
-
TokenizerDefinition
Build a custom plugin-definedTokenizerDefinition, 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<TokenizerDefinition.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<TokenizerDefinition.Kind,Object>
-
of
public static TokenizerDefinition of(Function<TokenizerDefinition.Builder, ObjectBuilder<TokenizerDefinition>> fn) -
isCharGroup
public boolean isCharGroup()Is this variant instance of kindchar_group? -
charGroup
Get thechar_groupvariant value.- Throws:
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:
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:
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:
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:
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:
IllegalStateException- if the current variant is not of theletterkind.
-
isLowercase
public boolean isLowercase()Is this variant instance of kindlowercase? -
lowercase
Get thelowercasevariant value.- Throws:
IllegalStateException- if the current variant is not of thelowercasekind.
-
isNgram
public boolean isNgram()Is this variant instance of kindngram? -
ngram
Get thengramvariant value.- Throws:
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:
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:
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:
IllegalStateException- if the current variant is not of thepatternkind.
-
isStandard
public boolean isStandard()Is this variant instance of kindstandard? -
standard
Get thestandardvariant value.- Throws:
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:
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:
IllegalStateException- if the current variant is not of thewhitespacekind.
-
_isCustom
public boolean _isCustom()Is this a customTokenizerDefinitiondefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsTokenizerDefinition.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin interfaceOpenTaggedUnion<TokenizerDefinition.Kind,Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException- if the current variant is notTokenizerDefinition.Kind._Custom.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupTokenizerDefinitionDeserializer
protected static void setupTokenizerDefinitionDeserializer(ObjectDeserializer<TokenizerDefinition.Builder> op)
-