MergeJoin by record number

What would be the best way to take two inputs whose records are related to each other by their location within the file? There are no common keys to join by.

So what about to create your own artificial key via reformat component? To each record in both input stream you can generate ordinal number and then join them with merge join component…

Or consider creating a custom component, which should be very similar to reformat one.

Don’t hesitate and ask me for more details if it is necessary.

OtaSanek

I have thought about a custom KeyGenerator component, and I can see how using a PrimitiveSequence within a Reformat component could accomplish it.

However, I was hoping to eliminate the extra pass through each data set.