Templates by BIGtheme NET

Cassandra

Bound Statement Vs Prepared Statement

In this Article, I will show How to work with Cassandra Bound Statement. How this differ from Prepared Statement. Few questions come to mind, while using Bound Statement are. When to Use Bound Statement? – If the provided statements that map to different tables? Yes – The goal of the bound statement is to be able to execute a bunch ...

Read More »

Cassandra List Datatype Java Example

In this Article, I will show How to work with Cassandra list datatype. How to retrieve, insert, delete and update data. Tools Uses : 1) spring-data-cassandra-1.2.1.RELEASE 2) Apache-cassandra-2.1.6 3) eclipse version Luna 4.4.1. 4) Maven 3.3.3 5) JDK 1.6 When do we use map data type? 1) When order of the elements matters, the order may not be the natural ...

Read More »

Cassandra Map Datatype Java Example

In this Article, I will show How to work with Cassandra map datatype. How to retrieve, insert, delete and update data. Tools Uses : 1) spring-data-cassandra-1.2.1.RELEASE 2) Apache-cassandra-2.1.6 3) eclipse version Luna 4.4.1. 4) Maven 3.3.3 5) JDK 1.6 When do we use map data type? A map is a name and a pair of typed values. Each element of ...

Read More »

Cassandra Set Data type Java Example

In this Article, I will show How to work with Cassandra Set datatype. How to retrieve, insert, delete and update data. Tools Uses : 1) spring-data-cassandra-1.2.1.RELEASE 2) Apache-cassandra-2.1.6 3) eclipse version Luna 4.4.1. 4) Maven 3.3.3 5) JDK 1.6 Setup required data : Start Cassandra server and CQL prompt. Create a table with name UserOrders. Syntax is, CREATE TABLE UserOrders ...

Read More »

Cassandra Paging Java Example

In this Article, I will show How to implement paging in Cassandra. This is common requirement in many of projects. Tools Uses : 1) Apache-cassandra-2.1.6 2) eclipse version Luna 4.4.1. 3) Maven 4.0.0 4) JDK 1.7 If you are completely new to Cassandra, Pl. refer Cassandra Quick Start. Once your Cassandra Database server is up and CQL window is open. ...

Read More »

Cassandra UDTs Java Example

In this Article, I will show How to create an UDTs (User Data types) in Cassandra. How to map these UDTs to Java beans. How to do some basic operations like insert, update, delete using Java. Tools Uses : 1) Apache-cassandra-2.1.6 2) eclipse version Luna 4.4.1. 3) Maven 4.0.0 4) JDK 1.7 UDTs (User Data types) are common in many ...

Read More »

Update Cassandra Column Family Data using hector API

In this Article, I will show How to update cassandra data with hector API. How to write a simple java program that insert data into Cassandra database. Tools Uses : 1) Apache-cassandra-2.1.6 2) eclipse version Luna 4.4.1. 3) Maven 3.3.3 4) JDK 1.6 Steps to write Java Program to update Data : 1) Create a simple maven project. 2) Add ...

Read More »

Spring Data Cassandra : Retrieve Operation

In this Article, I will show How to retrieve single and bulk data from Cassandra Database with Spring Data Cassandra Template. How to create a maven project and add required dependencies. Tools Uses : 1) spring-data-cassandra-1.2.1.RELEASE 2) Apache-cassandra-2.1.6 3) eclipse version Luna 4.4.1. 4) Maven 3.3.3 5) JDK 1.6 Steps to be follow : 1) Create a simple maven project. ...

Read More »

Spring Data Cassandra : Delete Operation

In this Article, I will show How to delete single and bulk data from Cassandra Database with Spring Data Cassandra Template. How to create a maven project and add required dependencies. Tools Uses : 1) spring-data-cassandra-1.2.1.RELEASE 2) Apache-cassandra-2.1.6 3) eclipse version Luna 4.4.1. 4) Maven 3.3.3 5) JDK 1.6 Steps to be follow : 1) Create a simple maven project. ...

Read More »

Spring Data Cassandra : Update data

In this Article, I will show How to update single and bulk data in Cassandra Database with Spring Data Cassandra Template. How to create a maven project and add required dependencies. Tools Uses : 1) spring-data-cassandra-1.2.1.RELEASE 2) Apache-cassandra-2.1.6 3) eclipse version Luna 4.4.1. 4) Maven 3.3.3 5) JDK 1.6 Steps to be follow : 1) Create a simple maven project. ...

Read More »