Documentation ¶
Index ¶
- Variables
- func HashEqualsMap(h *HashTable, m map[uint64]int) bool
- func StringHashEqualsMap(h *HashTable, m map[string]int) bool
- func Upper_power_of_two(v uint64) uint64
- func VDump(i interface{})
- func VPrintf(format string, a ...interface{})
- type Cell
- type HashTable
- func (t *HashTable) Clear()
- func (t *HashTable) Compact()
- func (t *HashTable) DeleteBK(bytekey []byte) bool
- func (t *HashTable) DeleteCell(cell *Cell)
- func (t *HashTable) DeleteKey(key uint64)
- func (t *HashTable) DeleteStringKey(strkey string) bool
- func (t *HashTable) DestroyHashTable()
- func (t *HashTable) DumpStringKey()
- func (t *HashTable) Insert(key uint64) (*Cell, bool)
- func (t *HashTable) InsertBK(bytekey []byte, value interface{}) bool
- func (t *HashTable) InsertIntValue(key uint64, value int) bool
- func (t *HashTable) InsertStringKey(strkey string, value interface{}) bool
- func (t *HashTable) Lookup(key uint64) *Cell
- func (t *HashTable) LookupBK(bytekey []byte) (interface{}, bool)
- func (t *HashTable) LookupStringKey(strkey string) (interface{}, bool)
- func (t *HashTable) Repopulate(desiredSize uint64)
- type Iterator
Constants ¶
This section is empty.
Variables ¶
View Source
var Verbose bool
Functions ¶
func HashEqualsMap ¶
compare for correctness checking
func Upper_power_of_two ¶
Types ¶
type HashTable ¶
type HashTable struct { Cells []Cell ArraySize uint64 Population uint64 ZeroUsed bool ZeroCell Cell }
func NewHashTable ¶
func (*HashTable) DeleteCell ¶
func (*HashTable) DeleteStringKey ¶
func (*HashTable) DestroyHashTable ¶
func (t *HashTable) DestroyHashTable()
func (*HashTable) DumpStringKey ¶
func (t *HashTable) DumpStringKey()
func (*HashTable) InsertStringKey ¶
func (*HashTable) LookupStringKey ¶
func (*HashTable) Repopulate ¶
Click to show internal directories.
Click to hide internal directories.