btree

package module
v0.0.0-...-2c0b5ba Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

B-tree

Build Status

This package provides a experimental B-tree implementation.

See (http://godoc.org/github.com/droxer/btree) for documentation.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BTree

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

func New

func New(degree int) *BTree

func (*BTree) Delete

func (b *BTree) Delete(key Item) Item

func (*BTree) Get

func (b *BTree) Get(key Item) Item

func (*BTree) Insert

func (b *BTree) Insert(item Item) bool

func (*BTree) Print

func (b *BTree) Print(w io.Writer)

type Item

type Item interface {
	Less(other Item) bool
}

Item represents a single object in the tree.

Jump to

Keyboard shortcuts

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