Ejemplo n.º 1
0
        // <summary>
        // Copies a group by into node
        // </summary>
        // <param name="op"> The Op to Copy </param>
        // <param name="n"> The Node that references the Op </param>
        // <returns> A copy of the original Node that references a copy of the original Op </returns>
        public override Node Visit(GroupByIntoOp op, Node n)
        {
            // Visit the Node's children and map their Vars
            var children = ProcessChildren(n);

            // Create a new GroupByOp that uses copies of the Key and Output VarSets of the original GroupByOp
            var newGroupOp = m_destCmd.CreateGroupByIntoOp(Copy(op.Keys), Copy(op.Inputs), Copy(op.Outputs));

            // Return a new Node that references the copied GroupByOp and has the copied child Nodes as its children
            return(m_destCmd.CreateNode(newGroupOp, children));
        }
        public override Node Visit(GroupByIntoOp op, Node n)
        {
            List <Node> args = this.ProcessChildren(n);

            return(this.m_destCmd.CreateNode((Op)this.m_destCmd.CreateGroupByIntoOp(this.Copy(op.Keys), this.Copy(op.Inputs), this.Copy(op.Outputs)), args));
        }
 public virtual void Visit(GroupByIntoOp op, Node n)
 {
     this.VisitGroupByOp((GroupByBaseOp)op, n);
 }
Ejemplo n.º 4
0
 public override void Visit(GroupByIntoOp op, Node n)
 {
     VisitGroupByOp(op, n);
     Assert(n.Child3.Children.Count > 0, "GroupByInto with no group aggregate vars");
 }
Ejemplo n.º 5
0
 /// <summary>
 ///     Visitor pattern method for GroupByIntoOp
 /// </summary>
 /// <param name="op"> The GroupByIntoOp being visited </param>
 /// <param name="n"> The Node that references the Op </param>
 public virtual void Visit(GroupByIntoOp op, Node n)
 {
     VisitGroupByOp(op, n);
 }
Ejemplo n.º 6
0
 // <summary>
 // GroupByIntoOp
 // </summary>
 public virtual TResultType Visit(GroupByIntoOp op, Node n)
 {
     return(VisitGroupByOp(op, n));
 }
 public virtual TResultType Visit(GroupByIntoOp op, Node n)
 {
     return(this.VisitGroupByOp((GroupByBaseOp)op, n));
 }