Class DateRangeAggregation.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<DateRangeAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.DateRangeAggregation.Builder
- All Implemented Interfaces:
WithJson<DateRangeAggregation.Builder>,ObjectBuilder<DateRangeAggregation>
- Enclosing class:
- DateRangeAggregation
public static class DateRangeAggregation.Builder
extends BucketAggregationBase.AbstractBuilder<DateRangeAggregation.Builder>
implements ObjectBuilder<DateRangeAggregation>
Builder for
DateRangeAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDateRangeAggregation.The date field whose values are use to build ranges.The date format used to formatfromandtoin the response.Set totrueto associate a unique string key with each bucket and returns the ranges as a hash rather than an array.missing(boolean value) The value to apply to documents that do not have a value.missing(double value) The value to apply to documents that do not have a value.missing(long value) The value to apply to documents that do not have a value.missing(FieldValue value) The value to apply to documents that do not have a value.The value to apply to documents that do not have a value.The value to apply to documents that do not have a value.ranges(DateRangeExpression value, DateRangeExpression... values) Array of date ranges.Array of date ranges.ranges(List<DateRangeExpression> list) Array of date ranges.protected DateRangeAggregation.Builderself()Time zone used to convert dates from another time zone to UTC.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
The date field whose values are use to build ranges.API name:
field -
format
The date format used to formatfromandtoin the response.API name:
format -
missing
The value to apply to documents that do not have a value. By default, documents without a value are ignored.API name:
missing -
missing
public final DateRangeAggregation.Builder missing(Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) The value to apply to documents that do not have a value. By default, documents without a value are ignored.API name:
missing -
missing
The value to apply to documents that do not have a value. By default, documents without a value are ignored.API name:
missing -
missing
The value to apply to documents that do not have a value. By default, documents without a value are ignored.API name:
missing -
missing
The value to apply to documents that do not have a value. By default, documents without a value are ignored.API name:
missing -
missing
The value to apply to documents that do not have a value. By default, documents without a value are ignored.API name:
missing -
ranges
Array of date ranges.API name:
rangesAdds all elements of
listtoranges. -
ranges
public final DateRangeAggregation.Builder ranges(DateRangeExpression value, DateRangeExpression... values) Array of date ranges.API name:
rangesAdds one or more values to
ranges. -
ranges
public final DateRangeAggregation.Builder ranges(Function<DateRangeExpression.Builder, ObjectBuilder<DateRangeExpression>> fn) Array of date ranges.API name:
rangesAdds a value to
rangesusing a builder lambda. -
timeZone
Time zone used to convert dates from another time zone to UTC.API name:
time_zone -
keyed
Set totrueto associate a unique string key with each bucket and returns the ranges as a hash rather than an array.API name:
keyed -
self
- Specified by:
selfin classBucketAggregationBase.AbstractBuilder<DateRangeAggregation.Builder>
-
build
Builds aDateRangeAggregation.- Specified by:
buildin interfaceObjectBuilder<DateRangeAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-