Class DataframeAnalysisFeatureProcessorNGramEncoding.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataframeAnalysisFeatureProcessorNGramEncoding.Builder>
co.elastic.clients.elasticsearch.ml.DataframeAnalysisFeatureProcessorNGramEncoding.Builder
- All Implemented Interfaces:
- WithJson<DataframeAnalysisFeatureProcessorNGramEncoding.Builder>,- ObjectBuilder<DataframeAnalysisFeatureProcessorNGramEncoding>
- Enclosing class:
- DataframeAnalysisFeatureProcessorNGramEncoding
public static class DataframeAnalysisFeatureProcessorNGramEncoding.Builder
extends WithJsonObjectBuilderBase<DataframeAnalysisFeatureProcessorNGramEncoding.Builder>
implements ObjectBuilder<DataframeAnalysisFeatureProcessorNGramEncoding>
Builder for 
DataframeAnalysisFeatureProcessorNGramEncoding.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()API name:customfeaturePrefix(String value) The feature name prefix.Required - The name of the text field to encode.Specifies the length of the n-gram substring.Required - Specifies which n-grams to gather.Required - Specifies which n-grams to gather.self()Specifies the zero-indexed start of the n-gram substring.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
featurePrefixpublic final DataframeAnalysisFeatureProcessorNGramEncoding.Builder featurePrefix(@Nullable String value) The feature name prefix. Defaults to ngram_<start>_<length>.API name: feature_prefix
- 
fieldRequired - The name of the text field to encode.API name: field
- 
lengthSpecifies the length of the n-gram substring. Defaults to 50. Must be greater than 0.API name: length
- 
nGramsRequired - Specifies which n-grams to gather. It’s an array of integer values where the minimum value is 1, and a maximum value is 5.API name: n_gramsAdds all elements of listtonGrams.
- 
nGramspublic final DataframeAnalysisFeatureProcessorNGramEncoding.Builder nGrams(Integer value, Integer... values) Required - Specifies which n-grams to gather. It’s an array of integer values where the minimum value is 1, and a maximum value is 5.API name: n_gramsAdds one or more values to nGrams.
- 
startSpecifies the zero-indexed start of the n-gram substring. Negative values are allowed for encoding n-grams of string suffixes. Defaults to 0.API name: start
- 
customAPI name:custom
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<DataframeAnalysisFeatureProcessorNGramEncoding.Builder>
 
- 
build- Specified by:
- buildin interface- ObjectBuilder<DataframeAnalysisFeatureProcessorNGramEncoding>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-