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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description BucketCorrelationFunctionCountCorrelationIndicatorbuild()BucketCorrelationFunctionCountCorrelationIndicator.BuilderdocCount(int value)Required - The total number of documents that initially created the expectations.BucketCorrelationFunctionCountCorrelationIndicator.Builderexpectations(java.lang.Double value, java.lang.Double... values)Required - An array of numbers with which to correlate the configuredbucket_pathvalues.BucketCorrelationFunctionCountCorrelationIndicator.Builderexpectations(java.util.List<java.lang.Double> list)Required - An array of numbers with which to correlate the configuredbucket_pathvalues.BucketCorrelationFunctionCountCorrelationIndicator.Builderfractions(java.lang.Double value, java.lang.Double... values)An array of fractions to use when averaging and calculating variance.BucketCorrelationFunctionCountCorrelationIndicator.Builderfractions(java.util.List<java.lang.Double> list)An array of fractions to use when averaging and calculating variance.protected BucketCorrelationFunctionCountCorrelationIndicator.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
-
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(java.util.List<java.lang.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(java.lang.Double value, java.lang.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(java.util.List<java.lang.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(java.lang.Double value, java.lang.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:
java.lang.NullPointerException- if some of the required fields are null.
-