colexec

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AUTO_INCR_TABLE = "%!%mo_increment_columns"
View Source
var AUTO_INCR_TABLE_COLNAME []string = []string{catalog.Row_ID, "name", "offset", "step"}

Functions

func CommitTxn added in v0.6.0

func CommitTxn(eg engine.Engine, txn client.TxnOperator, ctx context.Context) error

func CreateAutoIncrCol added in v0.6.0

func CreateAutoIncrCol(eg engine.Engine, ctx context.Context, db engine.Database, proc *process.Process, cols []*plan.ColDef, dbName, tblName string) error

for create table operation, add col in mo_increment_columns table

func CreateAutoIncrTable added in v0.6.0

func CreateAutoIncrTable(e engine.Engine, ctx context.Context, proc *process.Process, dbName string) error

for create database operation, add col in mo_increment_columns table

func DeleteAutoIncrCol added in v0.6.0

func DeleteAutoIncrCol(eg engine.Engine, ctx context.Context, rel engine.Relation, proc *process.Process, dbName, tableID string) error

for delete table operation, delete col in mo_increment_columns table

func EvalExpr

func EvalExpr(bat *batch.Batch, proc *process.Process, expr *plan.Expr) (*vector.Vector, error)

func EvalExprByZonemapBat added in v0.6.0

func EvalExprByZonemapBat(bat *batch.Batch, proc *process.Process, expr *plan.Expr) (*vector.Vector, error)

func GetDeleteBatch added in v0.6.0

func GetDeleteBatch(rel engine.Relation, ctx context.Context, colName string, mp *mpool.MPool) (*batch.Batch, uint64)

func GetNewRelation added in v0.6.0

func GetNewRelation(eg engine.Engine, dbName, tbleName string, txn client.TxnOperator, ctx context.Context) (engine.Relation, error)

func JoinFilterEvalExpr

func JoinFilterEvalExpr(r, s *batch.Batch, rRow int, proc *process.Process, expr *plan.Expr) (*vector.Vector, error)

func JoinFilterEvalExprInBucket added in v0.6.0

func JoinFilterEvalExprInBucket(r, s *batch.Batch, rRow, sRow int, proc *process.Process, expr *plan.Expr) (*vector.Vector, error)

func MoveAutoIncrCol added in v0.6.0

func MoveAutoIncrCol(eg engine.Engine, ctx context.Context, tblName string, db engine.Database, proc *process.Process, oldTableID, dbName string) error

for delete table operation, move old col as new col in mo_increment_columns table

func NewTxn added in v0.6.0

func NewTxn(eg engine.Engine, proc *process.Process, ctx context.Context) (txn client.TxnOperator, err error)

func ResetAutoInsrCol added in v0.6.0

func ResetAutoInsrCol(eg engine.Engine, ctx context.Context, tblName string, db engine.Database, proc *process.Process, tableID, dbName string) error

for truncate table operation, reset col in mo_increment_columns table

func RewriteFilterExprList

func RewriteFilterExprList(list []*plan.Expr) *plan.Expr

RewriteFilterExprList will convert an expression list to be an AndExpr

func RolllbackTxn added in v0.6.0

func RolllbackTxn(eg engine.Engine, txn client.TxnOperator, ctx context.Context) error

func SplitAndExprs added in v0.6.0

func SplitAndExprs(list []*plan.Expr) []*plan.Expr

func UpdateInsertBatch added in v0.6.0

func UpdateInsertBatch(e engine.Engine, ctx context.Context, proc *process.Process, ColDefs []*plan.ColDef, bat *batch.Batch, tableID, dbName, tblName string) error

func UpdateInsertValueBatch added in v0.6.0

func UpdateInsertValueBatch(e engine.Engine, ctx context.Context, proc *process.Process, p *plan.InsertValues, bat *batch.Batch, dbName, tblName string) error

Types

type AutoIncrParam added in v0.6.0

type AutoIncrParam struct {
	// contains filtered or unexported fields
}

type ResultPos added in v0.6.0

type ResultPos struct {
	Rel int32
	Pos int32
}

func NewResultPos added in v0.6.0

func NewResultPos(rel int32, pos int32) ResultPos

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL