Documentation ¶
Index ¶
- type Element
- type Indexer
- type Node
- type SkipList
- func (t *SkipList) Exist(key []byte) bool
- func (t *SkipList) FindPrefix(prefix []byte) *Element
- func (t *SkipList) Foreach(fun handleEle)
- func (t *SkipList) Front() *Element
- func (t *SkipList) Get(key []byte) *Element
- func (t *SkipList) Put(key []byte, value interface{}) *Element
- func (t *SkipList) Remove(key []byte) *Element
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element struct { Node // contains filtered or unexported fields }
Element 跳表存储元素定义
type SkipList ¶
SkipList 跳表定义
func (*SkipList) FindPrefix ¶
FindPrefix 找到第一个和前缀匹配的Element
func (*SkipList) Front ¶
Front get the head element
e := list.Front() for p := e; p!= nil; p = p.next() { ----- }
Click to show internal directories.
Click to hide internal directories.