Documentation ¶
Index ¶
- func NewKVStore(config config.LogDBConfig, callback kv.LogDBCallback, dir string, wal string, ...) (kv.IKVStore, error)
- type KV
- func (r *KV) BulkRemoveEntries(fk []byte, lk []byte) error
- func (r *KV) Close() error
- func (r *KV) CommitWriteBatch(wb kv.IWriteBatch) error
- func (r *KV) CompactEntries(fk []byte, lk []byte) error
- func (r *KV) DeleteValue(key []byte) error
- func (r *KV) FullCompaction() error
- func (r *KV) GetValue(key []byte, op func([]byte) error) error
- func (r *KV) GetWriteBatch() kv.IWriteBatch
- func (r *KV) IterateValue(fk []byte, lk []byte, inc bool, op func(key []byte, data []byte) (bool, error)) error
- func (r *KV) Name() string
- func (r *KV) SaveValue(key []byte, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKVStore ¶
func NewKVStore(config config.LogDBConfig, callback kv.LogDBCallback, dir string, wal string, fs vfs.IFS) (kv.IKVStore, error)
NewKVStore returns a RocksDB based IKVStore instance.
Types ¶
type KV ¶
type KV struct {
// contains filtered or unexported fields
}
KV is a RocksDB based IKVStore type.
func (*KV) BulkRemoveEntries ¶
BulkRemoveEntries returns the keys specified by the input range.
func (*KV) CommitWriteBatch ¶
func (r *KV) CommitWriteBatch(wb kv.IWriteBatch) error
CommitWriteBatch commits the write batch.
func (*KV) CompactEntries ¶
CompactEntries compacts the specified key range.
func (*KV) DeleteValue ¶
DeleteValue deletes the specified key value pair.
func (*KV) FullCompaction ¶
FullCompaction compacts the whole key space.
func (*KV) GetWriteBatch ¶
func (r *KV) GetWriteBatch() kv.IWriteBatch
GetWriteBatch returns a write batch instance.
Click to show internal directories.
Click to hide internal directories.