incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: Missing non composite column
Date Thu, 18 Oct 2012 10:58:52 GMT
>> Yes, i understand that. Reason why i am asking is, with this i need to split
>> them to get actual column name using ":" as a seperator.
The ":" is a artefact of the cassandra-cli, nothing something you will have to deal with via
the thrift API. Internally we do not store the values with ":" separators. 

Any idiomatic API will take care of parsing the raw wire format, see the pycassa example here...

http://pycassa.github.com/pycassa/assorted/composite_types.html

Cheers

-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 18/10/2012, at 2:58 AM, Sylvain Lebresne <sylvain@datastax.com> wrote:

>> Yes, i understand that. Reason why i am asking is, with this i need to split
>> them to get actual column name using ":" as a seperator.
>> Though i did not try it yet, but wondering if column name is like
>> "alliance:movement", then how do it compute it?
> 
> You've lost me, sorry.
> 
> --
> Sylvain
> 
>> 
>> 
>> On Wed, Oct 17, 2012 at 1:04 PM, Sylvain Lebresne <sylvain@datastax.com>
>> wrote:
>>> 
>>> On Wed, Oct 17, 2012 at 3:17 AM, Vivek Mishra <mishra.vivs@gmail.com>
>>> wrote:
>>>> column name will be "2012-07-24:2:alliance_involvement" or
>>>> "alliance_involvement"?
>>> 
>>> The former. Though let's clarify that
>>> "2012-07-24:2:alliance_involvement" is the string representation of a
>>> composite name (i.e. one compatible with CompositeType) for display by
>>> the cli. What you will get is a composite containing 3 components, the
>>> first will be the string '2012-07-24', the second one will be the int
>>> 2 and the last one will be the string 'alliance_involvement'.
>>> 
>>> --
>>> Sylvain
>>> 
>>>> 
>>>> -Vivek
>>>> 
>>>> On Tue, Oct 16, 2012 at 10:25 PM, Sylvain Lebresne
>>>> <sylvain@datastax.com>
>>>> wrote:
>>>>> 
>>>>> On Tue, Oct 16, 2012 at 12:31 PM, Vivek Mishra <mishra.vivs@gmail.com>
>>>>> wrote:
>>>>>> Thanks Sylvain. I missed it. If i try to access these via thrift
API,
>>>>>> what
>>>>>> will be the column names?
>>>>> 
>>>>> I'm not sure I understand the question. The cli output is pretty much
>>>>> what you get via the thrift API.
>>>>> 
>>>>> --
>>>>> Sylvain
>>>> 
>>>> 
>> 
>> 


Mime
View raw message