rocksdb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExistOrStore

func ExistOrStore(rocksdb *gorocksdb.DB, wb *gorocksdb.WriteBatch, key []byte) (bool, error)

func RocksDbBatchDelWithWB

func RocksDbBatchDelWithWB(wb *gorocksdb.WriteBatch, keyList [][]byte)

func RocksDbBatchWriteWithWB

func RocksDbBatchWriteWithWB(wb *gorocksdb.WriteBatch, objList IHashListBatchWrite, key func(hash types.Hash) []byte) error

func RocksDbIteratorLoad

func RocksDbIteratorLoad(rocksdb *gorocksdb.DB, keyPrefix []byte, handleBytes func(keyBytes, dataBytes []byte) error) error

func RocksDbLoadOneByPrefix

func RocksDbLoadOneByPrefix(rocksdb *gorocksdb.DB, keyPrefix []byte, handleBytes func(keyBytes, dataBytes []byte) (interface{}, error)) (interface{}, error)

func RocksDbNormalLoad

func RocksDbNormalLoad(rocksDb *gorocksdb.DB, key []byte, handle func(bytes []byte) error) error

func RocksDbNormalStore

func RocksDbNormalStore(rocksDb *gorocksdb.DB, key []byte, bytes func() ([]byte, error)) error

func RocksDbSafeGet

func RocksDbSafeGet(rocksdb *gorocksdb.DB, key []byte) ([]byte, error)

func RocksDbSafeGetWithReadOpt

func RocksDbSafeGetWithReadOpt(rocksdb *gorocksdb.DB, rOpts *gorocksdb.ReadOptions, key []byte) ([]byte, error)

func SafeHandleReaderKV

func SafeHandleReaderKV(key, value *gorocksdb.Slice, handleBytes func(keyBytes, dataBytes []byte) error) (bool, error)

Types

type IHashListBatchWrite

type IHashListBatchWrite interface {
	Obj(i int) interface{}
	Size() int
	Hash(i int) types.Hash
}

Jump to

Keyboard shortcuts

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