- Timestamp:
- 06/12/13 13:32:34 (11 years ago)
- Location:
- branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateCommandBase.cs
r7625 r9614 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using System.Text;26 using System.Xml;27 25 using HeuristicLab.DataImporter.Data.CommandBase; 28 26 using HeuristicLab.DataImporter.Data.Model; … … 32 30 [StorableClass] 33 31 public abstract class AggregateCommandBase : ColumnGroupCommandWithAffectedColumnsBase { 34 private AggregateCommandBase() 35 : base(null, string.Empty, null) { 32 [StorableConstructor] 33 protected AggregateCommandBase(bool deserializing) 34 : base(deserializing) { 36 35 oldColumns = new List<ColumnBase>(); 37 36 newColumns = new List<ColumnBase>(); 38 37 positions = new List<int>(); 39 changeNullValuesOnly = true;40 38 } 41 39 -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateWithMaxCommand.cs
r7267 r9614 21 21 22 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 23 using HeuristicLab.DataImporter.Command.View; 26 24 using HeuristicLab.DataImporter.Data; 27 25 using HeuristicLab.DataImporter.Data.CommandBase; 28 26 using HeuristicLab.DataImporter.Data.Model; 29 using HeuristicLab.DataImporter.Command.View;30 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 28 … … 35 32 , "Aggregation", Position = 4, OptionsView = typeof(AggregationCommandView))] 36 33 public class AggregateWithMaxCommand : AggregateCommandBase { 37 private AggregateWithMaxCommand() 38 : base(null,string.Empty,null) { 39 } 34 [StorableConstructor] 35 protected AggregateWithMaxCommand(bool deserializing) : base(deserializing) { } 40 36 41 37 public AggregateWithMaxCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns) -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateWithMeanCommand.cs
r7267 r9614 21 21 22 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 23 using HeuristicLab.DataImporter.Command.View; 26 24 using HeuristicLab.DataImporter.Data; 27 25 using HeuristicLab.DataImporter.Data.CommandBase; 28 26 using HeuristicLab.DataImporter.Data.Model; 29 using HeuristicLab.DataImporter.Command.View;30 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 28 … … 35 32 "Aggregation", Position = 0, OptionsView = typeof(AggregationCommandView))] 36 33 public class AggregateWithMeanCommand : AggregateCommandBase { 37 private AggregateWithMeanCommand() 38 : base(null,string.Empty,null) { 39 } 34 [StorableConstructor] 35 protected AggregateWithMeanCommand(bool deserializing) : base(deserializing) { } 40 36 41 37 public AggregateWithMeanCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns) … … 58 54 } 59 55 } 60 return cnt != 0 ? value/cnt : (double?)null;56 return cnt != 0 ? value / cnt : (double?)null; 61 57 } 62 58 } -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateWithMedianCommand.cs
r7267 r9614 21 21 22 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 23 using HeuristicLab.DataImporter.Command.View; 26 24 using HeuristicLab.DataImporter.Data; 27 25 using HeuristicLab.DataImporter.Data.CommandBase; 28 26 using HeuristicLab.DataImporter.Data.Model; 29 using HeuristicLab.DataImporter.Command.View;30 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 28 … … 35 32 "Aggregation", Position = 1, OptionsView = typeof(AggregationCommandView))] 36 33 public class AggregateWithMedianCommand : AggregateCommandBase { 37 private AggregateWithMedianCommand() 38 : base(null,string.Empty,null) { 39 } 34 [StorableConstructor] 35 protected AggregateWithMedianCommand(bool deserializing) : base(deserializing) { } 40 36 41 37 public AggregateWithMedianCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns) -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateWithMinCommand.cs
r7267 r9614 21 21 22 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 23 using HeuristicLab.DataImporter.Command.View; 26 24 using HeuristicLab.DataImporter.Data; 27 25 using HeuristicLab.DataImporter.Data.CommandBase; 28 26 using HeuristicLab.DataImporter.Data.Model; 29 using HeuristicLab.DataImporter.Command.View;30 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 28 … … 35 32 "Aggregation", Position = 3, OptionsView = typeof(AggregationCommandView))] 36 33 public class AggregateWithMinCommand : AggregateCommandBase { 37 38 private AggregateWithMinCommand() 39 : base(null, string.Empty, null) { 40 } 34 [StorableConstructor] 35 protected AggregateWithMinCommand(bool deserializing) : base(deserializing) { } 41 36 42 37 public AggregateWithMinCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns) -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateWithSumCommand.cs
r7267 r9614 21 21 22 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 23 using HeuristicLab.DataImporter.Command.View; 26 24 using HeuristicLab.DataImporter.Data; 27 25 using HeuristicLab.DataImporter.Data.CommandBase; 28 26 using HeuristicLab.DataImporter.Data.Model; 29 using HeuristicLab.DataImporter.Command.View;30 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 28 … … 35 32 "Aggregation", Position = 2, OptionsView = typeof(AggregationCommandView))] 36 33 public class AggregateWithSumCommand : AggregateCommandBase { 37 private AggregateWithSumCommand() 38 : base(null,string.Empty,null) { 39 } 34 [StorableConstructor] 35 protected AggregateWithSumCommand(bool deserializing) : base(deserializing) { } 40 36 41 37 public AggregateWithSumCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns) -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/DeleteRowsWithDuplicateKeyValuesCommand.cs
r7625 r9614 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using System.Text;26 25 using HeuristicLab.DataImporter.Data; 27 26 using HeuristicLab.DataImporter.Data.CommandBase; … … 34 33 public class DeleteRowsWithDuplicateKeyValuesCommand : ColumnGroupCommandBase { 35 34 private Dictionary<int, IComparable[]> deletedRows; 36 private DeleteRowsWithDuplicateKeyValuesCommand() 37 : base(null, string.Empty) { 35 [StorableConstructor] 36 protected DeleteRowsWithDuplicateKeyValuesCommand(bool deserializing) 37 : base(deserializing) { 38 38 deletedRows = new Dictionary<int, IComparable[]>(); 39 39 }
Note: See TracChangeset
for help on using the changeset viewer.