@Override
  protected FileStatus[] listStatus(JobConf job) throws IOException {
    try {
      if (CollectionUtils.isEmpty(fileStatuses.get())) {
        // In cases where list of files to fetch is not provided we will use SequenceFileInputFormat
        // e.g. SELECT without a job
        return super.listStatus(job);
      }
      return fileStatuses.get().toArray(new FileStatus[0]);
    } finally {
      fileStatuses.remove();
    }
  }
HiveSequenceFileInputFormat.
 This input format is used by Fetch Operator. This input format does list status
   on list of files (kept in listsToFetch) instead of doing list on whole directory
   as done by previously used SequenceFileFormat.
   To use this FileFormat make sure to provide the list of files
@param <K>
@param <V>
ql/src/java/org/apache/hadoop/hive/ql/io/HiveSequenceFileInputFormat.java