java.lang.Object
org.elasticsearch.compute.data.TDigestHolder
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 Summary
ConstructorsConstructorDescriptionTDigestHolder(List<Double> centroids, List<Long> counts, double min, double max, double sum, long valueCount) TDigestHolder(org.apache.lucene.util.BytesRef encodedDigest, double min, double max, double sum, long valueCount) -
Method Summary
-
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
-
hashCode
public int hashCode() -
getEncodedDigest
public org.apache.lucene.util.BytesRef getEncodedDigest() -
getMax
public double getMax() -
getMin
public double getMin() -
getSum
public double getSum() -
getValueCount
public long getValueCount()
-