Documentation ¶
Index ¶
- Constants
- func Init(db nosql.Database, opt graph.Options) error
- func Register(name string, r Registration)
- type InitFunc
- type Iterator
- func (it *Iterator) Iterate() iterator.Scanner
- func (it *Iterator) Lookup() iterator.Index
- func (it *Iterator) Optimize(ctx context.Context) (iterator.Shape, bool)
- func (it *Iterator) Sorted() bool
- func (it *Iterator) Stats(ctx context.Context) (iterator.Costs, error)
- func (it *Iterator) String() string
- func (it *Iterator) SubIterators() []iterator.Shape
- 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, error)
- func (qs *QuadStore) NewQuadWriter() (quad.WriteCloser, error)
- func (qs *QuadStore) NodesAllIterator() iterator.Shape
- func (qs *QuadStore) OptimizeShape(ctx context.Context, s shape.Shape) (shape.Shape, bool)
- func (qs *QuadStore) Quad(val graph.Ref) (quad.Quad, error)
- func (qs *QuadStore) QuadDirection(in graph.Ref, d quad.Direction) (graph.Ref, error)
- func (qs *QuadStore) QuadIterator(d quad.Direction, val graph.Ref) iterator.Shape
- func (qs *QuadStore) QuadIteratorSize(ctx context.Context, d quad.Direction, v graph.Ref) (refs.Size, error)
- func (qs *QuadStore) QuadsAllIterator() iterator.Shape
- 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, error)
- 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 ¶
type Iterator struct {
// contains filtered or unexported fields
}
func (*Iterator) SubIterators ¶
type QuadStore ¶
type QuadStore struct {
// contains filtered or unexported fields
}
func NewQuadStore ¶
func (*QuadStore) ApplyDeltas ¶
func (*QuadStore) NewQuadWriter ¶
func (qs *QuadStore) NewQuadWriter() (quad.WriteCloser, error)
func (*QuadStore) NodesAllIterator ¶
func (*QuadStore) OptimizeShape ¶
func (*QuadStore) QuadDirection ¶
func (*QuadStore) QuadIterator ¶
func (*QuadStore) QuadIteratorSize ¶
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.