while (values.hasNext()) {
VectorWritable value = values.next();
value.get().addTo(vector);
}
if (normPower != PartialVectorMerger.NO_NORMALIZING) {
vector = vector.normalize(normPower);
}
if (sequentialAccess) {
vector = new SequentialAccessSparseVector(vector);
}
vectorWritable.set(vector);