Class TDigestState

java.lang.Object
com.tdunning.math.stats.TDigest
com.tdunning.math.stats.AbstractTDigest
com.tdunning.math.stats.AVLTreeDigest
org.opensearch.search.aggregations.metrics.TDigestState
All Implemented Interfaces:
Serializable

public class TDigestState extends com.tdunning.math.stats.AVLTreeDigest
Extension of TDigest with custom serialization.
See Also:
Opensearch.internal:
  • Constructor Summary

    Constructors
    Constructor
    Description
    TDigestState(double compression)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    boolean
     
    int
     
    read(org.opensearch.core.common.io.stream.StreamInput in)
     
    static void
    write(TDigestState state, org.opensearch.core.common.io.stream.StreamOutput out)
     

    Methods inherited from class com.tdunning.math.stats.AVLTreeDigest

    add, add, add, asBytes, asSmallBytes, byteSize, cdf, centroidCount, centroids, compress, fromBytes, quantile, recordAllData, size, smallByteSize

    Methods inherited from class com.tdunning.math.stats.AbstractTDigest

    add, add, createCentroid, isRecording

    Methods inherited from class com.tdunning.math.stats.TDigest

    createAvlTreeDigest, createDigest, createMergingDigest, getMax, getMin

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TDigestState

      public TDigestState(double compression)
  • Method Details

    • compression

      public double compression()
      Overrides:
      compression in class com.tdunning.math.stats.AVLTreeDigest
    • write

      public static void write(TDigestState state, org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Throws:
      IOException
    • read

      public static TDigestState read(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object