Title here
Summary here
The RowTransformation will apply the transformation function to each row of data.
public class RowTransformation<TInput, TOutput> : DataFlowTransformation<TInput, TOutput>, IDataFlowTransformation<TInput, TOutput>, IDataFlowSource<TOutput>, IDataFlowSource, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, ILoggableTask
Name | Description |
---|---|
TInput | The type of ingoing data. |
TOutput | The type of outgoing data. |
RowTransformation<InputType, OutputType> trans = new RowTransformation<InputType, OutputType>(
row => {
return new OutputType() { Value = row.Value + 1 };
});
public RowTransformation()
public RowTransformation(Func<TInput, TOutput> transformationFunc)
Type | Name | Description |
---|---|---|
Func<TInput, TOutput> | transformationFunc | Will set the TransformationFunc |
public RowTransformation(Func<TInput, TOutput> transformationFunc, Action initAction)
Type | Name | Description |
---|---|---|
Func<TInput, TOutput> | transformationFunc | Will set the TransformationFunc |
Action | initAction | Will set the InitAction |
protected bool WasInitActionInvoked
Type | Description |
---|---|
bool |
The init action is executed shortly before the first data row is processed.
public Action InitAction { get; set; }
Type | Description |
---|---|
Action |
SourceBlock from the underlying TPL.Dataflow which is used as output buffer for the component.
public override ISourceBlock<TOutput> SourceBlock { get; }
Type | Description |
---|---|
ISourceBlock<TOutput> |
TargetBlock from the underlying TPL.Dataflow which is used as input buffer for the component.
public override ITargetBlock<TInput> TargetBlock { get; }
Type | Description |
---|---|
ITargetBlock<TInput> |
Each ingoing row will be transformed using this function.
public Func<TInput, TOutput> TransformationFunc { get; set; }
Type | Description |
---|---|
Func<TInput, TOutput> |
protected override void CheckParameter()
protected override void CleanUpOnFaulted(Exception e)
Type | Name | Description |
---|---|---|
Exception | e |
protected override void CleanUpOnSuccess()
protected override void InitComponent()
protected virtual void InvokeInitActionOnce()
protected virtual TOutput InvokeTransformationFunc(TInput row)
Type | Name | Description |
---|---|---|
TInput | row |
Type | Description |
---|---|
TOutput |
protected override void Reset()