cassandrakeyslicehector

Hector Cassandra Data Retrieval


Is there any way to get all the data from a column family or from a key space?

I can't think of a way of doing this without knowing every single key for every single entry made to the database.

My problem is that I'm trying to create a Twitter clone where each message has its own id, and store those in the same keyspace in the same column family.

But then how do I get them back? I'll have to keep a track of every single id, and that can't possibly work.

Any help/ideas would be appreciated.


Solution

  • The answer i was looking for is CQL, cassandra's query language. It works similarly to sql which is what i need for the function im after.

    this link has some excellent tutorials.