public static PrivilegeGrantInfo getThriftPrivilegeGrantInfo(HivePrivilege privilege,
      HivePrincipal grantorPrincipal, boolean grantOption, int grantTime) throws HiveException {
    return new PrivilegeGrantInfo(privilege.getName(), grantTime,
        grantorPrincipal.getName(), getThriftPrincipalType(grantorPrincipal.getType()), grantOption);
  }
Get thrift privilege grant info
@param privilege
@param grantorPrincipal
@param grantOption
@param grantTime
@return
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/AuthorizationUtils.java