Class InputTableSnapshotter
java.lang.Object
io.deephaven.enterprise.database.inputtables.InputTableSnapshotter
- All Implemented Interfaces:
InputTableTool
Tool to snapshot specified Core+ input tables.
-
Method Summary
Modifier and TypeMethodDescriptionio.deephaven.shadow.enterprise.com.illumon.iris.db.util.config.tools.Result
computeResult
(@NotNull io.deephaven.shadow.enterprise.com.fishlib.io.logger.Logger log, @NotNull Database db, @NotNull List<io.deephaven.shadow.enterprise.com.illumon.iris.db.util.config.tools.InputTableNameTarget> targets) Main input table tool logic, e.g.static InputTableSnapshotter
create()
static String[]
getDatePartitions
(@NotNull Table data) Retrieve date partition values from a table.boolean
isValidTarget
(@NotNull Database db, @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.util.config.tools.InputTableNameTarget target) Determines whether input table target is valid and should be executed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.enterprise.database.inputtables.InputTableTool
runAll, runByNamespace, runByTableName
-
Method Details
-
getDatePartitions
Retrieve date partition values from a table.- Parameters:
data
- table to retrieve data partition values from- Returns:
- date partition values from a table
-
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 interfaceInputTableTool
- Parameters:
db
- database to retrieve input tablestarget
- 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 interfaceInputTableTool
- Parameters:
log
- logger for reportingdb
- database to retrieve input tablestargets
- input table targets- Returns:
- the
Result
of the execution
-