Class InputTableSnapshotExecutor.InputTableSnapshotRunner
java.lang.Object
com.illumon.iris.db.util.config.tools.InputTableSnapshotExecutor.InputTableSnapshotRunner
- All Implemented Interfaces:
InputTableSnapshotExecutor.SnapshotRunner
- Enclosing class:
- InputTableSnapshotExecutor
protected abstract class InputTableSnapshotExecutor.InputTableSnapshotRunner
extends Object
implements InputTableSnapshotExecutor.SnapshotRunner
Actually executes the input table snapshot for a given namespace and table name.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classA function that reuses the first result. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInputTableSnapshotRunner(@NotNull InputTableNameTarget target) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddSnapshotDefinition(@NotNull String snapshotNamespace) protected abstract String[]getSnapshotDates(@NotNull String snapshotNamespace) protected abstract booleanhasSnapshotNamespace(@NotNull String snapshotNamespace) protected abstract booleanhasSnapshotTable(@NotNull String snapshotNamespace) protected abstract booleanprotected abstract booleanprotected abstract intprotected abstract intvoidrun()protected abstract longsizeOfChangesSinceLastSnapshot(@NotNull String snapshotNamespace) protected abstract longsizeOfLastSnapshot(@NotNull String snapshotNamespace) protected abstract voidsnapshotLastSnapshotAndLiveData(@NotNull String snapshotNamespace) protected abstract voidsnapshotLiveData(@NotNull String snapshotNamespace)
-
Field Details
-
target
-
currentDate
-
-
Constructor Details
-
InputTableSnapshotRunner
-
-
Method Details
-
inputTableExists
protected abstract boolean inputTableExists() -
inputTableIsEmpty
protected abstract boolean inputTableIsEmpty() -
inputTablePartitionCount
protected abstract int inputTablePartitionCount() -
inputTablePartitionMinimum
protected abstract int inputTablePartitionMinimum() -
hasSnapshotNamespace
-
hasSnapshotTable
-
addSnapshotDefinition
-
getSnapshotDates
-
snapshotLiveData
-
sizeOfChangesSinceLastSnapshot
-
sizeOfLastSnapshot
-
snapshotLastSnapshotAndLiveData
-
run
public void run()- Specified by:
runin interfaceInputTableSnapshotExecutor.SnapshotRunner
-