Need help to fetch columns from supercounter columns using hector API

7 views
Skip to first unread message

kanchan singh

unread,
May 21, 2013, 6:11:22 AM5/21/13
to hector...@googlegroups.com
Hi All,
 
I have a requirement to create and insert data into supercounter column and then fetch data from supercounter column.
I am able to create and insert data, but not able to fetch. QueryResult has data of integer type only, so I am not sure, for each supercountercolumn, how to get all the column names and value of each column
Please suggest.
Below si the code sample. what I have tried to fetch.
 

SuperCountQuery

<String, String> scq = HFactory.createSuperCountQuery(keyspace, ss, ss);

scq.setColumnFamily(

CFName).setKey("STORE240").setRange("", "", 4);

QueryResult<Integer> queryResult1 = scq.execute();

System.

out.println("q val = "+queryResult1.get());

 

 

Reply all
Reply to author
Forward
0 new messages