Common Properties of Joiners

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

Joiners serve to put together the 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 master port with particular records from error port. Joiners do not join records between slave ports.

They can join the records incoming through at least two input ports (ExtHashJoin, ExtMergeJoin, and RelationalJoin). The others can also join the records incoming through a single input port with those from 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 the join key fields from master must match the corresponding fields from 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 also for unmatched master data records.

Metadata

Joiners propagate metadata between 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 the output edge can be created and edited in transformation editor.

Transformation

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

Here is an overview of all Joiners:

Table 51.1. Joiners Comparison

Component Same input metadata Sorted inputs Slave inputs Outputs Output for drivers without slave Output for slaves without driver Joining based on equality Auto-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