Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

start_sample_easycassandra

otaviojava edited this page Jan 20, 2012 · 10 revisions

After run The Cassandra here

In the Client'mode run the script bellow:


create keyspace javabahia;
use javabahia;
create column family person with
comparator = UTF8Type and
column_metadata =
[
  {column_name: name, validation_class: UTF8Type, index_type: KEYS}
];

Download and add in ClassPath of the Project, the Easy-Cassandra's lib:

https://github.com/otaviojava/Easy-Cassandra/downloads

You will have two choices of Download:

  • Only the Easy-Cassandra's lib
  • The Easy-Cassandra's lib with its dependencies (The Libs of the Thrift)

Sample Applications

  • JAVA SE with NetBeans Here
  • Java SE with Eclilpse Here

If you only want create Family Column without index:

create column family example with
comparator = UTF8Type;