/Rhino.Etl.Core/IPipelineExecuter.cs
http://github.com/ayende/rhino-etl · C# · 49 lines · 19 code · 4 blank · 26 comment · 0 complexity · b8f5ef1f42224423f2da734cff47db7b MD5 · raw file
- namespace Rhino.Etl.Core
- {
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using Operations;
- /// <summary>
- /// Interface that abastract the actual execution of the pipeline
- /// </summary>
- public interface IPipelineExecuter
- {
- /// <summary>
- /// Executes the specified pipeline.
- /// </summary>
- /// <param name="pipelineName">The name.</param>
- /// <param name="pipeline">The pipeline.</param>
- /// <param name="translateRows">Translate the rows into another representation</param>
- void Execute(string pipelineName,
- ICollection<IOperation> pipeline,
- Func<IEnumerable<Row>, IEnumerable<Row>> translateRows);
- /// <summary>
- /// Transform the pipeline to an enumerable
- /// </summary>
- /// <param name="pipeline">The pipeline.</param>
- /// <param name="rows">The rows.</param>
- /// <param name="translateEnumerable">Translate the rows from one representation to another</param>
- /// <returns></returns>
- IEnumerable<Row> PipelineToEnumerable(
- ICollection<IOperation> pipeline,
- IEnumerable<Row> rows,
- Func<IEnumerable<Row>, IEnumerable<Row>> translateEnumerable);
- /// <summary>
- /// Gets all errors that occured under this executer
- /// </summary>
- /// <returns></returns>
- IEnumerable<Exception> GetAllErrors();
- /// <summary>
- /// Gets a value indicating whether this instance has errors.
- /// </summary>
- /// <value>
- /// <c>true</c> if this instance has errors; otherwise, <c>false</c>.
- /// </value>
- bool HasErrors { get; }
- }
- }