pebble

package
v3.3.102 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PebbleLogger pebbleLogger

PebbleLogger is the logger used by pebble

Functions

func NewKVStore

func NewKVStore(config config.LogDBConfig, callback kv.LogDBCallback,
	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() 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