Float Data Type in Cassandra Query Language - Cassandra / CQL Tutorial
Float Data Type in Cassandra Query Language ( CQL)Float data type in Cassandra is used to save float and integer values. Couple of things to note, The decimal number should not be starting with...
View ArticleInet Data Type in Cassandra Query Language - Cassandra / CQL Tutorial
Inet Data Type in Cassandra Query Language ( CSQL) Inet data type in Cassandra Query Language ( CQL) is used to store IPV4 and IPV6 IP Addresses. You will be storiing the information as string. Good...
View ArticleBlob data type in Cassandra - Cassandra / CQL Tutorial
Blob data type in Cassandra Query Language ( CQL)Often we have to save mixed data such as strings and integers together and large amount of data. For that Cassandra has Blob data type which can store...
View ArticleCounter Data Type in Cassandra - Cassandra / CQL Tutorial
Counter Data Type in Cassandra Counter data type in Cassandra can store 64 big signed value. You can not set the initial value of counter. You are only allowed to increment of decrease the value. Once...
View ArticleList Data Type in Cassandra - Cassandra / CQL Tutorial
List Data Type in CassandraWhen you need to store list of elements such as list of textual, integer or other data types then you can use List Collection type. To use List collection type, first you...
View ArticleMap Data Type in Cassandra - Cassandra / CQL Tutorial
Map Data Type in CassandraMap type in Cassandra is used to store one related item to another item in key-value pair. To create Map type, you have to start with Map and then provide the two data types...
View ArticleSet Type in Cassandra - Cassandra / CQL Tutorial
Set Type in CassandraSet type in Cassandra is used to store group of elements with unique values. If you try to save the duplicate values in set, it is not going to save those duplicate values...
View ArticleText Data Type in Cassandra - Cassandra / CQL Tutorial
Text Data Type in CassandraText data type in Cassandra is used to save UTF-8 encoded string values. In below example, I am creating a table with column "Name" as Text data type and inserting couple of...
View ArticleVarchar Data Type in Cassandra - Cassandra / CQL Tutorial
Varchar Data Type in CassandraVarchar data type is same like Text Data type in Cassandra. Varchar data type in Cassandra is used to save UTF-8 encoded string values. I was trying to find what is the...
View ArticleUuid Data Type in Cassandra - Cassandra / CQL Tutorial
Uuid Data Type in CassandraUuid in Cassandra is used to store Standard Universally unique identifier values.We can use Uuid() function to generate them.Let's create a sample table tbs with Id of data...
View ArticleDuration Data Type in Cassandra - Cassandra / CQL Tutorial
Duration Data Type in CassandraDuration data type in Cassandra is used to store a duration value with nanosecond precision. When you need to store Duration, you will be using format Quantity+Unit....
View ArticleHow to create table in Cassandra - Cassandra / CQL Tutorial
How to create table in Cassandra by using CQLCreating table in Cassandra is pretty much same like other SQL Databases. Below are some points to remember before you create table.Table Name:In Cassandra...
View ArticleSingle Column Primary Key - Cassandra / CQL Tutorial
How to create table with Single Column Primary Key in CassandraThe table can be created with single column Primary Key ( Simple Primary Key). As the very first Column in Primary Key is Partition Key,...
View ArticleAdd Column to Existing Table in Cassandra - Cassandra / CQL Tutorial
Add Column to Existing Table in Cassandra by using CQLIt is very easy to add new column/s to existing table in Cassandra. Syntax:You can see that I am already in TechBrothersTutorials keyspace. You can...
View ArticleDrop Column from Table in Cassandra - Cassandra / CQL Tutorial
Drop Column from Table in CassandraCassandra let you drop the column from table if you would like to do that. You can not drop the column which is part of Primary key. If you will try to drop column...
View ArticleHow to rename Column in Cassandra - Cassandra / CQL Tutorial
How to rename Column in CassandraOften we get in situation where we have to rename the column name after creating the table. We can use ALTER Table statement in Cassandra to rename the column....
View ArticleGet Definition of Table in Cassandra - Cassandra / CQL Tutorial
Get Definition of a Table in CassandraOften we need to know the definition of table/s to answer many of our questions such asWhat are the data types of columnWhich column/s are part of Primary keyOn...
View ArticleHow to Drop Table in Cassandra - Cassandra / CQL Tutorial
How to Drop a Table in CassandraDroping table in Cassandra is very easy. Change the keyspace in which your table is by using "Use KeyspaceName" or you can use fully qualified name...
View ArticleGet Size of a Table in Cassandra - Cassandra / CQL Tutorial
Get Size of a Table in CassandraIf you need to know informaiton about table or tables you can use Nodetool cfstats command. Syntax:If you will only provide the name of keyspace, it will provide stats...
View ArticleSelect Data from Table in Cassandra - Cassandra / CQL Tutorial
Select Data from Table in CassandraTo Select the data from Cassandra , Select statement is used. If you need to select all columns , you can use "*" or provide list of column names. I am not using...
View Article