Class TokenFilterDefinition
java.lang.Object
org.opensearch.client.opensearch._types.analysis.TokenFilterDefinition
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<TokenFilterDefinition.Kind,TokenFilterDefinitionVariant>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TokenFilterDefinition
extends Object
implements TaggedUnion<TokenFilterDefinition.Kind,TokenFilterDefinitionVariant>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_get()_kind()Get the of the kind of variant held by this object.Get theasciifoldingvariant value.builder()Get thecommon_gramsvariant value.Get theconditionvariant value.Get thedelimited_payloadvariant value.Get thedictionary_decompoundervariant value.Get theedge_ngramvariant value.elision()Get theelisionvariant value.booleanGet thefingerprintvariant value.inthashCode()hunspell()Get thehunspellvariant value.Get thehyphenation_decompoundervariant value.Get theicu_collationvariant value.Get theicu_foldingvariant value.Get theicu_normalizervariant value.Get theicu_tokenizervariant value.Get theicu_transformvariant value.booleanIs this variant instance of kindasciifolding?booleanIs this variant instance of kindcommon_grams?booleanIs this variant instance of kindcondition?booleanIs this variant instance of kinddelimited_payload?booleanIs this variant instance of kinddictionary_decompounder?booleanIs this variant instance of kindedge_ngram?booleanIs this variant instance of kindelision?booleanIs this variant instance of kindfingerprint?booleanIs this variant instance of kindhunspell?booleanIs this variant instance of kindhyphenation_decompounder?booleanIs this variant instance of kindicu_collation?booleanIs this variant instance of kindicu_folding?booleanIs this variant instance of kindicu_normalizer?booleanIs this variant instance of kindicu_tokenizer?booleanIs this variant instance of kindicu_transform?booleanisKeep()Is this variant instance of kindkeep?booleanIs this variant instance of kindkeep_types?booleanIs this variant instance of kindkeyword_marker?booleanisKstem()Is this variant instance of kindkstem?booleanIs this variant instance of kindkuromoji_part_of_speech?booleanIs this variant instance of kindkuromoji_readingform?booleanIs this variant instance of kindkuromoji_stemmer?booleanisLength()Is this variant instance of kindlength?booleanisLimit()Is this variant instance of kindlimit?booleanIs this variant instance of kindlowercase?booleanIs this variant instance of kindmultiplexer?booleanisNgram()Is this variant instance of kindngram?booleanIs this variant instance of kindnori_part_of_speech?booleanIs this variant instance of kindpattern_capture?booleanIs this variant instance of kindpattern_replace?booleanIs this variant instance of kindpersian_stem?booleanIs this variant instance of kindphonetic?booleanIs this variant instance of kindporter_stem?booleanIs this variant instance of kindpredicate_token_filter?booleanIs this variant instance of kindremove_duplicates?booleanIs this variant instance of kindreverse?booleanIs this variant instance of kindshingle?booleanIs this variant instance of kindsmartcn_stop?booleanIs this variant instance of kindsnowball?booleanIs this variant instance of kindstemmer?booleanIs this variant instance of kindstemmer_override?booleanisStop()Is this variant instance of kindstop?booleanIs this variant instance of kindsynonym?booleanIs this variant instance of kindsynonym_graph?booleanisTrim()Is this variant instance of kindtrim?booleanIs this variant instance of kindtruncate?booleanisUnique()Is this variant instance of kindunique?booleanIs this variant instance of kinduppercase?booleanIs this variant instance of kindword_delimiter?booleanIs this variant instance of kindword_delimiter_graph?keep()Get thekeepvariant value.Get thekeep_typesvariant value.Get thekeyword_markervariant value.kstem()Get thekstemvariant value.Get thekuromoji_part_of_speechvariant value.Get thekuromoji_readingformvariant value.Get thekuromoji_stemmervariant value.length()Get thelengthvariant value.limit()Get thelimitvariant value.Get thelowercasevariant value.Get themultiplexervariant value.ngram()Get thengramvariant value.Get thenori_part_of_speechvariant value.static TokenFilterDefinitionGet thepattern_capturevariant value.Get thepattern_replacevariant value.Get thepersian_stemvariant value.phonetic()Get thephoneticvariant value.Get theporter_stemvariant value.Get thepredicate_token_filtervariant value.Get theremove_duplicatesvariant value.reverse()Get thereversevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidshingle()Get theshinglevariant value.Get thesmartcn_stopvariant value.snowball()Get thesnowballvariant value.stemmer()Get thestemmervariant value.Get thestemmer_overridevariant value.stop()Get thestopvariant value.synonym()Get thesynonymvariant value.Get thesynonym_graphvariant value.trim()Get thetrimvariant value.truncate()Get thetruncatevariant value.unique()Get theuniquevariant value.Get theuppercasevariant value.Get theword_delimitervariant value.Get theword_delimiter_graphvariant 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
-
TokenFilterDefinition
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<TokenFilterDefinition.Kind,TokenFilterDefinitionVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<TokenFilterDefinition.Kind,TokenFilterDefinitionVariant>
-
of
public static TokenFilterDefinition of(Function<TokenFilterDefinition.Builder, ObjectBuilder<TokenFilterDefinition>> fn) -
isAsciifolding
public boolean isAsciifolding()Is this variant instance of kindasciifolding? -
asciifolding
Get theasciifoldingvariant value.- Throws:
IllegalStateException- if the current variant is not theasciifoldingkind.
-
isCommonGrams
public boolean isCommonGrams()Is this variant instance of kindcommon_grams? -
commonGrams
Get thecommon_gramsvariant value.- Throws:
IllegalStateException- if the current variant is not thecommon_gramskind.
-
isCondition
public boolean isCondition()Is this variant instance of kindcondition? -
condition
Get theconditionvariant value.- Throws:
IllegalStateException- if the current variant is not theconditionkind.
-
isDelimitedPayload
public boolean isDelimitedPayload()Is this variant instance of kinddelimited_payload? -
delimitedPayload
Get thedelimited_payloadvariant value.- Throws:
IllegalStateException- if the current variant is not thedelimited_payloadkind.
-
isDictionaryDecompounder
public boolean isDictionaryDecompounder()Is this variant instance of kinddictionary_decompounder? -
dictionaryDecompounder
Get thedictionary_decompoundervariant value.- Throws:
IllegalStateException- if the current variant is not thedictionary_decompounderkind.
-
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.
-
isElision
public boolean isElision()Is this variant instance of kindelision? -
elision
Get theelisionvariant value.- Throws:
IllegalStateException- if the current variant is not theelisionkind.
-
isFingerprint
public boolean isFingerprint()Is this variant instance of kindfingerprint? -
fingerprint
Get thefingerprintvariant value.- Throws:
IllegalStateException- if the current variant is not thefingerprintkind.
-
isHunspell
public boolean isHunspell()Is this variant instance of kindhunspell? -
hunspell
Get thehunspellvariant value.- Throws:
IllegalStateException- if the current variant is not thehunspellkind.
-
isHyphenationDecompounder
public boolean isHyphenationDecompounder()Is this variant instance of kindhyphenation_decompounder? -
hyphenationDecompounder
Get thehyphenation_decompoundervariant value.- Throws:
IllegalStateException- if the current variant is not thehyphenation_decompounderkind.
-
isIcuCollation
public boolean isIcuCollation()Is this variant instance of kindicu_collation? -
icuCollation
Get theicu_collationvariant value.- Throws:
IllegalStateException- if the current variant is not theicu_collationkind.
-
isIcuFolding
public boolean isIcuFolding()Is this variant instance of kindicu_folding? -
icuFolding
Get theicu_foldingvariant value.- Throws:
IllegalStateException- if the current variant is not theicu_foldingkind.
-
isIcuNormalizer
public boolean isIcuNormalizer()Is this variant instance of kindicu_normalizer? -
icuNormalizer
Get theicu_normalizervariant value.- Throws:
IllegalStateException- if the current variant is not theicu_normalizerkind.
-
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.
-
isIcuTransform
public boolean isIcuTransform()Is this variant instance of kindicu_transform? -
icuTransform
Get theicu_transformvariant value.- Throws:
IllegalStateException- if the current variant is not theicu_transformkind.
-
isKeep
public boolean isKeep()Is this variant instance of kindkeep? -
keep
Get thekeepvariant value.- Throws:
IllegalStateException- if the current variant is not thekeepkind.
-
isKeepTypes
public boolean isKeepTypes()Is this variant instance of kindkeep_types? -
keepTypes
Get thekeep_typesvariant value.- Throws:
IllegalStateException- if the current variant is not thekeep_typeskind.
-
isKeywordMarker
public boolean isKeywordMarker()Is this variant instance of kindkeyword_marker? -
keywordMarker
Get thekeyword_markervariant value.- Throws:
IllegalStateException- if the current variant is not thekeyword_markerkind.
-
isKstem
public boolean isKstem()Is this variant instance of kindkstem? -
kstem
Get thekstemvariant value.- Throws:
IllegalStateException- if the current variant is not thekstemkind.
-
isKuromojiPartOfSpeech
public boolean isKuromojiPartOfSpeech()Is this variant instance of kindkuromoji_part_of_speech? -
kuromojiPartOfSpeech
Get thekuromoji_part_of_speechvariant value.- Throws:
IllegalStateException- if the current variant is not thekuromoji_part_of_speechkind.
-
isKuromojiReadingform
public boolean isKuromojiReadingform()Is this variant instance of kindkuromoji_readingform? -
kuromojiReadingform
Get thekuromoji_readingformvariant value.- Throws:
IllegalStateException- if the current variant is not thekuromoji_readingformkind.
-
isKuromojiStemmer
public boolean isKuromojiStemmer()Is this variant instance of kindkuromoji_stemmer? -
kuromojiStemmer
Get thekuromoji_stemmervariant value.- Throws:
IllegalStateException- if the current variant is not thekuromoji_stemmerkind.
-
isLength
public boolean isLength()Is this variant instance of kindlength? -
length
Get thelengthvariant value.- Throws:
IllegalStateException- if the current variant is not thelengthkind.
-
isLimit
public boolean isLimit()Is this variant instance of kindlimit? -
limit
Get thelimitvariant value.- Throws:
IllegalStateException- if the current variant is not thelimitkind.
-
isLowercase
public boolean isLowercase()Is this variant instance of kindlowercase? -
lowercase
Get thelowercasevariant value.- Throws:
IllegalStateException- if the current variant is not thelowercasekind.
-
isMultiplexer
public boolean isMultiplexer()Is this variant instance of kindmultiplexer? -
multiplexer
Get themultiplexervariant value.- Throws:
IllegalStateException- if the current variant is not themultiplexerkind.
-
isNgram
public boolean isNgram()Is this variant instance of kindngram? -
ngram
Get thengramvariant value.- Throws:
IllegalStateException- if the current variant is not thengramkind.
-
isNoriPartOfSpeech
public boolean isNoriPartOfSpeech()Is this variant instance of kindnori_part_of_speech? -
noriPartOfSpeech
Get thenori_part_of_speechvariant value.- Throws:
IllegalStateException- if the current variant is not thenori_part_of_speechkind.
-
isPatternCapture
public boolean isPatternCapture()Is this variant instance of kindpattern_capture? -
patternCapture
Get thepattern_capturevariant value.- Throws:
IllegalStateException- if the current variant is not thepattern_capturekind.
-
isPatternReplace
public boolean isPatternReplace()Is this variant instance of kindpattern_replace? -
patternReplace
Get thepattern_replacevariant value.- Throws:
IllegalStateException- if the current variant is not thepattern_replacekind.
-
isPersianStem
public boolean isPersianStem()Is this variant instance of kindpersian_stem? -
persianStem
Get thepersian_stemvariant value.- Throws:
IllegalStateException- if the current variant is not thepersian_stemkind.
-
isPhonetic
public boolean isPhonetic()Is this variant instance of kindphonetic? -
phonetic
Get thephoneticvariant value.- Throws:
IllegalStateException- if the current variant is not thephonetickind.
-
isPorterStem
public boolean isPorterStem()Is this variant instance of kindporter_stem? -
porterStem
Get theporter_stemvariant value.- Throws:
IllegalStateException- if the current variant is not theporter_stemkind.
-
isPredicateTokenFilter
public boolean isPredicateTokenFilter()Is this variant instance of kindpredicate_token_filter? -
predicateTokenFilter
Get thepredicate_token_filtervariant value.- Throws:
IllegalStateException- if the current variant is not thepredicate_token_filterkind.
-
isRemoveDuplicates
public boolean isRemoveDuplicates()Is this variant instance of kindremove_duplicates? -
removeDuplicates
Get theremove_duplicatesvariant value.- Throws:
IllegalStateException- if the current variant is not theremove_duplicateskind.
-
isReverse
public boolean isReverse()Is this variant instance of kindreverse? -
reverse
Get thereversevariant value.- Throws:
IllegalStateException- if the current variant is not thereversekind.
-
isShingle
public boolean isShingle()Is this variant instance of kindshingle? -
shingle
Get theshinglevariant value.- Throws:
IllegalStateException- if the current variant is not theshinglekind.
-
isSmartcnStop
public boolean isSmartcnStop()Is this variant instance of kindsmartcn_stop? -
smartcnStop
Get thesmartcn_stopvariant value.- Throws:
IllegalStateException- if the current variant is not thesmartcn_stopkind.
-
isSnowball
public boolean isSnowball()Is this variant instance of kindsnowball? -
snowball
Get thesnowballvariant value.- Throws:
IllegalStateException- if the current variant is not thesnowballkind.
-
isStemmer
public boolean isStemmer()Is this variant instance of kindstemmer? -
stemmer
Get thestemmervariant value.- Throws:
IllegalStateException- if the current variant is not thestemmerkind.
-
isStemmerOverride
public boolean isStemmerOverride()Is this variant instance of kindstemmer_override? -
stemmerOverride
Get thestemmer_overridevariant value.- Throws:
IllegalStateException- if the current variant is not thestemmer_overridekind.
-
isStop
public boolean isStop()Is this variant instance of kindstop? -
stop
Get thestopvariant value.- Throws:
IllegalStateException- if the current variant is not thestopkind.
-
isSynonym
public boolean isSynonym()Is this variant instance of kindsynonym? -
synonym
Get thesynonymvariant value.- Throws:
IllegalStateException- if the current variant is not thesynonymkind.
-
isSynonymGraph
public boolean isSynonymGraph()Is this variant instance of kindsynonym_graph? -
synonymGraph
Get thesynonym_graphvariant value.- Throws:
IllegalStateException- if the current variant is not thesynonym_graphkind.
-
isTrim
public boolean isTrim()Is this variant instance of kindtrim? -
trim
Get thetrimvariant value.- Throws:
IllegalStateException- if the current variant is not thetrimkind.
-
isTruncate
public boolean isTruncate()Is this variant instance of kindtruncate? -
truncate
Get thetruncatevariant value.- Throws:
IllegalStateException- if the current variant is not thetruncatekind.
-
isUnique
public boolean isUnique()Is this variant instance of kindunique? -
unique
Get theuniquevariant value.- Throws:
IllegalStateException- if the current variant is not theuniquekind.
-
isUppercase
public boolean isUppercase()Is this variant instance of kinduppercase? -
uppercase
Get theuppercasevariant value.- Throws:
IllegalStateException- if the current variant is not theuppercasekind.
-
isWordDelimiter
public boolean isWordDelimiter()Is this variant instance of kindword_delimiter? -
wordDelimiter
Get theword_delimitervariant value.- Throws:
IllegalStateException- if the current variant is not theword_delimiterkind.
-
isWordDelimiterGraph
public boolean isWordDelimiterGraph()Is this variant instance of kindword_delimiter_graph? -
wordDelimiterGraph
Get theword_delimiter_graphvariant value.- Throws:
IllegalStateException- if the current variant is not theword_delimiter_graphkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
setupTokenFilterDefinitionDeserializer
protected static void setupTokenFilterDefinitionDeserializer(ObjectDeserializer<TokenFilterDefinition.Builder> op) -
hashCode
public int hashCode() -
equals
-