Documentation
¶
Index ¶
Constants ¶
View Source
const ( ValueSize = 13 HashSize = 20 )
View Source
const (
BTreePageFileIndex = "index"
)
View Source
const DefaultFillPercent = 0.5
DefaultFillPercent is the percentage that split pages are filled. This value can be changed by setting Bucket.FillPercent.
Variables ¶
View Source
var ( // ErrorKeyNotFound 错误定义 ErrorKeyNotFound = errors.New("key not found") )
Functions ¶
Types ¶
type BTree ¶
type BTree struct {
// contains filtered or unexported fields
}
func (*BTree) EnableCompress ¶
type Batch ¶
type Batch interface { Put(key []byte, value []byte) error Get(key []byte) ([]byte, error) Delete(key []byte) error Size() int Dump() KVS }
Batch BTree Put Buffer
type MetaMgr ¶
type MetaMgr struct {
// contains filtered or unexported fields
}
func NewMetaMgr ¶
type PageMgr ¶
type PageMgr struct {
// contains filtered or unexported fields
}
type SkipList ¶
type SkipList struct {
// contains filtered or unexported fields
}
func NewSkipList ¶
func NewSkipList() *SkipList
Source Files
¶
Click to show internal directories.
Click to hide internal directories.