org.apache.hadoop.hive.ql.plan
Enum RoleDDLDesc.RoleOperation

java.lang.Object
  extended by java.lang.Enum<RoleDDLDesc.RoleOperation>
      extended by org.apache.hadoop.hive.ql.plan.RoleDDLDesc.RoleOperation
All Implemented Interfaces:
Serializable, Comparable<RoleDDLDesc.RoleOperation>
Enclosing class:
RoleDDLDesc

public static enum RoleDDLDesc.RoleOperation
extends Enum<RoleDDLDesc.RoleOperation>


Enum Constant Summary
CREATE_ROLE
           
DROP_ROLE
           
SET_ROLE
           
SHOW_CURRENT_ROLE
           
SHOW_ROLE_GRANT
           
SHOW_ROLE_PRINCIPALS
           
SHOW_ROLES
           
 
Method Summary
 String getOperationName()
           
 String toString()
           
static RoleDDLDesc.RoleOperation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RoleDDLDesc.RoleOperation[] 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

DROP_ROLE

public static final RoleDDLDesc.RoleOperation DROP_ROLE

CREATE_ROLE

public static final RoleDDLDesc.RoleOperation CREATE_ROLE

SHOW_ROLE_GRANT

public static final RoleDDLDesc.RoleOperation SHOW_ROLE_GRANT

SHOW_ROLES

public static final RoleDDLDesc.RoleOperation SHOW_ROLES

SET_ROLE

public static final RoleDDLDesc.RoleOperation SET_ROLE

SHOW_CURRENT_ROLE

public static final RoleDDLDesc.RoleOperation SHOW_CURRENT_ROLE

SHOW_ROLE_PRINCIPALS

public static final RoleDDLDesc.RoleOperation SHOW_ROLE_PRINCIPALS
Method Detail

values

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

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

valueOf

public static RoleDDLDesc.RoleOperation 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

getOperationName

public String getOperationName()

toString

public String toString()
Overrides:
toString in class Enum<RoleDDLDesc.RoleOperation>


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