db

package
v2.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: May 22, 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.

Jump to

Keyboard shortcuts

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