From f0e7fe5da383139f8def0c071d61db0c64f836e5 Mon Sep 17 00:00:00 2001 From: Eric Evans Date: Fri, 12 Mar 2010 16:59:02 +0000 Subject: [PATCH] merge w/ 0.6 branch git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@922339 13f79535-47bb-0310-9956-ffa450edef68 --- README.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.txt b/README.txt index 7268a1bf6c..1c500e1c78 100644 --- a/README.txt +++ b/README.txt @@ -60,13 +60,13 @@ As the banner says, you can use 'help' or '?' to see what the CLI has to 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 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 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'.