for (byte[] key : results.keySet()) {
Object e = null;
Object id = PropertyAccessorHelper.getObject(m.getIdAttribute().getJavaType(), key);
List<CounterSuperColumn> counterSuperColumns = results.get(key);
ThriftRow tr =
new ThriftRow(id, m.getTableName(), new ArrayList<Column>(0), new ArrayList<SuperColumn>(0),
new ArrayList<CounterColumn>(0), counterSuperColumns);
e = getDataHandler().populateEntity(tr, m, KunderaCoreUtils.getEntity(e), relations, isRelation);
entities.add(e);
}
} else {
if (log.isInfoEnabled()) {
log.info("On counter column for column family of entity {}", m.getEntityClazz());
}
Map<byte[], List<CounterColumn>> results = new HashMap<byte[], List<CounterColumn>>();
List<CounterColumn> counterColumns = null;
for (KeySlice slice : ks) {
counterColumns = new ArrayList<CounterColumn>(slice.getColumnsSize());
for (ColumnOrSuperColumn column : slice.columns) {
counterColumns.add(column.counter_column);
}
results.put(slice.getKey(), counterColumns);
}
entities = new ArrayList<Object>(results.size());
for (byte[] key : results.keySet()) {
Object e = null;
Object id = PropertyAccessorHelper.getObject(m.getIdAttribute().getJavaType(), key);
List<CounterColumn> columns = results.get(key);
ThriftRow tr =
new ThriftRow(id, m.getTableName(), new ArrayList<Column>(0), new ArrayList<SuperColumn>(0),
columns, new ArrayList<CounterSuperColumn>(0));
e = getDataHandler().populateEntity(tr, m, KunderaCoreUtils.getEntity(e), relations, isRelation);
if (e != null) {
entities.add(e);