Re: Object mapper for CQL

2014-06-07 Thread Kuldeep Mishra
There is one High Level Java client for Cassandra which supports CQL is Kundera. You can find it here https://github.com/impetus-opensource/Kundera. Other useful links are https://github.com/impetus-opensource/Kundera/wiki/Getting-Started-in-5-minutes https://github.com/impetus-opensource/Kundera/

Re: Added extra column as composite key while creation counter column family

2013-04-16 Thread Kuldeep Mishra
={'class': 'SizeTieredCompactionStrategy'} AND > compression={'sstable_compression': 'SnappyCompressor'}; > > Cheers > > - > Aaron Morton > Freelance Cassandra Consultant > New Zealand > > @aaronmorton > http://www.thelastpickle.com &g

Added extra column as composite key while creation counter column family

2013-04-14 Thread Kuldeep Mishra
Hi, While I creating counter column family a extra column is being added what I do ? Table creation script CREATE TABLE counters ( key text, value counter, PRIMARY KEY (key) ) WITH COMPACT STORAGE after describing column family I am getting following CREATE TABLE counters ( key text,

Re: Getting NullPointerException while executing query

2013-04-10 Thread Kuldeep Mishra
A valid query with that schema would be for instance: > select * from "CQLUSER" where token(id) > token(4) > though I don't know if that help in any way for what you aimed to do. > > -- > Sylvain > > > On Wed, Apr 10, 2013 at 9:42 AM, Kuldeep Mishra >

Getting NullPointerException while executing query

2013-04-10 Thread Kuldeep Mishra
Hi , TABLE - CREATE TABLE "CQLUSER" ( id int PRIMARY KEY, age int, name text ) Query - select * from "CQLUSER" where token(name) > token(deep); ERROR - Bad Request: Failed parsing statement: [select * from "CQLUSER" where token(name) > token(deep);] reason: NullPointerExce

describe keyspace or column family query not working

2013-04-10 Thread Kuldeep Mishra
Hi , I am trying to execute following query but not working and throwing exception QUERY:-- Cassandra.Client client; client.execute_cql3_query(ByteBuffer.wrap("describe keyspace mykeyspace".getBytes(Constants.CHARSET_UTF8)), Compression.NONE, ConsistencyLevel.ONE); client.exe

Re: cql query not giving any result.

2013-03-15 Thread Kuldeep Mishra
t;); client.system_add_column_family(user_Def); Thanks KK On Fri, Mar 15, 2013 at 4:24 PM, Sylvain Lebresne wrote: > On Fri, Mar 15, 2013 at 11:43 AM, Kuldeep Mishra > wrote: > >> Hi, >> Is it possible in Cassandra to make multiple column with same name ?, >>

Re: cql query not giving any result.

2013-03-15 Thread Kuldeep Mishra
Hi, Is it possible in Cassandra to make multiple column with same name ?, like in this particular scenario I have two column with same name as "key", first one is rowkey and second on is column name . Thanks and Regards Kuldeep On Fri, Mar 15, 2013 at 4:05 PM, Kuldeep Mishra wrot

Re: getting error for decimal type data

2013-01-29 Thread Kuldeep Mishra
: org.apache.cassandra.io.compress.SnappyCompressor for value of *BIG_DECIMAL is *2.28542855225E-825373481 Thanks Kuldeep On Tue, Jan 29, 2013 at 1:52 PM, Rishabh Agrawal < rishabh.agra...@impetus.co.in> wrote: > Can you provide specs of the column family using describe. > > >

getting error for decimal type data

2013-01-28 Thread Kuldeep Mishra
while I an trying to list column family data using cassandra-cli then I am getting following problem for decimal type data, any suggestion will be appreciated. Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.lang.AbstractStringBuilder.(AbstractStringBuilder.java:

Re: error when creating column family using cql3 and persisting data using thrift

2013-01-16 Thread Kuldeep Mishra
ndra.java:20833) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78) at org.apache.cassandra.thrift.Cassandra$Client.recv_batch_mutate(Cassandra.java:964) at org.apache.cassandra.thrift.Cassandra$Client.batch_mutate(Cassandra.java:950) ````````