public boolean isEmptyDir(Path path, PathFilter pathFilter)
      throws IOException, MetaException {
    try {
      final int listCount;
      if (pathFilter == null) {
        listCount = getFs(path).listStatus(path).length;
      } else {
        listCount = getFs(path).listStatus(path, pathFilter).length;
      }
      return listCount == 0;
    } catch (FileNotFoundException fnfe) {
      // File named by path doesn't exist; nothing to validate.
      return false;
    }
  }
Get table name in cat.db.table format.
@param table table object
@return fully qualified name.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/Warehouse.java