final int rowLimit) {
return template.read(keyspaceName, new KeyspaceCallback<Map<ByteBuffer, List<SuperColumn>>>() {
public Map<ByteBuffer, List<SuperColumn>> execute(KeyspaceService keyspace) {
ColumnParent columnParent = new ColumnParent(columnFamilyName);
SlicePredicate predicate = ALL_COLUMNS;
KeyRange keyRange = new KeyRange(rowLimit);
keyRange.setStart_key(bytes(startKey));
keyRange.setEnd_key(bytes(""));
return keyspace.getSuperRangeSlices(columnParent, predicate, keyRange);
}
});
}