Interface ValueAggregator<R,​A>

    • Method Detail

      • getAggregatedValueType

        FieldSpec.DataType getAggregatedValueType()
        Returns the data type of the aggregated value.
      • getInitialAggregatedValue

        A getInitialAggregatedValue​(R rawValue)
        Returns the initial aggregated value.
      • applyRawValue

        A applyRawValue​(A value,
                        R rawValue)
        Applies a raw value to the current aggregated value.

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

      • applyAggregatedValue

        A applyAggregatedValue​(A value,
                               A aggregatedValue)
        Applies an aggregated value to the current aggregated value.

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

      • cloneAggregatedValue

        A cloneAggregatedValue​(A value)
        Clones an aggregated value.
      • getMaxAggregatedValueByteSize

        int getMaxAggregatedValueByteSize()
        Returns the maximum size in bytes of the aggregated values seen so far.
      • serializeAggregatedValue

        byte[] serializeAggregatedValue​(A value)
        Serializes an aggregated value into a byte array.
      • deserializeAggregatedValue

        A deserializeAggregatedValue​(byte[] bytes)
        De-serializes an aggregated value from a byte array.