Re: Long type column names in reverse order

2012-04-21 Thread Tamar Fraenkel
gt; >> >> On Fri, Apr 20, 2012 at 12:57 PM, Tarun Gupta >> wrote: >> > Hi, >> > >> > My requirements is to get retrieve column values, sorted by column >> names in >> > reverse order (column names are 'long' type). The way I am

Re: Long type column names in reverse order

2012-04-20 Thread Tarun Gupta
e: > > Hi, > > > > My requirements is to get retrieve column values, sorted by column names > in > > reverse order (column names are 'long' type). The way I am trying to > > implement this is by using a custom comparator. I have written the custom > &g

Re: Long type column names in reverse order

2012-04-20 Thread Edward Capriolo
column names are 'long' type). The way I am trying to > implement this is by using a custom comparator. I have written the custom > comparator by using 'org.apache.cassandra.db.marshal.BytesType' and altering > the compare() method. While inserting values it works fi

Long type column names in reverse order

2012-04-20 Thread Tarun Gupta
Hi, My requirements is to get retrieve column values, sorted by column names in reverse order (column names are 'long' type). The way I am trying to implement this is by using a custom comparator. I have written the custom comparator by using 'org.apache.cassandra.db.marshal

Re: Adding Long type rows to a CF containing Integer(32) type row keys, without overlapping ?

2012-03-26 Thread aaron morton
at 9:47 PM, Ertio Lew wrote: > >> I have been writing rows to a CF all with integer(4 byte) keys. So my CF >> contains rows with keys in the entire range from Integer.MIN_VALUE to >> Integer.MAX_VALUE. >> >> Now I want to store Long type keys as well

Re: Adding Long type rows to a CF containing Integer(32) type row keys, without overlapping ?

2012-03-26 Thread aaron morton
at 9:47 PM, Ertio Lew wrote: > >> I have been writing rows to a CF all with integer(4 byte) keys. So my CF >> contains rows with keys in the entire range from Integer.MIN_VALUE to >> Integer.MAX_VALUE. >> >> Now I want to store Long type keys as well

Re: Adding Long type rows to a CF containing Integer(32) type row keys, without overlapping ?

2012-03-26 Thread Ertio Lew
ance Developer > @aaronmorton > http://www.thelastpickle.com > > On 25/03/2012, at 9:47 PM, Ertio Lew wrote: > > I have been writing rows to a CF all with integer(4 byte) keys. So my CF > contains rows with keys in the entire range from Integer.MIN_VALUE to > Integer.MAX_VALUE. > > Now I wa

Re: Adding Long type rows to a CF containing Integer(32) type row keys, without overlapping ?

2012-03-26 Thread aaron morton
25/03/2012, at 9:47 PM, Ertio Lew wrote: > I have been writing rows to a CF all with integer(4 byte) keys. So my CF > contains rows with keys in the entire range from Integer.MIN_VALUE to > Integer.MAX_VALUE. > > Now I want to store Long type keys as well in this CF **without dist

Adding Long type rows to a CF containing Integer(32) type row keys, without overlapping ?

2012-03-25 Thread Ertio Lew
I have been writing rows to a CF all with integer(4 byte) keys. So my CF contains rows with keys in the entire range from Integer.MIN_VALUE to Integer.MAX_VALUE. Now I want to store Long type keys as well in this CF **without disturbing the integer keys. The range of Long type keys would be

Re: row key as long type

2011-09-09 Thread Thamizh
Ellis Subject: Re: row key as long type To: user@cassandra.apache.org Date: Friday, 9 September, 2011, 1:46 AM Probably because you had some non-long data in it, then added the long type later. On Thu, Sep 8, 2011 at 2:51 PM, amulya rattan wrote: But I explicitly remember List throwing "lo

Re: row key as long type

2011-09-08 Thread Jonathan Ellis
Probably because you had some non-long data in it, then added the long type later. On Thu, Sep 8, 2011 at 2:51 PM, amulya rattan wrote: > But I explicitly remember List throwing "long is exactly 8 bytes" when i > invoked on a column family with long as key. > Why would that h

Re: row key as long type

2011-09-08 Thread amulya rattan
But I explicitly remember List throwing "long is exactly 8 bytes" when i invoked on a column family with long as key. Why would that happen? On Thu, Sep 8, 2011 at 10:07 AM, Jonathan Ellis wrote: > List should work fine on any schema, including long keys. > > > On Thu, Sep 8, 2011 at 8:23 AM, am

Re: row key as long type

2011-09-08 Thread Jonathan Ellis
List should work fine on any schema, including long keys. On Thu, Sep 8, 2011 at 8:23 AM, amulya rattan wrote: > Row key can certainly be of type long..you'd just have to set > key_validataion_class to be LongType. > > However, doing list on column family would throw an error..please look at > h

Re: row key as long type

2011-09-08 Thread amulya rattan
Row key can certainly be of type long..you'd just have to set key_validataion_class to be LongType. However, doing list on column family would throw an error..please look at http://wiki.apache.org/cassandra/FAQ#a_long_is_exactly_8_bytes On Thu, Sep 8, 2011 at 8:14 AM, Thamizh wrote: > Hi All, >

row key as long type

2011-09-08 Thread Thamizh
Hi All, Is there a way to store number(longtype) as row key in Cassadra? I wanted to execute range query based on row key value. e.g $list info[12345:]; . It should list all the rowkeys which are >= 12345. Is there a way accompolish this in cassandra? Secondary index does not helped me. So I

Re: long type

2010-05-22 Thread huajun qi
Thanks!

RE: long type

2010-05-22 Thread Dop Sun
://code.google.com/p/jassandra/source/browse/trunk/org.softao.jassandra/ src/org/softao/jassandra/ByteArray.java This ByteArray can give you something about converting. From: huajun qi [mailto:qih...@gmail.com] Sent: Sunday, May 23, 2010 10:11 AM To: user@cassandra.apache.org Subject: Re: long type

Re: long type

2010-05-22 Thread huajun qi
10:19 PM > *To:* user@cassandra.apache.org > *Subject:* long type > > > > > I set the "CompareWith" property to "longtype", but I can not insert data. > It seems that something is wrong with the key. If I use longtype comparison, > what key I should use? int?long?

RE: long type

2010-05-22 Thread Dop Sun
CompareWith defines type for column name/ super column name, and at the moment, key should be always String. From: huajun qi [mailto:qih...@gmail.com] Sent: Saturday, May 22, 2010 10:19 PM To: user@cassandra.apache.org Subject: long type I set the "CompareWith" property to

long type

2010-05-22 Thread huajun qi
I set the "CompareWith" property to "longtype", but I can not insert data. It seems that something is wrong with the key. If I use longtype comparison, what key I should use? int?long? By the way, the language I use is python. -- Location: