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.
  • Field Details

  • Constructor Details

    • InputTableSnapshotRunner

      protected InputTableSnapshotRunner(@NotNull InputTableNameTarget target)
  • Method Details

    • inputTableExists

      protected abstract boolean inputTableExists()
    • inputTableIsEmpty

      protected abstract boolean inputTableIsEmpty()
    • inputTablePartitionCount

      protected abstract int inputTablePartitionCount()
    • inputTablePartitionMinimum

      protected abstract int inputTablePartitionMinimum()
    • hasSnapshotNamespace

      protected abstract boolean hasSnapshotNamespace(@NotNull String snapshotNamespace)
    • hasSnapshotTable

      protected abstract boolean hasSnapshotTable(@NotNull String snapshotNamespace)
    • addSnapshotDefinition

      protected abstract void addSnapshotDefinition(@NotNull String snapshotNamespace)
    • getSnapshotDates

      protected abstract String[] getSnapshotDates(@NotNull String snapshotNamespace)
    • snapshotLiveData

      protected abstract void snapshotLiveData(@NotNull String snapshotNamespace)
    • sizeOfChangesSinceLastSnapshot

      protected abstract long sizeOfChangesSinceLastSnapshot(@NotNull String snapshotNamespace)
    • sizeOfLastSnapshot

      protected abstract long sizeOfLastSnapshot(@NotNull String snapshotNamespace)
    • snapshotLastSnapshotAndLiveData

      protected abstract void snapshotLastSnapshotAndLiveData(@NotNull String snapshotNamespace)
    • run

      public void run()
      Specified by:
      run in interface InputTableSnapshotExecutor.SnapshotRunner