The following function is used to build parameters used by the prototype.joinInner and prototype.joinLeftOuter methods.