Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdaptiveRadixTree ¶
type AdaptiveRadixTree struct {
// contains filtered or unexported fields
}
func NewAdaptiveRadixTree ¶
func NewAdaptiveRadixTree() *AdaptiveRadixTree
func (*AdaptiveRadixTree) Count ¶
func (a *AdaptiveRadixTree) Count() int
func (*AdaptiveRadixTree) Del ¶
func (a *AdaptiveRadixTree) Del(key []byte) bool
func (*AdaptiveRadixTree) Iterator ¶
func (a *AdaptiveRadixTree) Iterator(reverse bool) Iterator
type HashMap ¶
type HashMap struct {
// contains filtered or unexported fields
}
func NewHashMap ¶
func NewHashMap() *HashMap
type HashMapIterator ¶
type HashMapIterator struct {
// contains filtered or unexported fields
}
func (*HashMapIterator) Close ¶
func (hi *HashMapIterator) Close()
func (*HashMapIterator) Key ¶
func (hi *HashMapIterator) Key() []byte
func (*HashMapIterator) Next ¶
func (hi *HashMapIterator) Next()
func (*HashMapIterator) Rewind ¶
func (hi *HashMapIterator) Rewind()
func (*HashMapIterator) Seek ¶
func (hi *HashMapIterator) Seek(key []byte) bool
func (*HashMapIterator) Valid ¶
func (hi *HashMapIterator) Valid() bool
func (*HashMapIterator) Value ¶
func (hi *HashMapIterator) Value() *data.LogPos
type Iterator ¶
type Iterator interface { Rewind() Seek(key []byte) bool Next() Valid() bool Key() []byte Value() *data.LogPos Close() }
Iterator Generic index iterator interface
type MemTable ¶
type MemTable interface { // Put Stores the Pos information for key pairs in the index Put(key []byte, pos *data.LogPos) bool // Get Retrieve the Pos information based on the key Get(key []byte) *data.LogPos // Del Delete the Pos information based on the key Del(key []byte) bool // Iterator Index iterator Iterator(reverse bool) Iterator // Count get the num of all the data Count() int }
func NewMemTable ¶
func NewMemTable(typ MemTableType) MemTable
Click to show internal directories.
Click to hide internal directories.