cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cassandra Wiki] Update of "DataModel" by PatriciaGorla
Date Thu, 28 Mar 2013 23:54:58 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.

The "DataModel" page has been changed by PatriciaGorla:
http://wiki.apache.org/cassandra/DataModel?action=diff&rev1=29&rev2=30

  
  The row key is what determines what machine data is stored on.  Thus, for each key you can
have data from multiple column families associated with it.  However, these are logically
distinct, which is why the Thrift interface is oriented around accessing one !ColumnFamily
per key at a time.  (TODO given this, is the following JSON more confusing than helpful?)
  
- A JSON representation of the key -> column families -> column structure is
+ A JSON representation of the rowkey -> column families -> column structure is
  
  {{{
  {
-    "mccv":{
+    "row_key1":{
        "Users":{
           "emailAddress":{"name":"emailAddress", "value":"foo@bar.com"},
           "webSite":{"name":"webSite", "value":"http://bar.com"}
@@ -65, +65 @@

           "visits":{"name":"visits", "value":"243"}
        }
     },
-    "user2":{
+    "row_key2":{
        "Users":{
           "emailAddress":{"name":"emailAddress", "value":"user2@bar.com"},
           "twitter":{"name":"twitter", "value":"user2"}

Mime
View raw message