Cassandra uses a timestamp system to serve up the most recent records. How do I display a list of all values & timestamps for a particular column?
For example, I run this command for a Column family called ‘Users’:
set Users[jsmith][first]='John'
When I get the ‘first’ column, I see the following:
get Users[jsmith][first]
=> (column=first value=John, timestamp=1287604215498000
Then, I update the ‘first’ column to Charlie.
set Users[jsmith][first]='Charlie'
I will now see the following
get Users[jsmith][first]
=> (column=first value=Charlie, timestamp=1299980101189000
My question is how do I get all values (over time) for this column? I want to see something like get Users[jsmith][first] ==> John (timestamp), Charlie (timestamp).
You don’t. Cassandra departs from the BigTable model here: only the most recent version is retained.