Package com.illumon.iris.db.util.config
Class InputTableSnapshotter
java.lang.Object
com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery<InputTableSnapshotter.Result>
com.illumon.iris.db.util.config.InputTableSnapshotter
- All Implemented Interfaces:
RemoteQuery<InputTableSnapshotter.Result>
,Serializable
public class InputTableSnapshotter extends ContextAwareRemoteQuery<InputTableSnapshotter.Result>
This tool will examine a specified set of input tables and write snapshot tables as necessary.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InputTableSnapshotter.Result
-
Field Summary
Fields Modifier and Type Field Description static String
SNAPSHOT_NAMESPACE_SUFFIX
-
Constructor Summary
Constructors Constructor Description InputTableSnapshotter(int daysSinceLastSnapshotThreshold, double changesToSnapshotSizeRatioThreshold, com.illumon.iris.db.util.config.InputTableSnapshotter.SnapshotTask[] snapshotTasks)
-
Method Summary
Modifier and Type Method Description InputTableSnapshotter.Result
execute(Database db)
Execute a query on a remote host.static void
main(String... args)
Methods inherited from class com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery
getClient, getLog, getRemoteQueryProcessor, getUserContext, initializeContext, initializeContext
-
Field Details
-
Constructor Details
-
InputTableSnapshotter
public InputTableSnapshotter(int daysSinceLastSnapshotThreshold, double changesToSnapshotSizeRatioThreshold, @NotNull com.illumon.iris.db.util.config.InputTableSnapshotter.SnapshotTask[] snapshotTasks)
-
-
Method Details
-
execute
Description copied from interface:RemoteQuery
Execute a query on a remote host.- Parameters:
db
- database to use for execution.- Returns:
- result of the query.
-
main
-