Package io.deephaven.engine.table.impl
Class ShiftedColumnOperation
java.lang.Object
io.deephaven.engine.table.impl.ShiftedColumnOperation
Tools for creating a new ShiftedColumn(s) for a given input table and a source column(s)
-
Method Summary
Modifier and TypeMethodDescriptionstatic Table
addShiftedColumns
(@NotNull Table source, long shift, @NotNull MatchPair... matchPairs) Creates a new table that has all the columns of the source table plus includes the new shifted column(s).static Table
addShiftedColumns
(@NotNull Table source, long shift, @NotNull String... matchColumns) Creates a new table that has all the columns of the source table plus includes the new shifted column(s).
-
Method Details
-
addShiftedColumns
public static Table addShiftedColumns(@NotNull @NotNull Table source, long shift, @NotNull @NotNull String... matchColumns) Creates a new table that has all the columns of the source table plus includes the new shifted column(s).- Parameters:
source
- 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 @NotNull Table source, long shift, @NotNull @NotNull MatchPair... matchPairs) Creates a new table that has all the columns of the source table plus includes the new shifted column(s).- Parameters:
source
- 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 source table plus additional shifted column(s) that are created using the shift from their source column(s)
-