Class HistogramAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase.AbstractBuilder<HistogramAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.HistogramAggregation.Builder
- All Implemented Interfaces:
WithJson<HistogramAggregation.Builder>
,ObjectBuilder<HistogramAggregation>
- Enclosing class:
- HistogramAggregation
public static class HistogramAggregation.Builder
extends BucketAggregationBase.AbstractBuilder<HistogramAggregation.Builder>
implements ObjectBuilder<HistogramAggregation>
Builder for
HistogramAggregation
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aHistogramAggregation
.extendedBounds
(ExtendedBounds<Double> value) API name:extended_bounds
API name:extended_bounds
API name:field
API name:format
hardBounds
(ExtendedBounds<Double> value) API name:hard_bounds
API name:hard_bounds
API name:interval
API name:keyed
minDocCount
(Integer value) API name:min_doc_count
API name:missing
API name:offset
order
(NamedValue<SortOrder> value, NamedValue<SortOrder>... values) API name:order
order
(List<NamedValue<SortOrder>> list) API name:order
API name:script
API name:script
protected HistogramAggregation.Builder
self()
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder
meta, meta, name
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
extendedBounds
API name:extended_bounds
-
extendedBounds
public final HistogramAggregation.Builder extendedBounds(Function<ExtendedBounds.Builder<Double>, ObjectBuilder<ExtendedBounds<Double>>> fn) API name:extended_bounds
-
hardBounds
API name:hard_bounds
-
hardBounds
public final HistogramAggregation.Builder hardBounds(Function<ExtendedBounds.Builder<Double>, ObjectBuilder<ExtendedBounds<Double>>> fn) API name:hard_bounds
-
field
API name:field
-
interval
API name:interval
-
minDocCount
API name:min_doc_count
-
missing
API name:missing
-
offset
API name:offset
-
order
API name:order
Adds all elements of
list
toorder
. -
order
public final HistogramAggregation.Builder order(NamedValue<SortOrder> value, NamedValue<SortOrder>... values) API name:order
Adds one or more values to
order
. -
script
API name:script
-
script
API name:script
-
format
API name:format
-
keyed
API name:keyed
-
self
- Specified by:
self
in classAggregationBase.AbstractBuilder<HistogramAggregation.Builder>
-
build
Builds aHistogramAggregation
.- Specified by:
build
in interfaceObjectBuilder<HistogramAggregation>
- Throws:
NullPointerException
- if some of the required fields are null.
-