Documentation ¶
Index ¶
- Constants
- type Iterator
- type LevelDBStore
- func (self *LevelDBStore) BatchCommit() error
- func (self *LevelDBStore) BatchDelete(key []byte) error
- func (self *LevelDBStore) BatchPut(key []byte, value []byte) error
- func (self *LevelDBStore) Close() error
- func (self *LevelDBStore) Delete(key []byte) error
- func (self *LevelDBStore) Get(key []byte) ([]byte, error)
- func (self *LevelDBStore) NewBatch() error
- func (self *LevelDBStore) NewIterator(prefix []byte) IIterator
- func (self *LevelDBStore) Put(key []byte, value []byte) error
Constants ¶
View Source
const BITSPERKEY = 10
used to compute the size of bloom filter bits array . too small will lead to high false positive rate.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelDBStore ¶
type LevelDBStore struct {
// contains filtered or unexported fields
}
func NewLevelDBStore ¶
func NewLevelDBStore(file string) (*LevelDBStore, error)
func (*LevelDBStore) BatchCommit ¶
func (self *LevelDBStore) BatchCommit() error
func (*LevelDBStore) BatchDelete ¶
func (self *LevelDBStore) BatchDelete(key []byte) error
func (*LevelDBStore) Close ¶
func (self *LevelDBStore) Close() error
func (*LevelDBStore) Delete ¶
func (self *LevelDBStore) Delete(key []byte) error
func (*LevelDBStore) NewBatch ¶
func (self *LevelDBStore) NewBatch() error
func (*LevelDBStore) NewIterator ¶
func (self *LevelDBStore) NewIterator(prefix []byte) IIterator
Click to show internal directories.
Click to hide internal directories.