Class InputTableSnapshotExecutor
java.lang.Object
com.illumon.iris.db.util.config.tools.InputTableSnapshotExecutor
Abstracts input table snapshot execution for both Legacy and Core+.
Organized to support Legacy's partial client, partial server compute via CARQ as well as Core+ fully on server.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Actually executes the input table snapshots given a namespace.protected class
Actually executes the input table snapshot for a given namespace and table name.protected static interface
Actually runs the snapshot logic. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
InputTableSnapshotExecutor
(int daysSinceLastSnapshotThreshold, double changesToSnapshotSizeRatioThreshold, com.fishlib.io.logger.Logger log, DbAclWriteClient aclWriter) -
Method Summary
Modifier and TypeMethodDescriptioncomputeResult
(List<? extends InputTableTarget> snapshotTargets) Execute snapshots for each given snapshot target.protected abstract InputTableSnapshotExecutor.InputTableNamespaceSnapshotRunner
makeInputTableNamespaceSnapshotRunner
(InputTableNamespaceTarget inputTableNamespaceSnapshotTarget) protected abstract InputTableSnapshotExecutor.InputTableSnapshotRunner
makeInputTableSnapshotRunner
(InputTableNameTarget inputTableSnapshotTarget)
-
Field Details
-
SNAPSHOT_NAMESPACE_SUFFIX
- See Also:
-
-
Constructor Details
-
InputTableSnapshotExecutor
protected InputTableSnapshotExecutor(int daysSinceLastSnapshotThreshold, double changesToSnapshotSizeRatioThreshold, @NotNull com.fishlib.io.logger.Logger log, @NotNull DbAclWriteClient aclWriter)
-
-
Method Details
-
makeInputTableSnapshotRunner
protected abstract InputTableSnapshotExecutor.InputTableSnapshotRunner makeInputTableSnapshotRunner(@NotNull InputTableNameTarget inputTableSnapshotTarget) -
makeInputTableNamespaceSnapshotRunner
protected abstract InputTableSnapshotExecutor.InputTableNamespaceSnapshotRunner makeInputTableNamespaceSnapshotRunner(@NotNull InputTableNamespaceTarget inputTableNamespaceSnapshotTarget) -
computeResult
Execute snapshots for each given snapshot target.- Parameters:
snapshotTargets
- targets to snapshot- Returns:
- the result of the snapshot execution
-