Talend Open Studio Cookbook
上QQ阅读APP看书,第一时间看更新

Dropping schemas to empty components

This simple tip is a useful time saver, especially when using generic schemas and the Hash components.

Getting ready

Open the job jo_cook_ch02_0040_dragSchema. If you open the tHashOutput components, you will see that they all share the same schema; the schemas are all Built-In.

How to do it…

  1. In the left-hand window open the generic schema sc_cook_0040_genericCustomer so that you can see the actual metadata.
    How to do it…
  2. Drag the metadata icon over each of the tHashOutput components.
  3. You will now see that all three components share the same generic schema.

How it works…

When you drag a metadata schema onto a component, the component is automatically populated with the new schema.

This is not generally a well-known feature of Talend, but it saves you having to navigate through the schema dialogues when you wish to share a common schema.

There’s more…

This method is particularly useful when using tHashInput components as re-usable lookups, based upon the schema of an existing tHashOutput. Each time you add an additional lookup, the generic schema can simply be dragged from the repository onto the new component, saving time and effort.