pebble

package
v3.2.7-0...-70c9be9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKVStore

func NewKVStore(dir string, wal string, fs vfs.IFS) (kv.IKVStore, error)

NewKVStore returns a pebble based IKVStore instance.

Types

type KV

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

KV is a pebble based IKVStore type.

func (*KV) BulkRemoveEntries

func (r *KV) BulkRemoveEntries(fk []byte, lk []byte) error

BulkRemoveEntries ...

func (*KV) Close

func (r *KV) Close() error

Close closes the RDB object.

func (*KV) CommitWriteBatch

func (r *KV) CommitWriteBatch(wb kv.IWriteBatch) error

CommitWriteBatch ...

func (*KV) CompactEntries

func (r *KV) CompactEntries(fk []byte, lk []byte) error

CompactEntries ...

func (*KV) DeleteValue

func (r *KV) DeleteValue(key []byte) error

DeleteValue ...

func (*KV) FullCompaction

func (r *KV) FullCompaction() error

FullCompaction ...

func (*KV) GetValue

func (r *KV) GetValue(key []byte, op func([]byte) error) (err error)

GetValue ...

func (*KV) GetWriteBatch

func (r *KV) GetWriteBatch(ctx raftio.IContext) kv.IWriteBatch

GetWriteBatch ...

func (*KV) IterateValue

func (r *KV) IterateValue(fk []byte, lk []byte, inc bool,
	op func(key []byte, data []byte) (bool, error)) error

IterateValue ...

func (*KV) Name

func (r *KV) Name() string

Name returns the IKVStore type name.

func (*KV) SaveValue

func (r *KV) SaveValue(key []byte, value []byte) error

SaveValue ...

Jump to

Keyboard shortcuts

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