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 "DataModelv2" by ronaldmathies
Date Fri, 02 Apr 2010 21:30:54 GMT
Dear Wiki user,

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

The "DataModelv2" page has been changed by ronaldmathies.
http://wiki.apache.org/cassandra/DataModelv2?action=diff&rev1=13&rev2=14

--------------------------------------------------

  
  Model representation:
  
- ||<-2> Column ||
+ ||<-2> Column          ||
- || name || Binary ||
+ || name      || Binary ||
- || value || Binary ||
+ || value     || Binary ||
- || timestamp || i64 ||
+ || timestamp || i64    ||
  
  Data representation:
  
- ||<-3> Column ||
+ ||<-3> '''Column'''                              ||
- || name || value || timestamp ||
+ || '''name'''  || '''value''' || '''timestamp''' ||
- || "firstname" || "Ronald"  || 1270073054 ||
+ || "firstname" || "Ronald"    || 1270073054      ||
  
  == ColumnFamily ==
  
  Model representation:
  
- ||<-2> ColumnFamily         ||
+ ||<-2> '''Column Family'''     ||
- || key    || binary         ||
+ || '''key''' || '''list'''     ||
- || binary || 1 .. * Columns ||
+ || binary    || 1 .. * Columns ||
  
  Data representation:
  
- ||<-4> ColumnFamily                                                              
      ||
- || key          ||<-3>  Columns                                                  
      ||
- ||<#AAAAAA> 1   ||<#AAAAAA> name        ||<#AAAAAA> value        ||<#AAAAAA>
timestamp  ||
+ ||<-4> '''Column Family'''                                     ||
+ || '''key''' ||<-3>  '''Columns'''                             ||
+ || 1         || '''name'''  || '''value'''  || '''timestamp''' ||
- ||              ||          "firstname" ||          "Ronald"     ||          1270073054
||
+ ||           || "firstname" || "Ronald"     || 1270073054      ||
- ||              ||          "lastname"  ||          "Mathies"    ||          1270073054
||
+ ||           || "lastname"  || "Mathies"    || 1270073054      ||
- ||              ||          "birthday"  ||          "01/01/1978" ||          1270073054
||
+ ||           || "birthday"  || "01/01/1978" || 1270073054      ||
- ||<#AAAAAA> 2   ||<#AAAAAA> name        ||<#AAAAAA> value        ||<#AAAAAA>
timestamp  ||
+ || 2         || '''name'''  || '''value'''  || '''timestamp''' ||
- ||              ||          "firstname" ||          "John"       ||          1270084021
||
+ ||           || "firstname" || "John"       || 1270084021      ||
- ||              ||          "lastname"  ||          "Steward"    ||          1270084021
||
+ ||           || "lastname"  || "Steward"    || 1270084021      ||
- ||              ||          "birthday"  ||          "01/01/1982" ||          1270084021
||
+ ||           || "birthday"  || "01/01/1982" || 1270084021      ||
  
- == SuperColumn ==
+ == Super Column ==
  
  Model representation:
+ 
+ ||<-2> '''Super Column'''      ||
+ || '''key''' || '''list'''     ||
+ || binary    || 1 .. * Columns ||
  
  TODO
  
  Data representation:
  
- ||<-4> SuperColumn                                                               
      ||
- || key          ||<-3>  Columns                                                  
      ||
- ||<#AAAAAA> 1   ||<#AAAAAA> name        ||<#AAAAAA> value        ||<#AAAAAA>
timestamp  ||
+ ||<-4> '''Super Column'''                                      ||
+ || '''key''' ||<-3> '''Columns'''                              ||
+ || 1         || '''name'''  || '''value'''  || '''timestamp''' ||
- ||              ||          "firstname" ||          "Ronald"     ||          1270073054
||
+ ||           || "firstname" || "Ronald"     || 1270073054      ||
- ||              ||          "lastname"  ||          "Mathies"    ||          1270073054
||
+ ||           || "lastname"  || "Mathies"    || 1270073054      ||
- ||              ||          "birthday"  ||          "01/01/1978" ||          1270073054
||
+ ||           || "birthday"  || "01/01/1978" || 1270073054      ||
- ||<#AAAAAA> 2   ||<#AAAAAA> name        ||<#AAAAAA> value        ||<#AAAAAA>
timestamp  ||
+ || 2         || '''name'''  || '''value'''  || '''timestamp''' ||
- ||              ||          "firstname" ||          "John"       ||          1270084021
||
+ ||           || "firstname" || "John"       || 1270084021      ||
- ||              ||          "lastname"  ||          "Steward"    ||          1270084021
||
+ ||           || "lastname"  || "Steward"    || 1270084021      ||
- ||              ||          "birthday"  ||          "01/01/1982" ||          1270084021
||
+ ||           || "birthday"  || "01/01/1982" || 1270084021      ||
  
  == SuperColumnFamily ==
  
  Model representation:
  
- TODO
+ ||<-2> '''Column Family'''           ||
+ || '''key''' || '''list'''           ||
+ || binary    || 1 .. * Super Columns ||
  
  Data representation:
  
- ||<-5>SuperColumnFamily                                                          
                                            ||
- || Key                           ||<-4> SuperColumns                             
                                            ||
- ||<#BBBBBB> "my-new-guitar"      ||<#BBBBBB> key  ||<-3 #BBBBBB>   Columns
                                                   ||
- ||                               ||<#AAAAAA> post ||<#AAAAAA> name        ||<#AAAAAA>
value            ||<#AAAAAA> timestamp  ||
+ ||<-5> '''Super Column Family'''                                                 
   ||
+ || '''Key'''        ||<-4> '''Super Columns'''                                   
   ||
+ || "my-new-guitar"  || '''key''' ||<-3> '''Columns'''                            
   ||
+ ||                  || post      || '''name''' || '''value'''     || '''timestamp''' ||
- ||                               ||               ||          "subject"   ||          "My
new guitar"  ||          1270073054 ||
+ ||                  ||           || "subject"  || "My new guitar" || 1270073054      ||
- ||                               ||               ||          "body"      ||          "a
lot of text"  ||          1270073054 ||
+ ||                  ||           || "body"     || "a lot of text" || 1270073054      ||
- ||                               ||               ||          "created"   ||          "01/01/2010"
    ||          1270073054 ||
+ ||                  ||           || "created"  || "01/01/2010"    || 1270073054      ||
- ||                               ||<#AAAAAA> tags ||<#AAAAAA> name        ||<#AAAAAA>
value            ||<#AAAAAA> timestamp  ||
+ ||                  || tags      || '''name''' || '''value'''     || '''timestamp''' ||
- ||                               ||               ||          "tag0"      ||          "Guitar"
        ||          1270084021 ||
+ ||                  ||           || "tag0"     || "Guitar"        || 1270084021      ||
- ||                               ||               ||          "tag1"      ||          "Instrument"
    ||          1270084021 ||
+ ||                  ||           || "tag1"     || "Instrument"    || 1270084021      ||
- ||<#BBBBBB> "guitar-lessons"     ||<#BBBBBB> key  ||<-3 #BBBBBB>  Columns
                                                    ||
+ || "guitar-lessons" || '''key''' ||<-3 #BBBBBB>  Columns                         
                           ||
- ||                               ||<#AAAAAA> post ||<#AAAAAA> name        ||<#AAAAAA>
value            ||<#AAAAAA> timestamp  ||
+ ||                  || post      ||<#AAAAAA> name        ||<#AAAAAA> value 
          ||<#AAAAAA> timestamp  ||
- ||                               ||               ||          "subject"   ||          "Guitar
lessons" ||          1270073054 ||
+ ||                  ||           ||          "subject"   ||          "Guitar lessons" ||
         1270073054 ||
- ||                               ||               ||          "body"      ||          "a
lot of text"  ||          1270073054 ||
+ ||                  ||           ||          "body"      ||          "a lot of text"  ||
         1270073054 ||
- ||                               ||               ||          "created"   ||          "01/03/2010"
    ||          1270073054 ||
+ ||                  ||           ||          "created"   ||          "01/03/2010"     ||
         1270073054 ||
- ||                               ||<#AAAAAA> tags ||<#AAAAAA> name        ||<#AAAAAA>
value            ||<#AAAAAA> timestamp  ||
+ ||                  || tags      ||<#AAAAAA> name        ||<#AAAAAA> value 
          ||<#AAAAAA> timestamp  ||
- ||                               ||               ||          "tag0"      ||          "Guitar"
        ||          1270084021 ||
+ ||                  ||           ||          "tag0"      ||          "Guitar"         ||
         1270084021 ||
- ||                               ||               ||          "tag1"      ||          "Instrument"
    ||          1270084021 ||
+ ||                  ||           ||          "tag1"      ||          "Instrument"     ||
         1270084021 ||
- ||                               ||               ||          "tag2"      ||          "Lessons"
       ||          1270084021 ||
+ ||                  ||           ||          "tag2"      ||          "Lessons"        ||
         1270084021 ||
- 
  The basic concepts are:
  
      * Cluster: the machines (nodes) in a logical Cassandra instance. Clusters can contain
multiple keyspaces.

Mime
View raw message