deletion

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 15 Imported by: ? 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

View Source
const (
	RawRowIdBatch = iota
	// remember that, for one block,
	// when it sends the info to mergedeletes,
	// either it's Compaction or not.
	Compaction
	CNBlockOffset
	RawBatchOffset
	FlushDeltaLoc
)

3. RawRowIdBatch : belong to txn's snapshot data. 4. FlushDeltaLoc : belong to txn's snapshot data, which on S3 and pointed by delta location.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	Ts        uint64
	DeleteCtx *DeleteCtx

	// for delete filter below
	// mp[segmentName] = 1 => txnWorkSpace,mp[segmentName] = 2 => CN Block
	SegmentMap   map[string]int32
	RemoteDelete bool
	IBucket      uint32
	Nbucket      uint32
	// contains filtered or unexported fields
}

func (*Argument) AffectedRows

func (arg *Argument) AffectedRows() uint64

func (*Argument) AppendChild added in v1.1.0

func (arg *Argument) AppendChild(child vm.Operator)

func (*Argument) Call added in v1.1.0

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

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

func (*Argument) Free added in v0.6.0

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

delete from t1 using t1 join t2 on t1.a = t2.a;

func (*Argument) Prepare added in v1.1.0

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

func (*Argument) SetInfo added in v1.1.0

func (arg *Argument) SetInfo(info *vm.OperatorInfo)

func (*Argument) SplitBatch added in v0.8.0

func (arg *Argument) SplitBatch(proc *process.Process, srcBat *batch.Batch) error

func (*Argument) String added in v1.1.0

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

type BatchPool added in v0.8.0

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

type DeleteCtx added in v0.5.1

type DeleteCtx struct {
	CanTruncate           bool
	RowIdIdx              int               // The array index position of the rowid column
	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
	Source                engine.Relation
	Ref                   *plan.ObjectRef
	AddAffectedRows       bool
	PrimaryKeyIdx         int
}

Jump to

Keyboard shortcuts

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