Documentation ¶
Index ¶
- Variables
- type Memtable
- func (mt *Memtable) Close() error
- func (mt *Memtable) CloseAndRemove() error
- func (mt *Memtable) Del(k string) error
- func (mt *Memtable) Get(k string) (*binary.Entry, error)
- func (mt *Memtable) GetConfig() *MemtableConfig
- func (mt *Memtable) Has(k string) bool
- func (mt *Memtable) Len() int
- func (mt *Memtable) Put(e *binary.Entry) error
- func (mt *Memtable) PutBatch(batch *binary.Batch) error
- func (mt *Memtable) Reset() error
- func (mt *Memtable) ResetWorksWithTimer() error
- func (mt *Memtable) Scan(iter func(me rbtree.RBEntry) bool)
- func (mt *Memtable) ShouldFlush() bool
- func (mt *Memtable) Size() int64
- func (mt *Memtable) Sync() error
- type MemtableConfig
- type MemtableEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFlushThreshold = errors.New("memtable: flush threshold has been reached") ErrKeyNotFound = errors.New("memtable: key not found") ErrFoundTombstone = errors.New("memtable: found tombstone; entry was deleted") )
View Source
var Tombstone = []byte(nil)
Functions ¶
This section is empty.
Types ¶
type Memtable ¶
type Memtable struct {
// contains filtered or unexported fields
}
func OpenMemtable ¶
func OpenMemtable(c *MemtableConfig) (*Memtable, error)
func (*Memtable) CloseAndRemove ¶
func (*Memtable) GetConfig ¶
func (mt *Memtable) GetConfig() *MemtableConfig
func (*Memtable) ResetWorksWithTimer ¶
func (*Memtable) ShouldFlush ¶
type MemtableConfig ¶
type MemtableEntry ¶
type MemtableEntry = memtableEntry
Click to show internal directories.
Click to hide internal directories.