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: encapsulate btree by Google, support concurrent write To use the methods provided by Google BTree, we need to implement Item interface in the Google BTree Library After we implement the Item interface, we need to implement the Indexer interface
type Indexer ¶
type Indexer interface {
Put(key []byte, pos *data.LogRecordPos) bool
Get(key []byte) *data.LogRecordPos
Delete(key []byte) bool
}
Click to show internal directories.
Click to hide internal directories.