@InterfaceAudience.LimitedPrivate(value="Sql standard authorization plugin") public class AuthorizationUtils extends Object
| Constructor and Description |
|---|
AuthorizationUtils() |
public static HivePrincipal.HivePrincipalType getHivePrincipalType(org.apache.hadoop.hive.metastore.api.PrincipalType type) throws HiveException
type - - thrift principal typeHiveExceptionpublic static HivePrivilegeObject.HivePrivilegeObjectType getHivePrivilegeObjectType(Entity.Type type)
type - - thrift object typepublic static HivePrivilegeObject.HivePrivilegeObjectType getPrivObjectType(PrivilegeObjectDesc privSubjectDesc)
public static List<HivePrivilege> getHivePrivileges(List<PrivilegeDesc> privileges, HiveAuthorizationTranslator trans)
public static List<HivePrincipal> getHivePrincipals(List<PrincipalDesc> principals, HiveAuthorizationTranslator trans) throws HiveException
HiveExceptionpublic static HivePrincipal getHivePrincipal(String name, org.apache.hadoop.hive.metastore.api.PrincipalType type) throws HiveException
HiveExceptionpublic static List<HivePrivilegeInfo> getPrivilegeInfos(List<org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege> privs) throws HiveException
HiveExceptionpublic static HivePrivilegeObject getHiveObjectRef(org.apache.hadoop.hive.metastore.api.HiveObjectRef privObj) throws HiveException
HiveExceptionpublic static org.apache.hadoop.hive.metastore.api.PrincipalType getThriftPrincipalType(HivePrincipal.HivePrincipalType type)
type - public static org.apache.hadoop.hive.metastore.api.PrivilegeGrantInfo getThriftPrivilegeGrantInfo(HivePrivilege privilege, HivePrincipal grantorPrincipal, boolean grantOption, int grantTime) throws HiveException
privilege - grantorPrincipal - grantOption - grantTime - HiveExceptionpublic static org.apache.hadoop.hive.metastore.api.HiveObjectType getThriftHiveObjType(HivePrivilegeObject.HivePrivilegeObjectType type) throws HiveException
type - HiveExceptionpublic static org.apache.hadoop.hive.metastore.api.HiveObjectRef getThriftHiveObjectRef(HivePrivilegeObject privObj) throws HiveException
privObj - HiveExceptionpublic static HivePrivilegeObject.HivePrivObjectActionType getActionType(Entity privObject)
Copyright © 2024 The Apache Software Foundation. All rights reserved.