示例#1
0
        public TableWriterNode(PlanNodeId id, PlanNode source, WriterTarget target, IEnumerable <Symbol> outputs, IEnumerable <Symbol> columns, IEnumerable <string> columnNames, PartitioningScheme partitioningScheme) : base(id)
        {
            this.Source      = source ?? throw new ArgumentNullException("source");
            this.Target      = target ?? throw new ArgumentNullException("target");
            this.Columns     = columns ?? throw new ArgumentNullException("columns");
            this.ColumnNames = columnNames ?? throw new ArgumentNullException("columnNames");

            if (this.Columns.Count() != this.ColumnNames.Count())
            {
                throw new ArgumentException("Columns and column names sizes don't match.");
            }

            this.Outputs            = outputs ?? throw new ArgumentNullException("outputs");
            this.PartitioningScheme = partitioningScheme;
        }
示例#2
0
 public TableFinishNode(PlanNodeId id, PlanNode source, WriterTarget target, IEnumerable <Symbol> outputs) : base(id)
 {
     this.Source  = source ?? throw new ArgumentNullException("source");
     this.Target  = target;
     this.Outputs = outputs ?? throw new ArgumentNullException("outputs");
 }