Package org.apache.cassandra.schema
Enum Class Difference
- All Implemented Interfaces:
Serializable,Comparable<Difference>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DifferenceReturns the enum constant of this class with the specified name.static Difference[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException- if the argument is null
-