Documentation ¶
Overview ¶
Package aggregate provides aggregation functions.
Aggregations allow computing a value of some function (e.g Sum or Max) over the stored map entries. The computation is performed in a fully distributed manner, so no data other than the computed function value is transferred to the client, making the computation fast.
Index ¶
- func Count(attr string) *aggCount
- func CountAll() *aggCount
- func DistinctValues(attr string) *aggDistinct
- func DistinctValuesAll() *aggDistinct
- func DoubleAverage(attr string) *aggDoubleAverage
- func DoubleAverageAll() *aggDoubleAverage
- func DoubleSum(attr string) *aggDoubleSum
- func DoubleSumAll() *aggDoubleSum
- func IntAverage(attr string) *aggIntAverage
- func IntAverageAll() *aggIntAverage
- func IntSum(attr string) *aggIntSum
- func IntSumAll() *aggIntSum
- func LongAverage(attr string) *aggLongAverage
- func LongAverageAll() *aggLongAverage
- func LongSum(attr string) *aggLongSum
- func LongSumAll() *aggLongSum
- func Max(attr string) *aggMax
- func MaxAll() *aggMax
- func Min(attr string) *aggMin
- func MinAll() *aggMin
- type Aggregator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Count ¶
func Count(attr string) *aggCount
Count returns the number of values which includes the given attribute. Note that this function may not work as expected for Hazelcast versions prior to 5.0.
func DistinctValues ¶
func DistinctValues(attr string) *aggDistinct
DistinctValues returns the number of distinct values which has the given attribute.
func DistinctValuesAll ¶
func DistinctValuesAll() *aggDistinct
DistinctValuesAll returns all distinct values.
func DoubleAverage ¶
func DoubleAverage(attr string) *aggDoubleAverage
DoubleAverage returns the average of values of the given attribute. Note that this function may not work as expected for Hazelcast versions prior to 5.0.
func DoubleAverageAll ¶
func DoubleAverageAll() *aggDoubleAverage
DoubleAverageAll returns the average of all values of the given attribute.
func DoubleSum ¶
func DoubleSum(attr string) *aggDoubleSum
DoubleSum returns the sum of values of the given attribute. Note that this function may not work as expected for Hazelcast versions prior to 5.0.
func DoubleSumAll ¶
func DoubleSumAll() *aggDoubleSum
DoubleSumAll returns the sum of all values of the given attribute.
func IntAverage ¶
func IntAverage(attr string) *aggIntAverage
IntAverage returns the average of values of the given attribute. Note that this function may not work as expected for Hazelcast versions prior to 5.0.
func IntAverageAll ¶
func IntAverageAll() *aggIntAverage
IntAverageAll returns the average of all values of the given attribute.
func IntSum ¶
func IntSum(attr string) *aggIntSum
IntSum returns the sum of values of the given attribute. Note that this function may not work as expected for Hazelcast versions prior to 5.0.
func IntSumAll ¶
func IntSumAll() *aggIntSum
IntSumAll returns the sum of all values of the given attribute.
func LongAverage ¶
func LongAverage(attr string) *aggLongAverage
LongAverage returns the average of values of the given attribute. Note that this function may not work as expected for Hazelcast versions prior to 5.0.
func LongAverageAll ¶
func LongAverageAll() *aggLongAverage
LongAverageAll returns the average of all values of the given attribute.
func LongSum ¶
func LongSum(attr string) *aggLongSum
LongSum returns the sum of values of the given attribute. Note that this function may not work as expected for Hazelcast versions prior to 5.0.
func LongSumAll ¶
func LongSumAll() *aggLongSum
LongSumAll returns the sum of all values of the given attribute.
func Max ¶
func Max(attr string) *aggMax
Max returns the maximum of the values corresponding to the given attribute.
Types ¶
type Aggregator ¶
type Aggregator interface { serialization.IdentifiedDataSerializable fmt.Stringer }