Documentation ¶
Index ¶
- Constants
- func CreateNewLevelDB(path string) bool
- func GetPositionFromPrefix(prefix []byte, dir string, ts *LevelDBTripleStore) int
- type LevelDBAllIterator
- func (a *LevelDBAllIterator) Check(v graph.TSVal) bool
- func (a *LevelDBAllIterator) Clone() graph.Iterator
- func (lit *LevelDBAllIterator) Close()
- func (lit *LevelDBAllIterator) DebugString(indent int) string
- func (lit *LevelDBAllIterator) GetStats() *graph.IteratorStats
- func (a *LevelDBAllIterator) Next() (graph.TSVal, bool)
- func (lit *LevelDBAllIterator) Optimize() (graph.Iterator, bool)
- func (a *LevelDBAllIterator) Reset()
- func (a *LevelDBAllIterator) Size() (int64, bool)
- func (lit *LevelDBAllIterator) Sorted() bool
- func (lit *LevelDBAllIterator) Type() string
- type LevelDBIterator
- func (lit *LevelDBIterator) Check(v graph.TSVal) bool
- func (lit *LevelDBIterator) Clone() graph.Iterator
- func (lit *LevelDBIterator) Close()
- func (lit *LevelDBIterator) DebugString(indent int) string
- func (lit *LevelDBIterator) GetStats() *graph.IteratorStats
- func (lit *LevelDBIterator) Next() (graph.TSVal, bool)
- func (lit *LevelDBIterator) Optimize() (graph.Iterator, bool)
- func (lit *LevelDBIterator) Reset()
- func (lit *LevelDBIterator) Size() (int64, bool)
- func (lit *LevelDBIterator) Sorted() bool
- func (lit *LevelDBIterator) Type() string
- type LevelDBTripleStore
- func (ts *LevelDBTripleStore) AddTriple(t *graph.Triple)
- func (ts *LevelDBTripleStore) AddTripleSet(t_s []*graph.Triple)
- func (ldbts *LevelDBTripleStore) Close()
- func (ts *LevelDBTripleStore) GetApproximateSizeForPrefix(pre []byte) (int64, error)
- func (ts *LevelDBTripleStore) GetIdFor(s string) graph.TSVal
- func (ts *LevelDBTripleStore) GetNameFor(k graph.TSVal) string
- func (ts *LevelDBTripleStore) GetNodesAllIterator() graph.Iterator
- func (ts *LevelDBTripleStore) GetSizeFor(k graph.TSVal) int64
- func (ts *LevelDBTripleStore) GetStats() string
- func (ts *LevelDBTripleStore) GetTriple(k graph.TSVal) *graph.Triple
- func (ts *LevelDBTripleStore) GetTripleDirection(val graph.TSVal, direction string) graph.TSVal
- func (ts *LevelDBTripleStore) GetTripleIterator(dir string, val graph.TSVal) graph.Iterator
- func (ts *LevelDBTripleStore) GetTriplesAllIterator() graph.Iterator
- func (ts *LevelDBTripleStore) MakeFixed() *graph.FixedIterator
- func (ts *LevelDBTripleStore) OptimizeIterator(it graph.Iterator) (graph.Iterator, bool)
- func (ts *LevelDBTripleStore) RemoveTriple(t *graph.Triple)
- func (ts *LevelDBTripleStore) Size() int64
- func (ts *LevelDBTripleStore) UpdateValueKeyBy(name string, amount int, batch *leveldb.Batch)
- type ValueData
Constants ¶
View Source
const DefaultCacheSize = 2
View Source
const DefaultWriteBufferSize = 20
Variables ¶
This section is empty.
Functions ¶
func CreateNewLevelDB ¶
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) 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) 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) 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) 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) 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 (*LevelDBTripleStore) GetTripleIterator ¶
func (*LevelDBTripleStore) GetTriplesAllIterator ¶
func (ts *LevelDBTripleStore) GetTriplesAllIterator() graph.Iterator
func (*LevelDBTripleStore) MakeFixed ¶
func (ts *LevelDBTripleStore) MakeFixed() *graph.FixedIterator
func (*LevelDBTripleStore) OptimizeIterator ¶
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)
Click to show internal directories.
Click to hide internal directories.