memtable

package
v0.0.0-...-27a1e81 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memtable

type Memtable interface {
	Get(key string) (keyvalue.Value, bool)
	Insert(key string, value string)
	Delete(key string)
	Iterate() keyvalue.KeyValueIterator
	Size() int
}

func NewMemtable

func NewMemtable() Memtable

type Wal

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

func OpenWal

func OpenWal(dbDir string, journalName storage.Filename, mt Memtable) (*Wal, error)

func (*Wal) Close

func (mtj *Wal) Close() error

func (*Wal) Delete

func (mtj *Wal) Delete(key string) error

func (*Wal) Set

func (mtj *Wal) Set(key, value string) error

func (*Wal) Size

func (mtj *Wal) Size() uint64

Jump to

Keyboard shortcuts

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