Class TDigest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TDigest.Builder>
co.elastic.clients.elasticsearch._types.aggregations.TDigest.Builder
- All Implemented Interfaces:
WithJson<TDigest.Builder>,ObjectBuilder<TDigest>
- Enclosing class:
- TDigest
public static class TDigest.Builder
extends WithJsonObjectBuilderBase<TDigest.Builder>
implements ObjectBuilder<TDigest>
Builder for
TDigest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTDigest.final TDigest.Buildercompression(Integer value) Limits the maximum number of nodes used by the underlying TDigest algorithm to20 * compression, enabling control of memory usage and approximation error.final TDigest.BuilderThe default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases).protected TDigest.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
-
compression
Limits the maximum number of nodes used by the underlying TDigest algorithm to20 * compression, enabling control of memory usage and approximation error.API name:
compression -
executionHint
The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases). To use an implementation optimized for accuracy, set this parameter to high_accuracy instead.API name:
execution_hint -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TDigest.Builder>
-
build
Builds aTDigest.- Specified by:
buildin interfaceObjectBuilder<TDigest>- Throws:
NullPointerException- if some of the required fields are null.
-