leveldb

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCacheSize       = 2
	DefaultWriteBufferSize = 20
	QuadStoreType          = "leveldb1"
)

Variables

This section is empty.

Functions

func PositionOf added in v0.3.1

func PositionOf(prefix []byte, d quad.Direction, qs *QuadStore) int

Types

type AllIterator added in v0.3.1

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

func NewAllIterator added in v0.3.1

func NewAllIterator(prefix string, d quad.Direction, qs *QuadStore) *AllIterator

func (*AllIterator) Clone added in v0.3.1

func (it *AllIterator) Clone() graph.Iterator

func (*AllIterator) Close added in v0.3.1

func (it *AllIterator) Close() error

func (*AllIterator) Contains added in v0.3.1

func (it *AllIterator) Contains(ctx context.Context, v graph.Value) bool

func (*AllIterator) Err added in v0.4.1

func (it *AllIterator) Err() error

func (*AllIterator) Next added in v0.3.1

func (it *AllIterator) Next(ctx context.Context) bool

func (*AllIterator) NextPath added in v0.4.0

func (it *AllIterator) NextPath(ctx context.Context) bool

func (*AllIterator) Optimize added in v0.3.1

func (it *AllIterator) Optimize() (graph.Iterator, bool)

func (*AllIterator) Reset added in v0.3.1

func (it *AllIterator) Reset()

func (*AllIterator) Result added in v0.3.1

func (it *AllIterator) Result() graph.Value

func (*AllIterator) Size added in v0.3.1

func (it *AllIterator) Size() (int64, bool)

func (*AllIterator) Sorted added in v0.3.1

func (it *AllIterator) Sorted() bool

func (*AllIterator) Stats added in v0.3.1

func (it *AllIterator) Stats() graph.IteratorStats

func (*AllIterator) String added in v0.7.0

func (it *AllIterator) String() string

func (*AllIterator) SubIterators added in v0.3.1

func (it *AllIterator) SubIterators() []graph.Iterator

No subiterators.

func (*AllIterator) TagResults added in v0.3.1

func (it *AllIterator) TagResults(dst map[string]graph.Value)

func (*AllIterator) Tagger added in v0.3.1

func (it *AllIterator) Tagger() *graph.Tagger

func (*AllIterator) Type added in v0.3.1

func (it *AllIterator) Type() graph.Type

func (*AllIterator) UID added in v0.3.1

func (it *AllIterator) UID() uint64

type Iterator added in v0.3.1

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

func NewIterator added in v0.3.1

func NewIterator(prefix string, d quad.Direction, value graph.Value, qs *QuadStore) *Iterator

func (*Iterator) Clone added in v0.3.1

func (it *Iterator) Clone() graph.Iterator

func (*Iterator) Close added in v0.3.1

func (it *Iterator) Close() error

func (*Iterator) Contains added in v0.3.1

func (it *Iterator) Contains(ctx context.Context, v graph.Value) bool

func (*Iterator) Err added in v0.4.1

func (it *Iterator) Err() error

func (*Iterator) Next added in v0.3.1

func (it *Iterator) Next(ctx context.Context) bool

func (*Iterator) NextPath added in v0.4.0

func (it *Iterator) NextPath(ctx context.Context) bool

func (*Iterator) Optimize added in v0.3.1

func (it *Iterator) Optimize() (graph.Iterator, bool)

func (*Iterator) Reset added in v0.3.1

func (it *Iterator) Reset()

func (*Iterator) Result added in v0.3.1

func (it *Iterator) Result() graph.Value

func (*Iterator) Size added in v0.3.1

func (it *Iterator) Size() (int64, bool)

func (*Iterator) Sorted added in v0.3.1

func (it *Iterator) Sorted() bool

func (*Iterator) Stats added in v0.3.1

func (it *Iterator) Stats() graph.IteratorStats

func (*Iterator) String added in v0.7.0

func (it *Iterator) String() string

func (*Iterator) SubIterators added in v0.3.1

func (it *Iterator) SubIterators() []graph.Iterator

No subiterators.

func (*Iterator) TagResults added in v0.3.1

func (it *Iterator) TagResults(dst map[string]graph.Value)

func (*Iterator) Tagger added in v0.3.1

func (it *Iterator) Tagger() *graph.Tagger

func (*Iterator) Type added in v0.3.1

func (it *Iterator) Type() graph.Type

func (*Iterator) UID added in v0.3.1

func (it *Iterator) UID() uint64

type QuadStore added in v0.4.1

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

func (*QuadStore) ApplyDeltas added in v0.4.1

func (qs *QuadStore) ApplyDeltas(deltas []graph.Delta, ignoreOpts graph.IgnoreOpts) error

func (*QuadStore) Close added in v0.4.1

func (qs *QuadStore) Close() error

func (*QuadStore) GetStats added in v0.4.1

func (qs *QuadStore) GetStats() string

func (*QuadStore) NameOf added in v0.4.1

func (qs *QuadStore) NameOf(k graph.Value) quad.Value

func (*QuadStore) NodesAllIterator added in v0.4.1

func (qs *QuadStore) NodesAllIterator() graph.Iterator

func (*QuadStore) OptimizeIterator added in v0.4.1

func (qs *QuadStore) OptimizeIterator(it graph.Iterator) (graph.Iterator, bool)

func (*QuadStore) Quad added in v0.4.1

func (qs *QuadStore) Quad(k graph.Value) quad.Quad

func (*QuadStore) QuadDirection added in v0.4.1

func (qs *QuadStore) QuadDirection(val graph.Value, d quad.Direction) graph.Value

func (*QuadStore) QuadIterator added in v0.4.1

func (qs *QuadStore) QuadIterator(d quad.Direction, val graph.Value) graph.Iterator

func (*QuadStore) QuadsAllIterator added in v0.4.1

func (qs *QuadStore) QuadsAllIterator() graph.Iterator

func (*QuadStore) Size added in v0.4.1

func (qs *QuadStore) Size() int64

func (*QuadStore) SizeOf added in v0.4.1

func (qs *QuadStore) SizeOf(k graph.Value) int64

func (*QuadStore) SizeOfPrefix added in v0.4.1

func (qs *QuadStore) SizeOfPrefix(pre []byte) (int64, error)

func (*QuadStore) UpdateValueKeyBy added in v0.4.1

func (qs *QuadStore) UpdateValueKeyBy(name quad.Value, amount int64, batch *leveldb.Batch) error

func (*QuadStore) ValueOf added in v0.4.1

func (qs *QuadStore) ValueOf(s quad.Value) graph.Value

type Token added in v0.4.0

type Token []byte

func (Token) IsNode added in v0.6.0

func (t Token) IsNode() bool

func (Token) Key added in v0.4.0

func (t Token) Key() interface{}

Jump to

Keyboard shortcuts

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