Class BlockTransformation<TInput>

A block transformation will wait for all data from the flow to be loaded into its buffer. After all data is in the buffer, the transformation function is executed for the complete data and the result posted into the targets. The block transformations allows you to access all data in the flow in one generic collection. But as this block any processing until all data is buffered, it will also need to store the whole data in memory.

Inheritance
DataFlowTransformation<TInput, TInput>
BatchTransformation<TInput, TInput>
BlockTransformation<TInput, TInput>
BlockTransformation<TInput>
Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public class BlockTransformation<TInput> : BlockTransformation<TInput, TInput>, IDataFlowLogging, IDataFlowTransformation<TInput, TInput>, IDataFlowSource<TInput>, IDataFlowSource, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, ILoggableTask
Type Parameters
NameDescription
TInput

Type of ingoing data.

Examples
  BlockTransformation<InputType> block = new BlockTransformation<InputType>(
                                                                                                                                                 inputData => {
                                                                                                                                                     inputData.RemoveRange(1, 2);
                                                                                                                                                     inputData.Add(new InputType() { Value = 1 });
                                                                                                                                                     return inputData;
                                                                                                                                             });

Constructors

BlockTransformation()

Declaration
    public BlockTransformation()

BlockTransformation(Func<TInput[], TInput[]>)

Declaration
    public BlockTransformation(Func<TInput[], TInput[]> blockTransformationFunc)
Parameters
TypeNameDescription
Func<TInput[], TInput[]>blockTransformationFunc

Implements