skl

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MaxSkipNodeSize = int(unsafe.Sizeof(skipNode{}))

Variables

This section is empty.

Functions

func AssertTrue

func AssertTrue(b bool)

func AssertTruef

func AssertTruef(b bool, format string, args ...interface{})

Types

type Arena

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

func NewArena

func NewArena(n int64) *Arena

func (*Arena) AllocateNode

func (a *Arena) AllocateNode(height int) uint32

func (*Arena) PutKey

func (a *Arena) PutKey(key []byte) uint32

func (*Arena) PutVal

func (a *Arena) PutVal(val model.ValueExt) uint32

type SkipList

type SkipList struct {
	OnClose func()
	// contains filtered or unexported fields
}

func NewSkipList

func NewSkipList(arenaSize int64) *SkipList

func (*SkipList) DecrRef

func (skipList *SkipList) DecrRef()

func (*SkipList) Draw

func (skipList *SkipList) Draw(align bool)

func (*SkipList) Empty

func (skipList *SkipList) Empty() bool

func (*SkipList) Get

func (skipList *SkipList) Get(userKeyTs []byte) model.ValueExt

func (*SkipList) GetMemSize

func (skipList *SkipList) GetMemSize() int64

func (*SkipList) IncrRef

func (skipList *SkipList) IncrRef()

func (*SkipList) NewSkipListIterator

func (skipList *SkipList) NewSkipListIterator(name string) model.Iterator

func (*SkipList) Put

func (skipList *SkipList) Put(e model.Entry)

type SkipListIterator

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

func (*SkipListIterator) Close

func (s *SkipListIterator) Close() error

func (*SkipListIterator) Item

func (s *SkipListIterator) Item() model.Item

func (*SkipListIterator) Key

func (s *SkipListIterator) Key() []byte

func (*SkipListIterator) Name

func (s *SkipListIterator) Name() string

func (*SkipListIterator) Next

func (s *SkipListIterator) Next()

func (*SkipListIterator) Prev

func (s *SkipListIterator) Prev()

func (*SkipListIterator) Rewind

func (s *SkipListIterator) Rewind()

func (*SkipListIterator) Seek

func (s *SkipListIterator) Seek(key []byte)

func (*SkipListIterator) SeekForPrev

func (s *SkipListIterator) SeekForPrev(target []byte)

func (*SkipListIterator) SeekToFirst

func (s *SkipListIterator) SeekToFirst()

func (*SkipListIterator) SeekToLast

func (s *SkipListIterator) SeekToLast()

func (*SkipListIterator) Valid

func (s *SkipListIterator) Valid() bool

func (*SkipListIterator) Value

func (s *SkipListIterator) Value() model.ValueExt

func (*SkipListIterator) ValueUint64

func (s *SkipListIterator) ValueUint64() uint64

Jump to

Keyboard shortcuts

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