The structure of a simple primary key table

To start with, let's have a look at the users table. To do this, we'll start with the LIST command that prints all the data in a given column family:

LIST users;

This will print out a long list of information, grouped by RowKey. For brevity, the first couple of RowKey groups appear as follows:

Although we've never seen it structured like this before, the data here should look pretty familiar. The RowKey headers correspond to the username column in our CQL3 table structure. Within each RowKey is a collection of tuples, each tuple containing a name, a value, and a timestamp. We will call these tuple ...

Get Learning Apache Cassandra - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.