Class BucketCorrelationFunction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.aggregations.BucketCorrelationFunction.Builder
- All Implemented Interfaces:
ObjectBuilder<BucketCorrelationFunction>
- Enclosing class:
- BucketCorrelationFunction
public static class BucketCorrelationFunction.Builder extends ObjectBuilderBase implements ObjectBuilder<BucketCorrelationFunction>
Builder for
BucketCorrelationFunction
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description BucketCorrelationFunction
build()
Builds aBucketCorrelationFunction
.BucketCorrelationFunction.Builder
countCorrelation(BucketCorrelationFunctionCountCorrelation value)
Required - The configuration to calculate a count correlation.BucketCorrelationFunction.Builder
countCorrelation(java.util.function.Function<BucketCorrelationFunctionCountCorrelation.Builder,ObjectBuilder<BucketCorrelationFunctionCountCorrelation>> fn)
Required - The configuration to calculate a count correlation.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
-
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(java.util.function.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
-
build
Builds aBucketCorrelationFunction
.- Specified by:
build
in interfaceObjectBuilder<BucketCorrelationFunction>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-