batchskl

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExists = errors.New("record with this key already exists")

Functions

This section is empty.

Types

type Iterator

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

func (*Iterator) Close

func (it *Iterator) Close() error

func (*Iterator) First

func (it *Iterator) First() *base.InternalKey

func (*Iterator) Head

func (it *Iterator) Head() bool

func (*Iterator) Key

func (it *Iterator) Key() *base.InternalKey

func (*Iterator) KeyInfo

func (it *Iterator) KeyInfo() (offset, keyStart, keyEnd uint32)

func (*Iterator) Last

func (it *Iterator) Last() *base.InternalKey

func (*Iterator) Next

func (it *Iterator) Next() *base.InternalKey

func (*Iterator) Prev

func (it *Iterator) Prev() *base.InternalKey

func (*Iterator) SeekGE

func (it *Iterator) SeekGE(key []byte) *base.InternalKey

func (*Iterator) SeekLT

func (it *Iterator) SeekLT(key []byte) *base.InternalKey

func (*Iterator) SetBounds

func (it *Iterator) SetBounds(lower, upper []byte)

func (*Iterator) String

func (it *Iterator) String() string

func (*Iterator) Tail

func (it *Iterator) Tail() bool

func (*Iterator) Valid

func (it *Iterator) Valid() bool

type Skiplist

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

func NewSkiplist

func NewSkiplist(storage *[]byte, cmp base.Compare, abbreviatedKey base.AbbreviatedKey) *Skiplist

func (*Skiplist) Add

func (s *Skiplist) Add(keyOffset uint32) error

func (*Skiplist) Init

func (s *Skiplist) Init(storage *[]byte, cmp base.Compare, abbreviatedKey base.AbbreviatedKey)

func (*Skiplist) NewIter

func (s *Skiplist) NewIter(lower, upper []byte) Iterator

func (*Skiplist) Reset

func (s *Skiplist) Reset()

Jump to

Keyboard shortcuts

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