You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ga...@apache.org on 2015/03/23 23:22:07 UTC
svn commit: r1668753 [3/7] - in /hive/trunk:
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/
metastore/if/ metastore/src/gen/thrift/gen-cpp/
metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/
metastore/s...
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=1668753&r1=1668752&r2=1668753&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h Mon Mar 23 22:22:06 2015
@@ -135,6 +135,7 @@ class ThriftHiveMetastoreIf : virtual pu
virtual void heartbeat_txn_range(HeartbeatTxnRangeResponse& _return, const HeartbeatTxnRangeRequest& txns) = 0;
virtual void compact(const CompactionRequest& rqst) = 0;
virtual void show_compact(ShowCompactResponse& _return, const ShowCompactRequest& rqst) = 0;
+ virtual void add_dynamic_partitions(const AddDynamicPartitions& rqst) = 0;
virtual void get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst) = 0;
virtual void get_current_notificationEventId(CurrentNotificationEventId& _return) = 0;
virtual void fire_listener_event(FireEventResponse& _return, const FireEventRequest& rqst) = 0;
@@ -547,6 +548,9 @@ class ThriftHiveMetastoreNull : virtual
void show_compact(ShowCompactResponse& /* _return */, const ShowCompactRequest& /* rqst */) {
return;
}
+ void add_dynamic_partitions(const AddDynamicPartitions& /* rqst */) {
+ return;
+ }
void get_next_notification(NotificationEventResponse& /* _return */, const NotificationEventRequest& /* rqst */) {
return;
}
@@ -16899,6 +16903,124 @@ class ThriftHiveMetastore_show_compact_p
};
+typedef struct _ThriftHiveMetastore_add_dynamic_partitions_args__isset {
+ _ThriftHiveMetastore_add_dynamic_partitions_args__isset() : rqst(false) {}
+ bool rqst;
+} _ThriftHiveMetastore_add_dynamic_partitions_args__isset;
+
+class ThriftHiveMetastore_add_dynamic_partitions_args {
+ public:
+
+ ThriftHiveMetastore_add_dynamic_partitions_args() {
+ }
+
+ virtual ~ThriftHiveMetastore_add_dynamic_partitions_args() throw() {}
+
+ AddDynamicPartitions rqst;
+
+ _ThriftHiveMetastore_add_dynamic_partitions_args__isset __isset;
+
+ void __set_rqst(const AddDynamicPartitions& val) {
+ rqst = val;
+ }
+
+ bool operator == (const ThriftHiveMetastore_add_dynamic_partitions_args & rhs) const
+ {
+ if (!(rqst == rhs.rqst))
+ return false;
+ return true;
+ }
+ bool operator != (const ThriftHiveMetastore_add_dynamic_partitions_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const ThriftHiveMetastore_add_dynamic_partitions_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class ThriftHiveMetastore_add_dynamic_partitions_pargs {
+ public:
+
+
+ virtual ~ThriftHiveMetastore_add_dynamic_partitions_pargs() throw() {}
+
+ const AddDynamicPartitions* rqst;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_add_dynamic_partitions_result__isset {
+ _ThriftHiveMetastore_add_dynamic_partitions_result__isset() : o1(false), o2(false) {}
+ bool o1;
+ bool o2;
+} _ThriftHiveMetastore_add_dynamic_partitions_result__isset;
+
+class ThriftHiveMetastore_add_dynamic_partitions_result {
+ public:
+
+ ThriftHiveMetastore_add_dynamic_partitions_result() {
+ }
+
+ virtual ~ThriftHiveMetastore_add_dynamic_partitions_result() throw() {}
+
+ NoSuchTxnException o1;
+ TxnAbortedException o2;
+
+ _ThriftHiveMetastore_add_dynamic_partitions_result__isset __isset;
+
+ void __set_o1(const NoSuchTxnException& val) {
+ o1 = val;
+ }
+
+ void __set_o2(const TxnAbortedException& val) {
+ o2 = val;
+ }
+
+ bool operator == (const ThriftHiveMetastore_add_dynamic_partitions_result & rhs) const
+ {
+ if (!(o1 == rhs.o1))
+ return false;
+ if (!(o2 == rhs.o2))
+ return false;
+ return true;
+ }
+ bool operator != (const ThriftHiveMetastore_add_dynamic_partitions_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const ThriftHiveMetastore_add_dynamic_partitions_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_add_dynamic_partitions_presult__isset {
+ _ThriftHiveMetastore_add_dynamic_partitions_presult__isset() : o1(false), o2(false) {}
+ bool o1;
+ bool o2;
+} _ThriftHiveMetastore_add_dynamic_partitions_presult__isset;
+
+class ThriftHiveMetastore_add_dynamic_partitions_presult {
+ public:
+
+
+ virtual ~ThriftHiveMetastore_add_dynamic_partitions_presult() throw() {}
+
+ NoSuchTxnException o1;
+ TxnAbortedException o2;
+
+ _ThriftHiveMetastore_add_dynamic_partitions_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+};
+
typedef struct _ThriftHiveMetastore_get_next_notification_args__isset {
_ThriftHiveMetastore_get_next_notification_args__isset() : rqst(false) {}
bool rqst;
@@ -17578,6 +17700,9 @@ class ThriftHiveMetastoreClient : virtua
void show_compact(ShowCompactResponse& _return, const ShowCompactRequest& rqst);
void send_show_compact(const ShowCompactRequest& rqst);
void recv_show_compact(ShowCompactResponse& _return);
+ void add_dynamic_partitions(const AddDynamicPartitions& rqst);
+ void send_add_dynamic_partitions(const AddDynamicPartitions& rqst);
+ void recv_add_dynamic_partitions();
void get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst);
void send_get_next_notification(const NotificationEventRequest& rqst);
void recv_get_next_notification(NotificationEventResponse& _return);
@@ -17716,6 +17841,7 @@ class ThriftHiveMetastoreProcessor : pub
void process_heartbeat_txn_range(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_compact(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_show_compact(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_add_dynamic_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_get_next_notification(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_get_current_notificationEventId(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_fire_listener_event(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
@@ -17842,6 +17968,7 @@ class ThriftHiveMetastoreProcessor : pub
processMap_["heartbeat_txn_range"] = &ThriftHiveMetastoreProcessor::process_heartbeat_txn_range;
processMap_["compact"] = &ThriftHiveMetastoreProcessor::process_compact;
processMap_["show_compact"] = &ThriftHiveMetastoreProcessor::process_show_compact;
+ processMap_["add_dynamic_partitions"] = &ThriftHiveMetastoreProcessor::process_add_dynamic_partitions;
processMap_["get_next_notification"] = &ThriftHiveMetastoreProcessor::process_get_next_notification;
processMap_["get_current_notificationEventId"] = &ThriftHiveMetastoreProcessor::process_get_current_notificationEventId;
processMap_["fire_listener_event"] = &ThriftHiveMetastoreProcessor::process_fire_listener_event;
@@ -19019,6 +19146,15 @@ class ThriftHiveMetastoreMultiface : vir
return;
}
+ void add_dynamic_partitions(const AddDynamicPartitions& rqst) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->add_dynamic_partitions(rqst);
+ }
+ ifaces_[i]->add_dynamic_partitions(rqst);
+ }
+
void get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst) {
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=1668753&r1=1668752&r2=1668753&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 Mon Mar 23 22:22:06 2015
@@ -617,6 +617,11 @@ class ThriftHiveMetastoreHandler : virtu
printf("show_compact\n");
}
+ void add_dynamic_partitions(const AddDynamicPartitions& rqst) {
+ // Your implementation goes here
+ printf("add_dynamic_partitions\n");
+ }
+
void get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst) {
// Your implementation goes here
printf("get_next_notification\n");
Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp?rev=1668753&r1=1668752&r2=1668753&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp Mon Mar 23 22:22:06 2015
@@ -9294,6 +9294,138 @@ void swap(ShowCompactResponse &a, ShowCo
swap(a.compacts, b.compacts);
}
+const char* AddDynamicPartitions::ascii_fingerprint = "A53A2B050DCCFE6A2158480A24E33898";
+const uint8_t AddDynamicPartitions::binary_fingerprint[16] = {0xA5,0x3A,0x2B,0x05,0x0D,0xCC,0xFE,0x6A,0x21,0x58,0x48,0x0A,0x24,0xE3,0x38,0x98};
+
+uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+ bool isset_txnid = false;
+ bool isset_dbname = false;
+ bool isset_tablename = false;
+ bool isset_partitionnames = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_I64) {
+ xfer += iprot->readI64(this->txnid);
+ isset_txnid = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->dbname);
+ isset_dbname = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->tablename);
+ isset_tablename = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->partitionnames.clear();
+ uint32_t _size401;
+ ::apache::thrift::protocol::TType _etype404;
+ xfer += iprot->readListBegin(_etype404, _size401);
+ this->partitionnames.resize(_size401);
+ uint32_t _i405;
+ for (_i405 = 0; _i405 < _size401; ++_i405)
+ {
+ xfer += iprot->readString(this->partitionnames[_i405]);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_partitionnames = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_txnid)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_dbname)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_tablename)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_partitionnames)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("AddDynamicPartitions");
+
+ xfer += oprot->writeFieldBegin("txnid", ::apache::thrift::protocol::T_I64, 1);
+ xfer += oprot->writeI64(this->txnid);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->dbname);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("tablename", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->tablename);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("partitionnames", ::apache::thrift::protocol::T_LIST, 4);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->partitionnames.size()));
+ std::vector<std::string> ::const_iterator _iter406;
+ for (_iter406 = this->partitionnames.begin(); _iter406 != this->partitionnames.end(); ++_iter406)
+ {
+ xfer += oprot->writeString((*_iter406));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) {
+ using ::std::swap;
+ swap(a.txnid, b.txnid);
+ swap(a.dbname, b.dbname);
+ swap(a.tablename, b.tablename);
+ swap(a.partitionnames, b.partitionnames);
+}
+
const char* NotificationEventRequest::ascii_fingerprint = "6E578DA8AB10EED824A75534350EBAEF";
const uint8_t NotificationEventRequest::binary_fingerprint[16] = {0x6E,0x57,0x8D,0xA8,0xAB,0x10,0xEE,0xD8,0x24,0xA7,0x55,0x34,0x35,0x0E,0xBA,0xEF};
@@ -9542,14 +9674,14 @@ uint32_t NotificationEventResponse::read
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->events.clear();
- uint32_t _size401;
- ::apache::thrift::protocol::TType _etype404;
- xfer += iprot->readListBegin(_etype404, _size401);
- this->events.resize(_size401);
- uint32_t _i405;
- for (_i405 = 0; _i405 < _size401; ++_i405)
+ uint32_t _size407;
+ ::apache::thrift::protocol::TType _etype410;
+ xfer += iprot->readListBegin(_etype410, _size407);
+ this->events.resize(_size407);
+ uint32_t _i411;
+ for (_i411 = 0; _i411 < _size407; ++_i411)
{
- xfer += this->events[_i405].read(iprot);
+ xfer += this->events[_i411].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -9579,10 +9711,10 @@ uint32_t NotificationEventResponse::writ
xfer += oprot->writeFieldBegin("events", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->events.size()));
- std::vector<NotificationEvent> ::const_iterator _iter406;
- for (_iter406 = this->events.begin(); _iter406 != this->events.end(); ++_iter406)
+ std::vector<NotificationEvent> ::const_iterator _iter412;
+ for (_iter412 = this->events.begin(); _iter412 != this->events.end(); ++_iter412)
{
- xfer += (*_iter406).write(oprot);
+ xfer += (*_iter412).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -9690,14 +9822,14 @@ uint32_t InsertEventRequestData::read(::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->filesAdded.clear();
- uint32_t _size407;
- ::apache::thrift::protocol::TType _etype410;
- xfer += iprot->readListBegin(_etype410, _size407);
- this->filesAdded.resize(_size407);
- uint32_t _i411;
- for (_i411 = 0; _i411 < _size407; ++_i411)
+ uint32_t _size413;
+ ::apache::thrift::protocol::TType _etype416;
+ xfer += iprot->readListBegin(_etype416, _size413);
+ this->filesAdded.resize(_size413);
+ uint32_t _i417;
+ for (_i417 = 0; _i417 < _size413; ++_i417)
{
- xfer += iprot->readString(this->filesAdded[_i411]);
+ xfer += iprot->readString(this->filesAdded[_i417]);
}
xfer += iprot->readListEnd();
}
@@ -9727,10 +9859,10 @@ uint32_t InsertEventRequestData::write(:
xfer += oprot->writeFieldBegin("filesAdded", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->filesAdded.size()));
- std::vector<std::string> ::const_iterator _iter412;
- for (_iter412 = this->filesAdded.begin(); _iter412 != this->filesAdded.end(); ++_iter412)
+ std::vector<std::string> ::const_iterator _iter418;
+ for (_iter418 = this->filesAdded.begin(); _iter418 != this->filesAdded.end(); ++_iter418)
{
- xfer += oprot->writeString((*_iter412));
+ xfer += oprot->writeString((*_iter418));
}
xfer += oprot->writeListEnd();
}
@@ -9869,14 +10001,14 @@ uint32_t FireEventRequest::read(::apache
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->partitionVals.clear();
- uint32_t _size413;
- ::apache::thrift::protocol::TType _etype416;
- xfer += iprot->readListBegin(_etype416, _size413);
- this->partitionVals.resize(_size413);
- uint32_t _i417;
- for (_i417 = 0; _i417 < _size413; ++_i417)
+ uint32_t _size419;
+ ::apache::thrift::protocol::TType _etype422;
+ xfer += iprot->readListBegin(_etype422, _size419);
+ this->partitionVals.resize(_size419);
+ uint32_t _i423;
+ for (_i423 = 0; _i423 < _size419; ++_i423)
{
- xfer += iprot->readString(this->partitionVals[_i417]);
+ xfer += iprot->readString(this->partitionVals[_i423]);
}
xfer += iprot->readListEnd();
}
@@ -9927,10 +10059,10 @@ uint32_t FireEventRequest::write(::apach
xfer += oprot->writeFieldBegin("partitionVals", ::apache::thrift::protocol::T_LIST, 5);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->partitionVals.size()));
- std::vector<std::string> ::const_iterator _iter418;
- for (_iter418 = this->partitionVals.begin(); _iter418 != this->partitionVals.end(); ++_iter418)
+ std::vector<std::string> ::const_iterator _iter424;
+ for (_iter424 = this->partitionVals.begin(); _iter424 != this->partitionVals.end(); ++_iter424)
{
- xfer += oprot->writeString((*_iter418));
+ xfer += oprot->writeString((*_iter424));
}
xfer += oprot->writeListEnd();
}
Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h?rev=1668753&r1=1668752&r2=1668753&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h Mon Mar 23 22:22:06 2015
@@ -5088,6 +5088,64 @@ class ShowCompactResponse {
void swap(ShowCompactResponse &a, ShowCompactResponse &b);
+
+class AddDynamicPartitions {
+ public:
+
+ static const char* ascii_fingerprint; // = "A53A2B050DCCFE6A2158480A24E33898";
+ static const uint8_t binary_fingerprint[16]; // = {0xA5,0x3A,0x2B,0x05,0x0D,0xCC,0xFE,0x6A,0x21,0x58,0x48,0x0A,0x24,0xE3,0x38,0x98};
+
+ AddDynamicPartitions() : txnid(0), dbname(), tablename() {
+ }
+
+ virtual ~AddDynamicPartitions() throw() {}
+
+ int64_t txnid;
+ std::string dbname;
+ std::string tablename;
+ std::vector<std::string> partitionnames;
+
+ void __set_txnid(const int64_t val) {
+ txnid = val;
+ }
+
+ void __set_dbname(const std::string& val) {
+ dbname = val;
+ }
+
+ void __set_tablename(const std::string& val) {
+ tablename = val;
+ }
+
+ void __set_partitionnames(const std::vector<std::string> & val) {
+ partitionnames = val;
+ }
+
+ bool operator == (const AddDynamicPartitions & rhs) const
+ {
+ if (!(txnid == rhs.txnid))
+ return false;
+ if (!(dbname == rhs.dbname))
+ return false;
+ if (!(tablename == rhs.tablename))
+ return false;
+ if (!(partitionnames == rhs.partitionnames))
+ return false;
+ return true;
+ }
+ bool operator != (const AddDynamicPartitions &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const AddDynamicPartitions & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+void swap(AddDynamicPartitions &a, AddDynamicPartitions &b);
+
typedef struct _NotificationEventRequest__isset {
_NotificationEventRequest__isset() : maxEvents(false) {}
bool maxEvents;
Added: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java?rev=1668753&view=auto
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java (added)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java Mon Mar 23 22:22:06 2015
@@ -0,0 +1,738 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class AddDynamicPartitions implements org.apache.thrift.TBase<AddDynamicPartitions, AddDynamicPartitions._Fields>, java.io.Serializable, Cloneable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddDynamicPartitions");
+
+ private static final org.apache.thrift.protocol.TField TXNID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnid", org.apache.thrift.protocol.TType.I64, (short)1);
+ private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField TABLENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tablename", org.apache.thrift.protocol.TType.STRING, (short)3);
+ private static final org.apache.thrift.protocol.TField PARTITIONNAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionnames", org.apache.thrift.protocol.TType.LIST, (short)4);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new AddDynamicPartitionsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new AddDynamicPartitionsTupleSchemeFactory());
+ }
+
+ private long txnid; // required
+ private String dbname; // required
+ private String tablename; // required
+ private List<String> partitionnames; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ TXNID((short)1, "txnid"),
+ DBNAME((short)2, "dbname"),
+ TABLENAME((short)3, "tablename"),
+ PARTITIONNAMES((short)4, "partitionnames");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // TXNID
+ return TXNID;
+ case 2: // DBNAME
+ return DBNAME;
+ case 3: // TABLENAME
+ return TABLENAME;
+ case 4: // PARTITIONNAMES
+ return PARTITIONNAMES;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ private static final int __TXNID_ISSET_ID = 0;
+ private byte __isset_bitfield = 0;
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.TXNID, new org.apache.thrift.meta_data.FieldMetaData("txnid", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+ tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.TABLENAME, new org.apache.thrift.meta_data.FieldMetaData("tablename", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.PARTITIONNAMES, new org.apache.thrift.meta_data.FieldMetaData("partitionnames", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AddDynamicPartitions.class, metaDataMap);
+ }
+
+ public AddDynamicPartitions() {
+ }
+
+ public AddDynamicPartitions(
+ long txnid,
+ String dbname,
+ String tablename,
+ List<String> partitionnames)
+ {
+ this();
+ this.txnid = txnid;
+ setTxnidIsSet(true);
+ this.dbname = dbname;
+ this.tablename = tablename;
+ this.partitionnames = partitionnames;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public AddDynamicPartitions(AddDynamicPartitions other) {
+ __isset_bitfield = other.__isset_bitfield;
+ this.txnid = other.txnid;
+ if (other.isSetDbname()) {
+ this.dbname = other.dbname;
+ }
+ if (other.isSetTablename()) {
+ this.tablename = other.tablename;
+ }
+ if (other.isSetPartitionnames()) {
+ List<String> __this__partitionnames = new ArrayList<String>();
+ for (String other_element : other.partitionnames) {
+ __this__partitionnames.add(other_element);
+ }
+ this.partitionnames = __this__partitionnames;
+ }
+ }
+
+ public AddDynamicPartitions deepCopy() {
+ return new AddDynamicPartitions(this);
+ }
+
+ @Override
+ public void clear() {
+ setTxnidIsSet(false);
+ this.txnid = 0;
+ this.dbname = null;
+ this.tablename = null;
+ this.partitionnames = null;
+ }
+
+ public long getTxnid() {
+ return this.txnid;
+ }
+
+ public void setTxnid(long txnid) {
+ this.txnid = txnid;
+ setTxnidIsSet(true);
+ }
+
+ public void unsetTxnid() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TXNID_ISSET_ID);
+ }
+
+ /** Returns true if field txnid is set (has been assigned a value) and false otherwise */
+ public boolean isSetTxnid() {
+ return EncodingUtils.testBit(__isset_bitfield, __TXNID_ISSET_ID);
+ }
+
+ public void setTxnidIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TXNID_ISSET_ID, value);
+ }
+
+ public String getDbname() {
+ return this.dbname;
+ }
+
+ public void setDbname(String dbname) {
+ this.dbname = dbname;
+ }
+
+ public void unsetDbname() {
+ this.dbname = null;
+ }
+
+ /** Returns true if field dbname is set (has been assigned a value) and false otherwise */
+ public boolean isSetDbname() {
+ return this.dbname != null;
+ }
+
+ public void setDbnameIsSet(boolean value) {
+ if (!value) {
+ this.dbname = null;
+ }
+ }
+
+ public String getTablename() {
+ return this.tablename;
+ }
+
+ public void setTablename(String tablename) {
+ this.tablename = tablename;
+ }
+
+ public void unsetTablename() {
+ this.tablename = null;
+ }
+
+ /** Returns true if field tablename is set (has been assigned a value) and false otherwise */
+ public boolean isSetTablename() {
+ return this.tablename != null;
+ }
+
+ public void setTablenameIsSet(boolean value) {
+ if (!value) {
+ this.tablename = null;
+ }
+ }
+
+ public int getPartitionnamesSize() {
+ return (this.partitionnames == null) ? 0 : this.partitionnames.size();
+ }
+
+ public java.util.Iterator<String> getPartitionnamesIterator() {
+ return (this.partitionnames == null) ? null : this.partitionnames.iterator();
+ }
+
+ public void addToPartitionnames(String elem) {
+ if (this.partitionnames == null) {
+ this.partitionnames = new ArrayList<String>();
+ }
+ this.partitionnames.add(elem);
+ }
+
+ public List<String> getPartitionnames() {
+ return this.partitionnames;
+ }
+
+ public void setPartitionnames(List<String> partitionnames) {
+ this.partitionnames = partitionnames;
+ }
+
+ public void unsetPartitionnames() {
+ this.partitionnames = null;
+ }
+
+ /** Returns true if field partitionnames is set (has been assigned a value) and false otherwise */
+ public boolean isSetPartitionnames() {
+ return this.partitionnames != null;
+ }
+
+ public void setPartitionnamesIsSet(boolean value) {
+ if (!value) {
+ this.partitionnames = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case TXNID:
+ if (value == null) {
+ unsetTxnid();
+ } else {
+ setTxnid((Long)value);
+ }
+ break;
+
+ case DBNAME:
+ if (value == null) {
+ unsetDbname();
+ } else {
+ setDbname((String)value);
+ }
+ break;
+
+ case TABLENAME:
+ if (value == null) {
+ unsetTablename();
+ } else {
+ setTablename((String)value);
+ }
+ break;
+
+ case PARTITIONNAMES:
+ if (value == null) {
+ unsetPartitionnames();
+ } else {
+ setPartitionnames((List<String>)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case TXNID:
+ return Long.valueOf(getTxnid());
+
+ case DBNAME:
+ return getDbname();
+
+ case TABLENAME:
+ return getTablename();
+
+ case PARTITIONNAMES:
+ return getPartitionnames();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case TXNID:
+ return isSetTxnid();
+ case DBNAME:
+ return isSetDbname();
+ case TABLENAME:
+ return isSetTablename();
+ case PARTITIONNAMES:
+ return isSetPartitionnames();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof AddDynamicPartitions)
+ return this.equals((AddDynamicPartitions)that);
+ return false;
+ }
+
+ public boolean equals(AddDynamicPartitions that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_txnid = true;
+ boolean that_present_txnid = true;
+ if (this_present_txnid || that_present_txnid) {
+ if (!(this_present_txnid && that_present_txnid))
+ return false;
+ if (this.txnid != that.txnid)
+ return false;
+ }
+
+ boolean this_present_dbname = true && this.isSetDbname();
+ boolean that_present_dbname = true && that.isSetDbname();
+ if (this_present_dbname || that_present_dbname) {
+ if (!(this_present_dbname && that_present_dbname))
+ return false;
+ if (!this.dbname.equals(that.dbname))
+ return false;
+ }
+
+ boolean this_present_tablename = true && this.isSetTablename();
+ boolean that_present_tablename = true && that.isSetTablename();
+ if (this_present_tablename || that_present_tablename) {
+ if (!(this_present_tablename && that_present_tablename))
+ return false;
+ if (!this.tablename.equals(that.tablename))
+ return false;
+ }
+
+ boolean this_present_partitionnames = true && this.isSetPartitionnames();
+ boolean that_present_partitionnames = true && that.isSetPartitionnames();
+ if (this_present_partitionnames || that_present_partitionnames) {
+ if (!(this_present_partitionnames && that_present_partitionnames))
+ return false;
+ if (!this.partitionnames.equals(that.partitionnames))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_txnid = true;
+ builder.append(present_txnid);
+ if (present_txnid)
+ builder.append(txnid);
+
+ boolean present_dbname = true && (isSetDbname());
+ builder.append(present_dbname);
+ if (present_dbname)
+ builder.append(dbname);
+
+ boolean present_tablename = true && (isSetTablename());
+ builder.append(present_tablename);
+ if (present_tablename)
+ builder.append(tablename);
+
+ boolean present_partitionnames = true && (isSetPartitionnames());
+ builder.append(present_partitionnames);
+ if (present_partitionnames)
+ builder.append(partitionnames);
+
+ return builder.toHashCode();
+ }
+
+ public int compareTo(AddDynamicPartitions other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+ AddDynamicPartitions typedOther = (AddDynamicPartitions)other;
+
+ lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetTxnid()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetDbname()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetTablename()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetPartitionnames()).compareTo(typedOther.isSetPartitionnames());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetPartitionnames()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionnames, typedOther.partitionnames);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("AddDynamicPartitions(");
+ boolean first = true;
+
+ sb.append("txnid:");
+ sb.append(this.txnid);
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("dbname:");
+ if (this.dbname == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.dbname);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("tablename:");
+ if (this.tablename == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.tablename);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("partitionnames:");
+ if (this.partitionnames == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.partitionnames);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ if (!isSetTxnid()) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnid' is unset! Struct:" + toString());
+ }
+
+ if (!isSetDbname()) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbname' is unset! Struct:" + toString());
+ }
+
+ if (!isSetTablename()) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'tablename' is unset! Struct:" + toString());
+ }
+
+ if (!isSetPartitionnames()) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'partitionnames' is unset! Struct:" + toString());
+ }
+
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+ __isset_bitfield = 0;
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class AddDynamicPartitionsStandardSchemeFactory implements SchemeFactory {
+ public AddDynamicPartitionsStandardScheme getScheme() {
+ return new AddDynamicPartitionsStandardScheme();
+ }
+ }
+
+ private static class AddDynamicPartitionsStandardScheme extends StandardScheme<AddDynamicPartitions> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDynamicPartitions struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // TXNID
+ if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+ struct.txnid = iprot.readI64();
+ struct.setTxnidIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // DBNAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.dbname = iprot.readString();
+ struct.setDbnameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // TABLENAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.tablename = iprot.readString();
+ struct.setTablenameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 4: // PARTITIONNAMES
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list492 = iprot.readListBegin();
+ struct.partitionnames = new ArrayList<String>(_list492.size);
+ for (int _i493 = 0; _i493 < _list492.size; ++_i493)
+ {
+ String _elem494; // required
+ _elem494 = iprot.readString();
+ struct.partitionnames.add(_elem494);
+ }
+ iprot.readListEnd();
+ }
+ struct.setPartitionnamesIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, AddDynamicPartitions struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ oprot.writeFieldBegin(TXNID_FIELD_DESC);
+ oprot.writeI64(struct.txnid);
+ oprot.writeFieldEnd();
+ if (struct.dbname != null) {
+ oprot.writeFieldBegin(DBNAME_FIELD_DESC);
+ oprot.writeString(struct.dbname);
+ oprot.writeFieldEnd();
+ }
+ if (struct.tablename != null) {
+ oprot.writeFieldBegin(TABLENAME_FIELD_DESC);
+ oprot.writeString(struct.tablename);
+ oprot.writeFieldEnd();
+ }
+ if (struct.partitionnames != null) {
+ oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size()));
+ for (String _iter495 : struct.partitionnames)
+ {
+ oprot.writeString(_iter495);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class AddDynamicPartitionsTupleSchemeFactory implements SchemeFactory {
+ public AddDynamicPartitionsTupleScheme getScheme() {
+ return new AddDynamicPartitionsTupleScheme();
+ }
+ }
+
+ private static class AddDynamicPartitionsTupleScheme extends TupleScheme<AddDynamicPartitions> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ oprot.writeI64(struct.txnid);
+ oprot.writeString(struct.dbname);
+ oprot.writeString(struct.tablename);
+ {
+ oprot.writeI32(struct.partitionnames.size());
+ for (String _iter496 : struct.partitionnames)
+ {
+ oprot.writeString(_iter496);
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ struct.txnid = iprot.readI64();
+ struct.setTxnidIsSet(true);
+ struct.dbname = iprot.readString();
+ struct.setDbnameIsSet(true);
+ struct.tablename = iprot.readString();
+ struct.setTablenameIsSet(true);
+ {
+ org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.partitionnames = new ArrayList<String>(_list497.size);
+ for (int _i498 = 0; _i498 < _list497.size; ++_i498)
+ {
+ String _elem499; // required
+ _elem499 = iprot.readString();
+ struct.partitionnames.add(_elem499);
+ }
+ }
+ struct.setPartitionnamesIsSet(true);
+ }
+ }
+
+}
+
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java?rev=1668753&r1=1668752&r2=1668753&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java Mon Mar 23 22:22:06 2015
@@ -712,13 +712,13 @@ public class FireEventRequest implements
case 5: // PARTITION_VALS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list508 = iprot.readListBegin();
- struct.partitionVals = new ArrayList<String>(_list508.size);
- for (int _i509 = 0; _i509 < _list508.size; ++_i509)
+ org.apache.thrift.protocol.TList _list516 = iprot.readListBegin();
+ struct.partitionVals = new ArrayList<String>(_list516.size);
+ for (int _i517 = 0; _i517 < _list516.size; ++_i517)
{
- String _elem510; // required
- _elem510 = iprot.readString();
- struct.partitionVals.add(_elem510);
+ String _elem518; // required
+ _elem518 = iprot.readString();
+ struct.partitionVals.add(_elem518);
}
iprot.readListEnd();
}
@@ -767,9 +767,9 @@ public class FireEventRequest implements
oprot.writeFieldBegin(PARTITION_VALS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionVals.size()));
- for (String _iter511 : struct.partitionVals)
+ for (String _iter519 : struct.partitionVals)
{
- oprot.writeString(_iter511);
+ oprot.writeString(_iter519);
}
oprot.writeListEnd();
}
@@ -815,9 +815,9 @@ public class FireEventRequest implements
if (struct.isSetPartitionVals()) {
{
oprot.writeI32(struct.partitionVals.size());
- for (String _iter512 : struct.partitionVals)
+ for (String _iter520 : struct.partitionVals)
{
- oprot.writeString(_iter512);
+ oprot.writeString(_iter520);
}
}
}
@@ -842,13 +842,13 @@ public class FireEventRequest implements
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.partitionVals = new ArrayList<String>(_list513.size);
- for (int _i514 = 0; _i514 < _list513.size; ++_i514)
+ org.apache.thrift.protocol.TList _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.partitionVals = new ArrayList<String>(_list521.size);
+ for (int _i522 = 0; _i522 < _list521.size; ++_i522)
{
- String _elem515; // required
- _elem515 = iprot.readString();
- struct.partitionVals.add(_elem515);
+ String _elem523; // required
+ _elem523 = iprot.readString();
+ struct.partitionVals.add(_elem523);
}
}
struct.setPartitionValsIsSet(true);
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java?rev=1668753&r1=1668752&r2=1668753&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java Mon Mar 23 22:22:06 2015
@@ -350,13 +350,13 @@ public class InsertEventRequestData impl
case 1: // FILES_ADDED
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list500 = iprot.readListBegin();
- struct.filesAdded = new ArrayList<String>(_list500.size);
- for (int _i501 = 0; _i501 < _list500.size; ++_i501)
+ org.apache.thrift.protocol.TList _list508 = iprot.readListBegin();
+ struct.filesAdded = new ArrayList<String>(_list508.size);
+ for (int _i509 = 0; _i509 < _list508.size; ++_i509)
{
- String _elem502; // required
- _elem502 = iprot.readString();
- struct.filesAdded.add(_elem502);
+ String _elem510; // required
+ _elem510 = iprot.readString();
+ struct.filesAdded.add(_elem510);
}
iprot.readListEnd();
}
@@ -382,9 +382,9 @@ public class InsertEventRequestData impl
oprot.writeFieldBegin(FILES_ADDED_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filesAdded.size()));
- for (String _iter503 : struct.filesAdded)
+ for (String _iter511 : struct.filesAdded)
{
- oprot.writeString(_iter503);
+ oprot.writeString(_iter511);
}
oprot.writeListEnd();
}
@@ -409,9 +409,9 @@ public class InsertEventRequestData impl
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.filesAdded.size());
- for (String _iter504 : struct.filesAdded)
+ for (String _iter512 : struct.filesAdded)
{
- oprot.writeString(_iter504);
+ oprot.writeString(_iter512);
}
}
}
@@ -420,13 +420,13 @@ public class InsertEventRequestData impl
public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestData struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
{
- org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.filesAdded = new ArrayList<String>(_list505.size);
- for (int _i506 = 0; _i506 < _list505.size; ++_i506)
+ org.apache.thrift.protocol.TList _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.filesAdded = new ArrayList<String>(_list513.size);
+ for (int _i514 = 0; _i514 < _list513.size; ++_i514)
{
- String _elem507; // required
- _elem507 = iprot.readString();
- struct.filesAdded.add(_elem507);
+ String _elem515; // required
+ _elem515 = iprot.readString();
+ struct.filesAdded.add(_elem515);
}
}
struct.setFilesAddedIsSet(true);
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java?rev=1668753&r1=1668752&r2=1668753&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java Mon Mar 23 22:22:06 2015
@@ -350,14 +350,14 @@ public class NotificationEventResponse i
case 1: // EVENTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list492 = iprot.readListBegin();
- struct.events = new ArrayList<NotificationEvent>(_list492.size);
- for (int _i493 = 0; _i493 < _list492.size; ++_i493)
+ org.apache.thrift.protocol.TList _list500 = iprot.readListBegin();
+ struct.events = new ArrayList<NotificationEvent>(_list500.size);
+ for (int _i501 = 0; _i501 < _list500.size; ++_i501)
{
- NotificationEvent _elem494; // required
- _elem494 = new NotificationEvent();
- _elem494.read(iprot);
- struct.events.add(_elem494);
+ NotificationEvent _elem502; // required
+ _elem502 = new NotificationEvent();
+ _elem502.read(iprot);
+ struct.events.add(_elem502);
}
iprot.readListEnd();
}
@@ -383,9 +383,9 @@ public class NotificationEventResponse i
oprot.writeFieldBegin(EVENTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.events.size()));
- for (NotificationEvent _iter495 : struct.events)
+ for (NotificationEvent _iter503 : struct.events)
{
- _iter495.write(oprot);
+ _iter503.write(oprot);
}
oprot.writeListEnd();
}
@@ -410,9 +410,9 @@ public class NotificationEventResponse i
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.events.size());
- for (NotificationEvent _iter496 : struct.events)
+ for (NotificationEvent _iter504 : struct.events)
{
- _iter496.write(oprot);
+ _iter504.write(oprot);
}
}
}
@@ -421,14 +421,14 @@ public class NotificationEventResponse i
public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventResponse struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
{
- org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.events = new ArrayList<NotificationEvent>(_list497.size);
- for (int _i498 = 0; _i498 < _list497.size; ++_i498)
+ org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.events = new ArrayList<NotificationEvent>(_list505.size);
+ for (int _i506 = 0; _i506 < _list505.size; ++_i506)
{
- NotificationEvent _elem499; // required
- _elem499 = new NotificationEvent();
- _elem499.read(iprot);
- struct.events.add(_elem499);
+ NotificationEvent _elem507; // required
+ _elem507 = new NotificationEvent();
+ _elem507.read(iprot);
+ struct.events.add(_elem507);
}
}
struct.setEventsIsSet(true);