Package io.debezium.connector.cassandra
Enum CellData.ColumnType
- java.lang.Object
-
- java.lang.Enum<CellData.ColumnType>
-
- io.debezium.connector.cassandra.CellData.ColumnType
-
- All Implemented Interfaces:
Serializable,Comparable<CellData.ColumnType>
- Enclosing class:
- CellData
public static enum CellData.ColumnType extends Enum<CellData.ColumnType>
The type of a column in a Cassandra table
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLUSTERINGA clustering column is used to specifies the order that the data is arranged inside the partition.PARTITIONA partition column is responsible for data distribution across nodes for this table.REGULARA regular column is a column that is not a partition or a clustering column.
-
Constructor Summary
Constructors Modifier Constructor Description privateColumnType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CellData.ColumnTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CellData.ColumnType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARTITION
public static final CellData.ColumnType PARTITION
A partition column is responsible for data distribution across nodes for this table. Every Cassandra table must have at least one partition column.
-
CLUSTERING
public static final CellData.ColumnType CLUSTERING
A clustering column is used to specifies the order that the data is arranged inside the partition. A Cassandra table may not have any clustering column,
-
REGULAR
public static final CellData.ColumnType REGULAR
A regular column is a column that is not a partition or a clustering column.
-
-
Method Detail
-
values
public static CellData.ColumnType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CellData.ColumnType c : CellData.ColumnType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CellData.ColumnType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-