
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…
- In the left-hand window open the generic schema
sc_cook_0040_genericCustomer
so that you can see the actual metadata. - Drag the metadata icon over each of the
tHashOutput
components. - 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.