LoopCopy - 6.3

Talend Data Mapper User Guide

EnrichVersion
6.3
EnrichProdName
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend Studio

Name

LoopCopy

Purpose

Copy the loop expression from the specified output map element's loop expression.

Description

This loop function can be used only in the loop expression tab or as part of an aggregate function. This specifies that the same looping instructions are to be used as the referenced output map element. This function is automatically generated when using an aggregate function to refer to the loop expression corresponding to the argument of the aggregate function. It is simply a shorthand for the loop expression to which is refers.

The difference between this and the LoopReference function is that this may be used anywhere in the map, and it will execute newly the loop expression to which is refers rather than taking the values emitted by the loop expression as originally executed (which is what LoopReference does).

Argument

Map Element (Map Element)

An output map element that has a loop expression.

Argument

Contexts (Either NestedContext or EnclosingContext functions)

Specify either the EnclosingContext and/or NestedContext function. EnclosingContext specifies the output map element that encloses this loop. If not specified, the nearest looping ancestor map element is used.

NestedContext allows another loop expression to be specified within this loop expression.