org.apache.hadoop.hive.ql.plan
Class GrantRevokeRoleDDL
java.lang.Object
org.apache.hadoop.hive.ql.plan.GrantRevokeRoleDDL
public class GrantRevokeRoleDDL
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrantRevokeRoleDDL
public GrantRevokeRoleDDL()
GrantRevokeRoleDDL
public GrantRevokeRoleDDL(boolean grant,
List<String> roles,
List<PrincipalDesc> principalDesc,
String grantor,
PrincipalType grantorType,
boolean grantOption)
getGrant
public boolean getGrant()
- Returns:
- grant or revoke privileges
setGrant
public void setGrant(boolean grant)
getPrincipalDesc
public List<PrincipalDesc> getPrincipalDesc()
- Returns:
- a list of principals
setPrincipalDesc
public void setPrincipalDesc(List<PrincipalDesc> principalDesc)
getRoles
public List<String> getRoles()
- Returns:
- a list of roles
setRoles
public void setRoles(List<String> roles)
getGrantor
public String getGrantor()
setGrantor
public void setGrantor(String grantor)
getGrantorType
public PrincipalType getGrantorType()
setGrantorType
public void setGrantorType(PrincipalType grantorType)
isGrantOption
public boolean isGrantOption()
setGrantOption
public void setGrantOption(boolean grantOption)
Copyright © 2013 The Apache Software Foundation