LongIterator iter = items.iterator();
while (iter.hasNext()) {
long item = iter.nextLong();
ScoredItemAccumulator accum;
if (modelSize == 0) {
accum = new UnlimitedScoredItemAccumulator();
} else {
accum = new TopNScoredItemAccumulator(modelSize);
}
rows.put(item, accum);
}