func NewJoin(keyspace datastore.Keyspace, join *algebra.Join) *Join { return &Join{ keyspace: keyspace, term: join.Right(), outer: join.Outer(), } }
func (this *builder) VisitJoin(node *algebra.Join) (interface{}, error) { this.limit = nil _, err := node.Left().Accept(this) if err != nil { return nil, err } right := node.Right() right.SetDefaultNamespace(this.namespace) namespace, err := this.datastore.NamespaceByName(right.Namespace()) if err != nil { return nil, err } keyspace, err := namespace.KeyspaceByName(right.Keyspace()) if err != nil { return nil, err } join := plan.NewJoin(keyspace, node) this.subChildren = append(this.subChildren, join) return nil, nil }