Documentation ¶
Index ¶
- type FileTable
- type FileTableScanner
- type LevelFileTable
- type MemTable
- type MemTableFlushCallback
- type MemTableOps
- type SSTableFlushEvent
- type SStableRef
- type SortedKVIterator
- type ThreadSafeMapMemTable
- func (m *ThreadSafeMapMemTable) Exists(key []byte) (ok bool, err error)
- func (m *ThreadSafeMapMemTable) Get(key []byte) (value []byte, ok bool, err error)
- func (m *ThreadSafeMapMemTable) Iterator() SortedKVIterator
- func (m *ThreadSafeMapMemTable) KeyCountEstimate() uint
- func (m *ThreadSafeMapMemTable) Put(key []byte, value []byte) error
- func (m *ThreadSafeMapMemTable) Remove(key []byte) (ok bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileTable ¶
type FileTable interface { BeginFlushing(table MemTable, withCallback MemTableFlushCallback) NewScanner() FileTableScanner }
type FileTableScanner ¶
type FileTableScanner interface { }
type LevelFileTable ¶
type LevelFileTable struct { TableRootDir string Level0 []*SStableRef Level1 []*SStableRef Level2 []*SStableRef }
Leveled SStables are stored in concurrent lists.
func NewSStableFileTable ¶
func NewSStableFileTable(tableRootDir string, logDir string) *LevelFileTable
func (*LevelFileTable) BeginFlushing ¶
func (t *LevelFileTable) BeginFlushing(table MemTable, withCallback MemTableFlushCallback)
Flushing Memtable to File Table creates a level 0 SSTable tablet
func (*LevelFileTable) CommitChangeToLockFile ¶
func (t *LevelFileTable) CommitChangeToLockFile(v interface{}) error
func (*LevelFileTable) NewScanner ¶
func (t *LevelFileTable) NewScanner() FileTableScanner
type MemTable ¶
type MemTable interface { MemTableOps KeyCountEstimate() uint Iterator() SortedKVIterator }
func NewMapMemTable ¶
type MemTableFlushCallback ¶
type MemTableOps ¶
type SSTableFlushEvent ¶
type SStableRef ¶
func NewSSTableRef ¶
func NewSSTableRef(level int) *SStableRef
type SortedKVIterator ¶
type ThreadSafeMapMemTable ¶
type ThreadSafeMapMemTable struct { maps.ThreadsafeMap MaxKeySize int MaxValueSize int }
func (*ThreadSafeMapMemTable) Exists ¶
func (m *ThreadSafeMapMemTable) Exists(key []byte) (ok bool, err error)
func (*ThreadSafeMapMemTable) Get ¶
func (m *ThreadSafeMapMemTable) Get(key []byte) (value []byte, ok bool, err error)
func (*ThreadSafeMapMemTable) Iterator ¶
func (m *ThreadSafeMapMemTable) Iterator() SortedKVIterator
func (*ThreadSafeMapMemTable) KeyCountEstimate ¶
func (m *ThreadSafeMapMemTable) KeyCountEstimate() uint
Click to show internal directories.
Click to hide internal directories.