org.apache.hadoop.hive.ql.security.authorization
Class Privilege

java.lang.Object
  extended by org.apache.hadoop.hive.ql.security.authorization.Privilege

public class Privilege
extends Object

Privilege defines a privilege in Hive. Each privilege has a name and scope associated with it. This class contains all of the predefined privileges in Hive.


Field Summary
static Privilege ALL
           
static Privilege ALTER_DATA
           
static Privilege ALTER_METADATA
           
static Privilege CREATE
           
static Privilege DELETE
           
static Privilege DROP
           
static Privilege INDEX
           
static Privilege INSERT
           
static Privilege LOCK
           
static Privilege SELECT
           
static Privilege SHOW_DATABASE
           
 
Constructor Summary
Privilege()
           
Privilege(PrivilegeType priv)
           
 
Method Summary
 PrivilegeType getPriv()
           
 void setPriv(PrivilegeType priv)
           
 boolean supportColumnLevel()
           
 boolean supportDBLevel()
           
 boolean supportTableLevel()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL

public static Privilege ALL

ALTER_METADATA

public static Privilege ALTER_METADATA

ALTER_DATA

public static Privilege ALTER_DATA

CREATE

public static Privilege CREATE

DROP

public static Privilege DROP

INDEX

public static Privilege INDEX

LOCK

public static Privilege LOCK

SELECT

public static Privilege SELECT

INSERT

public static Privilege INSERT

DELETE

public static Privilege DELETE

SHOW_DATABASE

public static Privilege SHOW_DATABASE
Constructor Detail

Privilege

public Privilege(PrivilegeType priv)

Privilege

public Privilege()
Method Detail

getPriv

public PrivilegeType getPriv()

setPriv

public void setPriv(PrivilegeType priv)

supportColumnLevel

public boolean supportColumnLevel()

supportDBLevel

public boolean supportDBLevel()

supportTableLevel

public boolean supportTableLevel()

toString

public String toString()
Overrides:
toString in class Object


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