Documentation
¶
Index ¶
- Variables
- type BTree
- func (t *BTree) Delete(key []byte) error
- func (t *BTree) Find(key []byte) ([]byte, error)
- func (t *BTree) Insert(key, value []byte) error
- func (t *BTree) Print(withPointers bool) error
- func (t *BTree) PrintLeaves() error
- func (t *BTree) PrintLeavesBackwards() error
- func (t *BTree) Update(key, newValue []byte) error
- type BTreeNode
- type Record
Constants ¶
This section is empty.
Variables ¶
View Source
var INVALID_DATA_ERROR = errors.New("Invalid data")
View Source
var INVALID_KEY_ERROR = errors.New("Invalid key")
View Source
var INVALID_KEY_INDEX_ERROR = errors.New("Invalid key index")
View Source
var INVALID_KEY_SIZE_ERROR = errors.New("Invalid key size. All keys must have the same length")
View Source
var INVALID_POINTER_INDEX_ERROR = errors.New("Invalid pointer index")
View Source
var KEY_ALREADY_EXISTS_ERROR = errors.New("Key already exists")
View Source
var KEY_NOT_FOUND_ERROR = errors.New("Key not found")
View Source
var KEY_SIZE_TOO_LARGE = errors.New("The key size is too large.")
View Source
var TYPE_CONVERSION_ERROR = errors.New("Error while converting interface to type")
Functions ¶
This section is empty.
Types ¶
type BTree ¶
type BTree struct {
// contains filtered or unexported fields
}
func (*BTree) PrintLeavesBackwards ¶
Print the leaves of the tree in reverse, i.e. starting from the end to the beginning
Click to show internal directories.
Click to hide internal directories.