hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From the...@apache.org
Subject svn commit: r1576675 [3/13] - in /hive/trunk: metastore/if/ metastore/src/gen/thrift/gen-cpp/ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ metastore/src/gen/thrift/gen-php/metastore/ metastore/src/gen/thrift/gen-py/hive_m...
Date Wed, 12 Mar 2014 09:50:33 GMT
Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h Wed Mar 12 09:50:31
2014
@@ -100,6 +100,7 @@ class ThriftHiveMetastoreIf : virtual pu
   virtual bool grant_role(const std::string& role_name, const std::string& principal_name,
const PrincipalType::type principal_type, const std::string& grantor, const PrincipalType::type
grantorType, const bool grant_option) = 0;
   virtual bool revoke_role(const std::string& role_name, const std::string& principal_name,
const PrincipalType::type principal_type) = 0;
   virtual void list_roles(std::vector<Role> & _return, const std::string& principal_name,
const PrincipalType::type principal_type) = 0;
+  virtual void get_principals_in_role(GetPrincipalsInRoleResponse& _return, const GetPrincipalsInRoleRequest&
request) = 0;
   virtual void get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef&
hiveObject, const std::string& user_name, const std::vector<std::string> & group_names)
= 0;
   virtual void list_privileges(std::vector<HiveObjectPrivilege> & _return, const
std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef&
hiveObject) = 0;
   virtual bool grant_privileges(const PrivilegeBag& privileges) = 0;
@@ -419,6 +420,9 @@ class ThriftHiveMetastoreNull : virtual 
   void list_roles(std::vector<Role> & /* _return */, const std::string& /*
principal_name */, const PrincipalType::type /* principal_type */) {
     return;
   }
+  void get_principals_in_role(GetPrincipalsInRoleResponse& /* _return */, const GetPrincipalsInRoleRequest&
/* request */) {
+    return;
+  }
   void get_privilege_set(PrincipalPrivilegeSet& /* _return */, const HiveObjectRef&
/* hiveObject */, const std::string& /* user_name */, const std::vector<std::string>
& /* group_names */) {
     return;
   }
@@ -12512,6 +12516,124 @@ class ThriftHiveMetastore_list_roles_pre
 
 };
 
+typedef struct _ThriftHiveMetastore_get_principals_in_role_args__isset {
+  _ThriftHiveMetastore_get_principals_in_role_args__isset() : request(false) {}
+  bool request;
+} _ThriftHiveMetastore_get_principals_in_role_args__isset;
+
+class ThriftHiveMetastore_get_principals_in_role_args {
+ public:
+
+  ThriftHiveMetastore_get_principals_in_role_args() {
+  }
+
+  virtual ~ThriftHiveMetastore_get_principals_in_role_args() throw() {}
+
+  GetPrincipalsInRoleRequest request;
+
+  _ThriftHiveMetastore_get_principals_in_role_args__isset __isset;
+
+  void __set_request(const GetPrincipalsInRoleRequest& val) {
+    request = val;
+  }
+
+  bool operator == (const ThriftHiveMetastore_get_principals_in_role_args & rhs) const
+  {
+    if (!(request == rhs.request))
+      return false;
+    return true;
+  }
+  bool operator != (const ThriftHiveMetastore_get_principals_in_role_args &rhs) const
{
+    return !(*this == rhs);
+  }
+
+  bool operator < (const ThriftHiveMetastore_get_principals_in_role_args & ) const;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class ThriftHiveMetastore_get_principals_in_role_pargs {
+ public:
+
+
+  virtual ~ThriftHiveMetastore_get_principals_in_role_pargs() throw() {}
+
+  const GetPrincipalsInRoleRequest* request;
+
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_get_principals_in_role_result__isset {
+  _ThriftHiveMetastore_get_principals_in_role_result__isset() : success(false), o1(false)
{}
+  bool success;
+  bool o1;
+} _ThriftHiveMetastore_get_principals_in_role_result__isset;
+
+class ThriftHiveMetastore_get_principals_in_role_result {
+ public:
+
+  ThriftHiveMetastore_get_principals_in_role_result() {
+  }
+
+  virtual ~ThriftHiveMetastore_get_principals_in_role_result() throw() {}
+
+  GetPrincipalsInRoleResponse success;
+  MetaException o1;
+
+  _ThriftHiveMetastore_get_principals_in_role_result__isset __isset;
+
+  void __set_success(const GetPrincipalsInRoleResponse& val) {
+    success = val;
+  }
+
+  void __set_o1(const MetaException& val) {
+    o1 = val;
+  }
+
+  bool operator == (const ThriftHiveMetastore_get_principals_in_role_result & rhs) const
+  {
+    if (!(success == rhs.success))
+      return false;
+    if (!(o1 == rhs.o1))
+      return false;
+    return true;
+  }
+  bool operator != (const ThriftHiveMetastore_get_principals_in_role_result &rhs) const
{
+    return !(*this == rhs);
+  }
+
+  bool operator < (const ThriftHiveMetastore_get_principals_in_role_result & ) const;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_get_principals_in_role_presult__isset {
+  _ThriftHiveMetastore_get_principals_in_role_presult__isset() : success(false), o1(false)
{}
+  bool success;
+  bool o1;
+} _ThriftHiveMetastore_get_principals_in_role_presult__isset;
+
+class ThriftHiveMetastore_get_principals_in_role_presult {
+ public:
+
+
+  virtual ~ThriftHiveMetastore_get_principals_in_role_presult() throw() {}
+
+  GetPrincipalsInRoleResponse* success;
+  MetaException o1;
+
+  _ThriftHiveMetastore_get_principals_in_role_presult__isset __isset;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+};
+
 typedef struct _ThriftHiveMetastore_get_privilege_set_args__isset {
   _ThriftHiveMetastore_get_privilege_set_args__isset() : hiveObject(false), user_name(false),
group_names(false) {}
   bool hiveObject;
@@ -15102,6 +15224,9 @@ class ThriftHiveMetastoreClient : virtua
   void list_roles(std::vector<Role> & _return, const std::string& principal_name,
const PrincipalType::type principal_type);
   void send_list_roles(const std::string& principal_name, const PrincipalType::type principal_type);
   void recv_list_roles(std::vector<Role> & _return);
+  void get_principals_in_role(GetPrincipalsInRoleResponse& _return, const GetPrincipalsInRoleRequest&
request);
+  void send_get_principals_in_role(const GetPrincipalsInRoleRequest& request);
+  void recv_get_principals_in_role(GetPrincipalsInRoleResponse& _return);
   void get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject,
const std::string& user_name, const std::vector<std::string> & group_names);
   void send_get_privilege_set(const HiveObjectRef& hiveObject, const std::string&
user_name, const std::vector<std::string> & group_names);
   void recv_get_privilege_set(PrincipalPrivilegeSet& _return);
@@ -15256,6 +15381,7 @@ class ThriftHiveMetastoreProcessor : pub
   void process_grant_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol*
oprot, void* callContext);
   void process_revoke_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol*
oprot, void* callContext);
   void process_list_roles(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol*
oprot, void* callContext);
+  void process_get_principals_in_role(int32_t seqid, ::apache::thrift::protocol::TProtocol*
iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_get_privilege_set(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot,
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_list_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot,
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_grant_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot,
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
@@ -15364,6 +15490,7 @@ class ThriftHiveMetastoreProcessor : pub
     processMap_["grant_role"] = &ThriftHiveMetastoreProcessor::process_grant_role;
     processMap_["revoke_role"] = &ThriftHiveMetastoreProcessor::process_revoke_role;
     processMap_["list_roles"] = &ThriftHiveMetastoreProcessor::process_list_roles;
+    processMap_["get_principals_in_role"] = &ThriftHiveMetastoreProcessor::process_get_principals_in_role;
     processMap_["get_privilege_set"] = &ThriftHiveMetastoreProcessor::process_get_privilege_set;
     processMap_["list_privileges"] = &ThriftHiveMetastoreProcessor::process_list_privileges;
     processMap_["grant_privileges"] = &ThriftHiveMetastoreProcessor::process_grant_privileges;
@@ -16221,6 +16348,16 @@ class ThriftHiveMetastoreMultiface : vir
     return;
   }
 
+  void get_principals_in_role(GetPrincipalsInRoleResponse& _return, const GetPrincipalsInRoleRequest&
request) {
+    size_t sz = ifaces_.size();
+    size_t i = 0;
+    for (; i < (sz - 1); ++i) {
+      ifaces_[i]->get_principals_in_role(_return, request);
+    }
+    ifaces_[i]->get_principals_in_role(_return, request);
+    return;
+  }
+
   void get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject,
const std::string& user_name, const std::vector<std::string> & group_names)
{
     size_t sz = ifaces_.size();
     size_t i = 0;

Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp Wed
Mar 12 09:50:31 2014
@@ -442,6 +442,11 @@ class ThriftHiveMetastoreHandler : virtu
     printf("list_roles\n");
   }
 
+  void get_principals_in_role(GetPrincipalsInRoleResponse& _return, const GetPrincipalsInRoleRequest&
request) {
+    // Your implementation goes here
+    printf("get_principals_in_role\n");
+  }
+
   void get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject,
const std::string& user_name, const std::vector<std::string> & group_names)
{
     // Your implementation goes here
     printf("get_privilege_set\n");



Mime
View raw message