Enum Class ColumnTypes

java.lang.Object
java.lang.Enum<ColumnTypes>
com.datastax.astra.client.tables.definition.columns.ColumnTypes
All Implemented Interfaces:
Serializable, Comparable<ColumnTypes>, Constable

public enum ColumnTypes extends Enum<ColumnTypes>
Represents the various column types supported in a database schema. Each column type is associated with a string representation.

This enum includes common types like TEXT, INT, and UUID, as well as specialized types such as VECTOR and UNSUPPORTED.

Example usage:

 
 ColumnTypes columnType = ColumnTypes.TEXT;
 String columnValue = columnType.getValue();
 
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    ASCII string type.
    64-bit signed integer.
    Binary large object (BLOB) type.
    Boolean type, representing true or false values.
    Date type, storing only the date part without a time zone.
    Arbitrary precision decimal number.
    Double-precision floating-point number.
    Time duration type.
    Single-precision floating-point number.
    IP address type.
    32-bit signed integer.
    List collection type.
    Map collection type, storing key-value pairs.
    Set collection type, storing unique elements.
    16-bit signed integer.
    Text or string type.
    Time type, storing only the time part.
    Timestamp type, representing a specific date and time.
    8-bit signed integer.
    Represents an undefined column type.
    Represents unsupported column types.
    Universally Unique Identifier (UUID) type.
    Arbitrary precision integer type.
    Vector data type, typically used for machine learning or specialized computations.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static ColumnTypes[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ASCII

      public static final ColumnTypes ASCII
      ASCII string type.
    • BIGINT

      public static final ColumnTypes BIGINT
      64-bit signed integer.
    • BLOB

      public static final ColumnTypes BLOB
      Binary large object (BLOB) type.
    • BOOLEAN

      public static final ColumnTypes BOOLEAN
      Boolean type, representing true or false values.
    • DATE

      public static final ColumnTypes DATE
      Date type, storing only the date part without a time zone.
    • DECIMAL

      public static final ColumnTypes DECIMAL
      Arbitrary precision decimal number.
    • DOUBLE

      public static final ColumnTypes DOUBLE
      Double-precision floating-point number.
    • DURATION

      public static final ColumnTypes DURATION
      Time duration type.
    • FLOAT

      public static final ColumnTypes FLOAT
      Single-precision floating-point number.
    • INET

      public static final ColumnTypes INET
      IP address type.
    • INT

      public static final ColumnTypes INT
      32-bit signed integer.
    • LIST

      public static final ColumnTypes LIST
      List collection type.
    • MAP

      public static final ColumnTypes MAP
      Map collection type, storing key-value pairs.
    • SET

      public static final ColumnTypes SET
      Set collection type, storing unique elements.
    • SMALLINT

      public static final ColumnTypes SMALLINT
      16-bit signed integer.
    • TEXT

      public static final ColumnTypes TEXT
      Text or string type.
    • TIME

      public static final ColumnTypes TIME
      Time type, storing only the time part.
    • TIMESTAMP

      public static final ColumnTypes TIMESTAMP
      Timestamp type, representing a specific date and time.
    • TINYINT

      public static final ColumnTypes TINYINT
      8-bit signed integer.
    • VARINT

      public static final ColumnTypes VARINT
      Arbitrary precision integer type.
    • UUID

      public static final ColumnTypes UUID
      Universally Unique Identifier (UUID) type.
    • UNSUPPORTED

      public static final ColumnTypes UNSUPPORTED
      Represents unsupported column types.
    • UNDEFINED

      public static final ColumnTypes UNDEFINED
      Represents an undefined column type.
    • VECTOR

      public static final ColumnTypes VECTOR
      Vector data type, typically used for machine learning or specialized computations.
  • Method Details

    • values

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