Versions in this module Expand all Collapse all v0 v0.7.8 Nov 27, 2019 Changes in this version + var MaterializeThreshold = 100 + func BuildIterator(ctx context.Context, qs graph.QuadStore, s Shape) iterator.Shape + func IsNull(s Shape) bool + func Iterate(ctx context.Context, qs graph.QuadStore, s Shape) *iterator.Chain + func One(s Shape) (refs.Ref, bool) + func Walk(s Shape, fnc WalkFunc) + type AllNodes struct + func (s AllNodes) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s AllNodes) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type Comparison struct + Op iterator.Operator + Val quad.Value + func (f Comparison) BuildIterator(qs graph.QuadStore, it iterator.Shape) iterator.Shape + type Composite interface + Simplify func() Shape + type Count struct + Values Shape + func (s Count) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Count) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type Except struct + Exclude Shape + From Shape + func (s Except) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Except) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type Filter struct + Filters []ValueFilter + From Shape + func (s Filter) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Filter) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type Fixed []refs.Ref + func (s *Fixed) Add(v ...refs.Ref) + func (s Fixed) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Fixed) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type FixedTags struct + On Shape + Tags map[string]refs.Ref + func (s FixedTags) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s FixedTags) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type InternalQuad struct + Label refs.Ref + Object refs.Ref + Predicate refs.Ref + Subject refs.Ref + func (q InternalQuad) Get(d quad.Direction) refs.Ref + func (q InternalQuad) Set(d quad.Direction, v refs.Ref) + type Intersect []Shape + func (s Intersect) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Intersect) Optimize(ctx context.Context, r Optimizer) (sout Shape, opt bool) + type IntersectOpt struct + Opt []Shape + Sub Intersect + func (s *IntersectOpt) Add(arr ...Shape) + func (s *IntersectOpt) AddOptional(arr ...Shape) + func (s IntersectOpt) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s IntersectOpt) Optimize(ctx context.Context, r Optimizer) (_ Shape, opt bool) + type Lookup []quad.Value + func (s *Lookup) Add(v ...quad.Value) + func (s Lookup) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Lookup) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type Materialize struct + Size int + Values Shape + func (s Materialize) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Materialize) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type NodesFrom struct + Dir quad.Direction + Quads Shape + func (s NodesFrom) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s NodesFrom) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type Null struct + func (Null) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Null) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type Optimizer interface + OptimizeShape func(ctx context.Context, s Shape) (Shape, bool) + type Page struct + From Shape + Limit int64 + Skip int64 + func (s Page) ApplyPage(p Page) *Page + func (s Page) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Page) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type QuadFilter struct + Dir quad.Direction + Values Shape + type QuadIndexer interface + LookupQuadIndex func(c map[quad.Direction]refs.Ref) (InternalQuad, bool) + SizeOfIndex func(c map[quad.Direction]refs.Ref) (int64, bool) + type Quads []QuadFilter + func (s *Quads) Intersect(q ...QuadFilter) + func (s Quads) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Quads) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type QuadsAction struct + Filter map[quad.Direction]refs.Ref + Result quad.Direction + Save map[quad.Direction][]string + Size int64 + func (s *QuadsAction) SetFilter(d quad.Direction, v refs.Ref) + func (s QuadsAction) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s QuadsAction) Clone() QuadsAction + func (s QuadsAction) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + func (s QuadsAction) Simplify() Shape + func (s QuadsAction) SimplifyFrom(quads Shape) Shape + type Regexp struct + Re *regexp.Regexp + Refs bool + func (f Regexp) BuildIterator(qs graph.QuadStore, it iterator.Shape) iterator.Shape + type Save struct + From Shape + Tags []string + func (s Save) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Save) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type Shape interface + BuildIterator func(qs graph.QuadStore) iterator.Shape + Optimize func(ctx context.Context, r Optimizer) (Shape, bool) + func AddFilters(nodes Shape, filters ...ValueFilter) Shape + func Compare(nodes Shape, op iterator.Operator, v quad.Value) Shape + func FilterQuads(subject, predicate, object, label []quad.Value) Shape + func Has(from, via, nodes Shape, rev bool) Shape + func HasLabels(from, via, nodes, labels Shape, rev bool) Shape + func In(from, via, labels Shape, tags ...string) Shape + func IntersectOptional(s, opt Shape) Shape + func IntersectShapes(s1, s2 Shape) Shape + func Labels(from Shape) Shape + func Optimize(ctx context.Context, s Shape, qs graph.QuadStore) (Shape, bool) + func Out(from, via, labels Shape, tags ...string) Shape + func Predicates(from Shape, in bool) Shape + func SavePredicates(from Shape, in bool, tag string) Shape + func SaveVia(from, via Shape, tag string, rev, opt bool) Shape + func SaveViaLabels(from, via, labels Shape, tag string, rev, opt bool) Shape + type Sort struct + From Shape + func (s Sort) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Sort) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type Union []Shape + func UnionShapes(s1, s2 Shape) Union + func (s Union) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Union) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type Unique struct + From Shape + func (s Unique) BuildIterator(qs graph.QuadStore) iterator.Shape + func (s Unique) Optimize(ctx context.Context, r Optimizer) (Shape, bool) + type ValueFilter interface + BuildIterator func(qs graph.QuadStore, it iterator.Shape) iterator.Shape + type WalkFunc func(Shape) bool + type Wildcard struct + Pattern string + func (f Wildcard) BuildIterator(qs graph.QuadStore, it iterator.Shape) iterator.Shape + func (f Wildcard) Regexp() string v0.7.8-ap Nov 27, 2019