Class CachedRowTransformation<TInput, TOutput, TCache>
Inheritance
DataFlowSource<TOutput>
DataFlowTransformation<TInput, TOutput>
RowTransformation<TInput, TOutput>
CachedRowTransformation<TInput, TOutput, TCache>
Implements
IDataFlowTransformation<TInput, TOutput>
IDataFlowSource<TOutput>
IDataFlowDestination<TInput>
Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
public class CachedRowTransformation<TInput, TOutput, TCache> : RowTransformation<TInput, TOutput>, IDataFlowLogging, IDataFlowTransformation<TInput, TOutput>, IDataFlowSource<TOutput>, IDataFlowSource, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, ILoggableTask where TCache : class
Type Parameters
Name | Description |
---|---|
TInput | |
TOutput | |
TCache |
Constructors
CachedRowTransformation()
Declaration
public CachedRowTransformation()
CachedRowTransformation(Func<TInput, IEnumerable<TCache>, TOutput>)
Declaration
public CachedRowTransformation(Func<TInput, IEnumerable<TCache>, TOutput> transformationFunc)
Parameters
Type | Name | Description |
---|---|---|
Func<TInput, IEnumerable<TCache>, TOutput> | transformationFunc | Will set the TransformationFunc |
Properties
CacheManager
The CacheManager used for caching data
Declaration
public ICacheManager<TInput, TCache> CacheManager { get; }
Property Value
Type | Description |
---|---|
ICacheManager<TInput, TCache> |
FillCacheAfterTranformation
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 |
---|---|
bool |
MaxCacheSize
The maximum amount of records to store in the cache - this number will only be used if the cache manager supports limiting the cache size.
Declaration
public int MaxCacheSize { get; set; }
Property Value
Type | Description |
---|---|
int |
TransformationFunc
Declaration
public Func<TInput, IEnumerable<TCache>, TOutput> TransformationFunc { get; set; }
Property Value
Type | Description |
---|---|
Func<TInput, IEnumerable<TCache>, TOutput> |
Methods
CheckParameter()
Declaration
protected override void CheckParameter()
Overrides
InvokeInitActionOnce()
Declaration
protected override void InvokeInitActionOnce()
Overrides
InvokeTransformationFunc(TInput)
Declaration
protected override TOutput InvokeTransformationFunc(TInput row)
Parameters
Type | Name | Description |
---|---|---|
TInput | row |
Returns
Type | Description |
---|---|
TOutput |
Overrides
Reset()
Declaration
protected override void Reset()