Re: CounterColumn as a double

2011-06-28 Thread David Boxenhorn
How about BigDoubles and BigIntegers? On Tue, Jun 28, 2011 at 3:16 AM, Jonathan Ellis wrote: > I don't think you can avoid that. > > I'd suggest making it CQL-only if we do doubles -- no backwards > incompatibility required there. > > On Mon, Jun 27, 2011 at 7:07 PM, Jason wrote: >> Sorry, I sho

Re: CounterColumn as a double

2011-06-27 Thread Jonathan Ellis
I don't think you can avoid that. I'd suggest making it CQL-only if we do doubles -- no backwards incompatibility required there. On Mon, Jun 27, 2011 at 7:07 PM, Jason wrote: > Sorry, I should have been more clear; I was speaking to the question of how > to avoid modifying the thrift interface

Re: CounterColumn as a double

2011-06-27 Thread Jason
Sorry, I should have been more clear; I was speaking to the question of how to avoid modifying the thrift interface. - Jason On Jun 27, 2011, at 7:58 PM, Joseph Stein wrote: > hmmm, well Jason it is not as accurate as I would have thought at first and > the increments on the long are whacked

Re: CounterColumn as a double

2011-06-27 Thread Joseph Stein
hmmm, well Jason it is not as accurate as I would have thought at first and the increments on the long are whacked (which now that I think about it more makes sense since a +1 of the bits as long for the double would not necessarly represent the +1 on the double). So I am setting the increment to

Re: CounterColumn as a double

2011-06-27 Thread Joseph Stein
I will give that a shot, seems that it will work fantastically, thanks! I will keep trolling JIRA then for something I feel I can get my feet wet with and contribute then. On Mon, Jun 27, 2011 at 7:33 PM, Jason Fager wrote: > Longs and Doubles are both 64-bit values and are pretty easily > conv

Re: CounterColumn as a double

2011-06-27 Thread Jason Fager
Longs and Doubles are both 64-bit values and are pretty easily convertible. Check out Double.doubleToLongBits and Double.longBitsToDouble in the JDK; you can also read more about the details of the conversion and get some pointers to some code in a post I wrote last year: http://jasonfager.com/770

Re: CounterColumn

2011-05-17 Thread Dave Rav
can you estimate when this feature will be added?

Re: CounterColumn

2011-05-06 Thread Dave Rav
JIRA ticket https://issues.apache.org/jira/browse/CASSANDRA-2614 On Fri, May 6, 2011 at 5:33 AM, Dave Rav wrote: > can I use 'Colunm' and  'CounterColumn' in the same 'column family'? No you cannot. As of 0.8.0 you have either counter column family or column family without counters. But I'll

Re: CounterColumn

2011-05-06 Thread Sylvain Lebresne
On Fri, May 6, 2011 at 5:33 AM, Dave Rav wrote: > can I use 'Colunm' and  'CounterColumn' in the same 'column family'? No you cannot. As of 0.8.0 you have either counter column family or column family without counters. But I'll admit that right off the bat I don't see any technical blocker to do