String partition = "unpartitioned";
boolean lastSplit = false;
List<? extends PartitionKey> partitionKeys = ImmutableList.of();
if (sourceSplit instanceof PartitionedSplit) {
PartitionedSplit partitionedSplit = (PartitionedSplit) sourceSplit;
partition = partitionedSplit.getPartitionId();
lastSplit = partitionedSplit.isLastSplit();
partitionKeys = partitionedSplit.getPartitionKeys();
}
addPartitionShard(partition, lastSplit, partitionKeys, writingSplit.getShardUuid());
CollocatedSplit collocatedSplit = new CollocatedSplit(
ImmutableMap.of(