B_tree

package
v0.0.0-...-de9bdf8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNode

func NewNode(order int, parent *node) (*node, error)

Types

type BTree

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

func New

func New(order int) (*BTree, error)

func (*BTree) Delete

func (b *BTree) Delete(key []byte) error

func (*BTree) Insert

func (b *BTree) Insert(key []byte) error

func (*BTree) Search

func (b *BTree) Search(key []byte) ([]byte, bool)

func (*BTree) Visualize

func (b *BTree) Visualize() string

type Inodes

type Inodes []inode

func (*Inodes) InsertAt

func (i *Inodes) InsertAt(idx int, value []byte)

func (*Inodes) RemoveAt

func (i *Inodes) RemoveAt(idx int)

type Pnodes

type Pnodes []*node

func (*Pnodes) InsertAt

func (i *Pnodes) InsertAt(idx int, value *node)

func (*Pnodes) RemoveAt

func (i *Pnodes) RemoveAt(idx int)

Jump to

Keyboard shortcuts

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