public static boolean isBackgroundThreadsEnabledForRepl(Database db) {
    assert (db != null);
    Map<String, String> dbParameters = db.getParameters();
    return dbParameters != null && !StringUtils.isEmpty(dbParameters.get(ReplConst.REPL_ENABLE_BACKGROUND_THREAD));
  }
Determines whether a table is an external table.

@param table table of interest

@return true if external
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java