Example #1
0
        public TransformationWeekNumbersOperation(PublicTable targetTable, DataStoreConfiguration configuration)
        {
            var  colMappings  = targetTable.GetColumnMappingsFromStage(configuration);
            bool expandEvents = colMappings != null && colMappings.EventExpansionRequired;

            _transform = targetTable.ColumnExists("timetable_week") && !expandEvents;
        }
 public TransformationEventExpansionOperation(PublicTable targetTable, FixupCaches caches, DataStoreConfiguration configuration)
 {
     _colMappings   = targetTable.GetColumnMappingsFromStage(configuration);
     _expandEvents  = _colMappings != null && _colMappings.EventExpansionRequired;
     _caches        = caches;
     _configuration = configuration;
 }
Example #3
0
 public TransformationUpdateTargetOperation(
     string connectionString,
     int timeoutSecs,
     PublicTable targetTable,
     FixupCaches caches,
     DataStoreConfiguration configuration,
     TransformationType transformationType)
 {
     _connectionString   = connectionString;
     _timeoutSecs        = timeoutSecs;
     _targetTable        = targetTable;
     _caches             = caches;
     _configuration      = configuration;
     _transformationType = transformationType;
 }
Example #4
0
 public TransformationGetDataForBulkInsertOperation(
     string adminConnectionString,
     Table srcTable,
     PublicTable targetTable,
     FixupCaches caches,
     DataStoreConfiguration configuration,
     int srcTimetableId)
     : base(DatabaseUtils.CreateConnectionStringSettings(adminConnectionString))
 {
     _srcTable       = srcTable;
     _targetTable    = targetTable;
     _caches         = caches;
     _configuration  = configuration;
     _colMappings    = targetTable.GetColumnMappingsFromStage(_configuration);
     _srcTimetableId = srcTimetableId;
 }
Example #5
0
        public TransformationEtlProcess(
            Table srcTable,
            PublicTable targetTable,
            FixupCaches caches,
            string connectionString,
            int timeoutSecs,
            DataStoreConfiguration configuration,
            TransformationType transformationType,
            int srcTimetableId)
        {
            if (configuration.Pipelines.PublicTransformation.SingleThreaded)
            {
                PipelineExecuter = new SingleThreadedPipelineExecuter();
            }

            _srcTable           = srcTable;
            _targetTable        = targetTable;
            _caches             = caches;
            _connectionString   = connectionString;
            _timeoutSecs        = timeoutSecs;
            _configuration      = configuration;
            _transformationType = transformationType;
            _srcTimetableId     = srcTimetableId;
        }
 public TransformationBulkInsertTargetOperation(string connectionString, int timeoutSecs, PublicTable targetTable)
     : base(DatabaseUtils.CreateConnectionStringSettings(connectionString), targetTable.QualifiedName, timeoutSecs)
 {
     _targetTable = targetTable;
 }
Example #7
0
 public TempUpsertTableBuilder(string tableName, PublicTable publicTable)
 {
     AddTable(new Table(tableName, publicTable));
 }