SliceQuery<Long,Long,byte[]> query = buildNoValueSliceQuery(USERS_CF);
query.setKey(userID);
FastIDSet itemIDs = new FastIDSet();
ColumnSlice<Long,byte[]> result = query.execute().get();
if (result == null) {
throw new NoSuchUserException(userID);
}
List<HColumn<Long,byte[]>> columns = result.getColumns();
if (columns.isEmpty()) {
throw new NoSuchUserException(userID);
}
for (HColumn<Long,?> itemIDColumn : columns) {
itemIDs.add(itemIDColumn.getName());
}
return itemIDs;