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.
Implements
Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
Type Parameters
Name | Description |
---|---|
TInput | The type of ingoing data. |
Constructors
FilterTransformation()
Declaration
FilterTransformation(Predicate<TInput>)
Declaration
Parameters
Type | Name | Description |
---|---|---|
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
Property Value
Type | Description |
---|---|
Predicate<TInput> |
FilteredCount
Declaration
Property Value
Type | Description |
---|---|
int |
PassedCount
Declaration
Property Value
Type | Description |
---|---|
int |
SourceBlock
SourceBlock from the underlying TPL.Dataflow which is used as output buffer for the component.
Declaration
Property Value
Type | Description |
---|---|
ISourceBlock<TInput> |
Overrides
TargetBlock
TargetBlock from the underlying TPL.Dataflow which is used as input buffer for the component.
Declaration
Property Value
Type | Description |
---|---|
ITargetBlock<TInput> |
Overrides
Methods
CheckParameter()
Declaration
Overrides
CleanUpOnFaulted(Exception)
Declaration
Parameters
Type | Name | Description |
---|---|---|
Exception | e |
Overrides
CleanUpOnSuccess()
Declaration
Overrides
InitComponent()
Declaration
Overrides
LinkTo(IDataFlowDestination<TInput>)
Links the current block to another transformation or destination. Every component should be linked to only one component without predicates If you want to link multiple targets, either use predicates or a Multicast
Declaration
Parameters
Type | Name | Description |
---|---|---|
IDataFlowDestination<TInput> | target | Transformation or destination that the block is linked to. |
Returns
Type | Description |
---|---|
IDataFlowSource<TInput> | The linked component. |
Overrides
LinkTo(IDataFlowDestination<TInput>, Predicate<TInput>)
Links the current block to another transformation or destination with a predicate. Every component can be linked to one or more component. If you link multiple components, provide a Predicate<T> that describe which row is send to which target. Make sure that all rows will be send to a target - use the VoidDestination if you want to discarded rows.
Declaration
Parameters
Type | Name | Description |
---|---|---|
IDataFlowDestination<TInput> | target | Transformation or destination that the block is linked to. |
Predicate<TInput> | rowsToKeep | Only rows that evaluate to true are send to the connected target |
Returns
Type | Description |
---|---|
IDataFlowSource<TInput> | The linked component. |
Overrides
LinkTo(IDataFlowDestination<TInput>, Predicate<TInput>, Predicate<TInput>)
Links the current block to another transformation or destination with a predicate for rows that you want to keep and a second predicate for rows you want to discard.
Declaration
Parameters
Type | Name | Description |
---|---|---|
IDataFlowDestination<TInput> | target | Transformation or destination that the block is linked to. |
Predicate<TInput> | rowsToKeep | Only rows that evaluate to true are send to the connected target |
Predicate<TInput> | rowsIntoVoid | Rows that are evaluate to true will be discarded |
Returns
Type | Description |
---|---|
IDataFlowSource<TInput> | The linked component. |
Overrides
LinkTo<TConvert>(IDataFlowDestination<TInput>)
Links the current block to another transformation or destination. Every component should be linked to only one component without predicates If you want to link multiple targets, either use predicates or a Multicast
Declaration
Parameters
Type | Name | Description |
---|---|---|
IDataFlowDestination<TInput> | target | Transformation or destination that the block is linked to. |
Returns
Type | Description |
---|---|
IDataFlowSource<TConvert> | The linked component. |
Type Parameters
Name | Description |
---|---|
TConvert | Will convert the output type of the linked component. |
Overrides
LinkTo<TConvert>(IDataFlowDestination<TInput>, Predicate<TInput>)
Links the current block to another transformation or destination with a predicate. Every component can be linked to one or more component. If you link multiple components, provide a Predicate<T> that describe which row is send to which target. Make sure that all rows will be send to a target - use the VoidDestination if you want to discarded rows.
Declaration
Parameters
Type | Name | Description |
---|---|---|
IDataFlowDestination<TInput> | target | Transformation or destination that the block is linked to. |
Predicate<TInput> | rowsToKeep | Predicate - only rows that evaluate to true are send to the connected target |
Returns
Type | Description |
---|---|
IDataFlowSource<TConvert> | The linked component. |
Type Parameters
Name | Description |
---|---|
TConvert | Will convert the output type of the linked component. |
Overrides
LinkTo<TConvert>(IDataFlowDestination<TInput>, Predicate<TInput>, Predicate<TInput>)
Links the current block to another transformation or destination with a predicate for rows that you want to keep and a second predicate for rows you want to discard.
Declaration
Parameters
Type | Name | Description |
---|---|---|
IDataFlowDestination<TInput> | target | Transformation or destination that the block is linked to. |
Predicate<TInput> | rowsToKeep | Only rows that evaluate to true are send to the connected target |
Predicate<TInput> | rowsIntoVoid | Rows that are evaluate to true will be discarded |
Returns
Type | Description |
---|---|
IDataFlowSource<TConvert> | The linked component. |
Type Parameters
Name | Description |
---|---|
TConvert | Will convert the output type of the linked component. |