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)) ; }
/// <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)) { } }
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)); }
/// <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)); }