Router Transformation
A Router
transformation is similar to a Filter transformation because both
transformations allow you to use a condition to test data. A Filter
transformation tests data for one condition and drops the rows of data that do
not meet the condition. However, a Router transformation tests data for one or
more conditions and gives you the option to route rows of data that do not meet
any of the conditions to a default output group.
If you need to
test the same input data based on multiple conditions, use a Router
transformation in a mapping instead of creating multiple Filter transformations
to perform the same task. The Router transformation is more efficient. For
example, to test data based on three conditions, you only need one Router
transformation instead of three filter transformations to perform this task.
Filter Conditions
NEWGROUP1 : v_count=1
NEWGROUP2 : v_count=2
Default1
NEWGROUP2 : v_count=2
Default1
Transformation type:
Active
A Router transformation has the following types of groups:
Input Group
Output Groups
User-Defined Groups
You create a
user-defined group to test a condition based on incoming data. A user-defined
group consists of output ports and a group filter condition. You can create and
edit user-defined groups on the Groups tab with the Designer. Create one
user-defined group for each condition that you want to specify.
Default Group
The Designer
creates the default group after you create one new user-defined group. The
Designer does not allow you to edit or delete the default group. This group does
not have a group filter condition associated with it. If all of the
conditions evaluate to FALSE, the Integration Service passes the row to the
default group. If you want the Integration Service to drop all rows in the
default group, do not connect it to a transformation or a target in a mapping.
Comments
Post a Comment