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 class
A function that reuses the first result. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addSnapshotDefinition
(String snapshotNamespace) protected abstract String[]
getSnapshotDates
(String snapshotNamespace) protected abstract boolean
hasSnapshotNamespace
(String snapshotNamespace) protected abstract boolean
hasSnapshotTable
(String snapshotNamespace) protected abstract boolean
protected abstract boolean
protected abstract int
protected abstract int
void
run()
protected abstract long
sizeOfChangesSinceLastSnapshot
(String snapshotNamespace) protected abstract long
sizeOfLastSnapshot
(String snapshotNamespace) protected abstract void
snapshotLastSnapshotAndLiveData
(String snapshotNamespace) protected abstract void
snapshotLiveData
(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:
run
in interfaceInputTableSnapshotExecutor.SnapshotRunner
-