Class PercentileTDigestValueAggregator

    • Field Detail

      • DEFAULT_TDIGEST_COMPRESSION

        public static final int DEFAULT_TDIGEST_COMPRESSION
        See Also:
        Constant Field Values
    • Constructor Detail

      • PercentileTDigestValueAggregator

        public PercentileTDigestValueAggregator()
    • Method Detail

      • applyRawValue

        public com.tdunning.math.stats.TDigest applyRawValue​(com.tdunning.math.stats.TDigest value,
                                                             Object rawValue)
        Description copied from interface: ValueAggregator
        Applies a raw value to the current aggregated value.

        NOTE: if value is mutable, will directly modify the value.

        Specified by:
        applyRawValue in interface ValueAggregator<Object,​com.tdunning.math.stats.TDigest>
      • applyAggregatedValue

        public com.tdunning.math.stats.TDigest applyAggregatedValue​(com.tdunning.math.stats.TDigest value,
                                                                    com.tdunning.math.stats.TDigest aggregatedValue)
        Description copied from interface: ValueAggregator
        Applies an aggregated value to the current aggregated value.

        NOTE: if value is mutable, will directly modify the value.

        Specified by:
        applyAggregatedValue in interface ValueAggregator<Object,​com.tdunning.math.stats.TDigest>
      • cloneAggregatedValue

        public com.tdunning.math.stats.TDigest cloneAggregatedValue​(com.tdunning.math.stats.TDigest value)
        Description copied from interface: ValueAggregator
        Clones an aggregated value.
        Specified by:
        cloneAggregatedValue in interface ValueAggregator<Object,​com.tdunning.math.stats.TDigest>
      • serializeAggregatedValue

        public byte[] serializeAggregatedValue​(com.tdunning.math.stats.TDigest value)
        Description copied from interface: ValueAggregator
        Serializes an aggregated value into a byte array.
        Specified by:
        serializeAggregatedValue in interface ValueAggregator<Object,​com.tdunning.math.stats.TDigest>
      • deserializeAggregatedValue

        public com.tdunning.math.stats.TDigest deserializeAggregatedValue​(byte[] bytes)
        Description copied from interface: ValueAggregator
        De-serializes an aggregated value from a byte array.
        Specified by:
        deserializeAggregatedValue in interface ValueAggregator<Object,​com.tdunning.math.stats.TDigest>