Documentation ¶
Index ¶
- Constants
- func PositionOf(prefix []byte, d quad.Direction, qs *QuadStore) int
- func Type() graph.Type
- type AllIterator
- func (it *AllIterator) Clone() graph.Iterator
- func (it *AllIterator) Close() error
- func (it *AllIterator) Contains(v graph.Value) bool
- func (it *AllIterator) Describe() graph.Description
- func (it *AllIterator) Err() error
- func (it *AllIterator) Next() bool
- func (it *AllIterator) NextPath() bool
- func (it *AllIterator) Optimize() (graph.Iterator, bool)
- func (it *AllIterator) Reset()
- func (it *AllIterator) Result() graph.Value
- func (it *AllIterator) Size() (int64, bool)
- func (it *AllIterator) Sorted() bool
- func (it *AllIterator) Stats() graph.IteratorStats
- func (it *AllIterator) SubIterators() []graph.Iterator
- func (it *AllIterator) TagResults(dst map[string]graph.Value)
- func (it *AllIterator) Tagger() *graph.Tagger
- func (it *AllIterator) Type() graph.Type
- func (it *AllIterator) UID() uint64
- type Iterator
- func (it *Iterator) Clone() graph.Iterator
- func (it *Iterator) Close() error
- func (it *Iterator) Contains(v graph.Value) bool
- func (it *Iterator) Describe() graph.Description
- func (it *Iterator) Err() error
- func (it *Iterator) Next() bool
- func (it *Iterator) NextPath() bool
- func (it *Iterator) Optimize() (graph.Iterator, bool)
- func (it *Iterator) Reset()
- func (it *Iterator) Result() graph.Value
- func (it *Iterator) Size() (int64, bool)
- func (it *Iterator) Sorted() bool
- func (it *Iterator) Stats() graph.IteratorStats
- func (it *Iterator) SubIterators() []graph.Iterator
- func (it *Iterator) TagResults(dst map[string]graph.Value)
- func (it *Iterator) Tagger() *graph.Tagger
- func (it *Iterator) Type() graph.Type
- func (it *Iterator) UID() uint64
- type QuadStore
- func (qs *QuadStore) ApplyDeltas(deltas []graph.Delta, ignoreOpts graph.IgnoreOpts) error
- func (qs *QuadStore) Close()
- func (qs *QuadStore) FixedIterator() graph.FixedIterator
- func (qs *QuadStore) GetStats() string
- func (qs *QuadStore) Horizon() graph.PrimaryKey
- func (qs *QuadStore) NameOf(k graph.Value) quad.Value
- func (qs *QuadStore) NodesAllIterator() graph.Iterator
- func (qs *QuadStore) OptimizeIterator(it graph.Iterator) (graph.Iterator, bool)
- func (qs *QuadStore) Quad(k graph.Value) quad.Quad
- func (qs *QuadStore) QuadDirection(val graph.Value, d quad.Direction) graph.Value
- func (qs *QuadStore) QuadIterator(d quad.Direction, val graph.Value) graph.Iterator
- func (qs *QuadStore) QuadsAllIterator() graph.Iterator
- func (qs *QuadStore) Size() int64
- func (qs *QuadStore) SizeOf(k graph.Value) int64
- func (qs *QuadStore) SizeOfPrefix(pre []byte) (int64, error)
- func (qs *QuadStore) Type() string
- func (qs *QuadStore) UpdateValueKeyBy(name quad.Value, amount int64, batch *leveldb.Batch) error
- func (qs *QuadStore) ValueOf(s quad.Value) graph.Value
- type Token
Constants ¶
View Source
const ( DefaultCacheSize = 2 DefaultWriteBufferSize = 20 QuadStoreType = "leveldb" )
Variables ¶
This section is empty.
Functions ¶
func PositionOf ¶ added in v0.3.1
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) Describe ¶ added in v0.4.1
func (it *AllIterator) Describe() graph.Description
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() bool
func (*AllIterator) NextPath ¶ added in v0.4.0
func (it *AllIterator) NextPath() 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) 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 (*Iterator) Describe ¶ added in v0.4.1
func (it *Iterator) Describe() graph.Description
func (*Iterator) Stats ¶ added in v0.3.1
func (it *Iterator) Stats() graph.IteratorStats
func (*Iterator) SubIterators ¶ added in v0.3.1
No subiterators.
func (*Iterator) TagResults ¶ added in v0.3.1
type QuadStore ¶ added in v0.4.1
type QuadStore struct {
// contains filtered or unexported fields
}
func (*QuadStore) ApplyDeltas ¶ added in v0.4.1
func (*QuadStore) FixedIterator ¶ added in v0.4.1
func (qs *QuadStore) FixedIterator() graph.FixedIterator
func (*QuadStore) Horizon ¶ added in v0.4.1
func (qs *QuadStore) Horizon() graph.PrimaryKey
func (*QuadStore) NodesAllIterator ¶ added in v0.4.1
func (*QuadStore) OptimizeIterator ¶ added in v0.4.1
func (*QuadStore) QuadDirection ¶ added in v0.4.1
func (*QuadStore) QuadIterator ¶ added in v0.4.1
func (*QuadStore) QuadsAllIterator ¶ added in v0.4.1
func (*QuadStore) SizeOfPrefix ¶ added in v0.4.1
func (*QuadStore) UpdateValueKeyBy ¶ added in v0.4.1
Click to show internal directories.
Click to hide internal directories.