private List<Table> getFilteredTableList(List<HivePrivilegeObject> hivePrivilegeObjects, List<Table> tableList) {
    final List<Table> ret = new ArrayList<>();
    final TablePrivilegeLookup index = new TablePrivilegeLookup(hivePrivilegeObjects);
    for(Table table : tableList) {
      if (index.lookup(table.getDbName(), table.getTableName()) != null) {
        ret.add(table);
      }
    }
    return ret;
  }
HiveMetaStoreAuthorizer :  Do authorization checks on MetaStore Events in MetaStorePreEventListener
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/HiveMetaStoreAuthorizer.java