public class RequiredPrivileges extends Object
Constructor and Description |
---|
RequiredPrivileges() |
Modifier and Type | Method and Description |
---|---|
void |
addAll(SQLPrivTypeGrant[] inputPrivs) |
void |
addPrivilege(SQLPrivTypeGrant requiredPriv) |
void |
addPrivilege(String priv,
boolean withGrant) |
Collection<SQLPrivTypeGrant> |
findMissingPrivs(RequiredPrivileges availPrivs)
Find the missing privileges in availPrivs
|
Set<SQLPrivTypeGrant> |
getRequiredPrivilegeSet() |
public void addPrivilege(String priv, boolean withGrant) throws HiveAuthzPluginException
HiveAuthzPluginException
public Set<SQLPrivTypeGrant> getRequiredPrivilegeSet()
public Collection<SQLPrivTypeGrant> findMissingPrivs(RequiredPrivileges availPrivs)
availPrivs
- - available privilegespublic void addPrivilege(SQLPrivTypeGrant requiredPriv)
public void addAll(SQLPrivTypeGrant[] inputPrivs)
Copyright © 2017 The Apache Software Foundation. All rights reserved.