txnentries

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: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdCompactBlock int16 = 0x0200 + iota
	CmdMergeBlocks
)

Variables

This section is empty.

Functions

func NewCompactBlockEntry

func NewCompactBlockEntry(
	txn txnif.AsyncTxn,
	from, to handle.Block,
	scheduler tasks.TaskScheduler,
	sortIdx []uint32,
	deletes *roaring.Bitmap) *compactBlockEntry

func NewMergeBlocksEntry

func NewMergeBlocksEntry(
	txn txnif.AsyncTxn,
	relation handle.Relation,
	droppedSegs, createdSegs []*catalog.SegmentEntry,
	droppedBlks, createdBlks []*catalog.BlockEntry,
	mapping, fromAddr, toAddr []uint32,
	deletes []*roaring.Bitmap,
	skipBlks []int,
	scheduler tasks.TaskScheduler) *mergeBlocksEntry

func ReadBlkID

func ReadBlkID(r io.Reader, id *common.ID) (n int64, err error)

func ReadSegID

func ReadSegID(r io.Reader, id *common.ID) (n int64, err error)

func ReadUint32Array

func ReadUint32Array(r io.Reader) (array []uint32, n int64, err error)

func WriteBlkID

func WriteBlkID(w io.Writer, id *common.ID) (n int64, err error)

func WriteSegID

func WriteSegID(w io.Writer, id *common.ID) (n int64, err error)

func WriteUint32Array

func WriteUint32Array(w io.Writer, array []uint32) (n int64, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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