Class EdgeNGramTokenizer.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.analysis.TokenizerBase.AbstractBuilder<EdgeNGramTokenizer.Builder>
-
- org.opensearch.client.opensearch._types.analysis.EdgeNGramTokenizer.Builder
-
- All Implemented Interfaces:
ObjectBuilder<EdgeNGramTokenizer>
- Enclosing class:
- EdgeNGramTokenizer
public static class EdgeNGramTokenizer.Builder extends TokenizerBase.AbstractBuilder<EdgeNGramTokenizer.Builder> implements ObjectBuilder<EdgeNGramTokenizer>
Builder forEdgeNGramTokenizer
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgeNGramTokenizer
build()
Builds aEdgeNGramTokenizer
.EdgeNGramTokenizer.Builder
customTokenChars(java.lang.String value)
API name:custom_token_chars
EdgeNGramTokenizer.Builder
maxGram(int value)
Required - API name:max_gram
EdgeNGramTokenizer.Builder
minGram(int value)
Required - API name:min_gram
protected EdgeNGramTokenizer.Builder
self()
EdgeNGramTokenizer.Builder
tokenChars(java.util.List<TokenChar> list)
Required - API name:token_chars
EdgeNGramTokenizer.Builder
tokenChars(TokenChar value, TokenChar... values)
Required - API name:token_chars
-
Methods inherited from class org.opensearch.client.opensearch._types.analysis.TokenizerBase.AbstractBuilder
version
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
customTokenChars
public final EdgeNGramTokenizer.Builder customTokenChars(@Nullable java.lang.String value)
API name:custom_token_chars
-
maxGram
public final EdgeNGramTokenizer.Builder maxGram(int value)
Required - API name:max_gram
-
minGram
public final EdgeNGramTokenizer.Builder minGram(int value)
Required - API name:min_gram
-
tokenChars
public final EdgeNGramTokenizer.Builder tokenChars(java.util.List<TokenChar> list)
Required - API name:token_chars
Adds all elements of
list
totokenChars
.
-
tokenChars
public final EdgeNGramTokenizer.Builder tokenChars(TokenChar value, TokenChar... values)
Required - API name:token_chars
Adds one or more values to
tokenChars
.
-
self
protected EdgeNGramTokenizer.Builder self()
- Specified by:
self
in classTokenizerBase.AbstractBuilder<EdgeNGramTokenizer.Builder>
-
build
public EdgeNGramTokenizer build()
Builds aEdgeNGramTokenizer
.- Specified by:
build
in interfaceObjectBuilder<EdgeNGramTokenizer>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-