Documentation
¶
Index ¶
- type AggFunctionType
- type AggState
- func (as *AggState) GetDecimal(index int) common.Decimal
- func (as *AggState) GetExtraState(index int) []byte
- func (as *AggState) GetFloat64(index int) float64
- func (as *AggState) GetInt64(index int) int64
- func (as *AggState) GetString(index int) string
- func (as *AggState) GetTimestamp(index int) (common.Timestamp, error)
- func (as *AggState) IsChanged() bool
- func (as *AggState) IsNull(index int) bool
- func (as *AggState) IsSet(index int) bool
- func (as *AggState) SetDecimal(index int, val common.Decimal) error
- func (as *AggState) SetExtraState(index int, extraState []byte)
- func (as *AggState) SetFloat64(index int, val float64)
- func (as *AggState) SetInt64(index int, val int64)
- func (as *AggState) SetNull(index int)
- func (as *AggState) SetString(index int, val string)
- func (as *AggState) SetTimestamp(index int, val common.Timestamp) error
- func (as *AggState) SetUnchanged()
- type AggregateFunction
- type CountAggregateFunction
- func (b *CountAggregateFunction) ArgExpression() *common.Expression
- func (b *CountAggregateFunction) EvalDecimal(value common.Decimal, null bool, aggState *AggState, index int, reverse bool) error
- func (b *CountAggregateFunction) EvalFloat64(value float64, null bool, aggState *AggState, index int, reverse bool) error
- func (c *CountAggregateFunction) EvalInt64(value int64, null bool, aggState *AggState, index int, reverse bool) error
- func (b *CountAggregateFunction) EvalString(value string, null bool, aggState *AggState, index int, reverse bool) error
- func (b *CountAggregateFunction) EvalTimestamp(value common.Timestamp, null bool, aggState *AggState, index int, reverse bool) error
- func (b *CountAggregateFunction) RequiresExtraState() bool
- func (b *CountAggregateFunction) ValueType() common.ColumnType
- type FirstRowAggregateFunction
- func (b *FirstRowAggregateFunction) ArgExpression() *common.Expression
- func (f *FirstRowAggregateFunction) EvalDecimal(value common.Decimal, null bool, aggState *AggState, index int, reverse bool) error
- func (f *FirstRowAggregateFunction) EvalFloat64(value float64, null bool, aggState *AggState, index int, reverse bool) error
- func (f *FirstRowAggregateFunction) EvalInt64(value int64, null bool, aggState *AggState, index int, reverse bool) error
- func (f *FirstRowAggregateFunction) EvalString(value string, null bool, aggState *AggState, index int, reverse bool) error
- func (f *FirstRowAggregateFunction) EvalTimestamp(value common.Timestamp, null bool, aggState *AggState, index int, reverse bool) error
- func (b *FirstRowAggregateFunction) RequiresExtraState() bool
- func (b *FirstRowAggregateFunction) ValueType() common.ColumnType
- type SumAggregateFunction
- func (b *SumAggregateFunction) ArgExpression() *common.Expression
- func (s *SumAggregateFunction) EvalDecimal(value common.Decimal, null bool, aggState *AggState, index int, reverse bool) error
- func (s *SumAggregateFunction) EvalFloat64(value float64, null bool, aggState *AggState, index int, reverse bool) error
- func (b *SumAggregateFunction) EvalInt64(value int64, null bool, aggState *AggState, index int, reverse bool) error
- func (b *SumAggregateFunction) EvalString(value string, null bool, aggState *AggState, index int, reverse bool) error
- func (b *SumAggregateFunction) EvalTimestamp(value common.Timestamp, null bool, aggState *AggState, index int, reverse bool) error
- func (b *SumAggregateFunction) RequiresExtraState() bool
- func (b *SumAggregateFunction) ValueType() common.ColumnType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggFunctionType ¶
type AggFunctionType int
const ( SumAggregateFunctionType AggFunctionType = iota CountAggregateFunctionType FirstRowAggregateFunctionType )
type AggState ¶
type AggState struct {
// contains filtered or unexported fields
}
func NewAggState ¶
func (*AggState) GetExtraState ¶
func (*AggState) GetFloat64 ¶
func (*AggState) GetTimestamp ¶
func (*AggState) SetExtraState ¶
func (*AggState) SetFloat64 ¶
func (*AggState) SetTimestamp ¶
func (*AggState) SetUnchanged ¶ added in v0.1.6
func (as *AggState) SetUnchanged()
type AggregateFunction ¶
type AggregateFunction interface { EvalInt64(value int64, null bool, aggState *AggState, index int, reverse bool) error EvalFloat64(value float64, null bool, aggState *AggState, index int, reverse bool) error EvalString(value string, null bool, aggState *AggState, index int, reverse bool) error EvalTimestamp(value common.Timestamp, null bool, aggState *AggState, index int, reverse bool) error EvalDecimal(value common.Decimal, null bool, aggState *AggState, index int, reverse bool) error ValueType() common.ColumnType ArgExpression() *common.Expression RequiresExtraState() bool }
func NewAggregateFunction ¶
func NewAggregateFunction(argExpression *common.Expression, funcType AggFunctionType, valueType common.ColumnType) (AggregateFunction, error)
type CountAggregateFunction ¶
type CountAggregateFunction struct {
// contains filtered or unexported fields
}
func (*CountAggregateFunction) ArgExpression ¶
func (b *CountAggregateFunction) ArgExpression() *common.Expression
func (*CountAggregateFunction) EvalDecimal ¶
func (*CountAggregateFunction) EvalFloat64 ¶
func (*CountAggregateFunction) EvalString ¶
func (*CountAggregateFunction) EvalTimestamp ¶
func (*CountAggregateFunction) RequiresExtraState ¶
func (b *CountAggregateFunction) RequiresExtraState() bool
func (*CountAggregateFunction) ValueType ¶
func (b *CountAggregateFunction) ValueType() common.ColumnType
type FirstRowAggregateFunction ¶
type FirstRowAggregateFunction struct {
// contains filtered or unexported fields
}
func (*FirstRowAggregateFunction) ArgExpression ¶
func (b *FirstRowAggregateFunction) ArgExpression() *common.Expression
func (*FirstRowAggregateFunction) EvalDecimal ¶
func (*FirstRowAggregateFunction) EvalFloat64 ¶
func (*FirstRowAggregateFunction) EvalString ¶
func (*FirstRowAggregateFunction) EvalTimestamp ¶
func (*FirstRowAggregateFunction) RequiresExtraState ¶
func (b *FirstRowAggregateFunction) RequiresExtraState() bool
func (*FirstRowAggregateFunction) ValueType ¶
func (b *FirstRowAggregateFunction) ValueType() common.ColumnType
type SumAggregateFunction ¶
type SumAggregateFunction struct {
// contains filtered or unexported fields
}
func (*SumAggregateFunction) ArgExpression ¶
func (b *SumAggregateFunction) ArgExpression() *common.Expression
func (*SumAggregateFunction) EvalDecimal ¶
func (*SumAggregateFunction) EvalFloat64 ¶
func (*SumAggregateFunction) EvalString ¶
func (*SumAggregateFunction) EvalTimestamp ¶
func (*SumAggregateFunction) RequiresExtraState ¶
func (b *SumAggregateFunction) RequiresExtraState() bool
func (*SumAggregateFunction) ValueType ¶
func (b *SumAggregateFunction) ValueType() common.ColumnType
Click to show internal directories.
Click to hide internal directories.