leveldb

package
v0.0.0-...-5d1c7d3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIndexEngine

func NewIndexEngine(name string) (engine api.Finder)

func OpenIndexEngine

func OpenIndexEngine(name string) (engine api.Finder)

Types

type LevelDBEngine

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

FIXME try to use single leveldb object, rather than all the elements here

func Create

func Create(name string) (*LevelDBEngine, error)

func Open

func Open(name string) (*LevelDBEngine, error)

func (*LevelDBEngine) Close

func (ldb *LevelDBEngine) Close() error

func (*LevelDBEngine) CountRange

func (ldb *LevelDBEngine) CountRange(low api.Key, high api.Key, inclusion api.Inclusion) (
	uint64, error)

func (*LevelDBEngine) CountTotal

func (ldb *LevelDBEngine) CountTotal() (uint64, error)

api.Counter interface

func (*LevelDBEngine) DeleteMutation

func (ldb *LevelDBEngine) DeleteMutation(docid string) error

func (*LevelDBEngine) Destroy

func (ldb *LevelDBEngine) Destroy() error

func (*LevelDBEngine) Exists

func (ldb *LevelDBEngine) Exists(key api.Key) bool

api.Exister interface

func (*LevelDBEngine) GetBackIndexEntry

func (ldb *LevelDBEngine) GetBackIndexEntry(docid string) (api.Key, error)

func (*LevelDBEngine) GetKeySetForKeyRange

func (ldb *LevelDBEngine) GetKeySetForKeyRange(low api.Key, high api.Key,
	inclusion api.Inclusion, chkey chan api.Key, cherr chan error)

func (*LevelDBEngine) GetMeta

func (ldb *LevelDBEngine) GetMeta(metaid string) (string, error)

func (*LevelDBEngine) GetValueSetForKeyRange

func (ldb *LevelDBEngine) GetValueSetForKeyRange(low api.Key, high api.Key,
	inclusion api.Inclusion, chval chan api.Value, cherr chan error)

func (*LevelDBEngine) InsertMeta

func (ldb *LevelDBEngine) InsertMeta(metaid string, metavalue string) error

func (*LevelDBEngine) InsertMutation

func (ldb *LevelDBEngine) InsertMutation(k api.Key, v api.Value) error

func (*LevelDBEngine) KeyRange

func (ldb *LevelDBEngine) KeyRange(low, high api.Key, inclusion api.Inclusion) (
	chan api.Key, chan error, api.SortOrder)

api.Ranger FIXME add limit parameter

func (*LevelDBEngine) KeySet

func (ldb *LevelDBEngine) KeySet() (chan api.Key, chan error)

FIXME add limit parameter

func (*LevelDBEngine) Lookup

func (ldb *LevelDBEngine) Lookup(key api.Key) (chan api.Value, chan error)

api.Looker interface FIXME add limit parameter

func (*LevelDBEngine) Name

func (ldb *LevelDBEngine) Name() string

api.Finder interface

func (*LevelDBEngine) Trait

func (ldb *LevelDBEngine) Trait(operator interface{}) api.TraitInfo

func (*LevelDBEngine) ValueRange

func (ldb *LevelDBEngine) ValueRange(low, high api.Key, inclusion api.Inclusion) (
	chan api.Value, chan error, api.SortOrder)

FIXME add limit parameter

func (*LevelDBEngine) ValueSet

func (ldb *LevelDBEngine) ValueSet() (chan api.Value, chan error)

FIXME add limit parameter

Jump to

Keyboard shortcuts

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