public static boolean shouldDumpMetaDataOnlyForExternalTables(Table table, HiveConf conf) {
    return (conf.getBoolVar(HiveConf.ConfVars.REPL_INCLUDE_EXTERNAL_TABLES) &&
                    table.getTableType().equals(TableType.EXTERNAL_TABLE) &&
                    conf.getBoolVar(HiveConf.ConfVars.REPL_DUMP_METADATA_ONLY_FOR_EXTERNAL_TABLE));
  }
validates if a table can be exported, similar to EximUtil.shouldExport with few replication
specific checks.
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/Utils.java