insert

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	ToWriteS3 bool // mark if this insert's target is S3 or not.
	InsertCtx *InsertCtx

	vm.OperatorBase
	// contains filtered or unexported fields
}

func NewArgument added in v1.2.0

func NewArgument() *Argument

func (*Argument) AffectedRows added in v0.8.0

func (arg *Argument) AffectedRows() uint64

func (*Argument) Call added in v1.1.0

func (arg *Argument) Call(proc *process.Process) (vm.CallResult, error)

first parameter: true represents whether the current pipeline has ended first parameter: false

func (*Argument) Free added in v0.6.0

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

The Argument for insert data directly to s3 can not be free when this function called as some datastructure still needed. therefore, those argument in remote CN will be free in connector operator, and local argument will be free in mergeBlock operator

func (*Argument) GetAffectedRows added in v0.8.0

func (arg *Argument) GetAffectedRows() *uint64

func (*Argument) GetOperatorBase added in v1.2.0

func (arg *Argument) GetOperatorBase() *vm.OperatorBase

func (*Argument) Prepare added in v1.1.0

func (arg *Argument) Prepare(proc *process.Process) error

func (*Argument) Release added in v1.2.0

func (arg *Argument) Release()

func (*Argument) String added in v1.1.0

func (arg *Argument) String(buf *bytes.Buffer)

func (Argument) TypeName added in v1.2.0

func (arg Argument) TypeName() string

type InsertCtx added in v0.7.0

type InsertCtx struct {
	// insert data into Rel.
	Rel                   engine.Relation
	Ref                   *plan.ObjectRef
	AddAffectedRows       bool // for hidden table, should not update affect Rows
	Attrs                 []string
	PartitionTableIDs     []uint64          // Align array index with the partition number
	PartitionTableNames   []string          // Align array index with the partition number
	PartitionIndexInBatch int               // The array index position of the partition expression column
	PartitionSources      []engine.Relation // Align array index with the partition number
	TableDef              *plan.TableDef
}

Jump to

Keyboard shortcuts

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