org.apache.hadoop.hive.ql.plan
Class GrantDesc
java.lang.Object
org.apache.hadoop.hive.ql.plan.DDLDesc
org.apache.hadoop.hive.ql.plan.GrantDesc
- All Implemented Interfaces:
- Serializable, Cloneable
public class GrantDesc
- extends DDLDesc
- implements Serializable, Cloneable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrantDesc
public GrantDesc(PrivilegeObjectDesc privilegeSubject,
List<PrivilegeDesc> privilegeDesc,
List<PrincipalDesc> principalDesc,
String grantor,
PrincipalType grantorType,
boolean grantOption)
getPrivileges
public List<PrivilegeDesc> getPrivileges()
- Returns:
- privileges
setPrivileges
public void setPrivileges(List<PrivilegeDesc> privileges)
- Parameters:
privileges
-
getPrincipals
public List<PrincipalDesc> getPrincipals()
- Returns:
- principals
setPrincipals
public void setPrincipals(List<PrincipalDesc> principals)
- Parameters:
principals
-
isGrantOption
public boolean isGrantOption()
- Returns:
- grant option
setGrantOption
public void setGrantOption(boolean grantOption)
- Parameters:
grantOption
-
getPrivilegeSubjectDesc
public PrivilegeObjectDesc getPrivilegeSubjectDesc()
- Returns:
- privilege subject
setPrivilegeSubjectDesc
public void setPrivilegeSubjectDesc(PrivilegeObjectDesc privilegeSubjectDesc)
- Parameters:
privilegeSubjectDesc
-
getGrantor
public String getGrantor()
setGrantor
public void setGrantor(String grantor)
getGrantorType
public PrincipalType getGrantorType()
setGrantorType
public void setGrantorType(PrincipalType grantorType)
Copyright © 2013 The Apache Software Foundation