Documentation ¶
Index ¶
- type Store
- func (s *Store) Close()
- func (s *Store) Delete(k []byte) error
- func (s *Store) Get(key []byte) (*rdb.Slice, error)
- func (s *Store) GetStats() string
- func (s *Store) IndexFilterblockSize() uint64
- func (s *Store) MemtableSize() uint64
- func (s *Store) NewCheckpoint() (*rdb.Checkpoint, error)
- func (s *Store) NewIterator() *rdb.Iterator
- func (s *Store) NewSnapshot() *rdb.Snapshot
- func (s *Store) NewWriteBatch() *rdb.WriteBatch
- func (s *Store) SetOne(k []byte, val []byte) error
- func (s *Store) SetSnapshot(snapshot *rdb.Snapshot)
- func (s *Store) WriteBatch(wb *rdb.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 NewSyncStore ¶ added in v0.7.0
func (*Store) IndexFilterblockSize ¶ added in v0.4.3
IndexFilterblockSize returns the filter block size.
func (*Store) MemtableSize ¶ added in v0.4.3
Memtable returns the memtable size.
func (*Store) NewCheckpoint ¶ added in v0.7.0
func (s *Store) NewCheckpoint() (*rdb.Checkpoint, error)
NewCheckpoint creates new checkpoint from current store.
func (*Store) NewIterator ¶ added in v0.4.4
NewIterator initializes a new iterator and returns it.
func (*Store) NewSnapshot ¶ added in v0.7.0
NewSnapshot creates new snapshot from current store.
func (*Store) NewWriteBatch ¶ added in v0.4.4
func (s *Store) NewWriteBatch() *rdb.WriteBatch
NewWriteBatch creates a new WriteBatch object and returns a pointer to it.
func (*Store) SetSnapshot ¶ added in v0.7.0
SetSnapshot updates default read options to use the given snapshot.
func (*Store) WriteBatch ¶ added in v0.4.4
func (s *Store) WriteBatch(wb *rdb.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.