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
    • 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 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 input table plus additional shifted column(s) that are created using the shift from their source column(s)