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 class
Tokenizer.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Tokenizer>
_DESERIALIZER
static java.lang.String
CHAR_GROUP
static java.lang.String
EDGE_NGRAM
static java.lang.String
KEYWORD
static java.lang.String
KUROMOJI_TOKENIZER
static java.lang.String
LETTER
static java.lang.String
LOWERCASE
static java.lang.String
NGRAM
static java.lang.String
NORI_TOKENIZER
static java.lang.String
PATH_HIERARCHY
static java.lang.String
STANDARD
static java.lang.String
UAX_URL_EMAIL
static java.lang.String
WHITESPACE
-
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.CharGroupTokenizer
charGroup()
Get thechar_group
variant value.EdgeNGramTokenizer
edgeNgram()
Get theedge_ngram
variant value.KeywordTokenizer
keyword()
Get thekeyword
variant value.KuromojiTokenizer
kuromojiTokenizer()
Get thekuromoji_tokenizer
variant value.LetterTokenizer
letter()
Get theletter
variant value.LowercaseTokenizer
lowercase()
Get thelowercase
variant value.NGramTokenizer
ngram()
Get thengram
variant value.NoriTokenizer
noriTokenizer()
Get thenori_tokenizer
variant value.PathHierarchyTokenizer
pathHierarchy()
Get thepath_hierarchy
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupTokenizerDeserializer(DelegatingDeserializer<Tokenizer.Builder> op)
StandardTokenizer
standard()
Get thestandard
variant value.UaxEmailUrlTokenizer
uaxUrlEmail()
Get theuax_url_email
variant value.WhitespaceTokenizer
whitespace()
Get thewhitespace
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:TaggedUnion
Get the of the type of the variant held by this union object.- Specified by:
_type
in interfaceTaggedUnion<JsonpSerializable>
- Returns:
- the variant type
-
_get
- Specified by:
_get
in interfaceTaggedUnion<JsonpSerializable>
-
charGroup
Get thechar_group
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thechar_group
kind.
-
edgeNgram
Get theedge_ngram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theedge_ngram
kind.
-
keyword
Get thekeyword
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thekeyword
kind.
-
kuromojiTokenizer
Get thekuromoji_tokenizer
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thekuromoji_tokenizer
kind.
-
letter
Get theletter
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theletter
kind.
-
lowercase
Get thelowercase
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thelowercase
kind.
-
ngram
Get thengram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thengram
kind.
-
noriTokenizer
Get thenori_tokenizer
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thenori_tokenizer
kind.
-
pathHierarchy
Get thepath_hierarchy
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepath_hierarchy
kind.
-
standard
Get thestandard
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thestandard
kind.
-
uaxUrlEmail
Get theuax_url_email
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theuax_url_email
kind.
-
whitespace
Get thewhitespace
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thewhitespace
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupTokenizerDeserializer
-