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
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
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
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
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
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
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
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
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
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
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
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
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
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,
>
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
Thanks!
://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
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?
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
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:
20 matches
Mail list logo