Hi all,

I'm playing with a API to simplify the use of cassandra. The objective
is to have a simple API, friendly to new users (it is not aimed to be
complete). Internally it uses Hector, but this should be transparent
to outside users and they should never have to use any class from
Hector or Thrift.

If someone would like to try it (or just give any suggestions), it can
be found at: https://github.com/pescuma/dummy-cassandra

Some examples of usage:

    CassandraCluster cluster = new CassandraCluster("test-cluster",
"localhost");
    CassandraKeyspace keyspace = cluster.addKeyspace("MyKeyspace");
    keyspace.addColumnFamily("ColumnFamilyName", CassandraType.UTF8,
CassandraType.UTF8, CassandraType.UTF8);

    cluster.connect();

    
keyspace.getColumnFamily("ColumnFamilyName").getRow("row-id").insertColumn("column-name",
"column-value");
    (String) 
keyspace.getColumnFamily("ColumnFamilyName").getRow("row-id").getColumn("column-name");

    keyspace.getColumnFamily("ColumnFamilyName").getRowKeys();
    
keyspace.getColumnFamily("ColumnFamilyName").getRow("row-id").getColumnNames();

More examples can be found at the github page.


Pescuma

Reply via email to