Class TDigest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.TDigest.Builder
- All Implemented Interfaces:
CopyableBuilder<TDigest.Builder,,TDigest> MutableBuilder<TDigest.Builder,,TDigest> ObjectBuilder<TDigest>
- Enclosing class:
TDigest
public static class TDigest.Builder
extends ObjectBuilderBase
implements CopyableBuilder<TDigest.Builder,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.copy()Create a new builderCopyableBuilderthat is a copy of this one.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<TDigest.Builder,TDigest> - Returns:
- a new builder instance.
-
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 -
build
Builds aTDigest.- Specified by:
buildin interfaceObjectBuilder<TDigest>- Throws:
NullPointerException- if some of the required fields are null.
-