C# Class FdoToolbox.Core.ETL.Pipelines.BasePipelineExecuter

Base class for pipeline executers, handles all the details and leave the actual pipeline execution to the
Inheritance: WithLoggingMixin, IPipelineExecuter
Mostra file Open project: jumpinjackie/fdotoolbox

Public Methods

Method Description
Execute ( string pipelineName, ICollection pipeline ) : void

Executes the specified pipeline.

GetAllErrors ( ) : IEnumerable

Gets all errors that occured under this executer

PipelineToEnumerable ( ICollection pipeline, IEnumerable rows ) : IEnumerable

Transform the pipeline to an enumerable

Protected Methods

Method Description
DecorateEnumerable ( IFdoOperation operation, IEnumerable enumerator ) : IEnumerable

Add a decorator to the enumerable for additional processing

DisposeAllOperations ( ICollection operations ) : void

Destroys the pipeline.

ExecutePipeline ( IEnumerable pipeline ) : void

Iterates the specified enumerable. Since we use a pipeline, we need to force it to execute at some point. We aren't really interested in the result, just in that the pipeline would execute.

Method Details

DecorateEnumerable() protected abstract method

Add a decorator to the enumerable for additional processing
protected abstract DecorateEnumerable ( IFdoOperation operation, IEnumerable enumerator ) : IEnumerable
operation IFdoOperation The operation.
enumerator IEnumerable The enumerator.
return IEnumerable

DisposeAllOperations() protected method

Destroys the pipeline.
protected DisposeAllOperations ( ICollection operations ) : void
operations ICollection
return void

Execute() public method

Executes the specified pipeline.
public Execute ( string pipelineName, ICollection pipeline ) : void
pipelineName string The name.
pipeline ICollection The pipeline.
return void

ExecutePipeline() protected method

Iterates the specified enumerable. Since we use a pipeline, we need to force it to execute at some point. We aren't really interested in the result, just in that the pipeline would execute.
protected ExecutePipeline ( IEnumerable pipeline ) : void
pipeline IEnumerable
return void

GetAllErrors() public method

Gets all errors that occured under this executer
public GetAllErrors ( ) : IEnumerable
return IEnumerable

PipelineToEnumerable() public method

Transform the pipeline to an enumerable
public PipelineToEnumerable ( ICollection pipeline, IEnumerable rows ) : IEnumerable
pipeline ICollection The pipeline.
rows IEnumerable The rows
return IEnumerable