update README with semicolons in cli example

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1039594 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2010-11-27 02:16:31 +00:00
parent 3940d8eed1
commit 8bc44c4743
1 changed files with 11 additions and 11 deletions

View File

@ -51,27 +51,27 @@ be sitting in front of a prompt...
Connected to: "Test Cluster" on localhost/9160
Welcome to cassandra CLI.
Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
Type 'help;' or '?' for help. Type 'quit;' or 'exit;' to quit.
[default@unknown]
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
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...
[default@unknown] create keyspace Keyspace1
[default@unknown] create keyspace Keyspace1;
ece86bde-dc55-11df-8240-e700f669bcfc
[default@unknown] use Keyspace1
[default@unknown] use Keyspace1;
Authenticated to keyspace: Keyspace1
[default@Keyspace1] create column family Users with comparator=UTF8Type
[default@Keyspace1] create column family Users with comparator=UTF8Type;
737c7a71-dc56-11df-8240-e700f669bcfc
[default@KS1] set Users[jsmith][first] = 'John'
[default@KS1] set Users[jsmith][first] = 'John';
Value inserted.
[default@KS1] set Users[jsmith][last] = 'Smith'
[default@KS1] set Users[jsmith][last] = 'Smith';
Value inserted.
[default@KS1] set Users[jsmith][age] = long(42)
[default@KS1] set Users[jsmith][age] = long(42);
Value inserted.
[default@KS1] get Users[jsmith]
[default@KS1] get Users[jsmith];
=> (column=last, value=Smith, timestamp=1287604215498000)
=> (column=first, value=John, timestamp=1287604214111000)
=> (column=age, value=42, timestamp=1287604216661000)
@ -81,7 +81,7 @@ 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 Users[jsmith][first] = 'John'
set Users[jsmith][first] = 'John';
\ \ \ \
\ \_ key \ \_ value
\ \_ column