public static boolean isTranslatedToExternalTable(Table table) {
    Map<String, String> params = table.getParameters();
    return params != null && MetaStoreUtils.isPropertyTrue(params, HiveMetaHook.EXTERNAL)
        && MetaStoreUtils.isPropertyTrue(params, HiveMetaHook.TRANSLATED_TO_EXTERNAL) && table.getSd() != null
        && table.getSd().isSetLocation();
  }
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