public short getMode() {
    return mode;
  }
PrivilegeScope describes a hive defined privilege's scope
(global/database/table/column). For example some hive privileges are
db-level only, some are global, and some are table only.
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/PrivilegeScope.java