java.lang.Object
java.lang.Enum<MigrationMode>
org.apache.ignite.migrationtools.cli.persistence.params.MigrationMode
All Implemented Interfaces:
Serializable, Comparable<MigrationMode>, Constable

public enum MigrationMode extends Enum<MigrationMode>
Allows controlling the error handling policy in case of an irreconcilable mismatch between the GG8 record and the target GG9 Table.
  • Enum Constant Details

    • ABORT

      public static final MigrationMode ABORT
      Abort the migration.
    • SKIP_RECORD

      public static final MigrationMode SKIP_RECORD
      The whole cache record will be ignored (not migrated to the table; lost).
    • IGNORE_COLUMN

      public static final MigrationMode IGNORE_COLUMN
      Any additional columns/fields in the cache record will be ignored (not migrated to the table; lost). The others will be migrated as usual.
    • PACK_EXTRA

      public static final MigrationMode PACK_EXTRA
      Any additional columns/fields in the cache record will be serialized to JSON and stored in the `__EXTRA__` column. This is an additional column that the tool adds to the table, it is not a native feature.

      This mode will allow to leverage the IgniteAdapter.Builder#allowExtraFields feature in the adapter module.

  • Method Details

    • values

      public static MigrationMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MigrationMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null