nbrIter = nbrIter.limit(neighborhoodSize);
}
List<ScoredId> neighbors = nbrIter.toList();
// compute score & place in vector
ScoredId score = null;
if (neighbors.size() >= minNeighbors) {
score = scorer.score(item, neighbors, userData);
}
if (score != null) {
scores.set(e, score.getScore());
// FIXME Scorers should not need to do this.
for (TypedSymbol sym: score.getChannelSymbols()) {
scores.getOrAddChannel(sym).put(e.getKey(), score.getChannelValue(sym));
}
}
sizeChannel.set(e, neighbors.size());
}