private void generateWrappedSplits(InputFormat inputFormat, List<FetchInputFormatSplit> inputSplits, JobConf job)
      throws IOException {
    InputSplit[] splits = new InputSplit[0];
    try {
      splits = inputFormat.getSplits(job, 1);
    } catch (InvalidInputException iie) {
      LOG.warn("Input path " + currPath + " is empty", iie);
    } catch (Exception ex) {
      Throwable t = ExceptionUtils.getRootCause(ex);
      if (t instanceof FileNotFoundException || t instanceof InvalidInputException) {
        LOG.warn("Input path " + currPath + " is empty", t);
      } else {
        throw ex;
      }
    }
    for (int i = 0; i < splits.length; i++) {
      inputSplits.add(new FetchInputFormatSplit(splits[i], inputFormat));
    }
  }
Set context for this fetch operator in to the jobconf.
This helps InputFormats make decisions based on the scope of the complete
operation.
@param conf the configuration to modify
@param paths the list of input directories
ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java