memtable

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("error: value not found")

Functions

This section is empty.

Types

type Memtable

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

func Open

func Open(base string) (*Memtable, error)

func (*Memtable) Close

func (m *Memtable) Close() error

func (*Memtable) Del

func (m *Memtable) Del(key string) (int64, error)

func (*Memtable) FlushToSSTableBatch

func (m *Memtable) FlushToSSTableBatch(batch *sstable.Batch)

func (*Memtable) Get

func (m *Memtable) Get(key string) ([]byte, error)

func (*Memtable) Put

func (m *Memtable) Put(key string, value []byte) (int64, error)

func (*Memtable) Reset

func (m *Memtable) Reset() error

func (*Memtable) Scan

func (m *Memtable) Scan(iter func(key string, value []byte) bool)

func (*Memtable) Size

func (m *Memtable) Size() int64

Jump to

Keyboard shortcuts

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