TextStreamInputFormat.setTimeRange(job, stream.getStartTime(), stream.getEndTime());
job.setInputFormatClass(TextStreamInputFormat.class);
} else {
// We checked on validation phase that it implements BatchReadable
BatchReadable inputDataSet = (BatchReadable) context.getDataSet(inputDataSetName);
List<Split> inputSplits = context.getInputDataSelection();
if (inputSplits == null) {
inputSplits = inputDataSet.getSplits();
}
context.setInput(inputDataSetName, inputSplits);
LOG.debug("Using Dataset {} as input for MapReduce Job", inputDataSetName);
DataSetInputFormat.setInput(job, inputDataSetName);