Class RowMultiplication<TInput, TOutput>
This transformation allow you to transform one row of your input data into multiple rows.
Inheritance
DataFlowSource<TOutput>
DataFlowTransformation<TInput, TOutput>
RowMultiplication<TInput, TOutput>
Implements
IDataFlowTransformation<TInput, TOutput>
IDataFlowSource<TOutput>
IDataFlowDestination<TInput>
Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
public class RowMultiplication<TInput, TOutput> : DataFlowTransformation<TInput, TOutput>, IDataFlowTransformation<TInput, TOutput>, IDataFlowSource<TOutput>, IDataFlowSource, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, ILoggableTaskType Parameters
| Name | Description |
|---|---|
| TInput | Type of ingoing data. |
| TOutput | Type of outgoing data. |
Constructors
RowMultiplication()
Declaration
public RowMultiplication()RowMultiplication(Func<TInput, IEnumerable<TOutput>>)
Declaration
public RowMultiplication(Func<TInput, IEnumerable<TOutput>> multiplicationFunc)Parameters
| Type | Name | Description |
|---|---|---|
| Func<TInput, IEnumerable<TOutput>> | multiplicationFunc | Sets the MultiplicationFunc |
Properties
MultiplicationFunc
The transformation func that produces multiple rows for each ingoing row.
Declaration
public Func<TInput, IEnumerable<TOutput>> MultiplicationFunc { get; set; }Property Value
| Type | Description |
|---|---|
| Func<TInput, IEnumerable<TOutput>> |
SourceBlock
SourceBlock from the underlying TPL.Dataflow which is used as output buffer for the component.
Declaration
public override ISourceBlock<TOutput> SourceBlock { get; }Property Value
| Type | Description |
|---|---|
| ISourceBlock<TOutput> |
Overrides
TargetBlock
TargetBlock from the underlying TPL.Dataflow which is used as input buffer for the component.
Declaration
public override ITargetBlock<TInput> TargetBlock { get; }Property Value
| Type | Description |
|---|---|
| ITargetBlock<TInput> |
Overrides
Methods
CheckParameter()
Declaration
protected override void CheckParameter()Overrides
CleanUpOnFaulted(Exception)
Declaration
protected override void CleanUpOnFaulted(Exception e)Parameters
| Type | Name | Description |
|---|---|---|
| Exception | e |
Overrides
CleanUpOnSuccess()
Declaration
protected override void CleanUpOnSuccess()Overrides
InitComponent()
Declaration
protected override void InitComponent()