org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd
Enum SQLPrivTypeGrant

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

public enum SQLPrivTypeGrant
extends Enum<SQLPrivTypeGrant>


Enum Constant Summary
ADMIN_PRIV
           
DELETE_NOGRANT
           
DELETE_WGRANT
           
INSERT_NOGRANT
           
INSERT_WGRANT
           
OWNER_PRIV
           
SELECT_NOGRANT
           
SELECT_WGRANT
           
UPDATE_NOGRANT
           
UPDATE_WGRANT
           
 
Method Summary
 SQLPrivilegeType getPrivType()
           
static SQLPrivTypeGrant getSQLPrivTypeGrant(SQLPrivilegeType privType, boolean isGrant)
          Find matching enum
static SQLPrivTypeGrant getSQLPrivTypeGrant(String privTypeStr, boolean isGrant)
          Find matching enum
 boolean isWithGrant()
           
 String toString()
           
static SQLPrivTypeGrant valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SQLPrivTypeGrant[] 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

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
Method Detail

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 string
isGrant -
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.