Monday, December 31, 2012

Cassandra Data Types

Internal TypeCQL NameDescription
BytesTypeblobArbitrary hexadecimal bytes (no validation)
AsciiTypeasciiUS-ASCII character string
UTF8Typetext, varcharUTF-8 encoded string
IntegerTypevarintArbitrary-precision integer
LongTypeint, bigint8-byte long
UUIDTypeuuidType 1 or type 4 UUID
DateTypetimestampDate plus time, encoded as 8 bytes since epoch
BooleanTypebooleantrue or false
FloatTypefloat4-byte floating point
DoubleTypedouble8-byte floating point
DecimalTypedecimalVariable-precision decimal
CounterColumnTypecounterDistributed counter value (8-byte long)
The table is taken from datastax.

No comments:

Post a Comment