Common Properties of Joiners

Join Types
Slave Duplicates
CTL Templates for Joiners
Java Interfaces for Joiners

Joiners serve to put together records with potentially different metadata according to the specified key and the specified transformation.

Joiners have both input and output ports. The first input port is called master (driver), the other(s) are called slave(s).

Joiners join records from a master port with particular records from an error port. Joiners do not join records between slave ports.

They can join records incoming through at least two input ports (ExtHashJoin, ExtMergeJoin and RelationalJoin). The others can also join records incoming through a single input port with those from a lookup table (LookupJoin) or database table (DBJoin). In them, their slave data records are considered to be incoming through a virtual second input port.

Sorted or Unsorted Records

Two of these Joiners require that incoming records are sorted: ExtMergeJoin and RelationalJoin.

Matching on Equality and Non-equality

Generally, joiners match on equality: all join key fields from a master must match the corresponding fields from a slave.

RelationalJoin joins data records based on the non-equality conditions,

Output Port for Unmatched Records

DBJoin, ExtHashJoin, ExtMergeJoin and LookupJoin have optional output ports for unmatched master data records, as well.

Metadata

Joiners propagate metadata between a master input port and output port for unmatched records. Joiners do not propagate metadata in any other direction.

Joiners have no metadata templates.

You must assign metadata on input edges to be able to specify the transformation. The metadata on an output edge can be created and edited in a transformation editor.

Transformation

These components use transformations that are described in the section concerning transformers. For detailed information about how transformation should be defined, see Defining Transformations. All transformations in Joiners use a common transformation template (CTL Templates for Joiners) and common Java interface (Java Interfaces for Joiners).

Here is an overview of all Joiners:

Table 58.1. Joiners Comparison

ComponentSame input metadataSorted inputsSlave inputsOutputsOutput for drivers without slaveOutput for slaves without driverJoining based on equalityAuto-propagated metadata
Combine
no
no
1–n1-n   
no
CrossJoin
no
no
0-n1
no
no
no
yes
DBJoin
no
no
1 (virtual)1-2
yes
no
yes
yes
ExtHashJoin
no
no
1-n1
no
no
yes
yes
ExtMergeJoin
no
yes
1-n1
no
no
yes
yes
LookupJoin
no
no
1 (virtual)1-2
yes
no
yes
yes
RelationalJoin
no
yes
11
no
no
no
no