Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BTree ¶
type BTree struct {
// contains filtered or unexported fields
}
BTree 索引 主要封装了 google 的 btree kv
type Indexer ¶
type Indexer interface {
// Put 向索引中存储 key 对应的数据位置信息
Put(key []byte, pos *data.LogRecordPos) bool
// Get 根据 key 取出对应的索引位置信息
Get(key []byte) *data.LogRecordPos
// Delete 根据 key 删除对应的索引位置信息
Delete(key []byte) bool
}
Indexer 抽象索引接口,后续如果想要接入其它的数据结构,直接实现这个接口
func NewIndexer ¶
Click to show internal directories.
Click to hide internal directories.