private int addBHISplit(FileStatus status, InputFormat inputFormat, Class inputFormatClass,
      int numOrigSplits, JobConf newjob, ArrayList<InputSplit> result) throws IOException {
    LOG.info("block size: " + status.getBlockSize());
    LOG.info("file length: " + status.getLen());
    FileInputFormat.setInputPaths(newjob, status.getPath());
    InputSplit[] iss = inputFormat.getSplits(newjob, 0);
    if (iss != null && iss.length > 0) {
      numOrigSplits += iss.length;
      result.add(new BucketizedHiveInputSplit(iss, inputFormatClass
          .getName()));
    }
    return numOrigSplits;
  }
Recursively lists status for all files starting from the directory dir
@param job
@param dir
@return
@throws IOException
ql/src/java/org/apache/hadoop/hive/ql/io/BucketizedHiveInputFormat.java