Set columns in column families

We'll start by looking at sets, which are the simplest of the three collection column types. Let's take a look at alice's row in the user_status_updates column family:

GET user_status_updates['alice'];

Recall that, by only using the bracket operator once in the GET statement, we'll retrieve all cells in the alice RowKey.

There are quite a few cells in alice's wide row, but we're particularly interested in those having to do with the starred_by_users column, which is a set:

Note that the cell names here look like the cell names in home_status_updates, but with yet another component: a short hexadecimal string ...

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.