leveldb

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2014 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCacheSize = 2
View Source
const DefaultWriteBufferSize = 20

Variables

This section is empty.

Functions

func CreateNewLevelDB

func CreateNewLevelDB(path string) bool

func GetPositionFromPrefix

func GetPositionFromPrefix(prefix []byte, dir string, ts *LevelDBTripleStore) int

Types

type LevelDBAllIterator

type LevelDBAllIterator struct {
	graph.BaseIterator
	// contains filtered or unexported fields
}

func NewLevelDBAllIterator

func NewLevelDBAllIterator(prefix, dir string, ts *LevelDBTripleStore) *LevelDBAllIterator

func (*LevelDBAllIterator) Check

func (a *LevelDBAllIterator) Check(v graph.TSVal) bool

func (*LevelDBAllIterator) Clone

func (a *LevelDBAllIterator) Clone() graph.Iterator

func (*LevelDBAllIterator) Close

func (lit *LevelDBAllIterator) Close()

func (*LevelDBAllIterator) DebugString

func (lit *LevelDBAllIterator) DebugString(indent int) string

func (*LevelDBAllIterator) GetStats

func (lit *LevelDBAllIterator) GetStats() *graph.IteratorStats

func (*LevelDBAllIterator) Next

func (a *LevelDBAllIterator) Next() (graph.TSVal, bool)

func (*LevelDBAllIterator) Optimize

func (lit *LevelDBAllIterator) Optimize() (graph.Iterator, bool)

func (*LevelDBAllIterator) Reset

func (a *LevelDBAllIterator) Reset()

func (*LevelDBAllIterator) Size

func (a *LevelDBAllIterator) Size() (int64, bool)

func (*LevelDBAllIterator) Sorted

func (lit *LevelDBAllIterator) Sorted() bool

func (*LevelDBAllIterator) Type

func (lit *LevelDBAllIterator) Type() string

type LevelDBIterator

type LevelDBIterator struct {
	graph.BaseIterator
	// contains filtered or unexported fields
}

func NewLevelDBIterator

func NewLevelDBIterator(prefix, dir string, value graph.TSVal, ts *LevelDBTripleStore) *LevelDBIterator

func (*LevelDBIterator) Check

func (lit *LevelDBIterator) Check(v graph.TSVal) bool

func (*LevelDBIterator) Clone

func (lit *LevelDBIterator) Clone() graph.Iterator

func (*LevelDBIterator) Close

func (lit *LevelDBIterator) Close()

func (*LevelDBIterator) DebugString

func (lit *LevelDBIterator) DebugString(indent int) string

func (*LevelDBIterator) GetStats

func (lit *LevelDBIterator) GetStats() *graph.IteratorStats

func (*LevelDBIterator) Next

func (lit *LevelDBIterator) Next() (graph.TSVal, bool)

func (*LevelDBIterator) Optimize

func (lit *LevelDBIterator) Optimize() (graph.Iterator, bool)

func (*LevelDBIterator) Reset

func (lit *LevelDBIterator) Reset()

func (*LevelDBIterator) Size

func (lit *LevelDBIterator) Size() (int64, bool)

func (*LevelDBIterator) Sorted

func (lit *LevelDBIterator) Sorted() bool

func (*LevelDBIterator) Type

func (lit *LevelDBIterator) Type() string

type LevelDBTripleStore

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

func NewDefaultLevelDBTripleStore

func NewDefaultLevelDBTripleStore(path string, options graph.OptionsDict) *LevelDBTripleStore

func (*LevelDBTripleStore) AddTriple

func (ts *LevelDBTripleStore) AddTriple(t *graph.Triple)

func (*LevelDBTripleStore) AddTripleSet

func (ts *LevelDBTripleStore) AddTripleSet(t_s []*graph.Triple)

func (*LevelDBTripleStore) Close

func (ldbts *LevelDBTripleStore) Close()

func (*LevelDBTripleStore) GetApproximateSizeForPrefix

func (ts *LevelDBTripleStore) GetApproximateSizeForPrefix(pre []byte) (int64, error)

func (*LevelDBTripleStore) GetIdFor

func (ts *LevelDBTripleStore) GetIdFor(s string) graph.TSVal

func (*LevelDBTripleStore) GetNameFor

func (ts *LevelDBTripleStore) GetNameFor(k graph.TSVal) string

func (*LevelDBTripleStore) GetNodesAllIterator

func (ts *LevelDBTripleStore) GetNodesAllIterator() graph.Iterator

func (*LevelDBTripleStore) GetSizeFor

func (ts *LevelDBTripleStore) GetSizeFor(k graph.TSVal) int64

func (*LevelDBTripleStore) GetStats

func (ts *LevelDBTripleStore) GetStats() string

func (*LevelDBTripleStore) GetTriple

func (ts *LevelDBTripleStore) GetTriple(k graph.TSVal) *graph.Triple

func (*LevelDBTripleStore) GetTripleDirection

func (ts *LevelDBTripleStore) GetTripleDirection(val graph.TSVal, direction string) graph.TSVal

func (*LevelDBTripleStore) GetTripleIterator

func (ts *LevelDBTripleStore) GetTripleIterator(dir string, val graph.TSVal) graph.Iterator

func (*LevelDBTripleStore) GetTriplesAllIterator

func (ts *LevelDBTripleStore) GetTriplesAllIterator() graph.Iterator

func (*LevelDBTripleStore) MakeFixed

func (ts *LevelDBTripleStore) MakeFixed() *graph.FixedIterator

func (*LevelDBTripleStore) OptimizeIterator

func (ts *LevelDBTripleStore) OptimizeIterator(it graph.Iterator) (graph.Iterator, bool)

func (*LevelDBTripleStore) RemoveTriple

func (ts *LevelDBTripleStore) RemoveTriple(t *graph.Triple)

func (*LevelDBTripleStore) Size

func (ts *LevelDBTripleStore) Size() int64

func (*LevelDBTripleStore) UpdateValueKeyBy

func (ts *LevelDBTripleStore) UpdateValueKeyBy(name string, amount int, batch *leveldb.Batch)

type ValueData

type ValueData struct {
	Name string
	Size int64
}

Jump to

Keyboard shortcuts

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