@Override
public void readFieldsForPartition(DataInput in,
int partitionId) throws IOException {
int size = in.readInt();
Long2DoubleOpenHashMap partitionMap = new Long2DoubleOpenHashMap(size);
while (size-- > 0) {
long vertexId = in.readLong();
double message = in.readDouble();
partitionMap.put(vertexId, message);
}
synchronized (map) {
map.put(partitionId, partitionMap);
}
}