You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jd...@apache.org on 2014/07/18 20:15:34 UTC
svn commit: r1611743 [3/6] - in /hive/trunk:
itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/
metastore/if/ metastore/src/gen/thrift/gen-cpp/
metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/
metastore/src/gen/...
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=1611743&r1=1611742&r2=1611743&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h Fri Jul 18 18:15:33 2014
@@ -107,6 +107,7 @@ class ThriftHiveMetastoreIf : virtual pu
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;
virtual bool revoke_privileges(const PrivilegeBag& privileges) = 0;
+ virtual void grant_revoke_privileges(GrantRevokePrivilegeResponse& _return, const GrantRevokePrivilegeRequest& request) = 0;
virtual void set_ugi(std::vector<std::string> & _return, const std::string& user_name, const std::vector<std::string> & group_names) = 0;
virtual void get_delegation_token(std::string& _return, const std::string& token_owner, const std::string& renewer_kerberos_principal_name) = 0;
virtual int64_t renew_delegation_token(const std::string& token_str_form) = 0;
@@ -446,6 +447,9 @@ class ThriftHiveMetastoreNull : virtual
bool _return = false;
return _return;
}
+ void grant_revoke_privileges(GrantRevokePrivilegeResponse& /* _return */, const GrantRevokePrivilegeRequest& /* request */) {
+ return;
+ }
void set_ugi(std::vector<std::string> & /* _return */, const std::string& /* user_name */, const std::vector<std::string> & /* group_names */) {
return;
}
@@ -13390,6 +13394,124 @@ class ThriftHiveMetastore_revoke_privile
};
+typedef struct _ThriftHiveMetastore_grant_revoke_privileges_args__isset {
+ _ThriftHiveMetastore_grant_revoke_privileges_args__isset() : request(false) {}
+ bool request;
+} _ThriftHiveMetastore_grant_revoke_privileges_args__isset;
+
+class ThriftHiveMetastore_grant_revoke_privileges_args {
+ public:
+
+ ThriftHiveMetastore_grant_revoke_privileges_args() {
+ }
+
+ virtual ~ThriftHiveMetastore_grant_revoke_privileges_args() throw() {}
+
+ GrantRevokePrivilegeRequest request;
+
+ _ThriftHiveMetastore_grant_revoke_privileges_args__isset __isset;
+
+ void __set_request(const GrantRevokePrivilegeRequest& val) {
+ request = val;
+ }
+
+ bool operator == (const ThriftHiveMetastore_grant_revoke_privileges_args & rhs) const
+ {
+ if (!(request == rhs.request))
+ return false;
+ return true;
+ }
+ bool operator != (const ThriftHiveMetastore_grant_revoke_privileges_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const ThriftHiveMetastore_grant_revoke_privileges_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class ThriftHiveMetastore_grant_revoke_privileges_pargs {
+ public:
+
+
+ virtual ~ThriftHiveMetastore_grant_revoke_privileges_pargs() throw() {}
+
+ const GrantRevokePrivilegeRequest* request;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_grant_revoke_privileges_result__isset {
+ _ThriftHiveMetastore_grant_revoke_privileges_result__isset() : success(false), o1(false) {}
+ bool success;
+ bool o1;
+} _ThriftHiveMetastore_grant_revoke_privileges_result__isset;
+
+class ThriftHiveMetastore_grant_revoke_privileges_result {
+ public:
+
+ ThriftHiveMetastore_grant_revoke_privileges_result() {
+ }
+
+ virtual ~ThriftHiveMetastore_grant_revoke_privileges_result() throw() {}
+
+ GrantRevokePrivilegeResponse success;
+ MetaException o1;
+
+ _ThriftHiveMetastore_grant_revoke_privileges_result__isset __isset;
+
+ void __set_success(const GrantRevokePrivilegeResponse& val) {
+ success = val;
+ }
+
+ void __set_o1(const MetaException& val) {
+ o1 = val;
+ }
+
+ bool operator == (const ThriftHiveMetastore_grant_revoke_privileges_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ if (!(o1 == rhs.o1))
+ return false;
+ return true;
+ }
+ bool operator != (const ThriftHiveMetastore_grant_revoke_privileges_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const ThriftHiveMetastore_grant_revoke_privileges_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_grant_revoke_privileges_presult__isset {
+ _ThriftHiveMetastore_grant_revoke_privileges_presult__isset() : success(false), o1(false) {}
+ bool success;
+ bool o1;
+} _ThriftHiveMetastore_grant_revoke_privileges_presult__isset;
+
+class ThriftHiveMetastore_grant_revoke_privileges_presult {
+ public:
+
+
+ virtual ~ThriftHiveMetastore_grant_revoke_privileges_presult() throw() {}
+
+ GrantRevokePrivilegeResponse* success;
+ MetaException o1;
+
+ _ThriftHiveMetastore_grant_revoke_privileges_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+};
+
typedef struct _ThriftHiveMetastore_set_ugi_args__isset {
_ThriftHiveMetastore_set_ugi_args__isset() : user_name(false), group_names(false) {}
bool user_name;
@@ -15601,6 +15723,9 @@ class ThriftHiveMetastoreClient : virtua
bool revoke_privileges(const PrivilegeBag& privileges);
void send_revoke_privileges(const PrivilegeBag& privileges);
bool recv_revoke_privileges();
+ void grant_revoke_privileges(GrantRevokePrivilegeResponse& _return, const GrantRevokePrivilegeRequest& request);
+ void send_grant_revoke_privileges(const GrantRevokePrivilegeRequest& request);
+ void recv_grant_revoke_privileges(GrantRevokePrivilegeResponse& _return);
void set_ugi(std::vector<std::string> & _return, const std::string& user_name, const std::vector<std::string> & group_names);
void send_set_ugi(const std::string& user_name, const std::vector<std::string> & group_names);
void recv_set_ugi(std::vector<std::string> & _return);
@@ -15753,6 +15878,7 @@ class ThriftHiveMetastoreProcessor : pub
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);
void process_revoke_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_grant_revoke_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_set_ugi(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_get_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_renew_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
@@ -15865,6 +15991,7 @@ class ThriftHiveMetastoreProcessor : pub
processMap_["list_privileges"] = &ThriftHiveMetastoreProcessor::process_list_privileges;
processMap_["grant_privileges"] = &ThriftHiveMetastoreProcessor::process_grant_privileges;
processMap_["revoke_privileges"] = &ThriftHiveMetastoreProcessor::process_revoke_privileges;
+ processMap_["grant_revoke_privileges"] = &ThriftHiveMetastoreProcessor::process_grant_revoke_privileges;
processMap_["set_ugi"] = &ThriftHiveMetastoreProcessor::process_set_ugi;
processMap_["get_delegation_token"] = &ThriftHiveMetastoreProcessor::process_get_delegation_token;
processMap_["renew_delegation_token"] = &ThriftHiveMetastoreProcessor::process_renew_delegation_token;
@@ -16787,6 +16914,16 @@ class ThriftHiveMetastoreMultiface : vir
return ifaces_[i]->revoke_privileges(privileges);
}
+ void grant_revoke_privileges(GrantRevokePrivilegeResponse& _return, const GrantRevokePrivilegeRequest& request) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->grant_revoke_privileges(_return, request);
+ }
+ ifaces_[i]->grant_revoke_privileges(_return, request);
+ return;
+ }
+
void set_ugi(std::vector<std::string> & _return, 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=1611743&r1=1611742&r2=1611743&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 Fri Jul 18 18:15:33 2014
@@ -477,6 +477,11 @@ class ThriftHiveMetastoreHandler : virtu
printf("revoke_privileges\n");
}
+ void grant_revoke_privileges(GrantRevokePrivilegeResponse& _return, const GrantRevokePrivilegeRequest& request) {
+ // Your implementation goes here
+ printf("grant_revoke_privileges\n");
+ }
+
void set_ugi(std::vector<std::string> & _return, const std::string& user_name, const std::vector<std::string> & group_names) {
// Your implementation goes here
printf("set_ugi\n");