func NewNest(keyspace datastore.Keyspace, nest *algebra.Nest) *Nest { return &Nest{ keyspace: keyspace, term: nest.Right(), outer: nest.Outer(), } }
func (this *builder) VisitNest(node *algebra.Nest) (interface{}, error) { _, 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 } nest := NewNest(keyspace, node) this.subChildren = append(this.subChildren, nest) return nil, nil }