The Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance. Linear implacability and proven fault-tolerance on commodity hardware or cloud infrastructure make it the perfect platform for mission-critical data. Cassandra's support for replicating across multiple data centers is best-in-class, providing lower latency for your users and the peace of mind of knowing that you can survive regional outages.
CQL provides a rich set of built-in data types, including collection types. Along with these data types, users can also create their own custom data types.
Inclined to build a profession as Cassandra Developer? Then here is the blog post on, explore Cassandra Training
The following table provides a list of built-in data types available in CQL.
|Represents ASCII character string
|Represents 64-bit signed long
|Represents arbitrary bytes
|Represents true or false
|Represents counter column
|Represents variable-precision decimal
|Represents 64-bit IEEE-754 floating-point
|Represents 32-bit IEEE-754 floating-point
|Represents an IP address, IPv4 or IPv6
|Represents 32-bit signed int
|Represents UTF8 encoded string
|Represents a timestamp
|Represents type 1 UUID
|Represents type 1 or type 4
|Represents uTF8 encoded string
|Represents arbitrary-precision integer
Cassandra Query Language also provides a collection of data types. The following table provides a list of Collections available in CQL.
|A list is a collection of one or more ordered elements.
|A map is a collection of key-value pairs.
|A set is a collection of one or more elements.
Cqlsh provides users a facility of creating their own data types. Given below are the commands used while dealing with user-defined datatypes.
You liked the article?
Like : 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.
Get stories of change makers and innovators from the startup ecosystem in your inbox