Re: Double ColumnType and comparing

2011-03-14 Thread Norman Maurer
I will have a look at what it takes to implement it.. Bye, Norman 2011/3/14 David Boxenhorn > I you do it, I'd recommend BigDecimal. It's an exact type, and usually what > you want. > > On Mon, Mar 14, 2011 at 3:40 PM, Jonathan Ellis wrote: > >> We'd be happy to commit a patch contributing a

Re: Double ColumnType and comparing

2011-03-14 Thread David Boxenhorn
I you do it, I'd recommend BigDecimal. It's an exact type, and usually what you want. On Mon, Mar 14, 2011 at 3:40 PM, Jonathan Ellis wrote: > We'd be happy to commit a patch contributing a DoubleType. > > On Sun, Mar 13, 2011 at 7:36 PM, Paul Teasdale > wrote: > > I am quite new to Cassandra a

Re: Double ColumnType and comparing

2011-03-14 Thread Jonathan Ellis
We'd be happy to commit a patch contributing a DoubleType. On Sun, Mar 13, 2011 at 7:36 PM, Paul Teasdale wrote: > I am quite new to Cassandra and am trying to model a simple Column Family > which uses Doubles as column names: > Datalines: { // ColumnFamilly > dataline-1:{ // row key > 23.5: 'som

Re: Double ColumnType and comparing

2011-03-14 Thread Eric Charles
Or maybe convert double to long, just as hector's DoubleSerializer does https://github.com/rantav/hector/blob/master/core/src/main/java/me/prettyprint/cassandra/serializers/DoubleSerializer.java I was happy to use it here. Tks, - Eric On 14/03/2011 02:52, aaron morton wrote: There is nothing in

Re: Double ColumnType and comparing

2011-03-13 Thread aaron morton
There is nothing in the 0.8 trunk to add double support. Could you shift the decimal point and use ints / longs ? Double is not a precise type, so there is a possibility of the value changing as it's serialised and deserialised around. You were on the right track with extending abstract type.

Double ColumnType and comparing

2011-03-13 Thread Paul Teasdale
I am quite new to Cassandra and am trying to model a simple Column Family which uses Doubles as column names: Datalines: { // ColumnFamilly dataline-1:{ // row key 23.5: 'someValue', 23.6: 'someValue', ... 4334.99: 'someValue' }, dataline-2:{ 10.5: 'someValue', 12.6: 'someValue', ..