Row Duplication
The RowDuplication simply creates duplicates of the incoming rows. You can specify how many copies you want or if you want to create a copy only if a predicate evaluates to true.
On this page
Overview
Sometimes you want to duplicate the rows of your input data. This can be easily done with the RowDuplication
transformation - it will give you one or more duplicates of your data. If you want only to duplicate particular rows, you can pass a Predicate expression that define which rows can be clones and which not.
Buffer
The RowDuplication
is a non blocking transformation. It has one input buffer.
Code snippet
Here a simple example for creating three duplicates of each row:
Example
Let’s have a look at an example for data duplication:
The default value for the RowDuplication
is one, which means that every row creates one copy.
You can set up a predicate that only creates a copy of the row if it evaluates to true. If we set the CanDuplicate property in the example above:
This would change the output to this: