Class Tokenizer
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.Tokenizer
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<JsonpSerializable>
@JsonpDeserializable public class Tokenizer extends java.lang.Object implements TaggedUnion<JsonpSerializable>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenizer.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Tokenizer>_DESERIALIZERstatic java.lang.StringCHAR_GROUPstatic java.lang.StringEDGE_NGRAMstatic java.lang.StringKEYWORDstatic java.lang.StringKUROMOJI_TOKENIZERstatic java.lang.StringLETTERstatic java.lang.StringLOWERCASEstatic java.lang.StringNGRAMstatic java.lang.StringNORI_TOKENIZERstatic java.lang.StringPATH_HIERARCHYstatic java.lang.StringSTANDARDstatic java.lang.StringUAX_URL_EMAILstatic java.lang.StringWHITESPACE -
Constructor Summary
Constructors Constructor Description Tokenizer(TokenizerVariant value)Tokenizer(ObjectBuilder<T> builder)Tokenizer(java.util.function.Function<Tokenizer.Builder,Tokenizer.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.CharGroupTokenizercharGroup()Get thechar_groupvariant value.EdgeNGramTokenizeredgeNgram()Get theedge_ngramvariant value.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.PathHierarchyTokenizerpathHierarchy()Get thepath_hierarchyvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTokenizerDeserializer(DelegatingDeserializer<Tokenizer.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, waitMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
CHAR_GROUP
public static final java.lang.String CHAR_GROUP- See Also:
- Constant Field Values
-
EDGE_NGRAM
public static final java.lang.String EDGE_NGRAM- See Also:
- Constant Field Values
-
KEYWORD
public static final java.lang.String KEYWORD- See Also:
- Constant Field Values
-
KUROMOJI_TOKENIZER
public static final java.lang.String KUROMOJI_TOKENIZER- See Also:
- Constant Field Values
-
LETTER
public static final java.lang.String LETTER- See Also:
- Constant Field Values
-
LOWERCASE
public static final java.lang.String LOWERCASE- See Also:
- Constant Field Values
-
NGRAM
public static final java.lang.String NGRAM- See Also:
- Constant Field Values
-
NORI_TOKENIZER
public static final java.lang.String NORI_TOKENIZER- See Also:
- Constant Field Values
-
PATH_HIERARCHY
public static final java.lang.String PATH_HIERARCHY- See Also:
- Constant Field Values
-
STANDARD
public static final java.lang.String STANDARD- See Also:
- Constant Field Values
-
UAX_URL_EMAIL
public static final java.lang.String UAX_URL_EMAIL- See Also:
- Constant Field Values
-
WHITESPACE
public static final java.lang.String WHITESPACE- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
Tokenizer
-
Tokenizer
-
Tokenizer
-
-
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>
-
charGroup
Get thechar_groupvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thechar_groupkind.
-
edgeNgram
Get theedge_ngramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theedge_ngramkind.
-
keyword
Get thekeywordvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekeywordkind.
-
kuromojiTokenizer
Get thekuromoji_tokenizervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekuromoji_tokenizerkind.
-
letter
Get thelettervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theletterkind.
-
lowercase
Get thelowercasevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelowercasekind.
-
ngram
Get thengramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thengramkind.
-
noriTokenizer
Get thenori_tokenizervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenori_tokenizerkind.
-
pathHierarchy
Get thepath_hierarchyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepath_hierarchykind.
-
standard
Get thestandardvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestandardkind.
-
uaxUrlEmail
Get theuax_url_emailvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theuax_url_emailkind.
-
whitespace
Get thewhitespacevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thewhitespacekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupTokenizerDeserializer
-