Development Etc.

“Maybe it’s about time I expanded the realm of possibilities around here.” – MacGyver

Monthly Archives: May 2010

Iterate over entire Cassandra column family

I’m in the middle of implementing a Cassandra persistence adapter for ActiveMQ and one of the requirements is to recover all the messages. This of course means I need to iterate over all the keys in a Column Family. I’m going to show how to do this in Cassandra using the Hector client. This example [...]

Range Slices In Cassandra With Hector

I thought I’d write up a simple tutorial on how do a simple range slice in Cassandra with Hector for people coming from the relational world. I’m going to outline the Cassandra version of SELECT col_name_1 FROM table_name LIMIT 100 Step 1) Setup the connection pool and the client CassandraClientPool pool = CassandraClientPoolFactory.INSTANCE.get(); CassandraClient client [...]

Follow

Get every new post delivered to your Inbox.