Class DistinctCountThetaSketchValueAggregator

    • Constructor Detail

      • DistinctCountThetaSketchValueAggregator

        public DistinctCountThetaSketchValueAggregator()
    • Method Detail

      • applyRawValue

        public org.apache.datasketches.theta.Sketch applyRawValue​(org.apache.datasketches.theta.Sketch 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,​org.apache.datasketches.theta.Sketch>
      • applyAggregatedValue

        public org.apache.datasketches.theta.Sketch applyAggregatedValue​(org.apache.datasketches.theta.Sketch value,
                                                                         org.apache.datasketches.theta.Sketch 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,​org.apache.datasketches.theta.Sketch>
      • cloneAggregatedValue

        public org.apache.datasketches.theta.Sketch cloneAggregatedValue​(org.apache.datasketches.theta.Sketch value)
        Description copied from interface: ValueAggregator
        Clones an aggregated value.
        Specified by:
        cloneAggregatedValue in interface ValueAggregator<Object,​org.apache.datasketches.theta.Sketch>
      • serializeAggregatedValue

        public byte[] serializeAggregatedValue​(org.apache.datasketches.theta.Sketch value)
        Description copied from interface: ValueAggregator
        Serializes an aggregated value into a byte array.
        Specified by:
        serializeAggregatedValue in interface ValueAggregator<Object,​org.apache.datasketches.theta.Sketch>
      • deserializeAggregatedValue

        public org.apache.datasketches.theta.Sketch deserializeAggregatedValue​(byte[] bytes)
        Description copied from interface: ValueAggregator
        De-serializes an aggregated value from a byte array.
        Specified by:
        deserializeAggregatedValue in interface ValueAggregator<Object,​org.apache.datasketches.theta.Sketch>