private List<Table> getFilteredTableList(List<HivePrivilegeObject> hivePrivilegeObjects, List<Table> tableList) {
    List<Table> ret = new ArrayList<>();
    for(HivePrivilegeObject hivePrivilegeObject:hivePrivilegeObjects) {
      String dbName  = hivePrivilegeObject.getDbname();
      String tblName = hivePrivilegeObject.getObjectName();
      Table  table   = getFilteredTable(dbName,tblName,tableList);
      if (table != null) {
        ret.add(table);
      }
    }
    return ret;
  }
Metastore filter hook for filtering out the list of objects that the current authorization
implementation does not allow user to see
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/AuthorizationMetaStoreFilterHook.java