incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Montgomery Burns <montgome...@gmail.com>
Subject Re: CQL, How to insert Bytes
Date Fri, 24 Feb 2012 17:08:21 GMT
Thank you - that works perfectly!

One final question, is this in the docs somewhere - or where should I
look into in the future for questions like these? Google doesn't seem
to be much help since it mostly refers to the docs by datastax, or
other other posts in this mailing list.

2012/2/24 Eric Evans <eevans@acunu.com>:
> On Fri, Feb 24, 2012 at 10:33 AM, Montgomery Burns
> <montgomeryb@gmail.com> wrote:
>> That works - but only for static columns. How do I use this with
>> dynamic columns? And how can I specify column-names that are bytes
>> (rather than characters) themselves in CQL?
>
> Using blob as the comparator (WITH comparator = blob) will allow you
> have all column names as bytes, and likewise, default_validation =
> blob will make bytes the default for column values.
>
> If you want to create schema for specific columns that have binary
> names, you can not (yet) do that.
>
>> 2012/2/24 Eric Evans <eevans@acunu.com>:
>>> On Fri, Feb 24, 2012 at 9:28 AM, Montgomery Burns <montgomeryb@gmail.com>
wrote:
>>>> what do I use in order to insert bytes instead of characters into a
>>>> column, using CQL with the Thrift-client?
>>>
>>> Assuming the type is 'blob' (bytes), use hex encoding.
>>>
>>> --
>>> Eric Evans
>>> Acunu | http://www.acunu.com | @acunu
>
>
>
> --
> Eric Evans
> Acunu | http://www.acunu.com | @acunu

Mime
View raw message