bplus

package
v0.0.0-...-a65b463 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultOrder = 46

Variables

This section is empty.

Functions

This section is empty.

Types

type Leaf

type Leaf[K cmp.Ordered, V any] struct {
	Keys   []K
	Values []V

	Prev *Leaf[K, V]
	Next *Leaf[K, V]
}

type Node

type Node[K cmp.Ordered] struct {
	Keys       []K
	Children   []Page
	ChildPage0 Page
}

type Page

type Page interface{}

type PathItem

type PathItem[K cmp.Ordered] struct {
	Node  *Node[K]
	Index int
}

type Tree

type Tree[K cmp.Ordered, V any] struct {
	Root Page

	Order int

	SearchPath []PathItem[K]
	// contains filtered or unexported fields
}

func (*Tree[K, V]) Begin

func (t *Tree[K, V]) Begin() *Leaf[K, V]

func (*Tree[K, V]) Clear

func (t *Tree[K, V]) Clear()

func (*Tree[K, V]) Del

func (t *Tree[K, V]) Del(key K)

func (*Tree[K, V]) End

func (t *Tree[K, V]) End() *Leaf[K, V]

func (*Tree[K, V]) Get

func (t *Tree[K, V]) Get(key K) V

func (*Tree[K, V]) Has

func (t *Tree[K, V]) Has(key K) bool

func (*Tree[K, V]) Rbegin

func (t *Tree[K, V]) Rbegin() *Leaf[K, V]

func (*Tree[K, V]) Rend

func (t *Tree[K, V]) Rend() *Leaf[K, V]

func (*Tree[K, V]) Set

func (t *Tree[K, V]) Set(key K, value V)

func (Tree[K, V]) String

func (t Tree[K, V]) String() string

Jump to

Keyboard shortcuts

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