Class ShiftedColumnOperation

java.lang.Object
io.deephaven.engine.table.impl.ShiftedColumnOperation

public class ShiftedColumnOperation extends Object
Tools for creating a new ShiftedColumn(s) for a given input table and a source 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 table
      shift - the positive or negative shift value
      matchColumns - 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 column
      shift - the constant shift value
      matchPairs - 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)