Class CachedRowTransformation<TInput, TOutput, TCache>
Inheritance
object
DataFlowSource<TOutput>
DataFlowTransformation<TInput, TOutput>
RowTransformation<TInput, TOutput>
CachedRowTransformation<TInput, TOutput, TCache>
Implements
IDataFlowTransformation<TInput, TOutput>
IDataFlowSource<TOutput>
IDataFlowDestination<TInput>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ETLBox.DataFlow.Transformations
Assembly: ETLBox.dll
Syntax
public class CachedRowTransformation<TInput, TOutput, TCache> : RowTransformation<TInput, TOutput>, ILoggableTask, IDataFlowLogging, IDataFlowTransformation<TInput, TOutput>, IDataFlowSource<TOutput>, IDataFlowSource, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent
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 |
---|---|---|
System.Func<T1, T2, TResult><TInput, System.Collections.Generic.IEnumerable<T><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 previously records to store
Declaration
public int MaxCacheSize { get; set; }
Property Value
Type | Description |
---|---|
int |
TaskName
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 |
---|---|
string |
Overrides
ETLBox.DataFlow.Transformations.RowTransformation<TInput, TOutput>.TaskName
TransformationFunc
Declaration
public Func<TInput, IEnumerable<TCache>, TOutput> TransformationFunc { get; set; }
Property Value
Type | Description |
---|---|
System.Func<T1, T2, TResult><TInput, System.Collections.Generic.IEnumerable<T><TCache>, TOutput> |
Methods
CheckParameter()
Declaration
protected override void CheckParameter()
Overrides
ETLBox.DataFlow.Transformations.RowTransformation<TInput, TOutput>.CheckParameter()
InvokeInitActionOnce()
Declaration
protected override void InvokeInitActionOnce()
Overrides
ETLBox.DataFlow.Transformations.RowTransformation<TInput, TOutput>.InvokeInitActionOnce()
InvokeTransformationFunc(TInput)
Declaration
protected override TOutput InvokeTransformationFunc(TInput row)
Parameters
Type | Name | Description |
---|---|---|
TInput | row |
Returns
Type | Description |
---|---|
TOutput |
Overrides
ETLBox.DataFlow.Transformations.RowTransformation<TInput, TOutput>.InvokeTransformationFunc(TInput)