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

The following examples show how to use org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse. 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> listRoleGrants(String principalName, PrincipalType principalType)
        throws TException
{
    GetRoleGrantsForPrincipalRequest request = new GetRoleGrantsForPrincipalRequest(principalName, principalType);
    GetRoleGrantsForPrincipalResponse resp = client.get_role_grants_for_principal(request);
    return ImmutableList.copyOf(resp.getPrincipalGrants());
}
 
Example 2
Source Project: metacat   Source File: CatalogThriftHiveMetastore.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(
    final GetRoleGrantsForPrincipalRequest request)
    throws TException {
    throw unimplemented("get_role_grants_for_principal", new Object[]{request});
}
 
Example 3
public GetRoleGrantsForPrincipalResponse getRoleGrantsForPrincipal(
    GetRoleGrantsForPrincipalRequest request
) throws TException {
  throw new UnsupportedOperationException("getRoleGrantsForPrincipal is not supported");
}
 
Example 4
@Override
public GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(
    GetRoleGrantsForPrincipalRequest request) throws MetaException, TException {
  return glueMetastoreClientDelegate.getRoleGrantsForPrincipal(request);
}
 
Example 5
@Override
public GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(
    GetRoleGrantsForPrincipalRequest request) throws MetaException, TException {
  return glueMetastoreClientDelegate.getRoleGrantsForPrincipal(request);
}
 
Example 6
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 GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request)
    throws MetaException, TException {
  return getPrimaryClient().get_role_grants_for_principal(request);
}