public static String getDbNameFromReplPolicy(String replPolicy) {
    assert replPolicy != null;
    return replPolicy.split(Pattern.quote("."))[0];
  }
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