@Override
  public List<String> getAllForType(Type type) {
    ArrayList<String> allNodes = new ArrayList<String>();
    try {
      for (FileStatus status : fs.listStatus(new Path(getPath(type)))) {
        allNodes.add(status.getPath().getName());
      }
      return null;
    } catch (Exception e) {
      LOG.trace("Couldn't find children for type " + type.toString());
    }
    return allNodes;
  }
HDFS implementation of templeton storage.

 This implementation assumes that all keys in key/value pairs are
 chosen such that they don't have any newlines in them.
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/HDFSStorage.java