Vamshi
unread,Feb 12, 2013, 12:51:49 AM2/12/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to hector...@googlegroups.com
Hi,
When I fetch columns using SliceQuery, it returns me all the columns with the same datatype. Is there any way that QueryResult have object as the datatype of column values.
I can use instance of operator and then typecast it to any datatype.
Code snippet:
SliceQuery<String,String,ByteBuffer> query = HFactory.createSliceQuery(getConnection().getKeyspace(),StringSerializer.get(),StringSerializer.get(),ByteBufferSerializer.get());
query.setColumnFamily(columnFamily).setKey(key).setRange("","",false,100);
QueryResult<ColumnSlice<String, ByteBuffer>> colResult = query.execute();
In the above code snippet, I am getting ByteBuffer of all the values. Can I get Object in place of it?
Regards,
Vamshi