Class CachedRowTransformation<TInput, TOutput, TCache>

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
NameDescription
TInput
TOutput
TCache

Constructors

CachedRowTransformation()

Declaration
    public CachedRowTransformation()

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

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

Reset()

Declaration
    protected override void Reset()
Overrides

Implements