Documentation
¶
Index ¶
- Variables
- type KVS
- type KVSRocksDB
- func (r *KVSRocksDB) Count() (int64, error)
- func (r *KVSRocksDB) Delete(id etf.ErlTerm) error
- func (r *KVSRocksDB) Dir() ([]etf.ErlTerm, error)
- func (r *KVSRocksDB) Get(id etf.ErlTerm) (etf.ErlTerm, error)
- func (r *KVSRocksDB) Index(field etf.ErlTerm, value etf.ErlTerm) ([]etf.ErlTerm, error)
- func (r *KVSRocksDB) Put(id etf.ErlTerm, data etf.ErlTerm) error
- func (r *KVSRocksDB) Seq() (etf.ErlTerm, error)
- type RocksDB
- func (r *RocksDB) All(rec etf.ErlTerm) ([]etf.ErlTerm, error)
- func (r *RocksDB) Append(rec etf.ErlTerm, feed etf.ErlTerm) (etf.ErlTerm, error)
- func (r *RocksDB) Bot() (etf.ErlTerm, etf.ErlTerm, error)
- func (r *RocksDB) Close()
- func (r *RocksDB) Count() (int64, error)
- func (r *RocksDB) Cut(feed etf.ErlTerm) error
- func (r *RocksDB) Drop(startKey etf.ErlTerm, num int) error
- func (r *RocksDB) LoadReader(id etf.ErlTerm) (etf.ErlTerm, error)
- func (r *RocksDB) Next(startKey etf.ErlTerm) (etf.ErlTerm, etf.ErlTerm, error)
- func (r *RocksDB) Prev(startKey etf.ErlTerm) (etf.ErlTerm, etf.ErlTerm, error)
- func (r *RocksDB) Remove(key etf.ErlTerm) error
- func (r *RocksDB) SaveReader(id etf.ErlTerm, data etf.ErlTerm) error
- func (r *RocksDB) Take(startKey etf.ErlTerm, num int) (etf.Map, error)
- func (r *RocksDB) Top() (etf.ErlTerm, etf.ErlTerm, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UnknownError = errors.New("unknown error")
)
Functions ¶
This section is empty.
Types ¶
type KVSRocksDB ¶
type KVSRocksDB struct {
// contains filtered or unexported fields
}
func NewKVSRocksDB ¶
func NewKVSRocksDB(db *RocksDB) *KVSRocksDB
func (*KVSRocksDB) Count ¶
func (r *KVSRocksDB) Count() (int64, error)
type RocksDB ¶
type RocksDB struct {
// contains filtered or unexported fields
}
RocksDB represents a RocksDB instance and associated options
func NewRocksDB ¶
func NewRocksDB(db *grocksdb.DB, ro *grocksdb.ReadOptions, wo *grocksdb.WriteOptions) *RocksDB
func (*RocksDB) Append ¶
Append adds a record to the database if it doesn't already exist, otherwise returns the existing key
func (*RocksDB) LoadReader ¶
LoadReader loads a specific reader from the database using the given key
func (*RocksDB) SaveReader ¶
SaveReader saves a reader to the database with the specified key and value
Click to show internal directories.
Click to hide internal directories.