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

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

public static enum Privilege.PrivilegeType
extends Enum<Privilege.PrivilegeType>


Enum Constant Summary
ALL
           
ALTER_DATA
           
ALTER_METADATA
           
CREATE
           
DROP
           
INDEX
           
LOCK
           
SELECT
           
SHOW_DATABASE
           
UNKNOWN
           
 
Method Summary
static Privilege.PrivilegeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Privilege.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
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALL

public static final Privilege.PrivilegeType ALL

ALTER_DATA

public static final Privilege.PrivilegeType ALTER_DATA

ALTER_METADATA

public static final Privilege.PrivilegeType ALTER_METADATA

CREATE

public static final Privilege.PrivilegeType CREATE

DROP

public static final Privilege.PrivilegeType DROP

INDEX

public static final Privilege.PrivilegeType INDEX

LOCK

public static final Privilege.PrivilegeType LOCK

SELECT

public static final Privilege.PrivilegeType SELECT

SHOW_DATABASE

public static final Privilege.PrivilegeType SHOW_DATABASE

UNKNOWN

public static final Privilege.PrivilegeType UNKNOWN
Method Detail

values

public static Privilege.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 (Privilege.PrivilegeType c : Privilege.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 Privilege.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


Copyright © 2012 The Apache Software Foundation