Class DataframeAnalysisFeatureProcessorFrequencyEncoding.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataframeAnalysisFeatureProcessorFrequencyEncoding.Builder>
co.elastic.clients.elasticsearch.ml.DataframeAnalysisFeatureProcessorFrequencyEncoding.Builder
- All Implemented Interfaces:
WithJson<DataframeAnalysisFeatureProcessorFrequencyEncoding.Builder>
,ObjectBuilder<DataframeAnalysisFeatureProcessorFrequencyEncoding>
- Enclosing class:
- DataframeAnalysisFeatureProcessorFrequencyEncoding
public static class DataframeAnalysisFeatureProcessorFrequencyEncoding.Builder
extends WithJsonObjectBuilderBase<DataframeAnalysisFeatureProcessorFrequencyEncoding.Builder>
implements ObjectBuilder<DataframeAnalysisFeatureProcessorFrequencyEncoding>
Builder for
DataframeAnalysisFeatureProcessorFrequencyEncoding
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
featureName
(String value) Required - The resulting feature name.Required - API name:field
frequencyMap
(String key, Double value) Required - The resulting frequency map for the field value.frequencyMap
(Map<String, Double> map) Required - The resulting frequency map for the field value.self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
featureName
Required - The resulting feature name.API name:
feature_name
-
field
Required - API name:field
-
frequencyMap
public final DataframeAnalysisFeatureProcessorFrequencyEncoding.Builder frequencyMap(Map<String, Double> map) Required - The resulting frequency map for the field value. If the field value is missing from the frequency_map, the resulting value is 0.API name:
frequency_map
Adds all entries of
map
tofrequencyMap
. -
frequencyMap
public final DataframeAnalysisFeatureProcessorFrequencyEncoding.Builder frequencyMap(String key, Double value) Required - The resulting frequency map for the field value. If the field value is missing from the frequency_map, the resulting value is 0.API name:
frequency_map
Adds an entry to
frequencyMap
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DataframeAnalysisFeatureProcessorFrequencyEncoding.Builder>
-
build
- Specified by:
build
in interfaceObjectBuilder<DataframeAnalysisFeatureProcessorFrequencyEncoding>
- Throws:
NullPointerException
- if some of the required fields are null.
-