Class DistinctCountCPCSketchValueAggregator

    • Constructor Detail

      • DistinctCountCPCSketchValueAggregator

        public DistinctCountCPCSketchValueAggregator​(List<ExpressionContext> arguments)
    • Method Detail

      • applyRawValue

        public org.apache.datasketches.cpc.CpcSketch applyRawValue​(org.apache.datasketches.cpc.CpcSketch 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.cpc.CpcSketch>
      • applyAggregatedValue

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

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

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

        public org.apache.datasketches.cpc.CpcSketch 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.cpc.CpcSketch>