bulk

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(iter iterator.UnsafeIterator, alloc Allocator, p *pager.Pager) (uint64, error)

Build creates a new B-Tree from a sorted iterator.

func BuildWithOptions

func BuildWithOptions(iter iterator.UnsafeIterator, alloc Allocator, p *pager.Pager, opts BuildOptions) (uint64, error)

BuildWithOptions creates a new B-Tree from a sorted iterator with custom options.

Types

type Allocator

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

type BuildOptions

type BuildOptions struct {
	LeafPrefixCompression bool
}

Jump to

Keyboard shortcuts

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