Class PercentilesAggregation.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase.AbstractBuilder<PercentilesAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.FormatMetricAggregationBase.AbstractBuilder<PercentilesAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.PercentilesAggregation.Builder
- All Implemented Interfaces:
CopyableBuilder<PercentilesAggregation.Builder,,PercentilesAggregation> MutableBuilder<PercentilesAggregation.Builder,,PercentilesAggregation> ObjectBuilder<PercentilesAggregation>
- Enclosing class:
PercentilesAggregation
public static class PercentilesAggregation.Builder
extends FormatMetricAggregationBase.AbstractBuilder<PercentilesAggregation.Builder>
implements CopyableBuilder<PercentilesAggregation.Builder,PercentilesAggregation>
Builder for
PercentilesAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPercentilesAggregation.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:hdrAPI name:hdrBy default, the aggregation associates a unique string key with each bucket and returns the ranges as a hash rather than an array.The percentiles to calculate.The percentiles to calculate.protected PercentilesAggregation.Builderself()API name:tdigestAPI name:tdigestMethods inherited from class org.opensearch.client.opensearch._types.aggregations.FormatMetricAggregationBase.AbstractBuilder
formatMethods inherited from class org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase.AbstractBuilder
field, missing, missing, script, scriptMethods 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<PercentilesAggregation.Builder,PercentilesAggregation> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classMetricAggregationBase.AbstractBuilder<PercentilesAggregation.Builder>
-
hdr
API name:hdr -
hdr
@Nonnull public final PercentilesAggregation.Builder hdr(Function<HdrMethod.Builder, ObjectBuilder<HdrMethod>> fn) API name:hdr -
keyed
By default, the aggregation associates a unique string key with each bucket and returns the ranges as a hash rather than an array. Set tofalseto disable this behavior.API name:
keyed -
percents
The percentiles to calculate.API name:
percentsAdds all elements of
listtopercents. -
percents
The percentiles to calculate.API name:
percentsAdds one or more values to
percents. -
tdigest
API name:tdigest -
tdigest
@Nonnull public final PercentilesAggregation.Builder tdigest(Function<TDigest.Builder, ObjectBuilder<TDigest>> fn) API name:tdigest -
build
Builds aPercentilesAggregation.- Specified by:
buildin interfaceObjectBuilder<PercentilesAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-