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 TableperformJoin(Table table1, Table table2, JoinType joinType, boolean allowDuplicates, boolean keepAllJoinKeyColumns, int[] leftJoinColumnIndexes, String... table2JoinColumnNames)Joins two tables.StringtoString()
-
-
-
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- iffalsethe join will fail if any columns other than the join column have the same name iftruethe join will succeed and duplicate columns are renamedkeepAllJoinKeyColumns- iffalsethe join will only keep join key columns in table1 iftruethe 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
-
-