Versions in this module Expand all Collapse all v1 v1.0.0 Oct 16, 2017 Changes in this version + func AggFuncToPBExpr(sc *variable.StatementContext, client kv.Client, aggFunc Aggregation) *tipb.Expr + func ExplainAggFunc(agg Aggregation) string + type AggEvaluateContext struct + Buffer *bytes.Buffer + Count int64 + DistinctChecker *distinctChecker + GotFirstRow bool + Value types.Datum + type AggFunctionMode int + const CompleteMode + const FinalMode + type Aggregation interface + CalculateDefaultValue func(schema *expression.Schema, ctx context.Context) (types.Datum, bool) + Clone func() Aggregation + CreateContext func() *AggEvaluateContext + Equal func(agg Aggregation, ctx context.Context) bool + GetArgs func() []expression.Expression + GetMode func() AggFunctionMode + GetName func() string + GetPartialResult func(ctx *AggEvaluateContext) []types.Datum + GetResult func(ctx *AggEvaluateContext) types.Datum + GetType func() *types.FieldType + IsDistinct func() bool + SetArgs func(args []expression.Expression) + SetMode func(mode AggFunctionMode) + Update func(ctx *AggEvaluateContext, sc *variable.StatementContext, row []types.Datum) error + func NewAggFunction(funcType string, funcArgs []expression.Expression, distinct bool) Aggregation + func NewDistAggFunc(expr *tipb.Expr, fieldTps []*types.FieldType, sc *variable.StatementContext) (Aggregation, error)