Class BucketCorrelationFunctionCountCorrelationIndicator.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BucketCorrelationFunctionCountCorrelationIndicator.Builder>
co.elastic.clients.elasticsearch._types.aggregations.BucketCorrelationFunctionCountCorrelationIndicator.Builder
- All Implemented Interfaces:
WithJson<BucketCorrelationFunctionCountCorrelationIndicator.Builder>,ObjectBuilder<BucketCorrelationFunctionCountCorrelationIndicator>
- Enclosing class:
- BucketCorrelationFunctionCountCorrelationIndicator
public static class BucketCorrelationFunctionCountCorrelationIndicator.Builder
extends WithJsonObjectBuilderBase<BucketCorrelationFunctionCountCorrelationIndicator.Builder>
implements ObjectBuilder<BucketCorrelationFunctionCountCorrelationIndicator>
Builder for
BucketCorrelationFunctionCountCorrelationIndicator.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()docCount(int value) Required - The total number of documents that initially created the expectations.expectations(Double value, Double... values) Required - An array of numbers with which to correlate the configuredbucket_pathvalues.expectations(List<Double> list) Required - An array of numbers with which to correlate the configuredbucket_pathvalues.An array of fractions to use when averaging and calculating variance.An array of fractions to use when averaging and calculating variance.self()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
docCount
Required - The total number of documents that initially created the expectations. It’s required to be greater than or equal to the sum of all values in the buckets_path as this is the originating superset of data to which the term values are correlated.API name:
doc_count -
expectations
public final BucketCorrelationFunctionCountCorrelationIndicator.Builder expectations(List<Double> list) Required - An array of numbers with which to correlate the configuredbucket_pathvalues. The length of this value must always equal the number of buckets returned by thebucket_path.API name:
expectationsAdds all elements of
listtoexpectations. -
expectations
public final BucketCorrelationFunctionCountCorrelationIndicator.Builder expectations(Double value, Double... values) Required - An array of numbers with which to correlate the configuredbucket_pathvalues. The length of this value must always equal the number of buckets returned by thebucket_path.API name:
expectationsAdds one or more values to
expectations. -
fractions
public final BucketCorrelationFunctionCountCorrelationIndicator.Builder fractions(List<Double> list) An array of fractions to use when averaging and calculating variance. This should be used if the pre-calculated data and the buckets_path have known gaps. The length of fractions, if provided, must equal expectations.API name:
fractionsAdds all elements of
listtofractions. -
fractions
public final BucketCorrelationFunctionCountCorrelationIndicator.Builder fractions(Double value, Double... values) An array of fractions to use when averaging and calculating variance. This should be used if the pre-calculated data and the buckets_path have known gaps. The length of fractions, if provided, must equal expectations.API name:
fractionsAdds one or more values to
fractions. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<BucketCorrelationFunctionCountCorrelationIndicator.Builder>
-
build
- Specified by:
buildin interfaceObjectBuilder<BucketCorrelationFunctionCountCorrelationIndicator>- Throws:
NullPointerException- if some of the required fields are null.
-