CachedBatchTransformation<TInput, TOutput, TCache>
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
Implements
Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
Type Parameters
Name | Description |
---|---|
TInput | Type of ingoing data. |
TOutput | Type of outgoing data. |
TCache | Type of data in the cache. |
Constructors
CachedBatchTransformation()
Declaration
CachedBatchTransformation(int)
Declaration
Parameters
Type | Name | Description |
---|---|---|
int | batchSize | The size of each batch |
CachedBatchTransformation(int, Func<TInput[], CachedData<TCache>, TOutput[]>)
Declaration
Parameters
Type | Name | Description |
---|---|---|
int | batchSize | The size of each batch |
Func<TInput[], CachedData<TCache>, TOutput[]> | batchTransformationFunc | Sets the BatchTransformationFunc |
Properties
BatchTransformationFunc
Declaration
Property Value
Type | Description |
---|---|
Func<TInput[], CachedData<TCache>, TOutput[]> |
CacheManager
The CacheManager to use when caching data
Declaration
Property Value
Type | Description |
---|---|
ICacheManager<TInput, TCache> |
MaxCacheSize
The maximum amount of previously records to store
Declaration
Property Value
Type | Description |
---|---|
int |
Methods
CheckParameter()
Declaration
Overrides
InvokeBatchTransformationFunc(TInput[])
Declaration
Parameters
Type | Name | Description |
---|---|---|
TInput[] | batch |
Returns
Type | Description |
---|---|
TOutput[] |