Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator iterates entries in the memtable in ascending key order. Close() must be called after use.
type Memtable ¶
type Memtable struct {
// contains filtered or unexported fields
}
Memtable is an in-memory sorted table of (key, timestamp) -> values. keys are sorted ascending, timestamps descending.
func (*Memtable) Find ¶
Find returns value of key at largest timestamp, which could be nil for a deletion marker.
func (*Memtable) Insert ¶
Insert inserts (key, timestamp, value) into the memtable. Requires that (key, timestamp) does not already exist.
func (*Memtable) NewIterator ¶
NewIterator creates an iterator for this memtable.
func (*Memtable) SequenceUpper ¶
SequenceUpper returns the largest sequence number applied.
Click to show internal directories.
Click to hide internal directories.