Documentation
¶
Index ¶
Constants ¶
View Source
const ( B int = 1 KB int = 1024 MB int = 1024 * 1024 )
View Source
const ( CurrentPath = "./" DefaultLevel = 7 DefaultBlockSize = 4 DefaultTableSize = 2 DefaultLimitedFileNumOnL0 = 2 DefaultTableSizeOffset = 10 DefaultLevelOnSkiplist = 5 DefaultMembtableSize = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct {
// default directory path where placed files
Path string
// max level of files
// start level is 0
// the last level has unlimit number of files
Level int
// max block size on table
BlockSize int
// max L0 table size
TableSize int
// limited number of files on level
// key is level, value is limited number
// the last level has unlimit number of files
LimitedFilesNumOnL0 int
// offset of calculated table size whne inscrease level
// if tableSize value is 10Mb and tableSizeOffset value is 10,
// the Max L0 file size is 10Mb and L1 file size is 100Mb(10Mb * 10)
TableSizeOffset int
// max level value on skiplist
LevelOnSkipList int
// limited number of memtable
MemTableSize int
}
Click to show internal directories.
Click to hide internal directories.