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
  • Field Details

  • Method Details

    • of

      public static Pivot of​(java.util.function.Function<Pivot.Builder,​ObjectBuilder<Pivot>> fn)
    • aggregations

      public final java.util.Map<java.lang.String,​Aggregation> 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

      public final java.util.Map<java.lang.String,​PivotGroupBy> 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

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupPivotDeserializer

      protected static void setupPivotDeserializer​(ObjectDeserializer<Pivot.Builder> op)