aggregate

package
Version: v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package aggregate provides aggregation functions.

Index

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 CountAll

func CountAll() *aggCount

CountAll returns the number of all values.

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.

func MaxAll

func MaxAll() *aggMax

MaxAll returns the maximum of all values.

func Min

func Min(attr string) *aggMin

Min returns the minimum of the values corresponding to the given attribute.

func MinAll

func MinAll() *aggMin

MinAll returns the minimum of all values.

Types

type Aggregator

type Aggregator interface {
	serialization.IdentifiedDataSerializable
	fmt.Stringer
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL