Enum Class DataType

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

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

    • CUSTOM

      public static final DataType CUSTOM
    • ASCII

      public static final DataType ASCII
    • BIGINT

      public static final DataType BIGINT
    • BLOB

      public static final DataType BLOB
    • BOOLEAN

      public static final DataType BOOLEAN
    • COUNTER

      public static final DataType COUNTER
    • DECIMAL

      public static final DataType DECIMAL
    • DOUBLE

      public static final DataType DOUBLE
    • FLOAT

      public static final DataType FLOAT
    • INT

      public static final DataType INT
    • TEXT

      public static final DataType TEXT
    • TIMESTAMP

      public static final DataType TIMESTAMP
    • UUID

      public static final DataType UUID
    • VARCHAR

      public static final DataType VARCHAR
    • VARINT

      public static final DataType VARINT
    • TIMEUUID

      public static final DataType TIMEUUID
    • INET

      public static final DataType INET
    • DATE

      public static final DataType DATE
    • TIME

      public static final DataType TIME
    • SMALLINT

      public static final DataType SMALLINT
    • BYTE

      public static final DataType BYTE
    • DURATION

      public static final DataType DURATION
    • LIST

      public static final DataType LIST
    • MAP

      public static final DataType MAP
    • SET

      public static final DataType SET
    • UDT

      public static final DataType UDT
    • TUPLE

      public static final DataType TUPLE
  • Field Details

  • Method Details

    • values

      public static DataType[] 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 DataType 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
    • getId

      public int getId(ProtocolVersion version)
    • readValue

      public Object readValue(io.netty.buffer.ByteBuf cb, ProtocolVersion version)
    • writeValue

      public void writeValue(Object value, io.netty.buffer.ByteBuf cb, ProtocolVersion version)
    • serializedValueSize

      public int serializedValueSize(Object value, ProtocolVersion version)
    • fromType

      public static Pair<DataType,Object> fromType(AbstractType type, ProtocolVersion version)
    • toType

      public static AbstractType toType(Pair<DataType,Object> entry)
    • getProtocolVersion

      public ProtocolVersion getProtocolVersion()