.setRowCount(Constants.CASSANDRA_MAX_ROWS);
QueryResult<OrderedRows<String, String, String>> result = query.execute();
List<Row<String, String, String>> rows = result.get().getList();
for (Row<String, String, String> row : rows) {
Domain domain = new Domain();
domain.setName(row.getKey());
domain.setNumberOfUsers(row.getColumnSlice().getColumns().size());
domains.add(domain);
}
return domains;
}