Skip to content

Latest commit

 

History

History
 
 

cassandra-examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Vert.x Cassandra Client examples

Start Cassandra instance

In order to run this examples you need a Cassandra instance running locally.

On the ways to achieve this is to use ccm. Follow the installation instructions for installing ccm.

After ccm installation you can run a single node Cassandra cluster:

ccm create test_node -v 3.11.2 -n 1 -s
ccm start test_node

Examples

Simple

This example consists of executing a single query: select release_version from system.local. As the first row is obtained, the current Cassandra version is printed out.

Prepared

This example demonstrates how can you prepare, execute and fetch results of a query.

Streaming

This example shows a way to fetch query result rows in a streaming manner.