private Map<Object, KeyValue<TypedRow>> findNextSetOfData(
NoSqlTypedSession s, String cf, Cursor<IndexPoint> indexView) {
int batchCounter = 0;
List<Object> keys = new ArrayList<Object>();
while(batchCounter < BATCH_SIZE && indexView.next()) {
IndexPoint current = indexView.getCurrent();
keys.add(current.getKey());
batchCounter++;
}
Map<Object, KeyValue<TypedRow>> keyToRow = new HashMap<Object, KeyValue<TypedRow>>();
Cursor<KeyValue<TypedRow>> cursor = s.createFindCursor(cf, keys, BATCH_SIZE);
while(cursor.next()) {
KeyValue<TypedRow> current = cursor.getCurrent();
keyToRow.put(current.getKey(), current);
}
return keyToRow;
}