cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject [2/2] git commit: add cli documentation for using composites patch by dbrosius reviewed by jbellis for CASSANDRA-3151
Date Sun, 18 Nov 2012 01:53:16 GMT
add cli documentation for using composites
patch by dbrosius reviewed by jbellis for CASSANDRA-3151


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/b226ae59
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/b226ae59
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/b226ae59

Branch: refs/heads/cassandra-1.2
Commit: b226ae59311c31cb739c956d7e45f33477380678
Parents: 34dc2f3
Author: Dave Brosius <dbrosius@apache.org>
Authored: Sat Nov 17 20:47:24 2012 -0500
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Sat Nov 17 20:47:24 2012 -0500

----------------------------------------------------------------------
 .../org/apache/cassandra/cli/CliHelp.yaml          |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/b226ae59/src/resources/org/apache/cassandra/cli/CliHelp.yaml
----------------------------------------------------------------------
diff --git a/src/resources/org/apache/cassandra/cli/CliHelp.yaml b/src/resources/org/apache/cassandra/cli/CliHelp.yaml
index 5c9684a..80b5dcb 100644
--- a/src/resources/org/apache/cassandra/cli/CliHelp.yaml
+++ b/src/resources/org/apache/cassandra/cli/CliHelp.yaml
@@ -574,6 +574,9 @@ commands:
                 column_name : 'other name',
                 validation_class : LongType
             }];
+        create column family UseComposites
+           with comparator = 'CompositeType(UTF8Type, Int32Type)'
+           and caching='ALL';
     - name: NODE_UPDATE_COLUMN_FAMILY
       help: |
         update column family <name>;
@@ -1005,6 +1008,7 @@ commands:
         set Standard1[testkey][testcol] = utf8('this is utf8 string.');
         set Standard1[testkey][timeuuid()] = utf8('hello world');
         set Standard1[testkey][timeuuid()] = utf8('hello world') with ttl = 30;
+        set UseComposites[utf8('testkey')]['CompositeType(utf8(first),int(4))'] = utf8('inserts
this string into a column with name first:4');
     - name: NODE_THRIFT_DEL
       help: |
         del <cf>['<key>'];


Mime
View raw message