Class PercentileRanksAggregation.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase.AbstractBuilder<PercentileRanksAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.FormatMetricAggregationBase.AbstractBuilder<PercentileRanksAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.PercentileRanksAggregation.Builder
- All Implemented Interfaces:
CopyableBuilder<PercentileRanksAggregation.Builder,,PercentileRanksAggregation> MutableBuilder<PercentileRanksAggregation.Builder,,PercentileRanksAggregation> ObjectBuilder<PercentileRanksAggregation>
- Enclosing class:
PercentileRanksAggregation
public static class PercentileRanksAggregation.Builder
extends FormatMetricAggregationBase.AbstractBuilder<PercentileRanksAggregation.Builder>
implements CopyableBuilder<PercentileRanksAggregation.Builder,PercentileRanksAggregation>
Builder for
PercentileRanksAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPercentileRanksAggregation.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.protected PercentileRanksAggregation.Builderself()API name:tdigestAPI name:tdigestAn array of values for which to calculate the percentile ranks.An array of values for which to calculate the percentile ranks.Methods 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<PercentileRanksAggregation.Builder,PercentileRanksAggregation> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classMetricAggregationBase.AbstractBuilder<PercentileRanksAggregation.Builder>
-
hdr
API name:hdr -
hdr
@Nonnull public final PercentileRanksAggregation.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 -
tdigest
API name:tdigest -
tdigest
@Nonnull public final PercentileRanksAggregation.Builder tdigest(Function<TDigest.Builder, ObjectBuilder<TDigest>> fn) API name:tdigest -
values
An array of values for which to calculate the percentile ranks.API name:
valuesAdds all elements of
listtovalues. -
values
An array of values for which to calculate the percentile ranks.API name:
valuesAdds one or more values to
values. -
build
Builds aPercentileRanksAggregation.- Specified by:
buildin interfaceObjectBuilder<PercentileRanksAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-