Also can this code apply to other FileInputFormats too, or just the CombinedFileInputFormat? It's a bit weird that minSplits is passed to HadoopRDD but then it only applies it if the RDD is using this InputFormat.