SliceQuery<Long,Long,Float> query = buildValueSliceQuery(USERS_CF);
query.setKey(userID);
ColumnSlice<Long,Float> result = query.execute().get();
if (result == null) {
throw new NoSuchUserException(userID);
}
List<HColumn<Long,Float>> itemIDColumns = result.getColumns();
if (itemIDColumns.isEmpty()) {
throw new NoSuchUserException(userID);
}
int size = itemIDColumns.size();
PreferenceArray prefs = new GenericUserPreferenceArray(size);
prefs.setUserID(0, userID);
for (int i = 0; i < size; i++) {