Class CachedBatchTransformation<TInput, TOutput, TCache>
A batch transformation will transform batches of data. The default batch size are 100000 rows.
The batch transformation function allows you to process and modify each batch of data.
You can use the BatchSize property to choose a smaller batch size. The batch size must always be smaller
than the max buffer size. The default batch size are 1000 rows per batch.
The batch transformation is a partial blocking transformation - it will always need at least enough
memory to store a whole batch.
Inheritance
System.Object
CachedBatchTransformation<TInput, TOutput, TCache>
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()
Assembly: ETLBox.dll
public class CachedBatchTransformation<TInput, TOutput, TCache> : BatchTransformation<TInput, TOutput>, ILoggableTask, IDataFlowLogging, IDataFlowTransformation<TInput, TOutput>, IDataFlowSource<TOutput>, IDataFlowSource, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent
Type Parameters
Name |
Description |
TInput |
Type of ingoing data.
|
TOutput |
Type of outgoing data.
|
TCache |
|
Constructors
Declaration
public CachedBatchTransformation()
Declaration
public CachedBatchTransformation(int batchSize)
Parameters
Declaration
public CachedBatchTransformation(int batchSize, Func<TInput[], ICollection<TCache>, TOutput[]> batchTransformationFunc)
Parameters
Type |
Name |
Description |
System.Int32 |
batchSize |
|
System.Func<TInput[], System.Collections.Generic.ICollection<TCache>, TOutput[]> |
batchTransformationFunc |
|
Properties
Declaration
public Func<TInput[], ICollection<TCache>, TOutput[]> BatchTransformationFunc { get; set; }
Property Value
Type |
Description |
System.Func<TInput[], System.Collections.Generic.ICollection<TCache>, TOutput[]> |
|
The CacheManager to use when caching data
Declaration
public ICacheManager<TInput, TCache> CacheManager { get; set; }
Property Value
If set to true, the incoming row will be added to the cache after the
transformation func has been invoked.
Declaration
public bool FillCacheAfterTranformation { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
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
Type |
Description |
System.String |
|
Overrides
ETLBox.DataFlow.Transformations.BatchTransformation<TInput, TOutput>.TaskName
Methods
Declaration
protected override void CheckParameter()
Overrides
ETLBox.DataFlow.Transformations.BatchTransformation<TInput, TOutput>.CheckParameter()
Declaration
protected override TOutput[] InvokeBatchTransformationFunc(TInput[] batch)
Parameters
Type |
Name |
Description |
TInput[] |
batch |
|
Returns
Type |
Description |
TOutput[] |
|
Overrides
ETLBox.DataFlow.Transformations.BatchTransformation<TInput, TOutput>.InvokeBatchTransformationFunc(TInput[])
Declaration
protected override void InvokeInitActionOnce()
Overrides
ETLBox.DataFlow.Transformations.BatchTransformation<TInput, TOutput>.InvokeInitActionOnce()
Implements