smallsm

package module
v0.0.0-...-cdd91be Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 11 Imported by: 0

README

smallsm

SmalLSM is a simple LSM implementation for discipline

See example/.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SmalLSM

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

func New

func New(dir string) (*SmalLSM, error)

func (*SmalLSM) Delete

func (lsm *SmalLSM) Delete(key string)

func (*SmalLSM) Get

func (lsm *SmalLSM) Get(key string) (string, bool)

func (*SmalLSM) MigrateToSSTable

func (lsm *SmalLSM) MigrateToSSTable() error

func (*SmalLSM) Put

func (lsm *SmalLSM) Put(key, value string)

type SmalMemTable

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

type SmalSSTable

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

func LoadSSTable

func LoadSSTable(dir, prefix string) (*SmalSSTable, error)

func (*SmalSSTable) Get

func (sst *SmalSSTable) Get(key string) (*slog.Log, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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