private List<HivePrivilegeObject> tablesToPrivilegeObjs(List<Table> tableList) {
    List<HivePrivilegeObject> objs = new ArrayList<HivePrivilegeObject>();
    for (Table tableObject : tableList) {
      objs.add(createPrivilegeObjectForTable(tableObject.getDbName(), tableObject.getTableName(), tableObject.getOwner(),
          tableObject.getOwnerType()));
    }
    return objs;
  }
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