Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppendLog ¶
type AppendLog struct {
// contains filtered or unexported fields
}
AppendLog 追加日志
func (*AppendLog) WriteString ¶
type BitArray ¶
type BitArray struct {
// contains filtered or unexported fields
}
BitArray refer https://developpaper.com/implementation-of-bit-array-in-golang/
type BloomFilter ¶
type BloomFilter struct {
// contains filtered or unexported fields
}
BloomFilter 布隆过滤器
func NewBloomFilter ¶
func NewBloomFilter(numItems int, falsePositivePob float64) *BloomFilter
NewBloomFilter 新建布隆过滤器
func (*BloomFilter) Add ¶
func (f *BloomFilter) Add(item string)
func (*BloomFilter) Check ¶
func (f *BloomFilter) Check(item string) bool
func (*BloomFilter) Pack ¶
func (f *BloomFilter) Pack() string
func (*BloomFilter) UnPack ¶
func (f *BloomFilter) UnPack(data string) error
type LineReader ¶
type LineReader struct {
// contains filtered or unexported fields
}
func NewLineReader ¶
func NewLineReader(path string, offset int64) (*LineReader, error)
func (*LineReader) Close ¶
func (r *LineReader) Close() error
func (*LineReader) ReadLine ¶
func (r *LineReader) ReadLine() (string, error)
func (*LineReader) ReadLineKV ¶
func (r *LineReader) ReadLineKV() (string, string, error)
type SizedMap ¶
type SizedMap struct {
// contains filtered or unexported fields
}
SizedMap map with size
func (*SizedMap) GetTotalSize ¶
GetTotalSize total size of kvs
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
Tree LSM tree(og structure tree)
Click to show internal directories.
Click to hide internal directories.