Class PercentilesAggregation.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase.AbstractBuilder<BuilderT>
-
- org.opensearch.client.opensearch._types.aggregations.FormatMetricAggregationBase.AbstractBuilder<PercentilesAggregation.Builder>
-
- org.opensearch.client.opensearch._types.aggregations.PercentilesAggregation.Builder
-
- All Implemented Interfaces:
ObjectBuilder<PercentilesAggregation>
- Enclosing class:
- PercentilesAggregation
public static class PercentilesAggregation.Builder extends FormatMetricAggregationBase.AbstractBuilder<PercentilesAggregation.Builder> implements ObjectBuilder<PercentilesAggregation>
Builder forPercentilesAggregation
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PercentilesAggregation
build()
Builds aPercentilesAggregation
.PercentilesAggregation.Builder
hdr(java.util.function.Function<HdrMethod.Builder,ObjectBuilder<HdrMethod>> fn)
API name:hdr
PercentilesAggregation.Builder
hdr(HdrMethod value)
API name:hdr
PercentilesAggregation.Builder
keyed(java.lang.Boolean value)
API name:keyed
PercentilesAggregation.Builder
percents(java.lang.Double value, java.lang.Double... values)
API name:percents
PercentilesAggregation.Builder
percents(java.util.List<java.lang.Double> list)
API name:percents
protected PercentilesAggregation.Builder
self()
PercentilesAggregation.Builder
tdigest(java.util.function.Function<TDigest.Builder,ObjectBuilder<TDigest>> fn)
API name:tdigest
PercentilesAggregation.Builder
tdigest(TDigest value)
API name:tdigest
-
Methods inherited from class org.opensearch.client.opensearch._types.aggregations.FormatMetricAggregationBase.AbstractBuilder
format
-
Methods inherited from class org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase.AbstractBuilder
field, missing, missing, script, script
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
keyed
public final PercentilesAggregation.Builder keyed(@Nullable java.lang.Boolean value)
API name:keyed
-
percents
public final PercentilesAggregation.Builder percents(java.util.List<java.lang.Double> list)
API name:percents
Adds all elements of
list
topercents
.
-
percents
public final PercentilesAggregation.Builder percents(java.lang.Double value, java.lang.Double... values)
API name:percents
Adds one or more values to
percents
.
-
hdr
public final PercentilesAggregation.Builder hdr(@Nullable HdrMethod value)
API name:hdr
-
hdr
public final PercentilesAggregation.Builder hdr(java.util.function.Function<HdrMethod.Builder,ObjectBuilder<HdrMethod>> fn)
API name:hdr
-
tdigest
public final PercentilesAggregation.Builder tdigest(@Nullable TDigest value)
API name:tdigest
-
tdigest
public final PercentilesAggregation.Builder tdigest(java.util.function.Function<TDigest.Builder,ObjectBuilder<TDigest>> fn)
API name:tdigest
-
self
protected PercentilesAggregation.Builder self()
- Specified by:
self
in classMetricAggregationBase.AbstractBuilder<PercentilesAggregation.Builder>
-
build
public PercentilesAggregation build()
Builds aPercentilesAggregation
.- Specified by:
build
in interfaceObjectBuilder<PercentilesAggregation>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-