Package tech.tablesaw.joining
Class CrossProductJoin
- java.lang.Object
-
- tech.tablesaw.joining.CrossProductJoin
-
public class CrossProductJoin extends Object
Implements joins between two or more Tables
-
-
Constructor Summary
Constructors Constructor Description CrossProductJoin(Table table, String... joinColumnNames)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Table
performJoin(Table table1, Table table2, JoinType joinType, boolean allowDuplicates, boolean keepAllJoinKeyColumns, int[] leftJoinColumnIndexes, String... table2JoinColumnNames)
Joins two tables.String
toString()
-
-
-
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
- iffalse
the join will fail if any columns other than the join column have the same name iftrue
the join will succeed and duplicate columns are renamedkeepAllJoinKeyColumns
- iffalse
the join will only keep join key columns in table1 iftrue
the join will return all join key columns in both table, which may have difference when there are null valuestable2JoinColumnNames
- The names of the columns in table2 to join on.- Returns:
- the joined table
-
-