org.apache.hadoop.hive.ql.security.authorization
Enum PrivilegeType

java.lang.Object
  extended by java.lang.Enum<PrivilegeType>
      extended by org.apache.hadoop.hive.ql.security.authorization.PrivilegeType
All Implemented Interfaces:
Serializable, Comparable<PrivilegeType>

public enum PrivilegeType
extends 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

ALL

public static final PrivilegeType ALL

ALTER_DATA

public static final PrivilegeType ALTER_DATA

ALTER_METADATA

public static final PrivilegeType ALTER_METADATA

CREATE

public static final PrivilegeType CREATE

DROP

public static final PrivilegeType DROP

INDEX

public static final PrivilegeType INDEX

LOCK

public static final PrivilegeType LOCK

SELECT

public static final PrivilegeType SELECT

SHOW_DATABASE

public static final PrivilegeType SHOW_DATABASE

INSERT

public static final PrivilegeType INSERT

DELETE

public static final PrivilegeType DELETE

UNKNOWN

public static final PrivilegeType UNKNOWN
Method Detail

values

public static PrivilegeType[] 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 (PrivilegeType c : PrivilegeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PrivilegeType 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

toString

public String toString()
Overrides:
toString in class Enum<PrivilegeType>

getToken

public Integer getToken()

getPrivTypeByToken

public static PrivilegeType getPrivTypeByToken(int token)
Do case lookup of PrivilegeType associated with this antlr token

Parameters:
privilegeName -
Returns:
corresponding PrivilegeType

getPrivTypeByName

public static PrivilegeType getPrivTypeByName(String privilegeName)
Do case insensitive lookup of PrivilegeType with this name

Parameters:
privilegeName -
Returns:
corresponding PrivilegeType


Copyright © 2014 The Apache Software Foundation. All rights reserved.