Class TDigestHolder

java.lang.Object
org.elasticsearch.compute.data.TDigestHolder

public class TDigestHolder extends Object
This exists to hold the values from a TDigestBlock. It is roughly parallel to TDigestState in classic aggregations, which we are not using directly because the serialization format is pretty bad for ESQL's use case (specifically, encoding the near-constant compression and merge strategy data inline as opposed to in a dedicated column isn't great).
  • Constructor Details

    • TDigestHolder

      public TDigestHolder(org.apache.lucene.util.BytesRef encodedDigest, double min, double max, double sum, long valueCount)
    • TDigestHolder

      public TDigestHolder(List<Double> centroids, List<Long> counts, double min, double max, double sum, long valueCount) throws IOException
      Throws:
      IOException
  • Method Details

    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getEncodedDigest

      public org.apache.lucene.util.BytesRef getEncodedDigest()
    • getMax

      public double getMax()
    • getMin

      public double getMin()
    • getSum

      public double getSum()
    • getValueCount

      public long getValueCount()