Package com.illumon.iris.db.v2
Class ShiftedColumnOperation
java.lang.Object
com.illumon.iris.db.v2.ShiftedColumnOperation
public class ShiftedColumnOperation extends Object
Tools for creating a new ShiftedColumn(s) for a given input table and a source column(s)
-
Method Summary
Modifier and Type Method Description static Table
addShiftedColumns(Table input, long shift, MatchPair... matchPairs)
Creates a new table that has all the columns of the input table plus includes the new shifted column(s).static Table
addShiftedColumns(Table input, long shift, String... matchColumns)
Creates a new table that has all the columns of the input table plus includes the new shifted column(s).
-
Method Details
-
addShiftedColumns
public static Table addShiftedColumns(@NotNull Table input, long shift, @NotNull String... matchColumns)Creates a new table that has all the columns of the input table plus includes the new shifted column(s).- Parameters:
input
- source tableshift
- the positive or negative shift valuematchColumns
- the source and shifted column pair(s) as shifted=source for example "X1=X", "Y1=Y"...- Returns:
- a new Table that includes the shifted column
-
addShiftedColumns
public static Table addShiftedColumns(@NotNull Table input, long shift, @NotNull MatchPair... matchPairs)Creates a new table that has all the columns of the input table plus includes the new shifted column(s).- Parameters:
input
- the source table, used to create new table with the shifted columnshift
- the constant shift valuematchPairs
- the source and shifted column pair(s) as shifted=source match pairs- Returns:
- a new Table that has all columns from input table plus additional shifted column(s) that are created using the shift from their source column(s)
-