Documentation ¶
Index ¶
- Variables
- type RocksDB
- func (db *RocksDB) Close()
- func (db *RocksDB) CompactRange(r gorocksdb.Range)
- func (db *RocksDB) DB() *gorocksdb.DB
- func (db *RocksDB) Delete(key []byte)
- func (db *RocksDB) DeleteSync(key []byte)
- func (db *RocksDB) Get(key []byte) []byte
- func (db *RocksDB) GetPruneTimestamp() uint64
- func (db *RocksDB) Has(key []byte) bool
- func (db *RocksDB) Iterator(start, end []byte) dbm.Iterator
- func (db *RocksDB) NewBatch() dbm.Batch
- func (db *RocksDB) Print()
- func (db *RocksDB) ReverseIterator(start, end []byte) dbm.Iterator
- func (db *RocksDB) Set(key []byte, value []byte)
- func (db *RocksDB) SetPruneTimestamp(t uint64)
- func (db *RocksDB) SetSync(key []byte, value []byte)
- func (db *RocksDB) Stats() map[string]string
- type TimestampCompactionFilter
Constants ¶
This section is empty.
Variables ¶
View Source
var PruneableKeys map[byte]struct{}
Functions ¶
This section is empty.
Types ¶
type RocksDB ¶
type RocksDB struct {
// contains filtered or unexported fields
}
func NewRocksDBWithOptions ¶
func (*RocksDB) CompactRange ¶
func (*RocksDB) GetPruneTimestamp ¶
func (*RocksDB) ReverseIterator ¶
func (*RocksDB) SetPruneTimestamp ¶
type TimestampCompactionFilter ¶
type TimestampCompactionFilter struct {
// contains filtered or unexported fields
}
We use rocksdb's customizable compact filter to prune old records
func (*TimestampCompactionFilter) Filter ¶
func (f *TimestampCompactionFilter) Filter(level int, key, val []byte) (remove bool, newVal []byte)
If the corresponding time is too early, we prune the record
func (*TimestampCompactionFilter) Name ¶
func (f *TimestampCompactionFilter) Name() string
Click to show internal directories.
Click to hide internal directories.