org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd
Enum SQLPrivTypeGrant
java.lang.Object
java.lang.Enum<SQLPrivTypeGrant>
org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLPrivTypeGrant
- All Implemented Interfaces:
- Serializable, Comparable<SQLPrivTypeGrant>
public enum SQLPrivTypeGrant
- extends Enum<SQLPrivTypeGrant>
SELECT_NOGRANT
public static final SQLPrivTypeGrant SELECT_NOGRANT
SELECT_WGRANT
public static final SQLPrivTypeGrant SELECT_WGRANT
INSERT_NOGRANT
public static final SQLPrivTypeGrant INSERT_NOGRANT
INSERT_WGRANT
public static final SQLPrivTypeGrant INSERT_WGRANT
UPDATE_NOGRANT
public static final SQLPrivTypeGrant UPDATE_NOGRANT
UPDATE_WGRANT
public static final SQLPrivTypeGrant UPDATE_WGRANT
DELETE_NOGRANT
public static final SQLPrivTypeGrant DELETE_NOGRANT
DELETE_WGRANT
public static final SQLPrivTypeGrant DELETE_WGRANT
OWNER_PRIV
public static final SQLPrivTypeGrant OWNER_PRIV
ADMIN_PRIV
public static final SQLPrivTypeGrant ADMIN_PRIV
values
public static SQLPrivTypeGrant[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SQLPrivTypeGrant c : SQLPrivTypeGrant.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SQLPrivTypeGrant valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getSQLPrivTypeGrant
public static SQLPrivTypeGrant getSQLPrivTypeGrant(SQLPrivilegeType privType,
boolean isGrant)
- Find matching enum
- Parameters:
privType
- isGrant
-
- Returns:
getSQLPrivTypeGrant
public static SQLPrivTypeGrant getSQLPrivTypeGrant(String privTypeStr,
boolean isGrant)
throws HiveAuthzPluginException
- Find matching enum
- Parameters:
privTypeStr
- privilege type stringisGrant
-
- Returns:
-
- Throws:
HiveAuthzPluginException
getPrivType
public SQLPrivilegeType getPrivType()
isWithGrant
public boolean isWithGrant()
toString
public String toString()
- Overrides:
toString
in class Enum<SQLPrivTypeGrant>
- Returns:
- String representation for use in error messages
Copyright © 2014 The Apache Software Foundation. All rights reserved.