Documentation ¶
Index ¶
- Constants
- Variables
- type BlockIterator
- type Builder
- type Level
- func (l *Level) AddMemtable(mem *memtable.MemTable) (*SST, error)
- func (l *Level) Append(ssts []*SST)
- func (l *Level) Get(key []byte) ([]byte, bool)
- func (l *Level) GetDir() string
- func (l *Level) GetId() int
- func (l *Level) GetOldest() *SST
- func (l *Level) GetTables() []*SST
- func (l *Level) LoadTables(ssts []string) error
- func (l *Level) Remove(ssts []*SST)
- type SST
- type SSTableIter
- type SSTablesIter
Constants ¶
View Source
const ( // Maximum block size. When it reaches this size it will be flushed to disk BLOCK_SIZE uint64 = 4096 F_PREFIX = "data_block.bin" )
Variables ¶
View Source
var (
ErrNotFoundInBloom = errors.New("key not found in bloom filter")
)
Functions ¶
This section is empty.
Types ¶
type BlockIterator ¶
type BlockIterator struct {
// contains filtered or unexported fields
}
func NewBlockIterator ¶
func NewBlockIterator(blk *block) *BlockIterator
func (*BlockIterator) Key ¶
func (b *BlockIterator) Key() *common.InternalKey
func (*BlockIterator) Next ¶
func (b *BlockIterator) Next() (*common.InternalKey, []byte, error)
func (*BlockIterator) SeekToFirst ¶
func (b *BlockIterator) SeekToFirst() (*common.InternalKey, []byte, error)
func (*BlockIterator) Valid ¶
func (b *BlockIterator) Valid() bool
func (*BlockIterator) Value ¶
func (b *BlockIterator) Value() []byte
type Builder ¶
type Level ¶
type Level struct {
// contains filtered or unexported fields
}
func (*Level) LoadTables ¶
type SST ¶
type SST struct {
// contains filtered or unexported fields
}
func WriteMemTable ¶
func (*SST) GetFileSize ¶
func (*SST) GetTableMeta ¶
func (s *SST) GetTableMeta() *tableMeta
type SSTableIter ¶
type SSTableIter struct {
// contains filtered or unexported fields
}
func NewSSTableIter ¶
func NewSSTableIter(sst *SST) (*SSTableIter, error)
func (*SSTableIter) Key ¶
func (it *SSTableIter) Key() *common.InternalKey
func (*SSTableIter) Next ¶
func (it *SSTableIter) Next() (*common.InternalKey, []byte, error)
func (*SSTableIter) SeekToFirst ¶
func (it *SSTableIter) SeekToFirst() (*common.InternalKey, []byte, error)
func (*SSTableIter) Valid ¶
func (it *SSTableIter) Valid() bool
func (*SSTableIter) Value ¶
func (it *SSTableIter) Value() []byte
type SSTablesIter ¶
type SSTablesIter struct {
// contains filtered or unexported fields
}
func NewSSTablesIter ¶
func NewSSTablesIter(ssts ...*SST) (*SSTablesIter, error)
NewSSTablesIter iterates over multiple sstables without overlapping keys
func (*SSTablesIter) Key ¶
func (sit *SSTablesIter) Key() *common.InternalKey
func (*SSTablesIter) Next ¶
func (sit *SSTablesIter) Next() (*common.InternalKey, []byte, error)
func (*SSTablesIter) SeekToFirst ¶
func (sit *SSTablesIter) SeekToFirst() (*common.InternalKey, []byte, error)
func (*SSTablesIter) Valid ¶
func (sit *SSTablesIter) Valid() bool
func (*SSTablesIter) Value ¶
func (sit *SSTablesIter) Value() []byte
Click to show internal directories.
Click to hide internal directories.