@Override
  public int compareTo(HivePrincipal o) {
    int compare = name.compareTo(o.name);
    if (compare == 0) {
      compare = type.compareTo(o.type);
    }
    return compare;
  }
Represents the user or role in grant/revoke statements
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HivePrincipal.java