void Start() { BatchProcessor batchProcessor = new BatchProcessor(); batchProcessor.AddBigDataLoader(new CallDataLoader()); batchProcessor.AddBigDataLoader(new TwitterDataLoader()); batchProcessor.AddBigDataLoader(new SensorDataLoader()); batchProcessor.PrintAll(); Console.ReadKey(); }
void Start() { // Since BigDataLoader is the main class I can assign them with BigDataLoader keyword. BigDataLoader Call = new CallDataLoader(); BigDataLoader Twitter = new TwitterDataLoader(); BigDataLoader Sensor = new SensorDataLoader(); BatchProcessor processor = new BatchProcessor(); //Adding the processors processor.AddBigDataLoader(Call); processor.AddBigDataLoader(Twitter); processor.AddBigDataLoader(Sensor); //Starting the ETL process processor.ProcessBigDataLoaders(); }