Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenHashMurMur ¶
Types ¶
type LinearProbeHashTable ¶
type LinearProbeHashTable struct {
// contains filtered or unexported fields
}
Limitation: current implementation contain BlockArraySize(252) * 1020 = 257,040 record info at most
func NewLinearProbeHashTable ¶
func NewLinearProbeHashTable(bpm *buffer.BufferPoolManager, numBuckets int, headerPageId types.PageID) *LinearProbeHashTable
numBuckets should be less than 1020
func (*LinearProbeHashTable) GetHeaderPageId ¶
func (ht *LinearProbeHashTable) GetHeaderPageId() types.PageID
func (*LinearProbeHashTable) GetValue ¶
func (ht *LinearProbeHashTable) GetValue(key []byte) []uint64
func (*LinearProbeHashTable) Insert ¶
func (ht *LinearProbeHashTable) Insert(key []byte, value uint64) (err error)
func (*LinearProbeHashTable) Remove ¶
func (ht *LinearProbeHashTable) Remove(key []byte, value uint64)
Click to show internal directories.
Click to hide internal directories.