Documentation
¶
Index ¶
- type LogSM
- type Option
- func WithDataBlockByteThreshold(threshold int) Option
- func WithL0TargetNum(num int) Option
- func WithLevelRatio(ratio int) Option
- func WithLogger(logger log.Logger) Option
- func WithMemTableSizeThreshold(threshold int) Option
- func WithProbability(probability float64) Option
- func WithSkipListMaxLevel(maxLevel int) Option
- type OptionFunc
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogSM ¶
type LogSM struct {
// contains filtered or unexported fields
}
LogSM defines the Log-Structured Merge Tree
type Option ¶
type Option interface {
Apply(*LogSM)
}
func WithDataBlockByteThreshold ¶
WithDataBlockByteThreshold sets the custom data block byte threshold
func WithL0TargetNum ¶
WithL0TargetNum sets a custom L0 target number
func WithLevelRatio ¶
WithLevelRatio sets a custom level ratio
func WithMemTableSizeThreshold ¶
WithMemTableSizeThreshold sets the custom MemTable size threshold
func WithProbability ¶
WithProbability sets the custom SkipList probability
func WithSkipListMaxLevel ¶
WithSkipListMaxLevel sets the custom SkipList max level
type OptionFunc ¶
type OptionFunc func(*LogSM)
OptionFunc implements the Option interface.
func (OptionFunc) Apply ¶
func (f OptionFunc) Apply(t *LogSM)
Click to show internal directories.
Click to hide internal directories.