cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cassandra Wiki] Trivial Update of "CassandraCli" by EricEvans
Date Fri, 12 Mar 2010 16:51:41 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.

The "CassandraCli" page has been changed by EricEvans.
The comment on this change is: use cf with a utf8 comparator in examples.
http://wiki.apache.org/cassandra/CassandraCli?action=diff&rev1=10&rev2=11

--------------------------------------------------

  something slightly more interesting...
  
  {{{
- cassandra> set Keyspace1.Standard1['jsmith']['first'] = 'John'
+ cassandra> set Keyspace1.Standard2['jsmith']['first'] = 'John'
  Value inserted.
- cassandra> set Keyspace1.Standard1['jsmith']['last'] = 'Smith'
+ cassandra> set Keyspace1.Standard2'jsmith']['last'] = 'Smith'
  Value inserted.
- cassandra> set Keyspace1.Standard1['jsmith']['age'] = '42'
+ cassandra> set Keyspace1.Standard2['jsmith']['age'] = '42'
  Value inserted.
  }}}
  
@@ -31, +31 @@

  Now let's read back the `jsmith` row to see what it contains:
  
  {{{
- cassandra> get Keyspace1.Standard1['jsmith']
+ cassandra> get Keyspace1.Standard2['jsmith']
  => (column=last, value=Simmons, timestamp=1259991884091)
  => (column=first, value=John, timestamp=1259991879010)
  => (column=age, value=42, timestamp=1259991135887)

Mime
View raw message