getHivePrincipal(priv.getPrincipalName(), priv.getPrincipalType());
HivePrincipal grantor =
getHivePrincipal(grantorInfo.getGrantor(), grantorInfo.getGrantorType());
HivePrivilegeObject object = getHiveObjectRef(privObject);
HivePrivilege privilege = new HivePrivilege(grantorInfo.getPrivilege(), null);
hivePrivs.add(new HivePrivilegeInfo(hivePrincipal, privilege, object, grantor,
grantorInfo.isGrantOption(), grantorInfo.getCreateTime()));
}
return hivePrivs;
}