checkArgument(noMoreParentNodes, "Hash partitioned output requires all parent nodes be added in a single call");
ImmutableMap.Builder<TaskId, PagePartitionFunction> buffers = ImmutableMap.builder();
for (int nodeIndex = 0; nodeIndex < parentTasks.size(); nodeIndex++) {
TaskId taskId = parentTasks.get(nodeIndex);
buffers.put(taskId, new HashPagePartitionFunction(nodeIndex, parentTasks.size(), fragment.getPartitioningChannels(), fragment.getTypes()));
}
newOutputBuffers = startingOutputBuffers
.withBuffers(buffers.build())
.withNoMoreBufferIds();