Class BucketCorrelationFunction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BucketCorrelationFunction.Builder>
co.elastic.clients.elasticsearch._types.aggregations.BucketCorrelationFunction.Builder
- All Implemented Interfaces:
WithJson<BucketCorrelationFunction.Builder>,ObjectBuilder<BucketCorrelationFunction>
- Enclosing class:
- BucketCorrelationFunction
public static class BucketCorrelationFunction.Builder
extends WithJsonObjectBuilderBase<BucketCorrelationFunction.Builder>
implements ObjectBuilder<BucketCorrelationFunction>
Builder for
BucketCorrelationFunction.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aBucketCorrelationFunction.Required - The configuration to calculate a count correlation.countCorrelation(Function<BucketCorrelationFunctionCountCorrelation.Builder, ObjectBuilder<BucketCorrelationFunctionCountCorrelation>> fn) Required - The configuration to calculate a count correlation.protected BucketCorrelationFunction.Builderself()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
-
countCorrelation
public final BucketCorrelationFunction.Builder countCorrelation(BucketCorrelationFunctionCountCorrelation value) Required - The configuration to calculate a count correlation. This function is designed for determining the correlation of a term value and a given metric.API name:
count_correlation -
countCorrelation
public final BucketCorrelationFunction.Builder countCorrelation(Function<BucketCorrelationFunctionCountCorrelation.Builder, ObjectBuilder<BucketCorrelationFunctionCountCorrelation>> fn) Required - The configuration to calculate a count correlation. This function is designed for determining the correlation of a term value and a given metric.API name:
count_correlation -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<BucketCorrelationFunction.Builder>
-
build
Builds aBucketCorrelationFunction.- Specified by:
buildin interfaceObjectBuilder<BucketCorrelationFunction>- Throws:
NullPointerException- if some of the required fields are null.
-