org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse Java Examples

The following examples show how to use org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ThriftHiveMetastoreClient.java    From presto with Apache License 2.0 5 votes vote down vote up
@Override
public List<RolePrincipalGrant> listGrantedPrincipals(String role)
        throws TException
{
    GetPrincipalsInRoleRequest request = new GetPrincipalsInRoleRequest(role);
    GetPrincipalsInRoleResponse response = client.get_principals_in_role(request);
    return ImmutableList.copyOf(response.getPrincipalGrants());
}
 
Example #2
Source File: FederatedHMSHandler.java    From waggle-dance with Apache License 2.0 4 votes vote down vote up
@Override
@Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME)
public GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request)
    throws MetaException, TException {
  return getPrimaryClient().get_principals_in_role(request);
}
 
Example #3
Source File: CatalogThriftHiveMetastore.java    From metacat with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public GetPrincipalsInRoleResponse get_principals_in_role(final GetPrincipalsInRoleRequest request)
    throws TException {
    throw unimplemented("get_principals_in_role", new Object[]{request});
}