builder.addChannel(sym);
channels.add((Pair) Pair.of(sym, scores.getChannel(sym)));
}
}
for (ScoredId id: results) {
ScoredIdBuilder copy = ScoredIds.copyBuilder(id);
for (Pair<Symbol,SparseVector> pair: cvs) {
if (pair.getRight().containsKey(id.getId())) {
copy.addChannel(pair.getLeft(), pair.getRight().get(id.getId()));
}
}
for (Pair<TypedSymbol<?>, Long2ObjectMap<?>> pair: channels) {
if (pair.getRight().containsKey(id.getId())) {
copy.addChannel((TypedSymbol) pair.getLeft(), pair.getRight().get(id.getId()));
}
}
builder.add(copy.build());
}
return builder.finish();
} else {
return results;
}