Documentation
¶
Index ¶
- Variables
- type Attribute
- func (a *Attribute) Attributes() []string
- func (a *Attribute) Eq(e Extend) bool
- func (a *Attribute) Eval(bat *batch.Batch, _ *process.Process) (*vector.Vector, types.T, error)
- func (a *Attribute) ExtendAttributes() []*Attribute
- func (_ *Attribute) IsConstant() bool
- func (a *Attribute) IsLogical() bool
- func (a *Attribute) ReturnType() types.T
- func (a *Attribute) String() string
- type BinaryExtend
- func (e *BinaryExtend) Attributes() []string
- func (a *BinaryExtend) Eq(e Extend) bool
- func (e *BinaryExtend) Eval(bat *batch.Batch, proc *process.Process) (*vector.Vector, types.T, error)
- func (e *BinaryExtend) ExtendAttributes() []*Attribute
- func (_ *BinaryExtend) IsConstant() bool
- func (e *BinaryExtend) IsLogical() bool
- func (e *BinaryExtend) ReturnType() types.T
- func (e *BinaryExtend) String() string
- type Extend
- type FuncExtend
- func (a *FuncExtend) Attributes() []string
- func (a *FuncExtend) Eq(e Extend) bool
- func (a *FuncExtend) Eval(_ *batch.Batch, _ *process.Process) (*vector.Vector, types.T, error)
- func (a *FuncExtend) ExtendAttributes() []*Attribute
- func (_ *FuncExtend) IsConstant() bool
- func (_ *FuncExtend) IsLogical() bool
- func (a *FuncExtend) ReturnType() types.T
- func (a *FuncExtend) String() string
- type MultiExtend
- func (e *MultiExtend) Attributes() []string
- func (a *MultiExtend) Eq(e Extend) bool
- func (e *MultiExtend) Eval(bat *batch.Batch, proc *process.Process) (*vector.Vector, types.T, error)
- func (e *MultiExtend) ExtendAttributes() []*Attribute
- func (_ *MultiExtend) IsConstant() bool
- func (e *MultiExtend) IsLogical() bool
- func (e *MultiExtend) ReturnType() types.T
- func (e *MultiExtend) String() string
- type ParenExtend
- func (e *ParenExtend) Attributes() []string
- func (a *ParenExtend) Eq(b Extend) bool
- func (e *ParenExtend) Eval(bat *batch.Batch, proc *process.Process) (*vector.Vector, types.T, error)
- func (e *ParenExtend) ExtendAttributes() []*Attribute
- func (_ *ParenExtend) IsConstant() bool
- func (e *ParenExtend) IsLogical() bool
- func (e *ParenExtend) ReturnType() types.T
- func (e *ParenExtend) String() string
- type StarExtend
- func (a *StarExtend) Attributes() []string
- func (a *StarExtend) Eq(e Extend) bool
- func (a *StarExtend) Eval(_ *batch.Batch, _ *process.Process) (*vector.Vector, types.T, error)
- func (a *StarExtend) ExtendAttributes() []*Attribute
- func (_ *StarExtend) IsConstant() bool
- func (_ *StarExtend) IsLogical() bool
- func (a *StarExtend) ReturnType() types.T
- func (a *StarExtend) String() string
- type UnaryExtend
- func (e *UnaryExtend) Attributes() []string
- func (a *UnaryExtend) Eq(e Extend) bool
- func (e *UnaryExtend) Eval(bat *batch.Batch, proc *process.Process) (*vector.Vector, types.T, error)
- func (e *UnaryExtend) ExtendAttributes() []*Attribute
- func (_ *UnaryExtend) IsConstant() bool
- func (e *UnaryExtend) IsLogical() bool
- func (e *UnaryExtend) ReturnType() types.T
- func (e *UnaryExtend) String() string
- type UpdateExtend
- func (_ *UpdateExtend) Attributes() []string
- func (p *UpdateExtend) Eq(e Extend) bool
- func (p *UpdateExtend) Eval(bat *batch.Batch, proc *process.Process) (*vector.Vector, types.T, error)
- func (_ *UpdateExtend) IsConstant() bool
- func (p *UpdateExtend) IsLogical() bool
- func (p *UpdateExtend) ReturnType() types.T
- func (p *UpdateExtend) String() string
- type ValueExtend
- func (_ *ValueExtend) Attributes() []string
- func (a *ValueExtend) Eq(e Extend) bool
- func (a *ValueExtend) Eval(_ *batch.Batch, _ *process.Process) (*vector.Vector, types.T, error)
- func (_ *ValueExtend) ExtendAttributes() []*Attribute
- func (_ *ValueExtend) IsConstant() bool
- func (a *ValueExtend) IsLogical() bool
- func (a *ValueExtend) ReturnType() types.T
- func (a *ValueExtend) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var BinaryReturnTypes = map[int]func(Extend, Extend) types.T{ overload.Or: func(_ Extend, _ Extend) types.T { return types.T_sel }, overload.And: func(_ Extend, _ Extend) types.T { return types.T_sel }, overload.EQ: func(_ Extend, _ Extend) types.T { return types.T_sel }, overload.NE: func(_ Extend, _ Extend) types.T { return types.T_sel }, overload.LT: func(_ Extend, _ Extend) types.T { return types.T_sel }, overload.LE: func(_ Extend, _ Extend) types.T { return types.T_sel }, overload.GT: func(_ Extend, _ Extend) types.T { return types.T_sel }, overload.GE: func(_ Extend, _ Extend) types.T { return types.T_sel }, overload.Like: func(_ Extend, _ Extend) types.T { return types.T_sel }, overload.NotLike: func(_ Extend, _ Extend) types.T { return types.T_sel }, overload.Typecast: func(_ Extend, r Extend) types.T { return r.ReturnType() }, overload.Plus: func(l Extend, r Extend) types.T { return overload.GetBinOpReturnType(overload.Plus, l.ReturnType(), r.ReturnType()) }, overload.Minus: func(l Extend, r Extend) types.T { return overload.GetBinOpReturnType(overload.Minus, l.ReturnType(), r.ReturnType()) }, overload.Mult: func(l Extend, r Extend) types.T { return overload.GetBinOpReturnType(overload.Mult, l.ReturnType(), r.ReturnType()) }, overload.Div: func(l Extend, r Extend) types.T { return overload.GetBinOpReturnType(overload.Div, l.ReturnType(), r.ReturnType()) }, overload.IntegerDiv: func(l Extend, r Extend) types.T { return overload.GetBinOpReturnType(overload.IntegerDiv, l.ReturnType(), r.ReturnType()) }, overload.Mod: func(l Extend, r Extend) types.T { return overload.GetBinOpReturnType(overload.Mod, l.ReturnType(), r.ReturnType()) }, }
View Source
var BinaryStrings = map[int]func(Extend, Extend) string{ overload.Like: func(l Extend, r Extend) string { return fmt.Sprintf("like(%s, %s)", l.String(), r.String()) }, overload.NotLike: func(l Extend, r Extend) string { return fmt.Sprintf("notLike(%s, %s)", l.String(), r.String()) }, overload.EQ: func(l Extend, r Extend) string { return fmt.Sprintf("%s = %s", l.String(), r.String()) }, overload.LT: func(l Extend, r Extend) string { return fmt.Sprintf("%s < %s", l.String(), r.String()) }, overload.GT: func(l Extend, r Extend) string { return fmt.Sprintf("%s > %s", l.String(), r.String()) }, overload.LE: func(l Extend, r Extend) string { return fmt.Sprintf("%s <= %s", l.String(), r.String()) }, overload.GE: func(l Extend, r Extend) string { return fmt.Sprintf("%s >= %s", l.String(), r.String()) }, overload.NE: func(l Extend, r Extend) string { return fmt.Sprintf("%s <> %s", l.String(), r.String()) }, overload.Or: func(l Extend, r Extend) string { return fmt.Sprintf("%s or %s", l.String(), r.String()) }, overload.And: func(l Extend, r Extend) string { return fmt.Sprintf("%s and %s", l.String(), r.String()) }, overload.Div: func(l Extend, r Extend) string { return fmt.Sprintf("%s / %s", l.String(), r.String()) }, overload.IntegerDiv: func(l Extend, r Extend) string { return fmt.Sprintf("%s div %s", l.String(), r.String()) }, overload.Mod: func(l Extend, r Extend) string { return fmt.Sprintf("%s %% %s", l.String(), r.String()) }, overload.Plus: func(l Extend, r Extend) string { return fmt.Sprintf("%s + %s", l.String(), r.String()) }, overload.Mult: func(l Extend, r Extend) string { return fmt.Sprintf("%s * %s", l.String(), r.String()) }, overload.Minus: func(l Extend, r Extend) string { return fmt.Sprintf("%s - %s", l.String(), r.String()) }, overload.Typecast: func(l Extend, r Extend) string { return fmt.Sprintf("cast(%s as %s)", l.String(), r.ReturnType()) }, }
View Source
var FunctionRegistry = map[string]int{}
View Source
var MultiReturnTypes = map[int]func([]Extend) types.T{}
View Source
var MultiStrings = map[int]func([]Extend) string{}
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
func (*Attribute) Attributes ¶
func (*Attribute) ExtendAttributes ¶
func (*Attribute) IsConstant ¶
func (*Attribute) ReturnType ¶
type BinaryExtend ¶
func (*BinaryExtend) Attributes ¶
func (e *BinaryExtend) Attributes() []string
func (*BinaryExtend) Eq ¶
func (a *BinaryExtend) Eq(e Extend) bool
func (*BinaryExtend) ExtendAttributes ¶
func (e *BinaryExtend) ExtendAttributes() []*Attribute
func (*BinaryExtend) IsConstant ¶
func (_ *BinaryExtend) IsConstant() bool
func (*BinaryExtend) IsLogical ¶
func (e *BinaryExtend) IsLogical() bool
func (*BinaryExtend) ReturnType ¶
func (e *BinaryExtend) ReturnType() types.T
func (*BinaryExtend) String ¶
func (e *BinaryExtend) String() string
type Extend ¶
type Extend interface { Eq(Extend) bool String() string IsLogical() bool IsConstant() bool ReturnType() types.T Attributes() []string ExtendAttributes() []*Attribute Eval(*batch.Batch, *process.Process) (*vector.Vector, types.T, error) }
func AndExtends ¶
type FuncExtend ¶
func (*FuncExtend) Attributes ¶
func (a *FuncExtend) Attributes() []string
func (*FuncExtend) Eq ¶
func (a *FuncExtend) Eq(e Extend) bool
func (*FuncExtend) ExtendAttributes ¶
func (a *FuncExtend) ExtendAttributes() []*Attribute
func (*FuncExtend) IsConstant ¶
func (_ *FuncExtend) IsConstant() bool
func (*FuncExtend) IsLogical ¶
func (_ *FuncExtend) IsLogical() bool
func (*FuncExtend) ReturnType ¶
func (a *FuncExtend) ReturnType() types.T
func (*FuncExtend) String ¶
func (a *FuncExtend) String() string
type MultiExtend ¶
func (*MultiExtend) Attributes ¶
func (e *MultiExtend) Attributes() []string
func (*MultiExtend) Eq ¶
func (a *MultiExtend) Eq(e Extend) bool
func (*MultiExtend) ExtendAttributes ¶
func (e *MultiExtend) ExtendAttributes() []*Attribute
func (*MultiExtend) IsConstant ¶
func (_ *MultiExtend) IsConstant() bool
func (*MultiExtend) IsLogical ¶
func (e *MultiExtend) IsLogical() bool
func (*MultiExtend) ReturnType ¶
func (e *MultiExtend) ReturnType() types.T
func (*MultiExtend) String ¶
func (e *MultiExtend) String() string
type ParenExtend ¶
type ParenExtend struct {
E Extend
}
func (*ParenExtend) Attributes ¶
func (e *ParenExtend) Attributes() []string
func (*ParenExtend) Eq ¶
func (a *ParenExtend) Eq(b Extend) bool
func (*ParenExtend) ExtendAttributes ¶
func (e *ParenExtend) ExtendAttributes() []*Attribute
func (*ParenExtend) IsConstant ¶
func (_ *ParenExtend) IsConstant() bool
func (*ParenExtend) IsLogical ¶
func (e *ParenExtend) IsLogical() bool
func (*ParenExtend) ReturnType ¶
func (e *ParenExtend) ReturnType() types.T
func (*ParenExtend) String ¶
func (e *ParenExtend) String() string
type StarExtend ¶
type StarExtend struct { }
func (*StarExtend) Attributes ¶
func (a *StarExtend) Attributes() []string
func (*StarExtend) Eq ¶
func (a *StarExtend) Eq(e Extend) bool
func (*StarExtend) ExtendAttributes ¶
func (a *StarExtend) ExtendAttributes() []*Attribute
func (*StarExtend) IsConstant ¶
func (_ *StarExtend) IsConstant() bool
func (*StarExtend) IsLogical ¶
func (_ *StarExtend) IsLogical() bool
func (*StarExtend) ReturnType ¶
func (a *StarExtend) ReturnType() types.T
func (*StarExtend) String ¶
func (a *StarExtend) String() string
type UnaryExtend ¶
func (*UnaryExtend) Attributes ¶
func (e *UnaryExtend) Attributes() []string
func (*UnaryExtend) Eq ¶
func (a *UnaryExtend) Eq(e Extend) bool
func (*UnaryExtend) ExtendAttributes ¶
func (e *UnaryExtend) ExtendAttributes() []*Attribute
func (*UnaryExtend) IsConstant ¶
func (_ *UnaryExtend) IsConstant() bool
func (*UnaryExtend) IsLogical ¶
func (e *UnaryExtend) IsLogical() bool
func (*UnaryExtend) ReturnType ¶
func (e *UnaryExtend) ReturnType() types.T
func (*UnaryExtend) String ¶
func (e *UnaryExtend) String() string
type UpdateExtend ¶
func (*UpdateExtend) Attributes ¶
func (_ *UpdateExtend) Attributes() []string
func (*UpdateExtend) Eq ¶
func (p *UpdateExtend) Eq(e Extend) bool
func (*UpdateExtend) IsConstant ¶
func (_ *UpdateExtend) IsConstant() bool
func (*UpdateExtend) IsLogical ¶
func (p *UpdateExtend) IsLogical() bool
func (*UpdateExtend) ReturnType ¶
func (p *UpdateExtend) ReturnType() types.T
func (*UpdateExtend) String ¶
func (p *UpdateExtend) String() string
type ValueExtend ¶
func (*ValueExtend) Attributes ¶
func (_ *ValueExtend) Attributes() []string
func (*ValueExtend) Eq ¶
func (a *ValueExtend) Eq(e Extend) bool
func (*ValueExtend) ExtendAttributes ¶
func (_ *ValueExtend) ExtendAttributes() []*Attribute
func (*ValueExtend) IsConstant ¶
func (_ *ValueExtend) IsConstant() bool
func (*ValueExtend) IsLogical ¶
func (a *ValueExtend) IsLogical() bool
func (*ValueExtend) ReturnType ¶
func (a *ValueExtend) ReturnType() types.T
func (*ValueExtend) String ¶
func (a *ValueExtend) String() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.