update

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: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(_ int, proc *process.Process, arg any) (bool, error)

the bool return value means whether it completed its work or not

func FilterBatch added in v0.6.0

func FilterBatch(bat *batch.Batch, batLen int, proc *process.Process) (*batch.Batch, uint64)

func Prepare

func Prepare(_ *process.Process, _ any) error

func String

func String(arg any, buf *bytes.Buffer)

Types

type Argument

type Argument struct {
	Ts           uint64
	AffectedRows uint64
	UpdateCtxs   []*UpdateCtx
	TableDefVec  []*plan.TableDef
	Engine       engine.Engine
	DB           []engine.Database
	TableID      []string
	DBName       []string
	TblName      []string
}

func (*Argument) Free added in v0.6.0

func (arg *Argument) Free(proc *process.Process, pipelineFailed bool)

type UpdateCtx added in v0.6.0

type UpdateCtx struct {
	PriKey      string
	PriKeyIdx   int32 // delete if -1
	HideKey     string
	HideKeyIdx  int32
	UpdateAttrs []string
	OtherAttrs  []string
	IndexAttrs  []string
	OrderAttrs  []string
	TableSource engine.Relation
	CPkeyColDef *plan.ColDef
	IndexTables []engine.Relation
	IndexInfos  []*plan.IndexInfo
}

Jump to

Keyboard shortcuts

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