Class TDigestHolder

java.lang.Object
org.elasticsearch.compute.data.TDigestHolder
All Implemented Interfaces:
GenericNamedWriteable, NamedWriteable, VersionedNamedWriteable, Writeable

public class TDigestHolder extends Object implements GenericNamedWriteable
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). This is writable to support ESQL literals of this type, even though those should not exist. Literal support, and thus a writeable object here, are required for ESQL testing. See for example ShowExecSerializationTest.