Title here
Summary here
public abstract class DataFlowBatchDestination<TInput> : DataFlowDestination<TInput>, IDataFlowBatchDestination<TInput>, IDataFlowDestination<TInput>, IDataFlowBatchDestination, IDataFlowDestination, IDataFlowComponent, ILoggableTask
Name | Description |
---|---|
TInput |
This action is called after a batch was successfully inserted into the destination. You will get a copy of the data that was used for the insertion.
public Action<TInput[]> AfterBatchWrite { get; set; }
Type | Description |
---|---|
Action<TInput[]> |
The batch size defines how many records needs to be in the Input buffer before data is written into the destination. The default batch size is 1000.
public int BatchSize { get; set; }
Type | Description |
---|---|
int |
This function is called every time before a batch is inserted into the destination. It receives an array that represents the batch - you can modify the data itself if needed.
public Func<TInput[], TInput[]> BeforeBatchWrite { get; set; }
Type | Description |
---|---|
Func<TInput[], TInput[]> |
protected override bool UseBufferBlock { get; set; }
Type | Description |
---|---|
bool |
protected abstract void BulkInsertData(TInput[] data)
Type | Name | Description |
---|---|---|
TInput[] | data |
protected override void CleanUpOnFaulted(Exception e)
Type | Name | Description |
---|---|---|
Exception | e |
protected override void CleanUpOnSuccess()
protected abstract void FinishWrite()
protected override void InitComponent()
protected abstract void PrepareWrite()
protected override void WriteBatch(TInput[] data)
Type | Name | Description |
---|---|---|
TInput[] | data |