Documentation ¶
Index ¶
- type Avg
- func (a *Avg) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (a *Avg) IsNullable() bool
- func (a *Avg) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (a *Avg) NewBuffer() sql.Row
- func (a *Avg) Resolved() bool
- func (a *Avg) String() string
- func (a *Avg) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)
- func (a *Avg) Type() sql.Type
- func (a *Avg) Update(ctx *sql.Context, buffer, row sql.Row) error
- type Count
- func (c *Count) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (c *Count) IsNullable() bool
- func (c *Count) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (c *Count) NewBuffer() sql.Row
- func (c *Count) Resolved() bool
- func (c *Count) String() string
- func (c *Count) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)
- func (c *Count) Type() sql.Type
- func (c *Count) Update(ctx *sql.Context, buffer, row sql.Row) error
- type Max
- func (m *Max) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (m *Max) IsNullable() bool
- func (m *Max) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (m *Max) NewBuffer() sql.Row
- func (m *Max) Resolved() bool
- func (m *Max) String() string
- func (m *Max) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)
- func (m *Max) Type() sql.Type
- func (m *Max) Update(ctx *sql.Context, buffer, row sql.Row) error
- type Min
- func (m *Min) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (m *Min) IsNullable() bool
- func (m *Min) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (m *Min) NewBuffer() sql.Row
- func (m *Min) Resolved() bool
- func (m *Min) String() string
- func (m *Min) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)
- func (m *Min) Type() sql.Type
- func (m *Min) Update(ctx *sql.Context, buffer, row sql.Row) error
- type Sum
- func (m *Sum) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (m *Sum) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (m *Sum) NewBuffer() sql.Row
- func (m *Sum) String() string
- func (m *Sum) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)
- func (m *Sum) Type() sql.Type
- func (m *Sum) Update(ctx *sql.Context, buffer, row sql.Row) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Avg ¶
type Avg struct {
expression.UnaryExpression
}
Avg node to calculate the average from numeric column
func (*Avg) Eval ¶
Eval implements AggregationExpression interface. (AggregationExpression[Expression]])
func (*Avg) IsNullable ¶
IsNullable implements AggregationExpression interface. (AggregationExpression[Expression]])
func (*Avg) NewBuffer ¶
NewBuffer implements AggregationExpression interface. (AggregationExpression)
func (*Avg) Resolved ¶
Resolved implements AggregationExpression interface. (AggregationExpression[Expression[Resolvable]]])
func (*Avg) TransformUp ¶
func (a *Avg) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)
TransformUp implements AggregationExpression interface.
type Count ¶
type Count struct {
expression.UnaryExpression
}
Count node to count how many rows are in the result set.
func (*Count) IsNullable ¶
IsNullable returns whether the return value can be null.
func (*Count) TransformUp ¶
func (c *Count) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)
TransformUp implements the Expression interface.
type Max ¶
type Max struct {
expression.UnaryExpression
}
Max agregation returns the greatest value of the selected column. It implements the Aggregation interface
func (*Max) IsNullable ¶
IsNullable returns whether the return value can be null.
func (*Max) TransformUp ¶
func (m *Max) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)
TransformUp implements the Transformable interface.
type Min ¶
type Min struct {
expression.UnaryExpression
}
Min aggregation returns the smallest value of the selected column. It implements the Aggregation interface
func (*Min) IsNullable ¶
IsNullable returns whether the return value can be null.
func (*Min) TransformUp ¶
func (m *Min) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)
TransformUp implements the Transformable interface.
type Sum ¶
type Sum struct {
expression.UnaryExpression
}
Sum agregation returns the sum of all values in the selected column. It implements the Aggregation interface.
func (*Sum) TransformUp ¶
func (m *Sum) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)
TransformUp implements the Transformable interface.