FilterTransformation<TInput>

Class FilterTransformation<TInput>

The FilterTransformation allows you to filter out rows that evaluate to a given predicate. By default the filter transformation will filter out null values.

Inheritance
DataFlowTransformation<TInput, TInput>
FilterTransformation<TInput>
Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public class FilterTransformation<TInput> : DataFlowTransformation<TInput, TInput>, IDataFlowTransformation<TInput, TInput>, IDataFlowSource<TInput>, IDataFlowSource, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, ILoggableTask
Type Parameters
NameDescription
TInput

The type of ingoing data.

Constructors

FilterTransformation()

Declaration
    public FilterTransformation()

FilterTransformation(Predicate<TInput>)

Declaration
    public FilterTransformation(Predicate<TInput> filterPredicate)
Parameters
TypeNameDescription
Predicate<TInput>filterPredicate

Properties

FilterPredicate

The filter predicates is true for all rows that should be filtered out. The default value will filter out null values.

Declaration
    public Predicate<TInput> FilterPredicate { get; set; }
Property Value
TypeDescription
Predicate<TInput>

FilteredCount

Declaration
    public int FilteredCount { get; }
Property Value
TypeDescription
int

PassedCount

Declaration
    public int PassedCount { get; }
Property Value
TypeDescription
int

SourceBlock

SourceBlock from the underlying TPL.Dataflow which is used as output buffer for the component.

Declaration
    public override ISourceBlock<TInput> SourceBlock { get; }
Property Value
TypeDescription
ISourceBlock<TInput>
Overrides

TargetBlock

TargetBlock from the underlying TPL.Dataflow which is used as input buffer for the component.

Declaration
    public override ITargetBlock<TInput> TargetBlock { get; }
Property Value
TypeDescription
ITargetBlock<TInput>
Overrides

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides

CleanUpOnFaulted(Exception)

Declaration
    protected override void CleanUpOnFaulted(Exception e)
Parameters
TypeNameDescription
Exceptione
Overrides

CleanUpOnSuccess()

Declaration
    protected override void CleanUpOnSuccess()
Overrides

InitComponent()

Declaration
    protected override void InitComponent()
Overrides

Reset()

Declaration
    protected override void Reset()
Overrides

Implements