CustomBatchDestination<TInput>

Class CustomBatchDestination<TInput>

Define your own batch destination block. This block accepts all data from the flow and will create batches of incoming data which can be processed with the WriteBatchAction.

Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public class CustomBatchDestination<TInput> : DataFlowBatchDestination<TInput>, IDataFlowBatchDestination<TInput>, IDataFlowDestination<TInput>, IDataFlowBatchDestination, IDataFlowDestination, IDataFlowComponent, ILoggableTask
Type Parameters
NameDescription
TInput

Type of ingoing data.

Constructors

CustomBatchDestination()

Declaration
    public CustomBatchDestination()

CustomBatchDestination(Action<TInput[], int>)

Declaration
    public CustomBatchDestination(Action<TInput[], int> writeBatchAction)
Parameters
TypeNameDescription
Action<TInput[], int>writeBatchAction

CustomBatchDestination(int, Action<TInput[], int>)

Declaration
    public CustomBatchDestination(int batchSize, Action<TInput[], int> writeBatchAction)
Parameters
TypeNameDescription
intbatchSize
Action<TInput[], int>writeBatchAction

Properties

WriteBatchAction

Each row that the CustomDestination receives is send into this Action as first input value. The second input value is the current progress count.

Declaration
    public Action<TInput[], int> WriteBatchAction { get; set; }
Property Value
TypeDescription
Action<TInput[], int>

Methods

BulkInsertData(TInput[])

Declaration
    protected override void BulkInsertData(TInput[] data)
Parameters
TypeNameDescription
TInput[]data
Overrides

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides

FinishWrite()

Declaration
    protected override void FinishWrite()
Overrides

PrepareWrite()

Declaration
    protected override void PrepareWrite()
Overrides

Implements