zipper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageAllocator

type PageAllocator interface {
	Alloc(hint uint64) (uint64, error)
}

type Split

type Split struct {
	Key    []byte
	NodeID uint64
}

type Zipper

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

func New

func New(p *pager.Pager, a PageAllocator) *Zipper

func (*Zipper) Apply

func (z *Zipper) Apply(rootID uint64, b *batch.Batch) (uint64, []uint64, adaptive.Metrics, error)

Apply applies the batch to the tree rooted at rootID. Returns the new root page ID, list of retired pages, and commit metrics.

func (*Zipper) CloneWithAllocator

func (z *Zipper) CloneWithAllocator(a PageAllocator) *Zipper

CloneWithAllocator returns a zipper that shares config/pager with z but uses the provided allocator.

func (*Zipper) SetFillTargets

func (z *Zipper) SetFillTargets(leafPPM, internalPPM uint32)

SetFillTargets configures soft-full thresholds for newly written pages. Targets are in parts-per-million where 1_000_000 means "allow full pages".

func (*Zipper) SetIndexColumnarLeaves added in v0.2.0

func (z *Zipper) SetIndexColumnarLeaves(enabled bool)

func (*Zipper) SetIndexInternalBaseDelta added in v0.2.0

func (z *Zipper) SetIndexInternalBaseDelta(enabled bool)

func (*Zipper) SetLeafPrefixCompression

func (z *Zipper) SetLeafPrefixCompression(enabled bool)

func (*Zipper) SetPiggybackCompaction

func (z *Zipper) SetPiggybackCompaction(enabled bool)

Jump to

Keyboard shortcuts

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