cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Dusbabek <gdusba...@gmail.com>
Subject Re: how to CompareWith LongType
Date Thu, 14 Oct 2010 13:02:35 GMT
Pycassa should just take your long and do the right thing with it
(packing it into a binary string) before passing it off to thrift.

The system tests in the source (test/system/test_thrift_server.py)
will give you a very good indication of how to do this.  The long is
packed into a string using struct.pack('>p', n), where 'n' is your
long.


On Thu, Oct 14, 2010 at 06:53, shiwei ye <yeshiwei3716@gmail.com> wrote:
> How to insert a value to a column family CompareWith Longtype in python.I'm
> using pycassa.
> What should the type of the column be?Thx
>
>

Mime
View raw message