Documentation ¶
Index ¶
- Constants
- Variables
- type ColExpr
- func (e *ColExpr) Dup() Expr
- func (e *ColExpr) Eval(bats []*batch.Batch, proc *process.Process) (*vector.Vector, error)
- func (e *ColExpr) IterateAllColExpr(fn func(uint32, uint32) (uint32, uint32))
- func (e *ColExpr) ResultType() types.Type
- func (e *ColExpr) Specialize(proc *process.Process) error
- func (e *ColExpr) SplitBy(_ uint32) []Expr
- func (e *ColExpr) String() string
- type ConstExpr
- func (e *ConstExpr) ConstValue() constant.Value
- func (e *ConstExpr) Dup() Expr
- func (e *ConstExpr) Eval(_ []*batch.Batch, proc *process.Process) (*vector.Vector, error)
- func (e *ConstExpr) IterateAllColExpr(fn func(uint32, uint32) (uint32, uint32))
- func (e *ConstExpr) ResultType() types.Type
- func (e *ConstExpr) Specialize(proc *process.Process) error
- func (e *ConstExpr) SplitBy(_ uint32) []Expr
- func (e *ConstExpr) String() string
- type Expr
- type FuncExpr
- func (e *FuncExpr) Dup() Expr
- func (e *FuncExpr) Eval(bats []*batch.Batch, proc *process.Process) (*vector.Vector, error)
- func (e *FuncExpr) IterateAllColExpr(fn func(uint32, uint32) (uint32, uint32))
- func (e *FuncExpr) ResultType() types.Type
- func (e *FuncExpr) Specialize(proc *process.Process) error
- func (e *FuncExpr) SplitBy(op uint32) []Expr
- func (e *FuncExpr) String() string
Constants ¶
View Source
const ( NORMAL = iota AGGREGATE )
View Source
const ( Not = iota Or And Plus Minus Mult Div Mod Replace Typecast RegexpMatch RegexpExtract EQ LT LE GT GE NE IN ISNULL ISNOTNULL Sum Avg Min Max Count )
Variables ¶
View Source
var ErrDivByZero = errors.New("division by zero")
View Source
var ErrModByZero = errors.New("division by zero")
View Source
var NameOp = map[string]int{ "not": Not, "or": Or, "and": And, "+": Plus, "-": Minus, "*": Mult, "/": Div, "%": Mod, "cast": Typecast, "replace": Replace, "regexp_match": RegexpMatch, "regexp_extract": RegexpExtract, "=": EQ, "<": LT, "<=": LE, ">": GT, ">=": GE, "<>": NE, "in": IN, "isnull": ISNULL, "isnotnull": ISNOTNULL, "sum": Sum, "avg": Avg, "min": Min, "max": Max, "count": Count, }
View Source
var OpName = map[int]string{ Not: "not", Or: "or", And: "and", Plus: "+", Minus: "-", Mult: "*", Div: "/", Mod: "%", Replace: "replace", Typecast: "cast", RegexpMatch: "regexp_match", RegexpExtract: "regexp_extract", EQ: "=", LT: "<", LE: "<=", GT: ">", GE: ">=", NE: "<>", IN: "in", ISNULL: "isnull", ISNOTNULL: "isnotnull", Sum: "sum", Avg: "avg", Min: "min", Max: "max", Count: "count", }
Functions ¶
This section is empty.
Types ¶
type ColExpr ¶
type ColExpr struct {
// contains filtered or unexported fields
}
func (*ColExpr) IterateAllColExpr ¶
func (*ColExpr) ResultType ¶
type ConstExpr ¶
type ConstExpr struct {
// contains filtered or unexported fields
}
func (*ConstExpr) ConstValue ¶
func (*ConstExpr) IterateAllColExpr ¶
func (*ConstExpr) ResultType ¶
type Expr ¶
type Expr interface { Dup() Expr String() string ResultType() types.Type Specialize(*process.Process) error Eval([]*batch.Batch, *process.Process) (*vector.Vector, error) // iterate through all expr IterateAllColExpr(func(uint32, uint32) (uint32, uint32)) // slice the expression according to a specific function SplitBy(uint32) []Expr }
type FuncExpr ¶
type FuncExpr struct {
// contains filtered or unexported fields
}
func (*FuncExpr) IterateAllColExpr ¶
func (*FuncExpr) ResultType ¶
Click to show internal directories.
Click to hide internal directories.