java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.TDigest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class TDigest extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • compression

      @Nullable public final Integer compression()
      Limits the maximum number of nodes used by the underlying TDigest algorithm to 20 * compression, enabling control of memory usage and approximation error.

      API name: compression

    • executionHint

      @Nullable public final TDigestExecutionHint executionHint()
      The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases). To use an implementation optimized for accuracy, set this parameter to high_accuracy instead.

      API name: execution_hint

    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupTDigestDeserializer

      protected static void setupTDigestDeserializer(ObjectDeserializer<TDigest.Builder> op)