Documentation ¶
Index ¶
- Constants
- type LinearHash
- func (self *LinearHash) Close() error
- func (self *LinearHash) DefaultGet(key bs.ByteSlice, default_value bs.ByteSlice) (value bs.ByteSlice, err error)
- func (self *LinearHash) Get(key bs.ByteSlice) (value bs.ByteSlice, err error)
- func (self *LinearHash) Has(key bs.ByteSlice) (has bool, err error)
- func (self *LinearHash) Keys() (keys []bs.ByteSlice, err error)
- func (self *LinearHash) Length() int
- func (self *LinearHash) Put(key bs.ByteSlice, value bs.ByteSlice) (err error)
- func (self *LinearHash) Remove(key bs.ByteSlice) (err error)
Constants ¶
View Source
const CONTROLSIZE = 21
View Source
const HASHSIZE = 8
View Source
const UTILIZATION = .9
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinearHash ¶
type LinearHash struct {
// contains filtered or unexported fields
}
func NewLinearHash ¶
func NewLinearHash(file file.BlockDevice, kv bucket.KVStore) (self *LinearHash, err error)
func OpenLinearHash ¶
func OpenLinearHash(file file.BlockDevice, kv bucket.KVStore) (self *LinearHash, err error)
func (*LinearHash) Close ¶
func (self *LinearHash) Close() error
func (*LinearHash) DefaultGet ¶
func (*LinearHash) Length ¶
func (self *LinearHash) Length() int
Click to show internal directories.
Click to hide internal directories.