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 LeafPageAppender ¶ added in v0.4.0
type LeafPageAppender interface {
AppendLeafPage(leafPage []byte) (page.LeafLogPtr, error)
}
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 stores explicit leaf-log child references in the bottom internal level. The returned root is always a normal index page ID.
type LeafPageBatchAppender ¶ added in v0.6.0
type LeafPageBatchAppender interface {
AppendLeafPages(leafPages [][]byte) ([]page.LeafLogPtr, error)
}
Click to show internal directories.
Click to hide internal directories.