Class Pivot
java.lang.Object
co.elastic.clients.elasticsearch.transform.Pivot
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class Pivot extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Pivot.Builder
Builder forPivot
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Pivot>
_DESERIALIZER
Json deserializer forPivot
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,Aggregation>
aggregations()
Defines how to aggregate the grouped data.java.util.Map<java.lang.String,PivotGroupBy>
groupBy()
Defines how to group the data.static Pivot
of(java.util.function.Function<Pivot.Builder,ObjectBuilder<Pivot>> fn)
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
setupPivotDeserializer(ObjectDeserializer<Pivot.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forPivot
-
-
Method Details
-
of
-
aggregations
Defines how to aggregate the grouped data. The following aggregations are currently supported: average, bucket script, bucket selector, cardinality, filter, geo bounds, geo centroid, geo line, max, median absolute deviation, min, missing, percentiles, rare terms, scripted metric, stats, sum, terms, top metrics, value count, weighted average.API name:
aggregations
-
groupBy
Defines how to group the data. More than one grouping can be defined per pivot. The following groupings are currently supported: date histogram, geotile grid, histogram, terms.API name:
group_by
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPivotDeserializer
-