v0.6.2 Latest Latest

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

Go to latest
Published: Jul 18, 2022 License: BSD-3-Clause Imports: 5 Imported by: 1




View Source
const END = 0


This section is empty.


This section is empty.


type KV

type KV struct {
	// contains filtered or unexported fields

func (*KV) Key

func (self *KV) Key() Hashable

func (*KV) KeyEq

func (self *KV) KeyEq(key ByteSlice) bool

func (*KV) Value

func (self *KV) Value() interface{}

type TST

type TST struct {
	// contains filtered or unexported fields

func New

func New() *TST

func (*TST) Dotty

func (self *TST) Dotty() string

func (*TST) Get

func (self *TST) Get(key []byte) (value interface{}, err error)

func (*TST) Has

func (self *TST) Has(key []byte) bool

func (*TST) Items

func (self *TST) Items() (vi KIterator)

func (*TST) Iterate

func (self *TST) Iterate() KVIterator

func (*TST) Keys

func (self *TST) Keys() KIterator

func (*TST) PrefixFind

func (self *TST) PrefixFind(prefix ByteSlice) KVIterator

func (*TST) Put

func (self *TST) Put(key []byte, value interface{}) (err error)

func (*TST) Remove

func (self *TST) Remove(key []byte) (value interface{}, err error)

func (*TST) String

func (self *TST) String() string

func (*TST) ValidateKey

func (self *TST) ValidateKey(key []byte) error

func (*TST) Values

func (self *TST) Values() Iterator

type TSTNode

type TSTNode struct {
	// contains filtered or unexported fields

func NewAcceptingTSTNode

func NewAcceptingTSTNode(ch byte, key ByteSlice, value interface{}) *TSTNode

func NewTSTNode

func NewTSTNode(ch byte) *TSTNode

func (*TSTNode) ChildCount

func (self *TSTNode) ChildCount() int

func (*TSTNode) Children

func (self *TSTNode) Children() TreeNodeIterator

func (*TSTNode) Copy

func (self *TSTNode) Copy() *TSTNode

func (*TSTNode) GetChild

func (self *TSTNode) GetChild(i int) TreeNode

func (*TSTNode) Internal

func (self *TSTNode) Internal() bool

func (*TSTNode) String

func (self *TSTNode) String() string

Jump to

Keyboard shortcuts

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