Showing posts with label replication. Show all posts
Showing posts with label replication. Show all posts

Ab Initio Component | REPLICATE

Purpose of REPLICATE


  • REPLICATE arbitrarily combines all records it receives into a single flow and writes a copy of that flow to each of its output flows. Use REPLICATE to support component parallelism — such as when you want to perform more than one operation on a flow of records coming from an active component.

  • The input port of REPLICATE has an implicit gather. If this port receives more than one input stream, REPLICATE does not preserve sort order.

  • REPLICATE is not required when you want to read data from an INPUT FILE component on multiple flows. Rather, you can connect multiple flows directly to the INPUT FILE. The downstream components each read the data independently, which sometimes results in improved graph performance.

Parameters for REPLICATE

  •     Replicate Components does not have any parameters. 

Runtime behavior of REPLICATE

REPLICATE perform the following operations:

1. It arbitrarily combines the records from all the flows on the in port into a single flow.

2. After performing step1 it copies that flow to all the flows connected to the out port.

Note :

REPLICATE does not support implicit reformat, so you cannot use it to change the record format associated with a particular flow. For that reason, you must make the record format of the in and out ports identical. If you do not, execution of the graph stops when it reaches REPLICATE.