All Implemented Interfaces:
WithJson<TDigest.Builder>, ObjectBuilder<TDigest>
Enclosing class:
TDigest

public static class TDigest.Builder extends WithJsonObjectBuilderBase<TDigest.Builder> implements ObjectBuilder<TDigest>
Builder for TDigest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • compression

      public final TDigest.Builder compression(@Nullable Integer value)
      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

      public final TDigest.Builder executionHint(@Nullable TDigestExecutionHint value)
      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

    • self

      protected TDigest.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<TDigest.Builder>
    • build

      public TDigest build()
      Builds a TDigest.
      Specified by:
      build in interface ObjectBuilder<TDigest>
      Throws:
      NullPointerException - if some of the required fields are null.