Documentation ¶
Index ¶
- Variables
- func Each(ctx context.Context, b Bucket, pref []byte, fnc func(k, v []byte) error) error
- func GetOne(ctx context.Context, b Bucket, key []byte) ([]byte, error)
- func Init(kv BucketKV, opt graph.Options) error
- func New(kv BucketKV, _ graph.Options) (graph.QuadStore, error)
- func Register(name string, r Registration)
- func Update(ctx context.Context, kv BucketKV, update func(tx BucketTx) error) error
- func View(kv BucketKV, view func(tx BucketTx) error) error
- type AllIterator
- func (it *AllIterator) Clone() graph.Iterator
- func (it *AllIterator) Close() error
- func (it *AllIterator) Contains(ctx context.Context, v graph.Value) bool
- func (it *AllIterator) Err() error
- func (it *AllIterator) Next(ctx context.Context) bool
- func (it *AllIterator) NextPath(ctx context.Context) 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) String() string
- 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 Base
- type Bucket
- type BucketKV
- type BucketKey
- type BucketTx
- type FillBucket
- type FlatKV
- type FlatTx
- type InitFunc
- type Int64Set
- type Int64Value
- type KVIterator
- type NewFunc
- type QuadIndex
- type QuadIterator
- func (it *QuadIterator) Clone() graph.Iterator
- func (it *QuadIterator) Close() error
- func (it *QuadIterator) Contains(ctx context.Context, v graph.Value) bool
- func (it *QuadIterator) Err() error
- func (it *QuadIterator) Next(ctx context.Context) bool
- func (it *QuadIterator) NextPath(ctx context.Context) bool
- func (it *QuadIterator) Optimize() (graph.Iterator, bool)
- func (it *QuadIterator) Reset()
- func (it *QuadIterator) Result() graph.Value
- func (it *QuadIterator) Size() (int64, bool)
- func (it *QuadIterator) Sorted() bool
- func (it *QuadIterator) Stats() graph.IteratorStats
- func (it *QuadIterator) String() string
- func (it *QuadIterator) SubIterators() []graph.Iterator
- func (it *QuadIterator) TagResults(dst map[string]graph.Value)
- func (it *QuadIterator) Tagger() *graph.Tagger
- func (it *QuadIterator) Type() graph.Type
- func (it *QuadIterator) UID() uint64
- type QuadStore
- func (qs *QuadStore) ApplyDeltas(in []graph.Delta, ignoreOpts graph.IgnoreOpts) error
- func (qs *QuadStore) Close() error
- func (qs *QuadStore) NameOf(v 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(dir quad.Direction, v graph.Value) graph.Iterator
- func (qs *QuadStore) QuadsAllIterator() graph.Iterator
- func (qs *QuadStore) RefsOf(ctx context.Context, nodes []quad.Value) ([]graph.Value, error)
- func (qs *QuadStore) Size() int64
- func (qs *QuadStore) ValueOf(s quad.Value) graph.Value
- func (qs *QuadStore) ValuesOf(ctx context.Context, vals []graph.Value) ([]quad.Value, error)
- type Registration
- type Tx
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Register ¶
func Register(name string, r Registration)
Types ¶
type AllIterator ¶
type AllIterator struct {
// contains filtered or unexported fields
}
func NewAllIterator ¶
func NewAllIterator(nodes bool, qs *QuadStore, cons *constraint) *AllIterator
func (*AllIterator) Clone ¶
func (it *AllIterator) Clone() graph.Iterator
func (*AllIterator) Close ¶
func (it *AllIterator) Close() error
func (*AllIterator) Err ¶
func (it *AllIterator) Err() error
func (*AllIterator) Reset ¶
func (it *AllIterator) Reset()
func (*AllIterator) Result ¶
func (it *AllIterator) Result() graph.Value
func (*AllIterator) Size ¶
func (it *AllIterator) Size() (int64, bool)
func (*AllIterator) Sorted ¶
func (it *AllIterator) Sorted() bool
func (*AllIterator) Stats ¶
func (it *AllIterator) Stats() graph.IteratorStats
func (*AllIterator) String ¶
func (it *AllIterator) String() string
func (*AllIterator) SubIterators ¶
func (it *AllIterator) SubIterators() []graph.Iterator
No subiterators.
func (*AllIterator) TagResults ¶
func (it *AllIterator) TagResults(dst map[string]graph.Value)
func (*AllIterator) Tagger ¶
func (it *AllIterator) Tagger() *graph.Tagger
func (*AllIterator) Type ¶
func (it *AllIterator) Type() graph.Type
func (*AllIterator) UID ¶
func (it *AllIterator) UID() uint64
type FillBucket ¶
type FillBucket interface {
SetFillPercent(v float64)
}
type Int64Value ¶
type Int64Value uint64
func (Int64Value) Key ¶
func (v Int64Value) Key() interface{}
type KVIterator ¶
type QuadIterator ¶
type QuadIterator struct {
// contains filtered or unexported fields
}
func NewQuadIterator ¶
func NewQuadIterator(qs *QuadStore, ind QuadIndex, vals []uint64) *QuadIterator
func (*QuadIterator) Clone ¶
func (it *QuadIterator) Clone() graph.Iterator
func (*QuadIterator) Close ¶
func (it *QuadIterator) Close() error
func (*QuadIterator) Err ¶
func (it *QuadIterator) Err() error
func (*QuadIterator) Reset ¶
func (it *QuadIterator) Reset()
func (*QuadIterator) Result ¶
func (it *QuadIterator) Result() graph.Value
func (*QuadIterator) Size ¶
func (it *QuadIterator) Size() (int64, bool)
func (*QuadIterator) Sorted ¶
func (it *QuadIterator) Sorted() bool
func (*QuadIterator) Stats ¶
func (it *QuadIterator) Stats() graph.IteratorStats
func (*QuadIterator) String ¶
func (it *QuadIterator) String() string
func (*QuadIterator) SubIterators ¶
func (it *QuadIterator) SubIterators() []graph.Iterator
func (*QuadIterator) TagResults ¶
func (it *QuadIterator) TagResults(dst map[string]graph.Value)
func (*QuadIterator) Tagger ¶
func (it *QuadIterator) Tagger() *graph.Tagger
func (*QuadIterator) Type ¶
func (it *QuadIterator) Type() graph.Type
func (*QuadIterator) UID ¶
func (it *QuadIterator) UID() uint64
type QuadStore ¶
type QuadStore struct {
// contains filtered or unexported fields
}
func (*QuadStore) ApplyDeltas ¶
func (*QuadStore) NodesAllIterator ¶
func (*QuadStore) OptimizeIterator ¶
func (*QuadStore) QuadDirection ¶
func (*QuadStore) QuadIterator ¶
func (*QuadStore) QuadsAllIterator ¶
type Registration ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.