Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 BuildOptions ¶
type BuildOptions struct {
LeafPrefixCompression bool
LeafColumnar bool
InternalBaseDelta bool
PackedValuePtr bool
LeafPageLog LeafPageAppender
}
type LeafPageAppender ¶ added in v0.4.0
LeafPageAppender persists leaf pages as value-log records and returns their pointers.
When BuildOptions.LeafPageLog is non-nil, BuildWithOptions writes leaf pages via this interface and returns LeafRef ids (encoded from the returned ValuePtr) in internal children and as the tree root when the height is 1.
Click to show internal directories.
Click to hide internal directories.