Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BtreeMap ¶
type BtreeMap struct {
// contains filtered or unexported fields
}
This map assumes mostly inserting increasing keys
func NewBtreeMap ¶
func NewBtreeMap() *BtreeMap
type CompactMap ¶
type CompactMap struct {
// contains filtered or unexported fields
}
This map assumes mostly inserting increasing keys This map assumes mostly inserting increasing keys
func NewCompactMap ¶
func NewCompactMap() *CompactMap
func (*CompactMap) Delete ¶
func (cm *CompactMap) Delete(key Key) uint32
func (*CompactMap) Get ¶
func (cm *CompactMap) Get(key Key) (*NeedleValue, bool)
func (*CompactMap) Set ¶
func (cm *CompactMap) Set(key Key, offset, size uint32) (oldOffset, oldSize uint32)
func (*CompactMap) Visit ¶
func (cm *CompactMap) Visit(visit func(NeedleValue) error) error
Visit visits all entries or stop if any error when visiting
type CompactSection ¶
func NewCompactSection ¶
func NewCompactSection(start Key) *CompactSection
func (*CompactSection) Delete ¶
func (cs *CompactSection) Delete(key Key) uint32
return old entry size
func (*CompactSection) Get ¶
func (cs *CompactSection) Get(key Key) (*NeedleValue, bool)
type NeedleValue ¶
type NeedleValueMap ¶
Click to show internal directories.
Click to hide internal directories.