Many of experts and documentation suggest that to go with composite column is far better than that of Super Column because lack of secondary indices in that...so if possible use Composite Column.Otherwise in this case you should use timeUUID in place of your dynamic values and try with MultigetSubSliceQuery
, make changes with below code,this might increase your programming efforts to generate required result
ArrayList<String> listco = new ArrayList<String>();
listco.add("1001");
listco.add("1002");
MultigetSubSliceQuery<String,String, String, String> rangeSlicesQuery =
HFactory.
createMultigetSubSliceQuery(keyspace,stringSerializer, stringSerializer, stringSerializer, stringSerializer);
rangeSlicesQuery.setColumnFamily("step_wise_stats");
rangeSlicesQuery.setSuperColumn("your super column");
rangeSlicesQuery.setKeys(listco);
rangeSlicesQuery.setRange("", "", false, 1000);
QueryResult<Rows<String, String, String>> result = rangeSlicesQuery.execute();