Documentation
¶
Index ¶
- Constants
- func Init(db nosql.Database, opt graph.Options) error
- func Register(name string, r Registration)
- type InitFunc
- type Iterator
- type Linkage
- type NewFunc
- type NodeHash
- type QuadHash
- type QuadStore
- func (qs *QuadStore) ApplyDeltas(deltas []graph.Delta, ignoreOpts graph.IgnoreOpts) error
- func (qs *QuadStore) Close() error
- func (qs *QuadStore) NameOf(v graph.Ref) quad.Value
- func (qs *QuadStore) NewQuadWriter() (quad.WriteCloser, error)
- func (qs *QuadStore) NodesAllIterator() graph.Iterator
- func (qs *QuadStore) OptimizeShape(s shape.Shape) (shape.Shape, bool)
- func (qs *QuadStore) Quad(val graph.Ref) quad.Quad
- func (qs *QuadStore) QuadDirection(in graph.Ref, d quad.Direction) graph.Ref
- func (qs *QuadStore) QuadIterator(d quad.Direction, val graph.Ref) graph.Iterator
- func (qs *QuadStore) QuadIteratorSize(ctx context.Context, d quad.Direction, v graph.Ref) (graph.Size, error)
- func (qs *QuadStore) QuadsAllIterator() graph.Iterator
- func (qs *QuadStore) Size() int64
- func (qs *QuadStore) Stats(ctx context.Context, exact bool) (graph.Stats, error)
- func (qs *QuadStore) ValueOf(s quad.Value) graph.Ref
- type Quads
- type Registration
- type Shape
- type Traits
Constants ¶
View Source
const DefaultDBName = "cayley"
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, r Registration)
Types ¶
type Iterator ¶
func NewIterator ¶
func NewIterator(qs *QuadStore, collection string, constraints ...nosql.FieldFilter) *Iterator
func NewLinksToIterator ¶
func (*Iterator) AsShape ¶ added in v0.7.6
func (it *Iterator) AsShape() graph.IteratorShape
type QuadStore ¶
type QuadStore struct {
// contains filtered or unexported fields
}
func NewQuadStore ¶ added in v0.7.1
func (*QuadStore) ApplyDeltas ¶
func (*QuadStore) NewQuadWriter ¶ added in v0.7.6
func (qs *QuadStore) NewQuadWriter() (quad.WriteCloser, error)
func (*QuadStore) NodesAllIterator ¶
func (*QuadStore) OptimizeShape ¶
func (*QuadStore) QuadDirection ¶
func (*QuadStore) QuadIterator ¶
func (*QuadStore) QuadIteratorSize ¶ added in v0.7.6
func (*QuadStore) QuadsAllIterator ¶
type Quads ¶
type Quads struct { Links []Linkage // filters to select quads Limit int64 // limits a number of documents }
Quads is a shape representing a quads query
type Registration ¶
Click to show internal directories.
Click to hide internal directories.