private static final Logger LOG = LoggerFactory.getLogger(SparkDatasetInputFormat.class);
public static final String HCONF_ATTR_INPUT_DATASET = "input.dataset.name";
@Override
public List<InputSplit> getSplits(final JobContext context) throws IOException, InterruptedException {
SparkContextConfig sparkContextConfig = new SparkContextConfig(context.getConfiguration());
List<Split> splits = sparkContextConfig.getInputSelection();
List<InputSplit> list = new ArrayList<InputSplit>();
for (Split split : splits) {
list.add(new DataSetInputSplit(split));
}
return list;