Package tech.tablesaw.joining
Class DataFrameJoiner
java.lang.Object
tech.tablesaw.joining.DataFrameJoiner
Implements joins between two or more Tables
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFull outer join to the given tables assuming that they have a column of the name we're joining onFull outer join to the given tables assuming that they have a column of the name we're joining onfullOuter
(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names) Joins the joiner to the table2, using the given columns for the second table and returns the resulting tableFull outer join the joiner to the table2, using the given column for the second table and returns the resulting tableJoins to the given tables assuming that they have a column of the name we're joining onJoins to the given tables assuming that they have a column of the name we're joining oninner
(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names) Joins the joiner to the table2, using the given columns for the second table and returns the resulting tableJoins the joiner to the table2, using the given columns for the second table and returns the resulting tableJoins the joiner to the table2, using the given column for the second table and returns the resulting tableJoins the joiner to the table2, using the given columns for the second table and returns the resulting tableJoins the joiner to the table2, using the given column for the second table and returns the resulting tableJoins to the given tables assuming that they have a column of the name we're joining onJoins to the given tables assuming that they have a column of the name we're joining onleftOuter
(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names) Joins the joiner to the table2, using the given columns for the second table and returns the resulting tableJoins the joiner to the table2, using the given columns for the second table and returns the resulting tableJoins the joiner to the table2, using the given column for the second table and returns the resulting tableJoins the joiner to the table2, using the given columns for the second table and returns the resulting tablerightOuter
(boolean allowDuplicateColumnNames, Table... tables) Joins to the given tables assuming that they have a column of the name we're joining onrightOuter
(Table... tables) Joins to the given tables assuming that they have a column of the name we're joining onrightOuter
(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names) Joins the joiner to the table2, using the given columns for the second table and returns the resulting tablerightOuter
(Table table2, boolean allowDuplicateColumnNames, String... col2Names) Joins the joiner to the table2, using the given columns for the second table and returns the resulting tablerightOuter
(Table table2, String col2Name) Joins the joiner to the table2, using the given column for the second table and returns the resulting tablerightOuter
(Table table2, String[] col2Names) Joins the joiner to the table2, using the given columns for the second table and returns the resulting table
-
Constructor Details
-
DataFrameJoiner
Constructor.- Parameters:
table
- The table to join on.joinColumnNames
- The join column names to join on.
-
-
Method Details
-
inner
Joins to the given tables assuming that they have a column of the name we're joining on- Parameters:
tables
- The tables to join with
-
inner
Joins to the given tables assuming that they have a column of the name we're joining on- Parameters:
allowDuplicateColumnNames
- 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 renamed*tables
- The tables to join with
-
inner
Joins the joiner to the table2, using the given column for the second table and returns the resulting table- Parameters:
table2
- The table to join withcol2Name
- The column to join on. If col2Name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
inner
Joins the joiner to the table2, using the given columns for the second table and returns the resulting table- Parameters:
table2
- The table to join withcol2Names
- The columns to join on. If a name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
inner
Joins the joiner to the table2, using the given column for the second table and returns the resulting table- Parameters:
table2
- The table to join withcol2Name
- The column to join on. If col2Name refers to a double column, the join is performed after rounding to integers.allowDuplicateColumnNames
- 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 renamed*- Returns:
- The resulting table
-
inner
Joins the joiner to the table2, using the given columns for the second table and returns the resulting table- Parameters:
table2
- The table to join withallowDuplicateColumnNames
- 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 renamed*col2Names
- The columns to join on. If a name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
inner
public Table inner(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names) Joins the joiner to the table2, using the given columns for the second table and returns the resulting table- Parameters:
table2
- The table to join withallowDuplicateColumnNames
- 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 renamed*keepAllJoinKeyColumns
- 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 valuescol2Names
- The columns to join on. If a name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
fullOuter
Full outer join to the given tables assuming that they have a column of the name we're joining on- Parameters:
tables
- The tables to join with- Returns:
- The resulting table
-
fullOuter
Full outer join to the given tables assuming that they have a column of the name we're joining on- Parameters:
allowDuplicateColumnNames
- 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 renamed*tables
- The tables to join with- Returns:
- The resulting table
-
fullOuter
public Table fullOuter(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names) Joins the joiner to the table2, using the given columns for the second table and returns the resulting table- Parameters:
table2
- The table to join withallowDuplicateColumnNames
- 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 valuescol2Names
- The columns to join on. If a name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
fullOuter
Full outer join the joiner to the table2, using the given column for the second table and returns the resulting table- Parameters:
table2
- The table to join withcol2Name
- The column to join on. If col2Name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
leftOuter
Joins to the given tables assuming that they have a column of the name we're joining on- Parameters:
tables
- The tables to join with- Returns:
- The resulting table
-
leftOuter
Joins to the given tables assuming that they have a column of the name we're joining on- Parameters:
allowDuplicateColumnNames
- 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 renamed*tables
- The tables to join with- Returns:
- The resulting table
-
leftOuter
Joins the joiner to the table2, using the given columns for the second table and returns the resulting table- Parameters:
table2
- The table to join withcol2Names
- The columns to join on. If a name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
leftOuter
Joins the joiner to the table2, using the given column for the second table and returns the resulting table- Parameters:
table2
- The table to join withcol2Name
- The column to join on. If col2Name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
leftOuter
Joins the joiner to the table2, using the given columns for the second table and returns the resulting table- Parameters:
table2
- The table to join withallowDuplicateColumnNames
- 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 renamedcol2Names
- The columns to join on. If a name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
leftOuter
public Table leftOuter(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names) Joins the joiner to the table2, using the given columns for the second table and returns the resulting table- Parameters:
table2
- The table to join withallowDuplicateColumnNames
- 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 valuescol2Names
- The columns to join on. If a name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
rightOuter
Joins to the given tables assuming that they have a column of the name we're joining on- Parameters:
tables
- The tables to join with- Returns:
- The resulting table
-
rightOuter
Joins to the given tables assuming that they have a column of the name we're joining on- Parameters:
allowDuplicateColumnNames
- 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 renamedtables
- The tables to join with- Returns:
- The resulting table
-
rightOuter
Joins the joiner to the table2, using the given column for the second table and returns the resulting table- Parameters:
table2
- The table to join withcol2Name
- The column to join on. If col2Name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
rightOuter
Joins the joiner to the table2, using the given columns for the second table and returns the resulting table- Parameters:
table2
- The table to join withcol2Names
- The columns to join on. If a name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
rightOuter
Joins the joiner to the table2, using the given columns for the second table and returns the resulting table- Parameters:
table2
- The table to join withallowDuplicateColumnNames
- 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 renamedcol2Names
- The columns to join on. If a name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-
rightOuter
public Table rightOuter(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names) Joins the joiner to the table2, using the given columns for the second table and returns the resulting table- Parameters:
table2
- The table to join withallowDuplicateColumnNames
- 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 valuescol2Names
- The columns to join on. If a name refers to a double column, the join is performed after rounding to integers.- Returns:
- The resulting table
-