linhash

package
v0.0.0-...-2c8b24f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2015 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 (self *LinearHash) DefaultGet(key bs.ByteSlice, default_value bs.ByteSlice) (value bs.ByteSlice, err error)

func (*LinearHash) Get

func (self *LinearHash) Get(key bs.ByteSlice) (value bs.ByteSlice, err error)

func (*LinearHash) Has

func (self *LinearHash) Has(key bs.ByteSlice) (has bool, err error)

func (*LinearHash) Keys

func (self *LinearHash) Keys() (keys []bs.ByteSlice, err error)

func (*LinearHash) Length

func (self *LinearHash) Length() int

func (*LinearHash) Put

func (self *LinearHash) Put(key bs.ByteSlice, value bs.ByteSlice) (err error)

func (*LinearHash) Remove

func (self *LinearHash) Remove(key bs.ByteSlice) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL