memtable

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 10 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 struct {
	// contains filtered or unexported fields
}

func New

func New(dir string, maxLevel int, probability float64) (*MemTable, error)

func (*MemTable) All

func (mt *MemTable) All() []*internalpb.Entry

func (*MemTable) Freeze

func (mt *MemTable) Freeze()

func (*MemTable) Get

func (mt *MemTable) Get(key types.Key) (*internalpb.Entry, bool)

func (*MemTable) Recover

func (mt *MemTable) Recover() error

func (*MemTable) Reset

func (mt *MemTable) Reset() *MemTable

func (*MemTable) Scan

func (mt *MemTable) Scan(start, end types.Key) []*internalpb.Entry

func (*MemTable) Set

func (mt *MemTable) Set(entry *internalpb.Entry) error

func (*MemTable) Size

func (mt *MemTable) Size() int

func (*MemTable) Wal

func (mt *MemTable) Wal() *wal.WAL

Wal returns the memtable WAL

Jump to

Keyboard shortcuts

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