congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GetPrincipalsInRoleRequest.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest
constructor

Best Java code snippets using org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest.<init> (Showing top 6 results out of 315)

origin: apache/hive

public GetPrincipalsInRoleRequest deepCopy() {
 return new GetPrincipalsInRoleRequest(this);
}
origin: apache/hive

public static List<HiveRoleGrant> getHiveRoleGrants(IMetaStoreClient client, String roleName)
  throws Exception {
 GetPrincipalsInRoleRequest request = new GetPrincipalsInRoleRequest(roleName);
 GetPrincipalsInRoleResponse princGrantInfo = client.get_principals_in_role(request);
 List<HiveRoleGrant> hiveRoleGrants = new ArrayList<HiveRoleGrant>();
 for(RolePrincipalGrant thriftRoleGrant :  princGrantInfo.getPrincipalGrants()){
  hiveRoleGrants.add(new HiveRoleGrant(thriftRoleGrant));
 }
 return hiveRoleGrants;
}
origin: apache/drill

public static List<HiveRoleGrant> getHiveRoleGrants(IMetaStoreClient client, String roleName)
  throws Exception {
 GetPrincipalsInRoleRequest request = new GetPrincipalsInRoleRequest(roleName);
 GetPrincipalsInRoleResponse princGrantInfo = client.get_principals_in_role(request);
 List<HiveRoleGrant> hiveRoleGrants = new ArrayList<HiveRoleGrant>();
 for(RolePrincipalGrant thriftRoleGrant :  princGrantInfo.getPrincipalGrants()){
  hiveRoleGrants.add(new HiveRoleGrant(thriftRoleGrant));
 }
 return hiveRoleGrants;
}
origin: com.facebook.presto.hive/hive-apache

public GetPrincipalsInRoleRequest deepCopy() {
 return new GetPrincipalsInRoleRequest(this);
}
origin: org.spark-project.hive/hive-metastore

public GetPrincipalsInRoleRequest deepCopy() {
 return new GetPrincipalsInRoleRequest(this);
}
origin: com.facebook.presto.hive/hive-apache

public static List<HiveRoleGrant> getHiveRoleGrants(IMetaStoreClient client, String roleName)
  throws Exception {
 GetPrincipalsInRoleRequest request = new GetPrincipalsInRoleRequest(roleName);
 GetPrincipalsInRoleResponse princGrantInfo = client.get_principals_in_role(request);
 List<HiveRoleGrant> hiveRoleGrants = new ArrayList<HiveRoleGrant>();
 for(RolePrincipalGrant thriftRoleGrant :  princGrantInfo.getPrincipalGrants()){
  hiveRoleGrants.add(new HiveRoleGrant(thriftRoleGrant));
 }
 return hiveRoleGrants;
}
org.apache.hadoop.hive.metastore.apiGetPrincipalsInRoleRequest<init>

Javadoc

Performs a deep copy on other.

Popular methods of GetPrincipalsInRoleRequest

  • getRoleName
  • equals
  • isSetRoleName
    Returns true if field roleName is set (has been assigned a value) and false otherwise
  • read
  • setRoleName
  • setRoleNameIsSet
  • toString
  • unsetRoleName
  • validate
  • write

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now