BlockTransformation

Class BlockTransformation

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.

Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public class BlockTransformation : BlockTransformation<ExpandoObject>, IDataFlowTransformation<ExpandoObject, ExpandoObject>, IDataFlowSource<ExpandoObject>, IDataFlowSource, IDataFlowDestination<ExpandoObject>, IDataFlowDestination, IDataFlowComponent, ILoggableTask
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<ExpandoObject[], ExpandoObject[]>)

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

Implements