cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Dusbabek <>
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/
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

On Thu, Oct 14, 2010 at 06:53, shiwei ye <> 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

View raw message