Class ColumnRename<TInput>

ColumnRename allows you to rename the column or properties names of your ingoing data. This transformation works with objects, ExpandoObjects and arrays as input data type.
Provide a column mapping with the old and the new name. The mapping can also be automatically retrieved from existing ColumnMap attributes. For arrays provide the array index and the new name.

Inheritance
System.Object
DataFlowSource<System.Dynamic.ExpandoObject>
DataFlowTransformation<TInput, System.Dynamic.ExpandoObject>
ColumnRename<TInput>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ETLBox.DataFlow.Transformations
Assembly: ETLBox.dll
Syntax
    public class ColumnRename<TInput> : DataFlowTransformation<TInput, ExpandoObject>, ILoggableTask, IDataFlowLogging, IDataFlowTransformation<TInput, ExpandoObject>, IDataFlowSource<ExpandoObject>, IDataFlowSource, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent
Type Parameters
NameDescription
TInput

Type of ingoing data

Constructors

ColumnRename()

Declaration
    public ColumnRename()

ColumnRename(ICollection<RenameColumn>)

Declaration
    public ColumnRename(ICollection<RenameColumn> renameColumns)
Parameters
TypeNameDescription
System.Collections.Generic.ICollection<RenameColumn>renameColumns

Properties

ProgressCount

Declaration
    public int ProgressCount { get; }
Property Value
TypeDescription
System.Int32

RenameColumns

The column mapping defines how existing properties or columns are renamed. For objects and dynamic object provide a mapping with the old and the new name. The mapping can also be automatically retrieved from existing ColumnMap attributes - in this case, leave it empty. For arrays provide the array index and the new name.

Declaration
    public ICollection<RenameColumn> RenameColumns { get; set; }
Property Value
TypeDescription
System.Collections.Generic.ICollection<RenameColumn>

SourceBlock

SourceBlock from the underlying TPL.Dataflow which is used as output buffer for the component.

Declaration
    public override ISourceBlock<ExpandoObject> SourceBlock { get; }
Property Value
TypeDescription
System.Threading.Tasks.Dataflow.ISourceBlock<System.Dynamic.ExpandoObject>
Overrides
ETLBox.DataFlow.DataFlowSource<System.Dynamic.ExpandoObject>.SourceBlock

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
TypeDescription
System.Threading.Tasks.Dataflow.ITargetBlock<TInput>
Overrides
ETLBox.DataFlow.DataFlowTransformation<TInput, System.Dynamic.ExpandoObject>.TargetBlock

TaskName

A name to identify the task or component. Every component or task comes with a default name that can be overwritten.

Declaration
    public override string TaskName { get; set; }
Property Value
TypeDescription
System.String
Overrides

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides

CleanUpOnFaulted(Exception)

Declaration
    protected override void CleanUpOnFaulted(Exception e)
Parameters
TypeNameDescription
System.Exceptione
Overrides

CleanUpOnSuccess()

Declaration
    protected override void CleanUpOnSuccess()
Overrides

InitComponent()

Declaration
    protected override void InitComponent()
Overrides

LinkErrorTo(IDataFlowDestination<ETLBoxError>)

Declaration
    public IDataFlowSource<ETLBoxError> LinkErrorTo(IDataFlowDestination<ETLBoxError> target)
Parameters
TypeNameDescription
IDataFlowDestination<ETLBoxError>target
Returns
TypeDescription
IDataFlowSource<ETLBoxError>

PrepareParameter()

Declaration
    protected override void PrepareParameter()
Overrides

Implements