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 2009/08/10 21:35:07 UTC

svn commit: r802912 - /incubator/cassandra/trunk/README.txt

Author: eevans
Date: Mon Aug 10 19:35:07 2009
New Revision: 802912

URL: http://svn.apache.org/viewvc?rev=802912&view=rev
Log:
CASSANDRA-296 updated CLI output for README.txt

Modified:
    incubator/cassandra/trunk/README.txt

Modified: incubator/cassandra/trunk/README.txt
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/README.txt?rev=802912&r1=802911&r2=802912&view=diff
==============================================================================
--- incubator/cassandra/trunk/README.txt (original)
+++ incubator/cassandra/trunk/README.txt Mon Aug 10 19:35:07 2009
@@ -53,32 +53,32 @@
 offer, and 'quit' or 'exit' when you've had enough fun. But lets try
 something slightly more interesting...
 
-  cassandra> set Table1.Standard1['jsmith']['first'] = 'John'
-  Statement processed.
-  cassandra> set Table1.Standard1['jsmith']['last'] = 'Smith' 
-  Statement processed.
-  cassandra> set Table1.Standard1['jsmith']['age'] = '42'
-  Statement processed.
-  cassandra> get Table1.Standard1['jsmith']
-  COLUMN_TIMESTAMP = 1241129773658; COLUMN_VALUE = 42; COLUMN_KEY = age;
-  COLUMN_TIMESTAMP = 1241129537336; COLUMN_VALUE = Smith; COLUMN_KEY = last; 
-  COLUMN_TIMESTAMP = 1241129520503; COLUMN_VALUE = John; COLUMN_KEY = first; 
-  Statement processed.
+  cassandra> set Keyspace1.Standard1['jsmith']['first'] = 'John'
+  Value inserted.
+  cassandra> set Keyspace1.Standard1['jsmith']['last'] = 'Smith'
+  Value inserted.
+  cassandra> set Keyspace1.Standard1['jsmith']['age'] = '42'
+  Value inserted.
+  cassandra> get Keyspace1.Standard1['jsmith']
+    (column=age, value=42; timestamp=1249930062801)
+    (column=first, value=John; timestamp=1249930053103)
+    (column=last, value=Smith; timestamp=1249930058345)
+  Returned 3 rows.
   cassandra>
 
 If your session looks similar to what's above, congrats, your single node
 cluster is operational! But what exactly was all of that? Let's break it
 down into pieces and see.
 
-  set Table1.Standard1['jsmith']['first'] = 'John'
-       \         \         \        \          \
-        \         \         \_ key   \          \_ value
-         \         \                  \_ column
-          \_ table  \_ column family
+  set Keyspace1.Standard1['jsmith']['first'] = 'John'
+       \            \         \        \          \
+        \            \         \_ key   \          \_ value
+         \            \                  \_ column
+          \_ keyspace  \_ column family
 
 Data stored in Cassandra is associated with a column family (Standard1), 
-which in turn is associated with a table (Table1). In the example above,
-we set the value 'John' in the 'first' column for key 'jsmith'.
+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'.
 
 For more information on the Cassandra data model be sure to checkout 
 http://wiki.apache.org/cassandra/DataModel