Class HistogramGrouping
java.lang.Object
co.elastic.clients.elasticsearch.rollup.HistogramGrouping
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<HistogramGrouping>
Json deserializer forHistogramGrouping
-
Method Summary
Modifier and TypeMethodDescriptionfields()
Required - The set of fields that you wish to build histograms for.final long
interval()
Required - The interval of histogram buckets to be generated when rolling up.static HistogramGrouping
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
toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forHistogramGrouping
-
-
Method Details
-
of
public static HistogramGrouping of(Function<HistogramGrouping.Builder, ObjectBuilder<HistogramGrouping>> fn) -
fields
Required - The set of fields that you wish to build histograms for. All fields specified must be some kind of numeric. Order does not matter.API name:
fields
-
interval
public final long interval()Required - The interval of histogram buckets to be generated when rolling up. For example, a value of5
creates buckets that are five units wide (0-5
,5-10
, etc). Note that only one interval can be specified in the histogram group, meaning that all fields being grouped via the histogram must share the same interval.API name:
interval
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupHistogramGroupingDeserializer
protected static void setupHistogramGroupingDeserializer(ObjectDeserializer<HistogramGrouping.Builder> op)
-