Documentation
¶
Index ¶
- Variables
- type Pair
- type Tree
- func (t *Tree) Delete(key, value []byte) bool
- func (t *Tree) EncodeNodePages() (TreePageHeader, [][]byte, error)
- func (t *Tree) Get(key []byte) [][]byte
- func (t *Tree) Insert(key, value []byte) bool
- func (t *Tree) Len() int
- func (t *Tree) MarshalBinary() ([]byte, error)
- func (t *Tree) Scan(start, end []byte, includeEnd bool) []Pair
- type TreePageHeader
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCorrupt = errors.New("meldbase index: corrupt tree")
Functions ¶
This section is empty.
Types ¶
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
func DecodeNodePages ¶
func DecodeNodePages(header TreePageHeader, encoded [][]byte) (*Tree, error)
func NewWithOrder ¶
func (*Tree) EncodeNodePages ¶
func (t *Tree) EncodeNodePages() (TreePageHeader, [][]byte, error)
EncodeNodePages returns one independently addressable blob per logical B+Tree node. Child and leaf-next links are stable node ordinals resolved by the checkpoint catalog.
func (*Tree) MarshalBinary ¶
MarshalBinary persists the actual node topology. It does not flatten the tree to entries and rebuild it on open.
type TreePageHeader ¶
Click to show internal directories.
Click to hide internal directories.