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 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 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