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>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • analysisConfig

      public final EstimateModelMemoryRequest.Builder analysisConfig​(@Nullable AnalysisConfig value)
      For a list of the properties that you can specify in the analysis_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 the analysis_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 as influencers has no effect on the estimation.

      API name: max_bucket_cardinality

      Adds all entries of map to maxBucketCardinality.

    • 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 as influencers 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 the by_field_name, over_field_name and partition_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 a by_field_name, over_field_name or partition_field_name.

      API name: overall_cardinality

      Adds all entries of map to overallCardinality.

    • 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 the by_field_name, over_field_name and partition_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 a by_field_name, over_field_name or partition_field_name.

      API name: overall_cardinality

      Adds an entry to overallCardinality.

    • build

      Specified by:
      build in interface ObjectBuilder<EstimateModelMemoryRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.