Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

Cassandra CQL Data Types

Cassandra CQL Data Types for beginners and professionals with topics on architecture, relational vs no sql database, data model, cql, cqlsh, keyspace operations, table operations, installation, collections etc.

<< Back to CASSANDRA

Cassandra Data Types

Cassandra supports different types of data types. Let?s see the different data types in the following table:

CQL Type Constants Description
ascii Strings US-ascii character string
bigint Integers 64-bit signed long
blob blobs Arbitrary bytes in hexadecimal
boolean Booleans True or False
counter Integers Distributed counter values 64 bit
decimal Integers, Floats Variable precision decimal
double Integers, Floats 64-bit floating point
float Integers, Floats 32-bit floating point
frozen Tuples, collections, user defined types stores cassandra types
inet Strings IP address in ipv4 or ipv6 format
int Integers 32 bit signed integer
list Collection of elements
map JSON style collection of elements
set Collection of elements
text strings UTF-8 encoded strings
timestamp Integers, Strings ID generated with date plus time
timeuuid uuids Type 1 uuid
tuple A group of 2,3 fields
uuid uuids Standard uuid
varchar strings UTF-8 encoded string
varint Integers Arbitrary precision integer

Cassandra Automatic Data Expiration

Cassandra provides functionality by which data can be automatically expired.

During data insertion, you have to specify 'ttl' value in seconds. 'ttl' value is the time to live value for the data. After that particular amount of time, data will be automatically removed.

Related Links:

Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf