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

The following examples show how to use org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse. These examples are extracted from open source projects. 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 Project: presto   Source File: ThriftHiveMetastoreClient.java    License: 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 Project: waggle-dance   Source File: FederatedHMSHandler.java    License: 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 Project: metacat   Source File: CatalogThriftHiveMetastore.java    License: 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});
}