db

package
v2.1.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMergedIterator

func NewMergedIterator(iters []interfaces.StorageIterator, isDelete func([]byte) bool) interfaces.StorageIterator

Types

type MemDB

type MemDB struct {
	// contains filtered or unexported fields
}

func NewMemDB

func NewMemDB() *MemDB

func (*MemDB) Delete

func (mDb *MemDB) Delete(key []byte)

func (*MemDB) GetDb

func (mDb *MemDB) GetDb() *memdb.DB

func (*MemDB) GetSeq

func (mDb *MemDB) GetSeq() uint64

func (*MemDB) Len

func (mDb *MemDB) Len() int

func (*MemDB) Put

func (mDb *MemDB) Put(key, value []byte)

func (*MemDB) Size

func (mDb *MemDB) Size() int

type MergedIterator

type MergedIterator struct {
	// contains filtered or unexported fields
}

func (*MergedIterator) Error

func (mi *MergedIterator) Error() error

func (*MergedIterator) Key

func (mi *MergedIterator) Key() []byte

func (*MergedIterator) Last

func (mi *MergedIterator) Last() bool

func (*MergedIterator) Next

func (mi *MergedIterator) Next() bool

func (*MergedIterator) Prev

func (mi *MergedIterator) Prev() bool

func (*MergedIterator) Release

func (mi *MergedIterator) Release()

func (*MergedIterator) Seek

func (mi *MergedIterator) Seek(seeKey []byte) bool

TODO

func (*MergedIterator) Value

func (mi *MergedIterator) Value() []byte

Directories

Path Synopsis
Package leveldb provides implementation of LevelDB key/value database.
Package leveldb provides implementation of LevelDB key/value database.
cache
Package cache provides interface and implementation of a cache algorithms.
Package cache provides interface and implementation of a cache algorithms.
comparer
Package comparer provides interface and implementation for ordering sets of data.
Package comparer provides interface and implementation for ordering sets of data.
errors
Package errors provides common error types used throughout leveldb.
Package errors provides common error types used throughout leveldb.
filter
Package filter provides interface and implementation of probabilistic data structure.
Package filter provides interface and implementation of probabilistic data structure.
iterator
Package iterator provides interface and implementation to traverse over contents of a database.
Package iterator provides interface and implementation to traverse over contents of a database.
journal
Package journal reads and writes sequences of journals.
Package journal reads and writes sequences of journals.
memdb
Package memdb provides in-memory key/value database implementation.
Package memdb provides in-memory key/value database implementation.
opt
Package opt provides sets of options used by LevelDB.
Package opt provides sets of options used by LevelDB.
storage
Package storage provides storage abstraction for LevelDB.
Package storage provides storage abstraction for LevelDB.
table
Package table allows read and write sorted key/value.
Package table allows read and write sorted key/value.
util
Package util provides utilities used throughout leveldb.
Package util provides utilities used throughout leveldb.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL