Class TokenizerDefinition
java.lang.Object
org.opensearch.client.opensearch._types.analysis.TokenizerDefinition
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<TokenizerDefinition.Kind,TokenizerDefinitionVariant>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TokenizerDefinition
extends Object
implements TaggedUnion<TokenizerDefinition.Kind,TokenizerDefinitionVariant>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_get()final TokenizerDefinition.Kind_kind()Get the of the kind of variant held by this object.static TokenizerDefinition.Builderbuilder()Get thechar_groupvariant value.Get theedge_ngramvariant value.booleaninthashCode()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 kindsimple_pattern?booleanIs this variant instance of kindsimple_pattern_split?booleanIs this variant instance of kindsmartcn_tokenizer?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 voidGet thesimple_patternvariant value.Get thesimple_pattern_splitvariant value.Get thesmartcn_tokenizervariant value.standard()Get thestandardvariant value.Get theuax_url_emailvariant value.Get thewhitespacevariant value.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
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(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 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 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 theicu_tokenizerkind.
-
isKeyword
public boolean isKeyword()Is this variant instance of kindkeyword? -
keyword
Get thekeywordvariant value.- Throws:
IllegalStateException- if the current variant is not 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 thekuromoji_tokenizerkind.
-
isLetter
public boolean isLetter()Is this variant instance of kindletter? -
letter
Get thelettervariant value.- Throws:
IllegalStateException- if the current variant is not theletterkind.
-
isLowercase
public boolean isLowercase()Is this variant instance of kindlowercase? -
lowercase
Get thelowercasevariant value.- Throws:
IllegalStateException- if the current variant is not thelowercasekind.
-
isNgram
public boolean isNgram()Is this variant instance of kindngram? -
ngram
Get thengramvariant value.- Throws:
IllegalStateException- if the current variant is not 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 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 thepath_hierarchykind.
-
isPattern
public boolean isPattern()Is this variant instance of kindpattern? -
pattern
Get thepatternvariant value.- Throws:
IllegalStateException- if the current variant is not thepatternkind.
-
isSimplePattern
public boolean isSimplePattern()Is this variant instance of kindsimple_pattern? -
simplePattern
Get thesimple_patternvariant value.- Throws:
IllegalStateException- if the current variant is not thesimple_patternkind.
-
isSimplePatternSplit
public boolean isSimplePatternSplit()Is this variant instance of kindsimple_pattern_split? -
simplePatternSplit
Get thesimple_pattern_splitvariant value.- Throws:
IllegalStateException- if the current variant is not thesimple_pattern_splitkind.
-
isSmartcnTokenizer
public boolean isSmartcnTokenizer()Is this variant instance of kindsmartcn_tokenizer? -
smartcnTokenizer
Get thesmartcn_tokenizervariant value.- Throws:
IllegalStateException- if the current variant is not thesmartcn_tokenizerkind.
-
isStandard
public boolean isStandard()Is this variant instance of kindstandard? -
standard
Get thestandardvariant value.- Throws:
IllegalStateException- if the current variant is not 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 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 thewhitespacekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
setupTokenizerDefinitionDeserializer
protected static void setupTokenizerDefinitionDeserializer(ObjectDeserializer<TokenizerDefinition.Builder> op) -
hashCode
public int hashCode() -
equals
-