}
private synchronized void updateTaskInfo(final TaskInfo newValue)
{
for (Entry<PlanNodeId, Set<?>> entry : newValue.getOutputs().entrySet()) {
OutputReceiver outputReceiver = outputReceivers.get(entry.getKey());
checkState(outputReceiver != null, "Got Result for node %s which is not an output receiver!", entry.getKey());
for (Object result : entry.getValue()) {
outputReceiver.updateOutput(result);
}
}
if (newValue.getState().isDone()) {
// splits can be huge so clear the list