Class HistogramGrouping
java.lang.Object
co.elastic.clients.elasticsearch.rollup.HistogramGrouping
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier 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 longinterval()Required - The interval of histogram buckets to be generated when rolling up.static HistogramGroupingvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
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 of5creates 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupHistogramGroupingDeserializer
protected static void setupHistogramGroupingDeserializer(ObjectDeserializer<HistogramGrouping.Builder> op)
-