Cassandra Data Types

Cassandra Data Types

CQL TypeConstantsDescription
asciistringsUS-ASCII character string
bigintintegers64-bit signed long
blobblobsArbitrary bytes (no validation), expressed as hexadecimal
booleanbooleanstrue or false
counterintegersDistributed counter value (64-bit long)
decimalintegers, floatsVariable-precision decimal
doubleintegers64-bit IEEE-754 floating point
floatintegers, floats32-bit IEEE-754 floating point
inetstringsIP address string in IPv4 or IPv6 format*
intintegers32-bit signed integer
listn/aA collection of one or more ordered elements
mapn/aA JSON-style array of literals: { literal : literal, literal : literal … }
setn/aA collection of one or more elements
textstringsUTF-8 encoded string
timestampintegers, stringsDate plus time, encoded as 8 bytes since epoch
uuiduuidsA UUID in standard UUID format
timeuuiduuidsType 1 UUID only (CQL 3)
varcharstringsUTF-8 encoded string
varintintegersArbitrary-precision integer

 

Interested in mastering Cassandra Developer? Enroll now for FREE demo on Cassandra Training.

For an In-depth knowledge on Cassandra, click on below

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Cassandra Data Types"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Support


    Please leave a message and we'll get back to you soon.

    3 + 5