int maxFilesPerShard = findMaxFilesPerShard(sortFiles);
if (maxFilesPerShard <= settings.getMergeFanin()) {
return immediate(priorResult);
}
GoogleCloudStorageMergeInput input =
new GoogleCloudStorageMergeInput(sortFiles, settings.getMergeFanin());
((Input<?>) input).setContext(context);
List<? extends InputReader<KeyValue<ByteBuffer, Iterator<ByteBuffer>>>> readers =
input.createReaders();
Output<KeyValue<ByteBuffer, List<ByteBuffer>>, FilesByShard> output =
new GoogleCloudStorageMergeOutput(settings.getBucketName(), mrJobId, tier);
output.setContext(context);