@Override
  public List<TableMeta> filterTableMetas(List<TableMeta> tableMetas) throws MetaException {
    List<HivePrivilegeObject> listObjs = tableMetasToPrivilegeObjs(tableMetas);
    List<HivePrivilegeObject> filteredList = getFilteredObjects(listObjs);
    final List<TableMeta> ret = new ArrayList<>();
    final TablePrivilegeLookup index = new TablePrivilegeLookup(filteredList);
    for(TableMeta table : tableMetas) {
      if (index.lookup(table.getDbName(), table.getTableName()) != 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