Enum Class Difference

java.lang.Object
java.lang.Enum<Difference>
org.apache.cassandra.schema.Difference
All Implemented Interfaces:
Serializable, Comparable<Difference>, Constable

public enum Difference extends Enum<Difference>
  • Enum Constant Details

    • DEEP

      public static final Difference DEEP
      Two schema objects are considered to differ DEEP-ly if one or more of their nested schema objects differ. For example, if a table T has a column c of type U, where U is a user defined type, then upon altering U table T0 (before alter) will differ DEEP-ly from table T1 (after alter).
    • SHALLOW

      public static final Difference SHALLOW
      Two schema objects are considered to differ DEEP-ly if their direct structure is altered. For example, if a table T is altered to add a new column, a different compaction strategy, or a new description, then it will differ SHALLOW-ly from the original.
  • Method Details

    • values

      public static Difference[] 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 Difference 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