Class EstimateModelMemoryRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.EstimateModelMemoryRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<EstimateModelMemoryRequest>
- Enclosing class:
- EstimateModelMemoryRequest
public static class EstimateModelMemoryRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<EstimateModelMemoryRequest>
Builder for
EstimateModelMemoryRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description EstimateModelMemoryRequest.Builder
analysisConfig(AnalysisConfig value)
For a list of the properties that you can specify in theanalysis_config
component of the body of this API.EstimateModelMemoryRequest.Builder
analysisConfig(java.util.function.Function<AnalysisConfig.Builder,ObjectBuilder<AnalysisConfig>> fn)
For a list of the properties that you can specify in theanalysis_config
component of the body of this API.EstimateModelMemoryRequest
build()
Builds aEstimateModelMemoryRequest
.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.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.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.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.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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_config
component 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_config
component 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 asinfluencers
has no effect on the estimation.API name:
max_bucket_cardinality
Adds all entries of
map
tomaxBucketCardinality
. -
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 asinfluencers
has no effect on the estimation.API name:
max_bucket_cardinality
Adds 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_name
andpartition_field_name
of 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_name
orpartition_field_name
.API name:
overall_cardinality
Adds all entries of
map
tooverallCardinality
. -
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_name
andpartition_field_name
of 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_name
orpartition_field_name
.API name:
overall_cardinality
Adds an entry to
overallCardinality
. -
build
Builds aEstimateModelMemoryRequest
.- Specified by:
build
in interfaceObjectBuilder<EstimateModelMemoryRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-