ScoredIdListBuilder ratings = itemRatingData.get(item);
SparseVector v = ratings.buildVector();
assert v.size() == ratings.size();
itemRatings[i] = v;
// release some memory
ratings.clear();
}
logger.debug("item data completed");
return new ItemItemBuildContext(items, itemRatings, userItems);
}