kv_bitable

package
v0.0.0-...-9b3b26b Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewKVStore

func NewKVStore(sPath string, cfg *dbconfig.Config,
	dataType btools.DataType, dbType int) (kv.IKVStore, error)

Types

type KV

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

func (*KV) AsyncFlush

func (r *KV) AsyncFlush() (<-chan struct{}, error)

func (*KV) CacheInfo

func (r *KV) CacheInfo() string

func (*KV) Checkpoint

func (r *KV) Checkpoint(destDir string) error

func (*KV) Close

func (r *KV) Close() error

func (*KV) Compact

func (r *KV) Compact(_ int)

func (*KV) DebugInfo

func (r *KV) DebugInfo() string

func (*KV) Delete

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

func (*KV) Flush

func (r *KV) Flush() error

func (*KV) Get

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

func (*KV) GetPools

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

func (*KV) GetValue

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

func (*KV) GetWriteBatch

func (r *KV) GetWriteBatch() kv.IWriteBatch

func (*KV) Id

func (r *KV) Id() int

func (*KV) IsExist

func (r *KV) IsExist(key []byte) (bool, error)

func (*KV) IsNotFound

func (r *KV) IsNotFound(err error) bool

func (*KV) MGet

func (r *KV) MGet(keys ...[]byte) ([][]byte, error)

func (*KV) MetricsInfo

func (r *KV) MetricsInfo() kv.MetricsInfo

func (*KV) NewIter

func (r *KV) NewIter(o *kv.IteratorOptions) kv.IIterator

func (*KV) Set

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

func (*KV) SetAutoCompact

func (r *KV) SetAutoCompact(val bool)

func (*KV) SetCheckpointHighPriority

func (r *KV) SetCheckpointHighPriority(v bool)

func (*KV) SetCheckpointLock

func (r *KV) SetCheckpointLock(v bool)

Jump to

Keyboard shortcuts

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