Package tech.tablesaw.joining
Class AbstractJoiner
- java.lang.Object
-
- tech.tablesaw.joining.AbstractJoiner
-
- Direct Known Subclasses:
DataFrameJoiner
public abstract class AbstractJoiner extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractJoiner()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract DataFrameJoiner
allowDuplicateColumnNames(boolean allow)
Table
fullOuter(boolean allowDuplicateColumnNames, Table... tables)
Deprecated.Table
fullOuter(Table... tables)
Deprecated.Table
fullOuter(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names)
Deprecated.Table
fullOuter(Table table2, String col2Name)
Deprecated.Table
inner(boolean allowDuplicateColumnNames, Table... tables)
Deprecated.Table
inner(Table... tables)
Deprecated.Table
inner(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names)
Deprecated.Table
inner(Table table2, boolean allowDuplicateColumnNames, String... col2Names)
Deprecated.Table
inner(Table table2, String col2Name)
Deprecated.Table
inner(Table table2, String[] col2Names)
Deprecated.Table
inner(Table table2, String col2Name, boolean allowDuplicateColumnNames)
Deprecated.abstract Table
join()
abstract DataFrameJoiner
keepAllJoinKeyColumns(boolean keep)
Table
leftOuter(boolean allowDuplicateColumnNames, Table... tables)
Deprecated.Table
leftOuter(Table... tables)
Deprecated.Table
leftOuter(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names)
Deprecated.Table
leftOuter(Table table2, boolean allowDuplicateColumnNames, String... col2Names)
Deprecated.Table
leftOuter(Table table2, String col2Name)
Deprecated.Table
leftOuter(Table table2, String[] col2Names)
Deprecated.abstract DataFrameJoiner
rightJoinColumns(String... rightJoinColumnNames)
Table
rightOuter(boolean allowDuplicateColumnNames, Table... tables)
Deprecated.Table
rightOuter(Table... tables)
Deprecated.Table
rightOuter(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names)
Deprecated.Table
rightOuter(Table table2, boolean allowDuplicateColumnNames, String... col2Names)
Deprecated.Table
rightOuter(Table table2, String col2Name)
Deprecated.Table
rightOuter(Table table2, String[] col2Names)
Deprecated.abstract DataFrameJoiner
type(JoinType joinType)
abstract DataFrameJoiner
with(Table... tables)
-
-
-
Method Detail
-
type
public abstract DataFrameJoiner type(JoinType joinType)
-
keepAllJoinKeyColumns
public abstract DataFrameJoiner keepAllJoinKeyColumns(boolean keep)
-
allowDuplicateColumnNames
public abstract DataFrameJoiner allowDuplicateColumnNames(boolean allow)
-
rightJoinColumns
public abstract DataFrameJoiner rightJoinColumns(String... rightJoinColumnNames)
-
with
public abstract DataFrameJoiner with(Table... tables)
-
join
public abstract Table join()
-
inner
@Deprecated public Table inner(Table... tables)
Deprecated.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
@Deprecated public Table inner(boolean allowDuplicateColumnNames, Table... tables)
Deprecated.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
@Deprecated public Table inner(Table table2, String col2Name)
Deprecated.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
@Deprecated public Table inner(Table table2, String[] col2Names)
Deprecated.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
@Deprecated public Table inner(Table table2, String col2Name, boolean allowDuplicateColumnNames)
Deprecated.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
@Deprecated public Table inner(Table table2, boolean allowDuplicateColumnNames, String... col2Names)
Deprecated.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
@Deprecated public Table inner(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names)
Deprecated.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
@Deprecated public Table fullOuter(Table... tables)
Deprecated.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
@Deprecated public Table fullOuter(boolean allowDuplicateColumnNames, Table... tables)
Deprecated.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
@Deprecated public Table fullOuter(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names)
Deprecated.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
@Deprecated public Table fullOuter(Table table2, String col2Name)
Deprecated.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
@Deprecated public Table leftOuter(Table... tables)
Deprecated.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
@Deprecated public Table leftOuter(boolean allowDuplicateColumnNames, Table... tables)
Deprecated.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
@Deprecated public Table leftOuter(Table table2, String[] col2Names)
Deprecated.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
@Deprecated public Table leftOuter(Table table2, String col2Name)
Deprecated.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
@Deprecated public Table leftOuter(Table table2, boolean allowDuplicateColumnNames, String... col2Names)
Deprecated.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
@Deprecated public Table leftOuter(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names)
Deprecated.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
@Deprecated public Table rightOuter(Table... tables)
Deprecated.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
@Deprecated public Table rightOuter(boolean allowDuplicateColumnNames, Table... tables)
Deprecated.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
@Deprecated public Table rightOuter(Table table2, String col2Name)
Deprecated.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
@Deprecated public Table rightOuter(Table table2, String[] col2Names)
Deprecated.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
@Deprecated public Table rightOuter(Table table2, boolean allowDuplicateColumnNames, String... col2Names)
Deprecated.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.
-
rightOuter
@Deprecated public Table rightOuter(Table table2, boolean allowDuplicateColumnNames, boolean keepAllJoinKeyColumns, String... col2Names)
Deprecated.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
-
-