|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PrivilegeType> org.apache.hadoop.hive.ql.security.authorization.PrivilegeType
public enum PrivilegeType
Privilege type
Enum Constant Summary | |
---|---|
ALL
|
|
ALTER_DATA
|
|
ALTER_METADATA
|
|
CREATE
|
|
DELETE
|
|
DROP
|
|
INDEX
|
|
INSERT
|
|
LOCK
|
|
SELECT
|
|
SHOW_DATABASE
|
|
UNKNOWN
|
Method Summary | |
---|---|
static PrivilegeType |
getPrivTypeByName(String privilegeName)
Do case insensitive lookup of PrivilegeType with this name |
static PrivilegeType |
getPrivTypeByToken(int token)
Do case lookup of PrivilegeType associated with this antlr token |
Integer |
getToken()
|
String |
toString()
|
static PrivilegeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PrivilegeType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PrivilegeType ALL
public static final PrivilegeType ALTER_DATA
public static final PrivilegeType ALTER_METADATA
public static final PrivilegeType CREATE
public static final PrivilegeType DROP
public static final PrivilegeType INDEX
public static final PrivilegeType LOCK
public static final PrivilegeType SELECT
public static final PrivilegeType SHOW_DATABASE
public static final PrivilegeType INSERT
public static final PrivilegeType DELETE
public static final PrivilegeType UNKNOWN
Method Detail |
---|
public static PrivilegeType[] values()
for (PrivilegeType c : PrivilegeType.values()) System.out.println(c);
public static PrivilegeType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<PrivilegeType>
public Integer getToken()
public static PrivilegeType getPrivTypeByToken(int token)
privilegeName
-
public static PrivilegeType getPrivTypeByName(String privilegeName)
privilegeName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |