Class InputTableSnapshotter

java.lang.Object
io.deephaven.enterprise.database.inputtables.InputTableSnapshotter
All Implemented Interfaces:
InputTableTool

public final class InputTableSnapshotter extends Object implements InputTableTool
Tool to snapshot specified Core+ input tables.
  • Method Details

    • getDatePartitions

      public static String[] getDatePartitions(@NotNull @NotNull Table data)
      Retrieve date partition values from a table.
      Parameters:
      data - table to retrieve data partition values from
      Returns:
      date partition values from a table
    • create

      public static InputTableSnapshotter create()
    • isValidTarget

      public boolean isValidTarget(@NotNull @NotNull Database db, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.util.config.tools.InputTableNameTarget target)
      Description copied from interface: InputTableTool
      Determines whether input table target is valid and should be executed.
      Specified by:
      isValidTarget in interface InputTableTool
      Parameters:
      db - database to retrieve input tables
      target - input table target
      Returns:
      true if input table target is valid; false if not
    • computeResult

      public io.deephaven.shadow.enterprise.com.illumon.iris.db.util.config.tools.Result computeResult(@NotNull @NotNull io.deephaven.shadow.enterprise.com.fishlib.io.logger.Logger log, @NotNull @NotNull Database db, @NotNull @NotNull List<io.deephaven.shadow.enterprise.com.illumon.iris.db.util.config.tools.InputTableNameTarget> targets)
      Description copied from interface: InputTableTool
      Main input table tool logic, e.g. snapshotting or converting.
      Specified by:
      computeResult in interface InputTableTool
      Parameters:
      log - logger for reporting
      db - database to retrieve input tables
      targets - input table targets
      Returns:
      the Result of the execution