Documentation ¶
Index ¶
- Variables
- func NewKVStore(sPath string, cfg *dbconfig.Config, dataType btools.DataType, dbType int) (kv.IKVStore, error)
- type KV
- func (r *KV) AsyncFlush() (<-chan struct{}, error)
- func (r *KV) CacheInfo() string
- func (r *KV) Checkpoint(destDir string) error
- func (r *KV) Close() error
- func (r *KV) Compact(_ int)
- func (r *KV) DebugInfo() string
- func (r *KV) Delete(key []byte) error
- func (r *KV) Flush() error
- func (r *KV) Get(key []byte) ([]byte, error)
- func (r *KV) GetPools(key []byte) ([]byte, func(), error)
- func (r *KV) GetValue(key []byte) ([]byte, error)
- func (r *KV) GetWriteBatch() kv.IWriteBatch
- func (r *KV) Id() int
- func (r *KV) IsExist(key []byte) (bool, error)
- func (r *KV) IsNotFound(err error) bool
- func (r *KV) MGet(keys ...[]byte) ([][]byte, error)
- func (r *KV) MetricsInfo() kv.MetricsInfo
- func (r *KV) NewIter(o *kv.IteratorOptions) kv.IIterator
- func (r *KV) Set(key []byte, value []byte) error
- func (r *KV) SetAutoCompact(val bool)
- func (r *KV) SetCheckpointHighPriority(v bool)
- func (r *KV) SetCheckpointLock(v bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = bitalostable.ErrNotFound
Functions ¶
Types ¶
type KV ¶
type KV struct {
// contains filtered or unexported fields
}
func (*KV) AsyncFlush ¶
func (*KV) Checkpoint ¶
func (*KV) GetWriteBatch ¶
func (r *KV) GetWriteBatch() kv.IWriteBatch
func (*KV) IsNotFound ¶
func (*KV) MetricsInfo ¶
func (r *KV) MetricsInfo() kv.MetricsInfo
func (*KV) SetAutoCompact ¶
func (*KV) SetCheckpointHighPriority ¶
func (*KV) SetCheckpointLock ¶
Click to show internal directories.
Click to hide internal directories.