You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ee...@apache.org on 2010/03/12 17:56:51 UTC
svn commit: r922336 - /incubator/cassandra/branches/cassandra-0.6/README.txt
Author: eevans
Date: Fri Mar 12 16:56:51 2010
New Revision: 922336
URL: http://svn.apache.org/viewvc?rev=922336&view=rev
Log:
update column family cli examples
Patch by eevans
Modified:
incubator/cassandra/branches/cassandra-0.6/README.txt
Modified: incubator/cassandra/branches/cassandra-0.6/README.txt
URL: http://svn.apache.org/viewvc/incubator/cassandra/branches/cassandra-0.6/README.txt?rev=922336&r1=922335&r2=922336&view=diff
==============================================================================
--- incubator/cassandra/branches/cassandra-0.6/README.txt (original)
+++ incubator/cassandra/branches/cassandra-0.6/README.txt Fri Mar 12 16:56:51 2010
@@ -60,13 +60,13 @@ As the banner says, you can use 'help' o
offer, and 'quit' or 'exit' when you've had enough fun. But lets try
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.
- cassandra> get Keyspace1.Standard1['jsmith']
+ cassandra> get Keyspace1.Standard2['jsmith']
(column=age, value=42; timestamp=1249930062801)
(column=first, value=John; timestamp=1249930053103)
(column=last, value=Smith; timestamp=1249930058345)
@@ -77,13 +77,13 @@ If your session looks similar to what's
cluster is operational! But what exactly was all of that? Let's break it
down into pieces and see.
- set Keyspace1.Standard1['jsmith']['first'] = 'John'
+ set Keyspace1.Standard2['jsmith']['first'] = 'John'
\ \ \ \ \
\ \ \_ key \ \_ value
\ \ \_ column
\_ keyspace \_ column family
-Data stored in Cassandra is associated with a column family (Standard1),
+Data stored in Cassandra is associated with a column family (Standard2),
which in turn is associated with a keyspace (Keyspace1). In the example
above, we set the value 'John' in the 'first' column for key 'jsmith'.