CachedRowTransformation<TInput, TOutput, TCache>

Class CachedRowTransformation<TInput, TOutput, TCache>

Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public class CachedRowTransformation<TInput, TOutput, TCache> : RowTransformation<TInput, TOutput>, IDataFlowTransformation<TInput, TOutput>, IDataFlowSource<TOutput>, IDataFlowSource, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, ILoggableTask where TCache : class
Type Parameters
NameDescription
TInput
TOutput
TCache

Constructors

CachedRowTransformation()

Declaration
    public CachedRowTransformation()

CachedRowTransformation(Func<TInput, CachedData<TCache>, TOutput>)

Declaration
    public CachedRowTransformation(Func<TInput, CachedData<TCache>, TOutput> transformationFunc)
Parameters
TypeNameDescription
Func<TInput, CachedData<TCache>, TOutput>transformationFunc

Will set the TransformationFunc

Properties

CacheManager

The CacheManager used for caching data

Declaration
    public ICacheManager<TInput, TCache> CacheManager { get; set; }
Property Value
TypeDescription
ICacheManager<TInput, TCache>

FillCacheAfterTransformation

If set to true, the incoming row will be added to the cache after the transformation func has been invoked.

Declaration
    public bool FillCacheAfterTransformation { get; set; }
Property Value
TypeDescription
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
TypeDescription
int

TransformationFunc

Declaration
    public Func<TInput, CachedData<TCache>, TOutput> TransformationFunc { get; set; }
Property Value
TypeDescription
Func<TInput, CachedData<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
TypeNameDescription
TInputrow
Returns
TypeDescription
TOutput
Overrides

Reset()

Declaration
    protected override void Reset()
Overrides

Implements