executor

package
v0.0.0-...-6120cfb Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissChildPlan = errors.New("miss child plan")
)
View Source
var (
	ErrUnknownEvaluationResult = errors.New("unknown evaluation value")
)

Functions

func Execute

func Execute(executor Executor, ctx context.Context) (result []btuple.Modifier, ids []primitive.ObjectID, err error)

func NewExecutorBuilder

func NewExecutorBuilder(ctx session.Context) *executorBuilder

Types

type Executor

type Executor interface {
	Init()
	Next(ctx context.Context, tuple *btuple.Modifier, rid *primitive.ObjectID) (bool, error)
	Close() error
}

func NewConstExecutor

func NewConstExecutor(ctx session.Context, constPlan plan.ConstPlan) Executor

func NewDeleteExecutor

func NewDeleteExecutor(ctx session.Context, deletePlan plan.DeletePlan, child Executor) (Executor, error)

func NewIndexScanExecutor

func NewIndexScanExecutor(ctx session.Context, scanPlan plan.IndexScanPlan) (Executor, error)

func NewInsertExecutor

func NewInsertExecutor(ctx session.Context, insertPlan plan.InsertPlan, child Executor) (Executor, error)

func NewLimitExecutor

func NewLimitExecutor(ctx session.Context, limitPlan plan.LimitPlan, child Executor) Executor

func NewMultiIndexScanExecutor

func NewMultiIndexScanExecutor(ctx session.Context, scanPlan plan.MultiIndexScan, left, right Executor) (Executor, error)

func NewSchemaExec

func NewSchemaExec(ctx session.Context, plan plan.SchemaPlan) Executor

func NewSeqScanExecutor

func NewSeqScanExecutor(ctx session.Context, scanPlan plan.SeqScanPlan) (Executor, error)

func NewTableRowIdScanExecutor

func NewTableRowIdScanExecutor(ctx session.Context, plan *plan.TableRowIdScan, child Executor) (Executor, error)

func NewUpdateExecutor

func NewUpdateExecutor(ctx session.Context, updatePlan plan.UpdatePlan, child Executor) (Executor, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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