incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <xmanach....@orange-ftgroup.com>
Subject Nodes Levels of Hierarchy in Cassandra.
Date Tue, 11 May 2010 15:51:29 GMT
Hi.

  I undertstood I can use this structure with cassandra :

KeySpace_3nodeslevels = {
    Key_Family_alfa : {
        Key_Super_Column_A : { Key_Column_1: "Value_alfa_A_1",
                               Key_Column_2: "Value_alfa_A_2"},
        Key_Super_Column_B : { Key_Column_1: "Value_alfa_B_1",
                               Key_Column_2: "Value_alfa_B_2"} },
    Key_Family_beta : {
        Key_Super_Column_A : { Key_Column_1: "Value_beta_A_1",
                               Key_Column_2: "Value_beta_A_2"},
        Key_Super_Column_B : { Key_Column_1: "Value_beta_B_1",
                               Key_Column_2: "Value_beta_B_2"} }
             }

I have 3 nodes levels of hierarchy for the keys : Key_Family, Key_Super_Column and  Key_Column.
I have around 100 Billions of keys for the Family level.

  Can I have 4 nodes levels of hierarchy like this ?

KeySpace_4nodeslevels = {
    Key_level1_alfa : {
        Key_level2_A : { Key_level3_1: { Key_level4_first  : "Value_alfa_A_1_first",
                                         Key_level4_Second : "Value_alfa_A_1_second"},
                         Key_level3_2: { Key_level4_first  : "Value_alfa_A_2_first",
                                         Key_level4_Second : "Value_alfa_A_2_second"} },
        Key_level2_B : { Key_level3_1: { Key_level4_first  : "Value_alfa_B_1_first",
                                         Key_level4_Second : "Value_alfa_B_1_second"},
                         Key_level3_2: { Key_level4_first  : "Value_alfa_B_2_first",
                                         Key_level4_Second : "Value_alfa_B_2_second"} } },
    Key_level1_beta : {
        Key_level2_A : { Key_level3_1: { Key_level4_first  : "Value_beta_A_1_first",
                                         Key_level4_Second : "Value_beta_A_1_second"},
                         Key_level3_2: { Key_level4_first  : "Value_beta_A_2_first",
                                         Key_level4_Second : "Value_beta_A_2_second"} },
        Key_level2_B : { Key_level3_1: { Key_level4_first  : "Value_beta_B_1_first",
                                         Key_level4_Second : "Value_beta_B_1_second"},
                         Key_level3_2: { Key_level4_first  : "Value_beta_B_2_first",
                                         Key_level4_Second : "Value_beta_B_2_second"} } }
        }

Thanks.

*********************************
This message and any attachments (the "message") are confidential and intended solely for
the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it immediately and inform
the sender.
********************************


Mime
View raw message