Ejemplo n.º 1
0
            internal override void Visit(VarRefColumnMap columnMap, Dump dumper)
            {
                Dictionary <string, object> attributes = Dump.ColumnMapDumper.GetAttributes((ColumnMap)columnMap);

                attributes.Add("Var", (object)columnMap.Var.Id);
                using (new Dump.AutoXml(dumper, "VarRef", attributes))
                    ;
            }
Ejemplo n.º 2
0
            /// <summary>
            ///     SimpleColumnMap
            /// </summary>
            internal override void Visit(VarRefColumnMap columnMap, Dump dumper)
            {
                var attrs = GetAttributes(columnMap);

                attrs.Add("Var", (columnMap).Var.Id);
                using (new AutoXml(dumper, "VarRef", attrs))
                {
                }
            }
Ejemplo n.º 3
0
        internal virtual PhysicalProjectOp CreatePhysicalProjectOp(Var outputVar)
        {
            VarList varList = Command.CreateVarList();

            varList.Add(outputVar);
            VarRefColumnMap           varRefColumnMap = new VarRefColumnMap(outputVar);
            SimpleCollectionColumnMap columnMap       = new SimpleCollectionColumnMap(TypeUtils.CreateCollectionType(varRefColumnMap.Type), (string)null, (ColumnMap)varRefColumnMap, new SimpleColumnMap[0], new SimpleColumnMap[0]);

            return(this.CreatePhysicalProjectOp(varList, columnMap));
        }
Ejemplo n.º 4
0
        /// <summary>
        ///     VarRefColumnMap
        /// </summary>
        /// <param name="columnMap"> </param>
        /// <param name="replacementVarMap"> </param>
        /// <returns> </returns>
        internal override ColumnMap Visit(VarRefColumnMap columnMap, VarMap replacementVarMap)
        {
            var replacementVar = GetReplacementVar(columnMap.Var, replacementVarMap);

            return(new VarRefColumnMap(columnMap.Type, columnMap.Name, replacementVar));
        }