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: 0

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