Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Access Policy transformation
  6. B2B transformation
  7. Aggregator transformation
  8. Cleanse transformation
  9. Data Masking transformation
  10. Data Services transformation
  11. Deduplicate transformation
  12. Expression transformation
  13. Filter transformation
  14. Hierarchy Builder transformation
  15. Hierarchy Parser transformation
  16. Hierarchy Processor transformation
  17. Input transformation
  18. Java transformation
  19. Java transformation API reference
  20. Joiner transformation
  21. Labeler transformation
  22. Lookup transformation
  23. Machine Learning transformation
  24. Mapplet transformation
  25. Normalizer transformation
  26. Output transformation
  27. Parse transformation
  28. Python transformation
  29. Rank transformation
  30. Router transformation
  31. Rule Specification transformation
  32. Sequence Generator transformation
  33. Sorter transformation
  34. SQL transformation
  35. Structure Parser transformation
  36. Transaction Control transformation
  37. Union transformation
  38. Velocity transformation
  39. Verifier transformation
  40. Web Services transformation

Transformations

Transformations

Router transformation

Router transformation

The Router transformation is an active transformation that you can use to apply a condition to incoming data.
In a Router transformation,
Data Integration
uses a filter condition to evaluate each row of incoming data. It tests the conditions of each user-defined group before processing the default group. If a row meets more than one group filter condition,
Data Integration
passes the row multiple times. You can either drop rows that do not meet any of the conditions or route those rows 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 following table compares the Router transformation to the Filter transformation:
Options
Router
Filter
Conditions
Test for multiple conditions in a single Router transformation
Test for one condition per Filter transformation
Handle rows that do not meet the condition
Route rows to the default output group or drop rows that do not meet the condition
Drop rows that do not meet the condition
Incoming data
Process once with a single Router transformation
Process in each Filter transformation
The following figure shows a mapping with a Router transformation that filters data based on region and routes it to a different target, either NA, EMEA, or APAC. The transformation routes data for other regions to the default target:
The mapping routes data from source "src_Countries" to the targets "t_NA," "t_EMEA," or "t_APAC" based on the region. The Router transformation routes data for all other regions to default target "t_Default."

0 COMMENTS

We’d like to hear from you!