Class EstimateModelMemoryRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<EstimateModelMemoryRequest.Builder>
co.elastic.clients.elasticsearch.ml.EstimateModelMemoryRequest.Builder
- All Implemented Interfaces:
WithJson<EstimateModelMemoryRequest.Builder>,ObjectBuilder<EstimateModelMemoryRequest>
- Enclosing class:
- EstimateModelMemoryRequest
public static class EstimateModelMemoryRequest.Builder extends WithJsonObjectBuilderBase<EstimateModelMemoryRequest.Builder> implements ObjectBuilder<EstimateModelMemoryRequest>
Builder for
EstimateModelMemoryRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description EstimateModelMemoryRequest.BuilderanalysisConfig(AnalysisConfig value)For a list of the properties that you can specify in theanalysis_configcomponent of the body of this API.EstimateModelMemoryRequest.BuilderanalysisConfig(java.util.function.Function<AnalysisConfig.Builder,ObjectBuilder<AnalysisConfig>> fn)For a list of the properties that you can specify in theanalysis_configcomponent of the body of this API.EstimateModelMemoryRequestbuild()Builds aEstimateModelMemoryRequest.EstimateModelMemoryRequest.BuildermaxBucketCardinality(java.lang.String key, java.lang.Long value)Estimates of the highest cardinality in a single bucket that is observed for influencer fields over the time period that the job analyzes data.EstimateModelMemoryRequest.BuildermaxBucketCardinality(java.util.Map<java.lang.String,java.lang.Long> map)Estimates of the highest cardinality in a single bucket that is observed for influencer fields over the time period that the job analyzes data.EstimateModelMemoryRequest.BuilderoverallCardinality(java.lang.String key, java.lang.Long value)Estimates of the cardinality that is observed for fields over the whole time period that the job analyzes data.EstimateModelMemoryRequest.BuilderoverallCardinality(java.util.Map<java.lang.String,java.lang.Long> map)Estimates of the cardinality that is observed for fields over the whole time period that the job analyzes data.protected EstimateModelMemoryRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
analysisConfig
For a list of the properties that you can specify in theanalysis_configcomponent of the body of this API.API name:
analysis_config -
analysisConfig
public final EstimateModelMemoryRequest.Builder analysisConfig(java.util.function.Function<AnalysisConfig.Builder,ObjectBuilder<AnalysisConfig>> fn)For a list of the properties that you can specify in theanalysis_configcomponent of the body of this API.API name:
analysis_config -
maxBucketCardinality
public final EstimateModelMemoryRequest.Builder maxBucketCardinality(java.util.Map<java.lang.String,java.lang.Long> map)Estimates of the highest cardinality in a single bucket that is observed for influencer fields over the time period that the job analyzes data. To produce a good answer, values must be provided for all influencer fields. Providing values for fields that are not listed asinfluencershas no effect on the estimation.API name:
max_bucket_cardinalityAdds all entries of
maptomaxBucketCardinality. -
maxBucketCardinality
public final EstimateModelMemoryRequest.Builder maxBucketCardinality(java.lang.String key, java.lang.Long value)Estimates of the highest cardinality in a single bucket that is observed for influencer fields over the time period that the job analyzes data. To produce a good answer, values must be provided for all influencer fields. Providing values for fields that are not listed asinfluencershas no effect on the estimation.API name:
max_bucket_cardinalityAdds an entry to
maxBucketCardinality. -
overallCardinality
public final EstimateModelMemoryRequest.Builder overallCardinality(java.util.Map<java.lang.String,java.lang.Long> map)Estimates of the cardinality that is observed for fields over the whole time period that the job analyzes data. To produce a good answer, values must be provided for fields referenced in theby_field_name,over_field_nameandpartition_field_nameof any detectors. Providing values for other fields has no effect on the estimation. It can be omitted from the request if no detectors have aby_field_name,over_field_nameorpartition_field_name.API name:
overall_cardinalityAdds all entries of
maptooverallCardinality. -
overallCardinality
public final EstimateModelMemoryRequest.Builder overallCardinality(java.lang.String key, java.lang.Long value)Estimates of the cardinality that is observed for fields over the whole time period that the job analyzes data. To produce a good answer, values must be provided for fields referenced in theby_field_name,over_field_nameandpartition_field_nameof any detectors. Providing values for other fields has no effect on the estimation. It can be omitted from the request if no detectors have aby_field_name,over_field_nameorpartition_field_name.API name:
overall_cardinalityAdds an entry to
overallCardinality. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<EstimateModelMemoryRequest.Builder>
-
build
Builds aEstimateModelMemoryRequest.- Specified by:
buildin interfaceObjectBuilder<EstimateModelMemoryRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-