Documentation
¶
Index ¶
- Constants
- func CompileOp(expr *influxql.Call) error
- func IsAggregateOp(call *influxql.Call) bool
- func IsProjectOp(call *influxql.Call) bool
- func IsUDAFOp(call *influxql.Call) bool
- type AggregateOp
- type BaseOp
- func (op *BaseOp) Arity() int
- func (op *BaseOp) Clone() Op
- func (op *BaseOp) Compile(call *influxql.Call) error
- func (op *BaseOp) Dump() string
- func (op *BaseOp) EqualTo(other Op) bool
- func (op *BaseOp) ID() uint64
- func (op *BaseOp) Name() string
- func (op *BaseOp) Type(args ...influxql.DataType) (influxql.DataType, error)
- type CastorOp
- type CountOp
- type FuncRoutineFactory
- type Op
- type OpFactory
- func (c *OpFactory) AddOp(op Op) error
- func (c *OpFactory) FindAggregateOp(name string) (AggregateOp, bool)
- func (c *OpFactory) FindOp(name string) (Op, bool)
- func (c *OpFactory) FindProjectOp(name string) (ProjectOp, bool)
- func (c *OpFactory) FindUDAFOp(name string) (UDAFOp, bool)
- func (c *OpFactory) GetAggregateOpNames() []string
- func (c *OpFactory) GetUDAFOpNames() []string
- type ProjectOp
- type RoutineFactory
- type SumOp
- type ToLowerOp
- type ToUpperOp
- type TypeMapper
- type UDAFOp
- type Valuer
Constants ¶
View Source
const ( Algo castorArgIdx Conf AlgoType )
View Source
const ( TO_LOWER_OP uint64 = iota TO_UPPER_OP SUM_OP COUNT_OP CASTOR_OP UNKNOWN_OP )
Variables ¶
This section is empty.
Functions ¶
func IsAggregateOp ¶
func IsProjectOp ¶
Types ¶
type AggregateOp ¶
type AggregateOp interface {
Factory() RoutineFactory
}
type BaseOp ¶
type BaseOp struct {
// contains filtered or unexported fields
}
type CastorOp ¶ added in v0.2.0
type CastorOp struct { BaseOp // contains filtered or unexported fields }
func NewCastorOp ¶ added in v0.2.0
func NewCastorOp(factory RoutineFactory) *CastorOp
func (*CastorOp) CanPushDownSeries ¶ added in v0.2.0
func (*CastorOp) Factory ¶ added in v0.2.0
func (op *CastorOp) Factory() RoutineFactory
type CountOp ¶
type CountOp struct { BaseOp // contains filtered or unexported fields }
func NewCountOp ¶
func NewCountOp(factory RoutineFactory) *CountOp
func (*CountOp) Factory ¶
func (op *CountOp) Factory() RoutineFactory
type FuncRoutineFactory ¶
type FuncRoutineFactory func(...interface{}) (interface{}, error)
func (FuncRoutineFactory) Create ¶
func (f FuncRoutineFactory) Create(args ...interface{}) (interface{}, error)
type OpFactory ¶
type OpFactory struct {
// contains filtered or unexported fields
}
func GetOpFactory ¶
func GetOpFactory() *OpFactory
func NewOpFactory ¶
func NewOpFactory() *OpFactory
func (*OpFactory) FindAggregateOp ¶
func (c *OpFactory) FindAggregateOp(name string) (AggregateOp, bool)
func (*OpFactory) FindUDAFOp ¶ added in v0.2.0
func (*OpFactory) GetAggregateOpNames ¶ added in v0.2.0
func (*OpFactory) GetUDAFOpNames ¶ added in v0.2.0
type RoutineFactory ¶
type RoutineFactory interface {
Create(...interface{}) (interface{}, error)
}
type SumOp ¶
type SumOp struct { BaseOp // contains filtered or unexported fields }
func NewSumOp ¶
func NewSumOp(factory RoutineFactory) *SumOp
func (*SumOp) Factory ¶
func (op *SumOp) Factory() RoutineFactory
type ToLowerOp ¶
type ToLowerOp struct {
BaseOp
}
func NewToLowerOp ¶
func NewToLowerOp() *ToLowerOp
type ToUpperOp ¶
type ToUpperOp struct {
BaseOp
}
func NewToUpperOp ¶
func NewToUpperOp() *ToUpperOp
type TypeMapper ¶
type TypeMapper struct{}
func (TypeMapper) MapType ¶
func (m TypeMapper) MapType(_ *influxql.Measurement, _ string) influxql.DataType
func (TypeMapper) MapTypeBatch ¶
func (m TypeMapper) MapTypeBatch(_ *influxql.Measurement, _ map[string]*influxql.FieldNameSpace, _ *influxql.Schema) error
type UDAFOp ¶ added in v0.2.0
type UDAFOp interface { AggregateOp CanPushDownSeries() bool }
Click to show internal directories.
Click to hide internal directories.