Class DateHistogramGrouping
java.lang.Object
co.elastic.clients.elasticsearch.rollup.DateHistogramGrouping
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<DateHistogramGrouping>
Json deserializer forDateHistogramGrouping
-
Method Summary
Modifier and TypeMethodDescriptionfinal Time
The interval of time buckets to be generated when rolling up.final Time
delay()
How long to wait before rolling up new documents.final String
field()
Required - The date field that is to be rolled up.final Time
The interval of time buckets to be generated when rolling up.final String
format()
API name:format
final Time
interval()
API name:interval
static DateHistogramGrouping
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
timeZone()
Defines whattime_zone
the rollup documents are stored as.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forDateHistogramGrouping
-
-
Method Details
-
of
public static DateHistogramGrouping of(Function<DateHistogramGrouping.Builder, ObjectBuilder<DateHistogramGrouping>> fn) -
delay
How long to wait before rolling up new documents. By default, the indexer attempts to roll up all data that is available. However, it is not uncommon for data to arrive out of order. The indexer is unable to deal with data that arrives after a time-span has been rolled up. You need to specify a delay that matches the longest period of time you expect out-of-order data to arrive.API name:
delay
-
field
Required - The date field that is to be rolled up.API name:
field
-
format
API name:format
-
interval
API name:interval
-
calendarInterval
The interval of time buckets to be generated when rolling up.API name:
calendar_interval
-
fixedInterval
The interval of time buckets to be generated when rolling up.API name:
fixed_interval
-
timeZone
Defines whattime_zone
the rollup documents are stored as. Unlike raw data, which can shift timezones on the fly, rolled documents have to be stored with a specific timezone. By default, rollup documents are stored inUTC
.API name:
time_zone
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDateHistogramGroupingDeserializer
protected static void setupDateHistogramGroupingDeserializer(ObjectDeserializer<DateHistogramGrouping.Builder> op)
-