Class CrossProductJoin


  • public class CrossProductJoin
    extends Object
    Implements joins between two or more Tables
    • Constructor Detail

      • CrossProductJoin

        public CrossProductJoin​(Table table,
                                String... joinColumnNames)
        Constructor.
        Parameters:
        table - The table to join on.
        joinColumnNames - The join column names to join on.
    • Method Detail

      • performJoin

        public Table performJoin​(Table table1,
                                 Table table2,
                                 JoinType joinType,
                                 boolean allowDuplicates,
                                 boolean keepAllJoinKeyColumns,
                                 int[] leftJoinColumnIndexes,
                                 String... table2JoinColumnNames)
        Joins two tables.
        Parameters:
        table1 - the table on the left side of the join.
        table2 - the table on the right side of the join.
        joinType - the type of join.
        allowDuplicates - if false the join will fail if any columns other than the join column have the same name if true the join will succeed and duplicate columns are renamed
        keepAllJoinKeyColumns - if false the join will only keep join key columns in table1 if true the join will return all join key columns in both table, which may have difference when there are null values
        table2JoinColumnNames - The names of the columns in table2 to join on.
        Returns:
        the joined table