Class NoSqlDatabaseCreator<T extends NoSqlMigration>

    • Constructor Detail

      • NoSqlDatabaseCreator

        protected NoSqlDatabaseCreator​(List<T> migrations)
    • Method Detail

      • runMigrations

        public void runMigrations()
      • isValidMigration

        protected boolean isValidMigration​(T noSqlMigration)
      • isIncreasePartitions

        protected abstract boolean isIncreasePartitions​(T noSqlMigration)
      • isNewMigration

        protected abstract boolean isNewMigration​(T noSqlMigration)
      • runMigration

        protected abstract void runMigration​(T noSqlMigration)
                                      throws Exception
        Throws:
        Exception
      • markMigrationAsDone

        protected abstract boolean markMigrationAsDone​(T noSqlMigration)
      • runMigrationIfNecessary

        protected void runMigrationIfNecessary​(T noSqlMigration)
      • getMigrations

        protected Stream<T> getMigrations()