memtable

package
v0.0.0-...-c07913e Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RollingMemtable

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

RollingMemtable contains the dataset in memory It is flushed to disk at regular interval

func NewRollingMemtable

func NewRollingMemtable() RollingMemtable

NewRollingMemtable create a new rollingMemtable

func (*RollingMemtable) FlushActive

func (m *RollingMemtable) FlushActive()

FlushActive add the active memtable and add it to the flush queue

func (*RollingMemtable) Get

func (m *RollingMemtable) Get(key string) (mvcc.Element, bool)

Get a key from the memtables

func (*RollingMemtable) Set

func (m *RollingMemtable) Set(elem mvcc.Element) bool

Set a key to the active memtable

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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