Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTableMagicNumberWrong = errors.New("leveldb: corrupt table: wrong magic number")
Functions ¶
Types ¶
type BlockCache ¶
type BlockCache struct {
// contains filtered or unexported fields
}
func NewBlockCache ¶
func NewBlockCache(cap int) *BlockCache
func (*BlockCache) Evict ¶
func (c *BlockCache) Evict(fileNumber uint64)
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) Get ¶
func (c *Cache) Get(fileNumber uint64, fileSize uint64, ikey keys.InternalKey, opts *options.ReadOptions) ([]byte, error, bool)
func (*Cache) NewIterator ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func OpenTable ¶
func OpenTable(f file.ReadCloser, blocks *BlockCache, opts *options.Options, number, size uint64) (t *Table, err error)
func (*Table) Get ¶
func (t *Table) Get(ikey keys.InternalKey, opts *options.ReadOptions) ([]byte, error, bool)
func (*Table) NewIterator ¶
func (t *Table) NewIterator(opts *options.ReadOptions) iterator.Iterator
Source Files ¶
Click to show internal directories.
Click to hide internal directories.