txnentries

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IOET_WALTxnCommand_Compact        uint16 = 3006
	IOET_WALTxnCommand_Merge          uint16 = 3007
	IOET_WALTxnCommand_FlushTableTail uint16 = 3014

	IOET_WALTxnCommand_Compact_V1        uint16 = 1
	IOET_WALTxnCommand_Merge_V1          uint16 = 1
	IOET_WALTxnCommand_FlashTableTail_V1 uint16 = 1

	IOET_WALTxnCommand_Compact_CurrVer        = IOET_WALTxnCommand_Compact_V1
	IOET_WALTxnCommand_Merge_CurrVer          = IOET_WALTxnCommand_Merge_V1
	IOET_WALTxnCommand_FlushTableTail_CurrVer = IOET_WALTxnCommand_FlashTableTail_V1
)

Variables

This section is empty.

Functions

func NewCompactBlockEntry

func NewCompactBlockEntry(
	txn txnif.AsyncTxn,
	from, to handle.Block,
	sortIdx []int32,
	deletes *nulls.Bitmap,
	rt *dbutils.Runtime,
) *compactBlockEntry

func NewFlushTableTailEntry added in v1.0.0

func NewFlushTableTailEntry(
	txn txnif.AsyncTxn,
	taskID uint64,
	mapping *BlkTransferBooking,
	tableEntry *catalog.TableEntry,
	ablksMetas []*catalog.BlockEntry,
	nblksMetas []*catalog.BlockEntry,
	ablksHandles []handle.Block,
	nblksHandles []handle.Block,
	createdBlkHandles []handle.Block,
	createdDeletesFile string,
	createdMergeFile string,
	dirtyLen int,
	rt *dbutils.Runtime,
	dirtyEndTs types.TS,
) *flushTableTailEntry

func NewMergeBlocksEntry

func NewMergeBlocksEntry(
	txn txnif.AsyncTxn,
	relation handle.Relation,
	droppedSegs, createdSegs []*catalog.SegmentEntry,
	droppedBlks, createdBlks []*catalog.BlockEntry,
	transMappings *BlkTransferBooking,
	mapping, fromAddr, toAddr []uint32,
	deletes []*nulls.Bitmap,
	skipBlks []int,
	rt *dbutils.Runtime,
) *mergeBlocksEntry

Types

type BlkTransferBooking added in v1.0.0

type BlkTransferBooking struct {
	// row in the deleted blk -> row in the created blk
	Mappings []map[int]DestPos
}

func NewBlkTransferBooking added in v1.0.0

func NewBlkTransferBooking(size int) *BlkTransferBooking

func (*BlkTransferBooking) AddSortPhaseMapping added in v1.0.0

func (b *BlkTransferBooking) AddSortPhaseMapping(idx int, originRowCnt int, deletes *nulls.Nulls, mapping []int32)

func (*BlkTransferBooking) Clean added in v1.0.0

func (b *BlkTransferBooking) Clean()

func (*BlkTransferBooking) UpdateMappingAfterMerge added in v1.0.0

func (b *BlkTransferBooking) UpdateMappingAfterMerge(mapping, fromLayout, toLayout []uint32)

type DestPos added in v1.0.0

type DestPos struct {
	Idx int // idx of the created blk
	Row int // destination row number
}

Jump to

Keyboard shortcuts

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