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