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.ResultcomputeResult(@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 InputTableSnapshottercreate()static String[]getDatePartitions(@NotNull Table data) Retrieve date partition values from a table.booleanisValidTarget(@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, waitMethods 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:InputTableToolDetermines whether input table target is valid and should be executed.- Specified by:
isValidTargetin 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:InputTableToolMain input table tool logic, e.g. snapshotting or converting.- Specified by:
computeResultin interfaceInputTableTool- Parameters:
log- logger for reportingdb- database to retrieve input tablestargets- input table targets- Returns:
- the
Resultof the execution
-