incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samal <samalgo...@gmail.com>
Subject Re: Composite Column
Date Thu, 17 May 2012 06:33:55 GMT
It is like using your super column inside columns name.

empKey{
  employee1+name:XXXXXX,
  employee1+addr:XXXXX,
  employee2+name:XXXXX,
  employee2+addr:XXXXX
}

Here all of your employee details are attached to one domain i.e. all of
employee1 details will be *"employee1+[anytihng.........n numbers of
column]"*

comaprator=CompositeType(UTF8Type1,UTF8Type2,.......,n)

/Samal
On Thu, May 17, 2012 at 10:40 AM, Abhijit Chanda
<abhijit.chanda0@gmail.com>wrote:

> Aaron,
>
> Actually Aaron i am looking for a scenario on super columns being replaced
> by composite column.
> Say this is a data model using super column
> rowKey{
>           superKey1 {
>                                 Name,
>                                 Address,
>                                 City,.....
>                           }
> }
>
> Actually i am having confusion how exactly the data model will look if we
> use composite column instead of super column.
>
> Thanks,
> Abhijit
>
>
>
> On Wed, May 16, 2012 at 2:56 PM, aaron morton <aaron@thelastpickle.com>wrote:
>
>> Abhijit,
>> Can you explain the data model a bit more.
>>
>> Cheers
>>
>>   -----------------
>> Aaron Morton
>> Freelance Developer
>> @aaronmorton
>> http://www.thelastpickle.com
>>
>> On 15/05/2012, at 10:32 PM, samal wrote:
>>
>> It is just column with JSON value
>>
>> On Tue, May 15, 2012 at 4:00 PM, samal <samalgorai@gmail.com> wrote:
>>
>>> I have not used CC but yes you can.
>>> Below is not composite column. It is not not column with JSON hash
>>> value. Column value can be anything you like.
>>> date inside value are not indexed.
>>>
>>>
>>> On Tue, May 15, 2012 at 9:27 AM, Abhijit Chanda <
>>> abhijit.chanda0@gmail.com> wrote:
>>>
>>>> Is it possible to create this data model with the help of composite
>>>> column.
>>>>
>>>> User_Keys_By_Last_Name = {
>>>>   "Engineering" : {"anderson", 1 : "ac1263", "anderson", 2 : "724f02", ...
},
>>>>   "Sales" : { "adams", 1 : "b32704", "alden", 1 : "1553bd", ... },
>>>> }
>>>>
>>>> I am using Astyanax. Please suggest...
>>>> --
>>>> Abhijit Chanda
>>>> Software Developer
>>>> VeHere Interactive Pvt. Ltd.
>>>> +91-9748888395
>>>>
>>>>
>>>
>>
>>
>
>
> --
> Abhijit Chanda
> Software Developer
> VeHere Interactive Pvt. Ltd.
> +91-9748888395
>
>

Mime
View raw message