/Rhino.Etl.Core/Pipelines/SingleThreadedPipelineExecuter.cs

http://github.com/ayende/rhino-etl · C# · 22 lines · 13 code · 1 blank · 8 comment · 0 complexity · 62987f979c70b0d95e666da42f937f39 MD5 · raw file

  1. namespace Rhino.Etl.Core.Pipelines
  2. {
  3. using System.Collections.Generic;
  4. using Enumerables;
  5. using Operations;
  6. /// <summary>
  7. /// Executes the pipeline on a single thread
  8. /// </summary>
  9. public class SingleThreadedPipelineExecuter : AbstractPipelineExecuter
  10. {
  11. /// <summary>
  12. /// Add a decorator to the enumerable for additional processing
  13. /// </summary>
  14. /// <param name="operation">The operation.</param>
  15. /// <param name="enumerator">The enumerator.</param>
  16. protected override IEnumerable<Row> DecorateEnumerableForExecution(IOperation operation, IEnumerable<Row> enumerator)
  17. {
  18. return new CachingEnumerable<Row>(new EventRaisingEnumerator(operation, enumerator));
  19. }
  20. }
  21. }