Documentation ¶
Index ¶
- type Store
- func (s *Store) Close()
- func (s *Store) Delete(k []byte) error
- func (s *Store) Get(key []byte) (val []byte, rerr error)
- func (s *Store) IndexFilterblockSize() uint64
- func (s *Store) MemtableSize() uint64
- func (s *Store) NewIterator() *rocksdb.Iterator
- func (s *Store) NewWriteBatch() *rocksdb.WriteBatch
- func (s *Store) SetOne(k []byte, val []byte) error
- func (s *Store) WriteBatch(wb *rocksdb.WriteBatch) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store contains some handles to RocksDB.
func NewReadOnlyStore ¶ added in v0.4.4
NewReadOnlyStore constructs a readonly Store object at filepath, given options.
func (*Store) IndexFilterblockSize ¶ added in v0.4.3
func (*Store) MemtableSize ¶ added in v0.4.3
func (*Store) NewIterator ¶ added in v0.4.4
NewIterator initializes a new iterator and returns it.
func (*Store) NewWriteBatch ¶ added in v0.4.4
func (s *Store) NewWriteBatch() *rocksdb.WriteBatch
NewWriteBatch creates a new WriteBatch object and returns a pointer to it.
func (*Store) WriteBatch ¶ added in v0.4.4
func (s *Store) WriteBatch(wb *rocksdb.WriteBatch) error
WriteBatch does a batch write to RocksDB from the data in WriteBatch object.
Click to show internal directories.
Click to hide internal directories.