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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddSnapshotDefinition(String snapshotNamespace) protected abstract String[]getSnapshotDates(String snapshotNamespace) protected abstract booleanhasSnapshotNamespace(String snapshotNamespace) protected abstract booleanhasSnapshotTable(String snapshotNamespace) protected abstract booleanprotected abstract booleanprotected abstract intprotected abstract intvoidrun()protected abstract longsizeOfChangesSinceLastSnapshot(String snapshotNamespace) protected abstract longsizeOfLastSnapshot(String snapshotNamespace) protected abstract voidsnapshotLastSnapshotAndLiveData(String snapshotNamespace) protected abstract voidsnapshotLiveData(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
-