http://git-wip-us.apache.org/repos/asf/hive/blob/cbb9233a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h ---------------------------------------------------------------------- diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index c250893..835cbb3 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -364,6 +364,18 @@ class AbortTxnsRequest; class CommitTxnRequest; +class GetValidWriteIdsRequest; + +class TableValidWriteIds; + +class GetValidWriteIdsResponse; + +class AllocateTableWriteIdsRequest; + +class TxnToWriteId; + +class AllocateTableWriteIdsResponse; + class LockComponent; class LockRequest; @@ -5954,6 +5966,294 @@ inline std::ostream& operator<<(std::ostream& out, const CommitTxnRequest& obj) return out; } + +class GetValidWriteIdsRequest { + public: + + GetValidWriteIdsRequest(const GetValidWriteIdsRequest&); + GetValidWriteIdsRequest& operator=(const GetValidWriteIdsRequest&); + GetValidWriteIdsRequest() : validTxnList() { + } + + virtual ~GetValidWriteIdsRequest() throw(); + std::vector<std::string> fullTableNames; + std::string validTxnList; + + void __set_fullTableNames(const std::vector<std::string> & val); + + void __set_validTxnList(const std::string& val); + + bool operator == (const GetValidWriteIdsRequest & rhs) const + { + if (!(fullTableNames == rhs.fullTableNames)) + return false; + if (!(validTxnList == rhs.validTxnList)) + return false; + return true; + } + bool operator != (const GetValidWriteIdsRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const GetValidWriteIdsRequest & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(GetValidWriteIdsRequest &a, GetValidWriteIdsRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const GetValidWriteIdsRequest& obj) +{ + obj.printTo(out); + return out; +} + +typedef struct _TableValidWriteIds__isset { + _TableValidWriteIds__isset() : minOpenWriteId(false) {} + bool minOpenWriteId :1; +} _TableValidWriteIds__isset; + +class TableValidWriteIds { + public: + + TableValidWriteIds(const TableValidWriteIds&); + TableValidWriteIds& operator=(const TableValidWriteIds&); + TableValidWriteIds() : fullTableName(), writeIdHighWaterMark(0), minOpenWriteId(0), abortedBits() { + } + + virtual ~TableValidWriteIds() throw(); + std::string fullTableName; + int64_t writeIdHighWaterMark; + std::vector<int64_t> invalidWriteIds; + int64_t minOpenWriteId; + std::string abortedBits; + + _TableValidWriteIds__isset __isset; + + void __set_fullTableName(const std::string& val); + + void __set_writeIdHighWaterMark(const int64_t val); + + void __set_invalidWriteIds(const std::vector<int64_t> & val); + + void __set_minOpenWriteId(const int64_t val); + + void __set_abortedBits(const std::string& val); + + bool operator == (const TableValidWriteIds & rhs) const + { + if (!(fullTableName == rhs.fullTableName)) + return false; + if (!(writeIdHighWaterMark == rhs.writeIdHighWaterMark)) + return false; + if (!(invalidWriteIds == rhs.invalidWriteIds)) + return false; + if (__isset.minOpenWriteId != rhs.__isset.minOpenWriteId) + return false; + else if (__isset.minOpenWriteId && !(minOpenWriteId == rhs.minOpenWriteId)) + return false; + if (!(abortedBits == rhs.abortedBits)) + return false; + return true; + } + bool operator != (const TableValidWriteIds &rhs) const { + return !(*this == rhs); + } + + bool operator < (const TableValidWriteIds & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(TableValidWriteIds &a, TableValidWriteIds &b); + +inline std::ostream& operator<<(std::ostream& out, const TableValidWriteIds& obj) +{ + obj.printTo(out); + return out; +} + + +class GetValidWriteIdsResponse { + public: + + GetValidWriteIdsResponse(const GetValidWriteIdsResponse&); + GetValidWriteIdsResponse& operator=(const GetValidWriteIdsResponse&); + GetValidWriteIdsResponse() { + } + + virtual ~GetValidWriteIdsResponse() throw(); + std::vector<TableValidWriteIds> tblValidWriteIds; + + void __set_tblValidWriteIds(const std::vector<TableValidWriteIds> & val); + + bool operator == (const GetValidWriteIdsResponse & rhs) const + { + if (!(tblValidWriteIds == rhs.tblValidWriteIds)) + return false; + return true; + } + bool operator != (const GetValidWriteIdsResponse &rhs) const { + return !(*this == rhs); + } + + bool operator < (const GetValidWriteIdsResponse & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(GetValidWriteIdsResponse &a, GetValidWriteIdsResponse &b); + +inline std::ostream& operator<<(std::ostream& out, const GetValidWriteIdsResponse& obj) +{ + obj.printTo(out); + return out; +} + + +class AllocateTableWriteIdsRequest { + public: + + AllocateTableWriteIdsRequest(const AllocateTableWriteIdsRequest&); + AllocateTableWriteIdsRequest& operator=(const AllocateTableWriteIdsRequest&); + AllocateTableWriteIdsRequest() : dbName(), tableName() { + } + + virtual ~AllocateTableWriteIdsRequest() throw(); + std::vector<int64_t> txnIds; + std::string dbName; + std::string tableName; + + void __set_txnIds(const std::vector<int64_t> & val); + + void __set_dbName(const std::string& val); + + void __set_tableName(const std::string& val); + + bool operator == (const AllocateTableWriteIdsRequest & rhs) const + { + if (!(txnIds == rhs.txnIds)) + return false; + if (!(dbName == rhs.dbName)) + return false; + if (!(tableName == rhs.tableName)) + return false; + return true; + } + bool operator != (const AllocateTableWriteIdsRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const AllocateTableWriteIdsRequest & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(AllocateTableWriteIdsRequest &a, AllocateTableWriteIdsRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const AllocateTableWriteIdsRequest& obj) +{ + obj.printTo(out); + return out; +} + + +class TxnToWriteId { + public: + + TxnToWriteId(const TxnToWriteId&); + TxnToWriteId& operator=(const TxnToWriteId&); + TxnToWriteId() : txnId(0), writeId(0) { + } + + virtual ~TxnToWriteId() throw(); + int64_t txnId; + int64_t writeId; + + void __set_txnId(const int64_t val); + + void __set_writeId(const int64_t val); + + bool operator == (const TxnToWriteId & rhs) const + { + if (!(txnId == rhs.txnId)) + return false; + if (!(writeId == rhs.writeId)) + return false; + return true; + } + bool operator != (const TxnToWriteId &rhs) const { + return !(*this == rhs); + } + + bool operator < (const TxnToWriteId & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(TxnToWriteId &a, TxnToWriteId &b); + +inline std::ostream& operator<<(std::ostream& out, const TxnToWriteId& obj) +{ + obj.printTo(out); + return out; +} + + +class AllocateTableWriteIdsResponse { + public: + + AllocateTableWriteIdsResponse(const AllocateTableWriteIdsResponse&); + AllocateTableWriteIdsResponse& operator=(const AllocateTableWriteIdsResponse&); + AllocateTableWriteIdsResponse() { + } + + virtual ~AllocateTableWriteIdsResponse() throw(); + std::vector<TxnToWriteId> txnToWriteIds; + + void __set_txnToWriteIds(const std::vector<TxnToWriteId> & val); + + bool operator == (const AllocateTableWriteIdsResponse & rhs) const + { + if (!(txnToWriteIds == rhs.txnToWriteIds)) + return false; + return true; + } + bool operator != (const AllocateTableWriteIdsResponse &rhs) const { + return !(*this == rhs); + } + + bool operator < (const AllocateTableWriteIdsResponse & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(AllocateTableWriteIdsResponse &a, AllocateTableWriteIdsResponse &b); + +inline std::ostream& operator<<(std::ostream& out, const AllocateTableWriteIdsResponse& obj) +{ + obj.printTo(out); + return out; +} + typedef struct _LockComponent__isset { _LockComponent__isset() : tablename(false), partitionname(false), operationType(true), isAcid(true), isDynamicPartitionWrite(true) {} bool tablename :1; @@ -7025,13 +7325,14 @@ class AddDynamicPartitions { AddDynamicPartitions(const AddDynamicPartitions&); AddDynamicPartitions& operator=(const AddDynamicPartitions&); - AddDynamicPartitions() : txnid(0), dbname(), tablename(), operationType((DataOperationType::type)5) { + AddDynamicPartitions() : txnid(0), writeid(0), dbname(), tablename(), operationType((DataOperationType::type)5) { operationType = (DataOperationType::type)5; } virtual ~AddDynamicPartitions() throw(); int64_t txnid; + int64_t writeid; std::string dbname; std::string tablename; std::vector<std::string> partitionnames; @@ -7041,6 +7342,8 @@ class AddDynamicPartitions { void __set_txnid(const int64_t val); + void __set_writeid(const int64_t val); + void __set_dbname(const std::string& val); void __set_tablename(const std::string& val); @@ -7053,6 +7356,8 @@ class AddDynamicPartitions { { if (!(txnid == rhs.txnid)) return false; + if (!(writeid == rhs.writeid)) + return false; if (!(dbname == rhs.dbname)) return false; if (!(tablename == rhs.tablename))
http://git-wip-us.apache.org/repos/asf/hive/blob/cbb9233a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java ---------------------------------------------------------------------- diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java index dae233a..a01dc24 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java @@ -39,10 +39,11 @@ import org.slf4j.LoggerFactory; 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 org.apache.thrift.protocol.TField OPERATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationType", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField WRITEID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeid", org.apache.thrift.protocol.TType.I64, (short)2); + 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)3); + 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)4); + 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)5); + private static final org.apache.thrift.protocol.TField OPERATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationType", org.apache.thrift.protocol.TType.I32, (short)6); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { @@ -51,6 +52,7 @@ import org.slf4j.LoggerFactory; } private long txnid; // required + private long writeid; // required private String dbname; // required private String tablename; // required private List<String> partitionnames; // required @@ -59,14 +61,15 @@ import org.slf4j.LoggerFactory; /** 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"), + WRITEID((short)2, "writeid"), + DBNAME((short)3, "dbname"), + TABLENAME((short)4, "tablename"), + PARTITIONNAMES((short)5, "partitionnames"), /** * * @see DataOperationType */ - OPERATION_TYPE((short)5, "operationType"); + OPERATION_TYPE((short)6, "operationType"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); @@ -83,13 +86,15 @@ import org.slf4j.LoggerFactory; switch(fieldId) { case 1: // TXNID return TXNID; - case 2: // DBNAME + case 2: // WRITEID + return WRITEID; + case 3: // DBNAME return DBNAME; - case 3: // TABLENAME + case 4: // TABLENAME return TABLENAME; - case 4: // PARTITIONNAMES + case 5: // PARTITIONNAMES return PARTITIONNAMES; - case 5: // OPERATION_TYPE + case 6: // OPERATION_TYPE return OPERATION_TYPE; default: return null; @@ -132,6 +137,7 @@ import org.slf4j.LoggerFactory; // isset id assignments private static final int __TXNID_ISSET_ID = 0; + private static final int __WRITEID_ISSET_ID = 1; private byte __isset_bitfield = 0; private static final _Fields optionals[] = {_Fields.OPERATION_TYPE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; @@ -139,6 +145,8 @@ import org.slf4j.LoggerFactory; 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.WRITEID, new org.apache.thrift.meta_data.FieldMetaData("writeid", 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, @@ -159,6 +167,7 @@ import org.slf4j.LoggerFactory; public AddDynamicPartitions( long txnid, + long writeid, String dbname, String tablename, List<String> partitionnames) @@ -166,6 +175,8 @@ import org.slf4j.LoggerFactory; this(); this.txnid = txnid; setTxnidIsSet(true); + this.writeid = writeid; + setWriteidIsSet(true); this.dbname = dbname; this.tablename = tablename; this.partitionnames = partitionnames; @@ -177,6 +188,7 @@ import org.slf4j.LoggerFactory; public AddDynamicPartitions(AddDynamicPartitions other) { __isset_bitfield = other.__isset_bitfield; this.txnid = other.txnid; + this.writeid = other.writeid; if (other.isSetDbname()) { this.dbname = other.dbname; } @@ -200,6 +212,8 @@ import org.slf4j.LoggerFactory; public void clear() { setTxnidIsSet(false); this.txnid = 0; + setWriteidIsSet(false); + this.writeid = 0; this.dbname = null; this.tablename = null; this.partitionnames = null; @@ -229,6 +243,28 @@ import org.slf4j.LoggerFactory; __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TXNID_ISSET_ID, value); } + public long getWriteid() { + return this.writeid; + } + + public void setWriteid(long writeid) { + this.writeid = writeid; + setWriteidIsSet(true); + } + + public void unsetWriteid() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + /** Returns true if field writeid is set (has been assigned a value) and false otherwise */ + public boolean isSetWriteid() { + return EncodingUtils.testBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + public void setWriteidIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WRITEID_ISSET_ID, value); + } + public String getDbname() { return this.dbname; } @@ -354,6 +390,14 @@ import org.slf4j.LoggerFactory; } break; + case WRITEID: + if (value == null) { + unsetWriteid(); + } else { + setWriteid((Long)value); + } + break; + case DBNAME: if (value == null) { unsetDbname(); @@ -394,6 +438,9 @@ import org.slf4j.LoggerFactory; case TXNID: return getTxnid(); + case WRITEID: + return getWriteid(); + case DBNAME: return getDbname(); @@ -419,6 +466,8 @@ import org.slf4j.LoggerFactory; switch (field) { case TXNID: return isSetTxnid(); + case WRITEID: + return isSetWriteid(); case DBNAME: return isSetDbname(); case TABLENAME: @@ -453,6 +502,15 @@ import org.slf4j.LoggerFactory; return false; } + boolean this_present_writeid = true; + boolean that_present_writeid = true; + if (this_present_writeid || that_present_writeid) { + if (!(this_present_writeid && that_present_writeid)) + return false; + if (this.writeid != that.writeid) + return false; + } + boolean this_present_dbname = true && this.isSetDbname(); boolean that_present_dbname = true && that.isSetDbname(); if (this_present_dbname || that_present_dbname) { @@ -501,6 +559,11 @@ import org.slf4j.LoggerFactory; if (present_txnid) list.add(txnid); + boolean present_writeid = true; + list.add(present_writeid); + if (present_writeid) + list.add(writeid); + boolean present_dbname = true && (isSetDbname()); list.add(present_dbname); if (present_dbname) @@ -542,6 +605,16 @@ import org.slf4j.LoggerFactory; return lastComparison; } } + lastComparison = Boolean.valueOf(isSetWriteid()).compareTo(other.isSetWriteid()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWriteid()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeid, other.writeid); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; @@ -606,6 +679,10 @@ import org.slf4j.LoggerFactory; sb.append(this.txnid); first = false; if (!first) sb.append(", "); + sb.append("writeid:"); + sb.append(this.writeid); + first = false; + if (!first) sb.append(", "); sb.append("dbname:"); if (this.dbname == null) { sb.append("null"); @@ -649,6 +726,10 @@ import org.slf4j.LoggerFactory; throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnid' is unset! Struct:" + toString()); } + if (!isSetWriteid()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'writeid' is unset! Struct:" + toString()); + } + if (!isSetDbname()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbname' is unset! Struct:" + toString()); } @@ -708,7 +789,15 @@ import org.slf4j.LoggerFactory; org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // DBNAME + case 2: // WRITEID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.writeid = iprot.readI64(); + struct.setWriteidIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // DBNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.dbname = iprot.readString(); struct.setDbnameIsSet(true); @@ -716,7 +805,7 @@ import org.slf4j.LoggerFactory; org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // TABLENAME + case 4: // TABLENAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); @@ -724,16 +813,16 @@ import org.slf4j.LoggerFactory; org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // PARTITIONNAMES + case 5: // PARTITIONNAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); - struct.partitionnames = new ArrayList<String>(_list606.size); - String _elem607; - for (int _i608 = 0; _i608 < _list606.size; ++_i608) + org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); + struct.partitionnames = new ArrayList<String>(_list646.size); + String _elem647; + for (int _i648 = 0; _i648 < _list646.size; ++_i648) { - _elem607 = iprot.readString(); - struct.partitionnames.add(_elem607); + _elem647 = iprot.readString(); + struct.partitionnames.add(_elem647); } iprot.readListEnd(); } @@ -742,7 +831,7 @@ import org.slf4j.LoggerFactory; org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // OPERATION_TYPE + case 6: // OPERATION_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.operationType = org.apache.hadoop.hive.metastore.api.DataOperationType.findByValue(iprot.readI32()); struct.setOperationTypeIsSet(true); @@ -766,6 +855,9 @@ import org.slf4j.LoggerFactory; oprot.writeFieldBegin(TXNID_FIELD_DESC); oprot.writeI64(struct.txnid); oprot.writeFieldEnd(); + oprot.writeFieldBegin(WRITEID_FIELD_DESC); + oprot.writeI64(struct.writeid); + oprot.writeFieldEnd(); if (struct.dbname != null) { oprot.writeFieldBegin(DBNAME_FIELD_DESC); oprot.writeString(struct.dbname); @@ -780,9 +872,9 @@ import org.slf4j.LoggerFactory; oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size())); - for (String _iter609 : struct.partitionnames) + for (String _iter649 : struct.partitionnames) { - oprot.writeString(_iter609); + oprot.writeString(_iter649); } oprot.writeListEnd(); } @@ -813,13 +905,14 @@ import org.slf4j.LoggerFactory; 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.writeI64(struct.writeid); oprot.writeString(struct.dbname); oprot.writeString(struct.tablename); { oprot.writeI32(struct.partitionnames.size()); - for (String _iter610 : struct.partitionnames) + for (String _iter650 : struct.partitionnames) { - oprot.writeString(_iter610); + oprot.writeString(_iter650); } } BitSet optionals = new BitSet(); @@ -837,18 +930,20 @@ import org.slf4j.LoggerFactory; TTupleProtocol iprot = (TTupleProtocol) prot; struct.txnid = iprot.readI64(); struct.setTxnidIsSet(true); + struct.writeid = iprot.readI64(); + struct.setWriteidIsSet(true); struct.dbname = iprot.readString(); struct.setDbnameIsSet(true); struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); { - org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionnames = new ArrayList<String>(_list611.size); - String _elem612; - for (int _i613 = 0; _i613 < _list611.size; ++_i613) + org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList<String>(_list651.size); + String _elem652; + for (int _i653 = 0; _i653 < _list651.size; ++_i653) { - _elem612 = iprot.readString(); - struct.partitionnames.add(_elem612); + _elem652 = iprot.readString(); + struct.partitionnames.add(_elem652); } } struct.setPartitionnamesIsSet(true); http://git-wip-us.apache.org/repos/asf/hive/blob/cbb9233a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java ---------------------------------------------------------------------- diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java new file mode 100644 index 0000000..1aec53b --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java @@ -0,0 +1,640 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * 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.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 org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +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 javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class AllocateTableWriteIdsRequest implements org.apache.thrift.TBase<AllocateTableWriteIdsRequest, AllocateTableWriteIdsRequest._Fields>, java.io.Serializable, Cloneable, Comparable<AllocateTableWriteIdsRequest> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AllocateTableWriteIdsRequest"); + + private static final org.apache.thrift.protocol.TField TXN_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("txnIds", org.apache.thrift.protocol.TType.LIST, (short)1); + private static final org.apache.thrift.protocol.TField DB_NAME_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 TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)3); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new AllocateTableWriteIdsRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new AllocateTableWriteIdsRequestTupleSchemeFactory()); + } + + private List<Long> txnIds; // required + private String dbName; // required + private String tableName; // 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 { + TXN_IDS((short)1, "txnIds"), + DB_NAME((short)2, "dbName"), + TABLE_NAME((short)3, "tableName"); + + 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: // TXN_IDS + return TXN_IDS; + case 2: // DB_NAME + return DB_NAME; + case 3: // TABLE_NAME + return TABLE_NAME; + 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 + 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.TXN_IDS, new org.apache.thrift.meta_data.FieldMetaData("txnIds", 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.I64)))); + tmpMap.put(_Fields.DB_NAME, 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.TABLE_NAME, 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))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AllocateTableWriteIdsRequest.class, metaDataMap); + } + + public AllocateTableWriteIdsRequest() { + } + + public AllocateTableWriteIdsRequest( + List<Long> txnIds, + String dbName, + String tableName) + { + this(); + this.txnIds = txnIds; + this.dbName = dbName; + this.tableName = tableName; + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public AllocateTableWriteIdsRequest(AllocateTableWriteIdsRequest other) { + if (other.isSetTxnIds()) { + List<Long> __this__txnIds = new ArrayList<Long>(other.txnIds); + this.txnIds = __this__txnIds; + } + if (other.isSetDbName()) { + this.dbName = other.dbName; + } + if (other.isSetTableName()) { + this.tableName = other.tableName; + } + } + + public AllocateTableWriteIdsRequest deepCopy() { + return new AllocateTableWriteIdsRequest(this); + } + + @Override + public void clear() { + this.txnIds = null; + this.dbName = null; + this.tableName = null; + } + + public int getTxnIdsSize() { + return (this.txnIds == null) ? 0 : this.txnIds.size(); + } + + public java.util.Iterator<Long> getTxnIdsIterator() { + return (this.txnIds == null) ? null : this.txnIds.iterator(); + } + + public void addToTxnIds(long elem) { + if (this.txnIds == null) { + this.txnIds = new ArrayList<Long>(); + } + this.txnIds.add(elem); + } + + public List<Long> getTxnIds() { + return this.txnIds; + } + + public void setTxnIds(List<Long> txnIds) { + this.txnIds = txnIds; + } + + public void unsetTxnIds() { + this.txnIds = null; + } + + /** Returns true if field txnIds is set (has been assigned a value) and false otherwise */ + public boolean isSetTxnIds() { + return this.txnIds != null; + } + + public void setTxnIdsIsSet(boolean value) { + if (!value) { + this.txnIds = null; + } + } + + 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 void setFieldValue(_Fields field, Object value) { + switch (field) { + case TXN_IDS: + if (value == null) { + unsetTxnIds(); + } else { + setTxnIds((List<Long>)value); + } + break; + + case DB_NAME: + if (value == null) { + unsetDbName(); + } else { + setDbName((String)value); + } + break; + + case TABLE_NAME: + if (value == null) { + unsetTableName(); + } else { + setTableName((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case TXN_IDS: + return getTxnIds(); + + case DB_NAME: + return getDbName(); + + case TABLE_NAME: + return getTableName(); + + } + 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 TXN_IDS: + return isSetTxnIds(); + case DB_NAME: + return isSetDbName(); + case TABLE_NAME: + return isSetTableName(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof AllocateTableWriteIdsRequest) + return this.equals((AllocateTableWriteIdsRequest)that); + return false; + } + + public boolean equals(AllocateTableWriteIdsRequest that) { + if (that == null) + return false; + + boolean this_present_txnIds = true && this.isSetTxnIds(); + boolean that_present_txnIds = true && that.isSetTxnIds(); + if (this_present_txnIds || that_present_txnIds) { + if (!(this_present_txnIds && that_present_txnIds)) + return false; + if (!this.txnIds.equals(that.txnIds)) + 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; + } + + return true; + } + + @Override + public int hashCode() { + List<Object> list = new ArrayList<Object>(); + + boolean present_txnIds = true && (isSetTxnIds()); + list.add(present_txnIds); + if (present_txnIds) + list.add(txnIds); + + boolean present_dbName = true && (isSetDbName()); + list.add(present_dbName); + if (present_dbName) + list.add(dbName); + + boolean present_tableName = true && (isSetTableName()); + list.add(present_tableName); + if (present_tableName) + list.add(tableName); + + return list.hashCode(); + } + + @Override + public int compareTo(AllocateTableWriteIdsRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetTxnIds()).compareTo(other.isSetTxnIds()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTxnIds()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnIds, other.txnIds); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDbName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + 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("AllocateTableWriteIdsRequest("); + boolean first = true; + + sb.append("txnIds:"); + if (this.txnIds == null) { + sb.append("null"); + } else { + sb.append(this.txnIds); + } + 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; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetTxnIds()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnIds' 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()); + } + + // 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 { + 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 AllocateTableWriteIdsRequestStandardSchemeFactory implements SchemeFactory { + public AllocateTableWriteIdsRequestStandardScheme getScheme() { + return new AllocateTableWriteIdsRequestStandardScheme(); + } + } + + private static class AllocateTableWriteIdsRequestStandardScheme extends StandardScheme<AllocateTableWriteIdsRequest> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, AllocateTableWriteIdsRequest 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: // TXN_IDS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list580 = iprot.readListBegin(); + struct.txnIds = new ArrayList<Long>(_list580.size); + long _elem581; + for (int _i582 = 0; _i582 < _list580.size; ++_i582) + { + _elem581 = iprot.readI64(); + struct.txnIds.add(_elem581); + } + iprot.readListEnd(); + } + struct.setTxnIdsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DB_NAME + 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: // TABLE_NAME + 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; + 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, AllocateTableWriteIdsRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.txnIds != null) { + oprot.writeFieldBegin(TXN_IDS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txnIds.size())); + for (long _iter583 : struct.txnIds) + { + oprot.writeI64(_iter583); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.dbName != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.dbName); + oprot.writeFieldEnd(); + } + if (struct.tableName != null) { + oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.tableName); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class AllocateTableWriteIdsRequestTupleSchemeFactory implements SchemeFactory { + public AllocateTableWriteIdsRequestTupleScheme getScheme() { + return new AllocateTableWriteIdsRequestTupleScheme(); + } + } + + private static class AllocateTableWriteIdsRequestTupleScheme extends TupleScheme<AllocateTableWriteIdsRequest> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteIdsRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.txnIds.size()); + for (long _iter584 : struct.txnIds) + { + oprot.writeI64(_iter584); + } + } + oprot.writeString(struct.dbName); + oprot.writeString(struct.tableName); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteIdsRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list585 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txnIds = new ArrayList<Long>(_list585.size); + long _elem586; + for (int _i587 = 0; _i587 < _list585.size; ++_i587) + { + _elem586 = iprot.readI64(); + struct.txnIds.add(_elem586); + } + } + struct.setTxnIdsIsSet(true); + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + } + +} + http://git-wip-us.apache.org/repos/asf/hive/blob/cbb9233a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java ---------------------------------------------------------------------- diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java new file mode 100644 index 0000000..e29e1db --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java @@ -0,0 +1,443 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * 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.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 org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +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 javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class AllocateTableWriteIdsResponse implements org.apache.thrift.TBase<AllocateTableWriteIdsResponse, AllocateTableWriteIdsResponse._Fields>, java.io.Serializable, Cloneable, Comparable<AllocateTableWriteIdsResponse> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AllocateTableWriteIdsResponse"); + + private static final org.apache.thrift.protocol.TField TXN_TO_WRITE_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("txnToWriteIds", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new AllocateTableWriteIdsResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new AllocateTableWriteIdsResponseTupleSchemeFactory()); + } + + private List<TxnToWriteId> txnToWriteIds; // 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 { + TXN_TO_WRITE_IDS((short)1, "txnToWriteIds"); + + 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: // TXN_TO_WRITE_IDS + return TXN_TO_WRITE_IDS; + 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 + 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.TXN_TO_WRITE_IDS, new org.apache.thrift.meta_data.FieldMetaData("txnToWriteIds", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TxnToWriteId.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AllocateTableWriteIdsResponse.class, metaDataMap); + } + + public AllocateTableWriteIdsResponse() { + } + + public AllocateTableWriteIdsResponse( + List<TxnToWriteId> txnToWriteIds) + { + this(); + this.txnToWriteIds = txnToWriteIds; + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public AllocateTableWriteIdsResponse(AllocateTableWriteIdsResponse other) { + if (other.isSetTxnToWriteIds()) { + List<TxnToWriteId> __this__txnToWriteIds = new ArrayList<TxnToWriteId>(other.txnToWriteIds.size()); + for (TxnToWriteId other_element : other.txnToWriteIds) { + __this__txnToWriteIds.add(new TxnToWriteId(other_element)); + } + this.txnToWriteIds = __this__txnToWriteIds; + } + } + + public AllocateTableWriteIdsResponse deepCopy() { + return new AllocateTableWriteIdsResponse(this); + } + + @Override + public void clear() { + this.txnToWriteIds = null; + } + + public int getTxnToWriteIdsSize() { + return (this.txnToWriteIds == null) ? 0 : this.txnToWriteIds.size(); + } + + public java.util.Iterator<TxnToWriteId> getTxnToWriteIdsIterator() { + return (this.txnToWriteIds == null) ? null : this.txnToWriteIds.iterator(); + } + + public void addToTxnToWriteIds(TxnToWriteId elem) { + if (this.txnToWriteIds == null) { + this.txnToWriteIds = new ArrayList<TxnToWriteId>(); + } + this.txnToWriteIds.add(elem); + } + + public List<TxnToWriteId> getTxnToWriteIds() { + return this.txnToWriteIds; + } + + public void setTxnToWriteIds(List<TxnToWriteId> txnToWriteIds) { + this.txnToWriteIds = txnToWriteIds; + } + + public void unsetTxnToWriteIds() { + this.txnToWriteIds = null; + } + + /** Returns true if field txnToWriteIds is set (has been assigned a value) and false otherwise */ + public boolean isSetTxnToWriteIds() { + return this.txnToWriteIds != null; + } + + public void setTxnToWriteIdsIsSet(boolean value) { + if (!value) { + this.txnToWriteIds = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case TXN_TO_WRITE_IDS: + if (value == null) { + unsetTxnToWriteIds(); + } else { + setTxnToWriteIds((List<TxnToWriteId>)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case TXN_TO_WRITE_IDS: + return getTxnToWriteIds(); + + } + 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 TXN_TO_WRITE_IDS: + return isSetTxnToWriteIds(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof AllocateTableWriteIdsResponse) + return this.equals((AllocateTableWriteIdsResponse)that); + return false; + } + + public boolean equals(AllocateTableWriteIdsResponse that) { + if (that == null) + return false; + + boolean this_present_txnToWriteIds = true && this.isSetTxnToWriteIds(); + boolean that_present_txnToWriteIds = true && that.isSetTxnToWriteIds(); + if (this_present_txnToWriteIds || that_present_txnToWriteIds) { + if (!(this_present_txnToWriteIds && that_present_txnToWriteIds)) + return false; + if (!this.txnToWriteIds.equals(that.txnToWriteIds)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List<Object> list = new ArrayList<Object>(); + + boolean present_txnToWriteIds = true && (isSetTxnToWriteIds()); + list.add(present_txnToWriteIds); + if (present_txnToWriteIds) + list.add(txnToWriteIds); + + return list.hashCode(); + } + + @Override + public int compareTo(AllocateTableWriteIdsResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetTxnToWriteIds()).compareTo(other.isSetTxnToWriteIds()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTxnToWriteIds()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnToWriteIds, other.txnToWriteIds); + 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("AllocateTableWriteIdsResponse("); + boolean first = true; + + sb.append("txnToWriteIds:"); + if (this.txnToWriteIds == null) { + sb.append("null"); + } else { + sb.append(this.txnToWriteIds); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetTxnToWriteIds()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnToWriteIds' 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 { + 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 AllocateTableWriteIdsResponseStandardSchemeFactory implements SchemeFactory { + public AllocateTableWriteIdsResponseStandardScheme getScheme() { + return new AllocateTableWriteIdsResponseStandardScheme(); + } + } + + private static class AllocateTableWriteIdsResponseStandardScheme extends StandardScheme<AllocateTableWriteIdsResponse> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, AllocateTableWriteIdsResponse 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: // TXN_TO_WRITE_IDS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list588 = iprot.readListBegin(); + struct.txnToWriteIds = new ArrayList<TxnToWriteId>(_list588.size); + TxnToWriteId _elem589; + for (int _i590 = 0; _i590 < _list588.size; ++_i590) + { + _elem589 = new TxnToWriteId(); + _elem589.read(iprot); + struct.txnToWriteIds.add(_elem589); + } + iprot.readListEnd(); + } + struct.setTxnToWriteIdsIsSet(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, AllocateTableWriteIdsResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.txnToWriteIds != null) { + oprot.writeFieldBegin(TXN_TO_WRITE_IDS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.txnToWriteIds.size())); + for (TxnToWriteId _iter591 : struct.txnToWriteIds) + { + _iter591.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class AllocateTableWriteIdsResponseTupleSchemeFactory implements SchemeFactory { + public AllocateTableWriteIdsResponseTupleScheme getScheme() { + return new AllocateTableWriteIdsResponseTupleScheme(); + } + } + + private static class AllocateTableWriteIdsResponseTupleScheme extends TupleScheme<AllocateTableWriteIdsResponse> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteIdsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.txnToWriteIds.size()); + for (TxnToWriteId _iter592 : struct.txnToWriteIds) + { + _iter592.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteIdsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list593 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.txnToWriteIds = new ArrayList<TxnToWriteId>(_list593.size); + TxnToWriteId _elem594; + for (int _i595 = 0; _i595 < _list593.size; ++_i595) + { + _elem594 = new TxnToWriteId(); + _elem594.read(iprot); + struct.txnToWriteIds.add(_elem594); + } + } + struct.setTxnToWriteIdsIsSet(true); + } + } + +} + http://git-wip-us.apache.org/repos/asf/hive/blob/cbb9233a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java ---------------------------------------------------------------------- diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java index 16e85cf..ee9841f 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java @@ -351,13 +351,13 @@ import org.slf4j.LoggerFactory; case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list706 = iprot.readListBegin(); - struct.fileIds = new ArrayList<Long>(_list706.size); - long _elem707; - for (int _i708 = 0; _i708 < _list706.size; ++_i708) + org.apache.thrift.protocol.TList _list746 = iprot.readListBegin(); + struct.fileIds = new ArrayList<Long>(_list746.size); + long _elem747; + for (int _i748 = 0; _i748 < _list746.size; ++_i748) { - _elem707 = iprot.readI64(); - struct.fileIds.add(_elem707); + _elem747 = iprot.readI64(); + struct.fileIds.add(_elem747); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ import org.slf4j.LoggerFactory; oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter709 : struct.fileIds) + for (long _iter749 : struct.fileIds) { - oprot.writeI64(_iter709); + oprot.writeI64(_iter749); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ import org.slf4j.LoggerFactory; TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter710 : struct.fileIds) + for (long _iter750 : struct.fileIds) { - oprot.writeI64(_iter710); + oprot.writeI64(_iter750); } } } @@ -421,13 +421,13 @@ import org.slf4j.LoggerFactory; public void read(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList<Long>(_list711.size); - long _elem712; - for (int _i713 = 0; _i713 < _list711.size; ++_i713) + org.apache.thrift.protocol.TList _list751 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList<Long>(_list751.size); + long _elem752; + for (int _i753 = 0; _i753 < _list751.size; ++_i753) { - _elem712 = iprot.readI64(); - struct.fileIds.add(_elem712); + _elem752 = iprot.readI64(); + struct.fileIds.add(_elem752); } } struct.setFileIdsIsSet(true); http://git-wip-us.apache.org/repos/asf/hive/blob/cbb9233a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java ---------------------------------------------------------------------- diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java index 816b61b..8dbe4c1 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java @@ -354,13 +354,13 @@ import org.slf4j.LoggerFactory; case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list722 = iprot.readListBegin(); - struct.values = new ArrayList<ClientCapability>(_list722.size); - ClientCapability _elem723; - for (int _i724 = 0; _i724 < _list722.size; ++_i724) + org.apache.thrift.protocol.TList _list762 = iprot.readListBegin(); + struct.values = new ArrayList<ClientCapability>(_list762.size); + ClientCapability _elem763; + for (int _i764 = 0; _i764 < _list762.size; ++_i764) { - _elem723 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem723); + _elem763 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem763); } iprot.readListEnd(); } @@ -386,9 +386,9 @@ import org.slf4j.LoggerFactory; oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.values.size())); - for (ClientCapability _iter725 : struct.values) + for (ClientCapability _iter765 : struct.values) { - oprot.writeI32(_iter725.getValue()); + oprot.writeI32(_iter765.getValue()); } oprot.writeListEnd(); } @@ -413,9 +413,9 @@ import org.slf4j.LoggerFactory; TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.values.size()); - for (ClientCapability _iter726 : struct.values) + for (ClientCapability _iter766 : struct.values) { - oprot.writeI32(_iter726.getValue()); + oprot.writeI32(_iter766.getValue()); } } } @@ -424,13 +424,13 @@ import org.slf4j.LoggerFactory; public void read(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list727 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList<ClientCapability>(_list727.size); - ClientCapability _elem728; - for (int _i729 = 0; _i729 < _list727.size; ++_i729) + org.apache.thrift.protocol.TList _list767 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList<ClientCapability>(_list767.size); + ClientCapability _elem768; + for (int _i769 = 0; _i769 < _list767.size; ++_i769) { - _elem728 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem728); + _elem768 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem768); } } struct.setValuesIsSet(true); http://git-wip-us.apache.org/repos/asf/hive/blob/cbb9233a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java ---------------------------------------------------------------------- diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java index 6da2b88..1853720 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java @@ -814,15 +814,15 @@ import org.slf4j.LoggerFactory; case 6: // PROPERTIES if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map588 = iprot.readMapBegin(); - struct.properties = new HashMap<String,String>(2*_map588.size); - String _key589; - String _val590; - for (int _i591 = 0; _i591 < _map588.size; ++_i591) + org.apache.thrift.protocol.TMap _map628 = iprot.readMapBegin(); + struct.properties = new HashMap<String,String>(2*_map628.size); + String _key629; + String _val630; + for (int _i631 = 0; _i631 < _map628.size; ++_i631) { - _key589 = iprot.readString(); - _val590 = iprot.readString(); - struct.properties.put(_key589, _val590); + _key629 = iprot.readString(); + _val630 = iprot.readString(); + struct.properties.put(_key629, _val630); } iprot.readMapEnd(); } @@ -878,10 +878,10 @@ import org.slf4j.LoggerFactory; oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size())); - for (Map.Entry<String, String> _iter592 : struct.properties.entrySet()) + for (Map.Entry<String, String> _iter632 : struct.properties.entrySet()) { - oprot.writeString(_iter592.getKey()); - oprot.writeString(_iter592.getValue()); + oprot.writeString(_iter632.getKey()); + oprot.writeString(_iter632.getValue()); } oprot.writeMapEnd(); } @@ -928,10 +928,10 @@ import org.slf4j.LoggerFactory; if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry<String, String> _iter593 : struct.properties.entrySet()) + for (Map.Entry<String, String> _iter633 : struct.properties.entrySet()) { - oprot.writeString(_iter593.getKey()); - oprot.writeString(_iter593.getValue()); + oprot.writeString(_iter633.getKey()); + oprot.writeString(_iter633.getValue()); } } } @@ -957,15 +957,15 @@ import org.slf4j.LoggerFactory; } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map594 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.properties = new HashMap<String,String>(2*_map594.size); - String _key595; - String _val596; - for (int _i597 = 0; _i597 < _map594.size; ++_i597) + org.apache.thrift.protocol.TMap _map634 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.properties = new HashMap<String,String>(2*_map634.size); + String _key635; + String _val636; + for (int _i637 = 0; _i637 < _map634.size; ++_i637) { - _key595 = iprot.readString(); - _val596 = iprot.readString(); - struct.properties.put(_key595, _val596); + _key635 = iprot.readString(); + _val636 = iprot.readString(); + struct.properties.put(_key635, _val636); } } struct.setPropertiesIsSet(true); http://git-wip-us.apache.org/repos/asf/hive/blob/cbb9233a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java ---------------------------------------------------------------------- diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java index 74cfce6..717840f 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java @@ -619,13 +619,13 @@ import org.slf4j.LoggerFactory; case 3: // TABLES_USED if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set614 = iprot.readSetBegin(); - struct.tablesUsed = new HashSet<String>(2*_set614.size); - String _elem615; - for (int _i616 = 0; _i616 < _set614.size; ++_i616) + org.apache.thrift.protocol.TSet _set654 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet<String>(2*_set654.size); + String _elem655; + for (int _i656 = 0; _i656 < _set654.size; ++_i656) { - _elem615 = iprot.readString(); - struct.tablesUsed.add(_elem615); + _elem655 = iprot.readString(); + struct.tablesUsed.add(_elem655); } iprot.readSetEnd(); } @@ -669,9 +669,9 @@ import org.slf4j.LoggerFactory; oprot.writeFieldBegin(TABLES_USED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.tablesUsed.size())); - for (String _iter617 : struct.tablesUsed) + for (String _iter657 : struct.tablesUsed) { - oprot.writeString(_iter617); + oprot.writeString(_iter657); } oprot.writeSetEnd(); } @@ -705,9 +705,9 @@ import org.slf4j.LoggerFactory; oprot.writeString(struct.tblName); { oprot.writeI32(struct.tablesUsed.size()); - for (String _iter618 : struct.tablesUsed) + for (String _iter658 : struct.tablesUsed) { - oprot.writeString(_iter618); + oprot.writeString(_iter658); } } BitSet optionals = new BitSet(); @@ -728,13 +728,13 @@ import org.slf4j.LoggerFactory; struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TSet _set619 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tablesUsed = new HashSet<String>(2*_set619.size); - String _elem620; - for (int _i621 = 0; _i621 < _set619.size; ++_i621) + org.apache.thrift.protocol.TSet _set659 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet<String>(2*_set659.size); + String _elem660; + for (int _i661 = 0; _i661 < _set659.size; ++_i661) { - _elem620 = iprot.readString(); - struct.tablesUsed.add(_elem620); + _elem660 = iprot.readString(); + struct.tablesUsed.add(_elem660); } } struct.setTablesUsedIsSet(true); http://git-wip-us.apache.org/repos/asf/hive/blob/cbb9233a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java ---------------------------------------------------------------------- diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java index 7cc201b..8936410 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java @@ -713,13 +713,13 @@ import org.slf4j.LoggerFactory; case 5: // PARTITION_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); - struct.partitionVals = new ArrayList<String>(_list646.size); - String _elem647; - for (int _i648 = 0; _i648 < _list646.size; ++_i648) + org.apache.thrift.protocol.TList _list686 = iprot.readListBegin(); + struct.partitionVals = new ArrayList<String>(_list686.size); + String _elem687; + for (int _i688 = 0; _i688 < _list686.size; ++_i688) { - _elem647 = iprot.readString(); - struct.partitionVals.add(_elem647); + _elem687 = iprot.readString(); + struct.partitionVals.add(_elem687); } iprot.readListEnd(); } @@ -768,9 +768,9 @@ import org.slf4j.LoggerFactory; 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 _iter649 : struct.partitionVals) + for (String _iter689 : struct.partitionVals) { - oprot.writeString(_iter649); + oprot.writeString(_iter689); } oprot.writeListEnd(); } @@ -816,9 +816,9 @@ import org.slf4j.LoggerFactory; if (struct.isSetPartitionVals()) { { oprot.writeI32(struct.partitionVals.size()); - for (String _iter650 : struct.partitionVals) + for (String _iter690 : struct.partitionVals) { - oprot.writeString(_iter650); + oprot.writeString(_iter690); } } } @@ -843,13 +843,13 @@ import org.slf4j.LoggerFactory; } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList<String>(_list651.size); - String _elem652; - for (int _i653 = 0; _i653 < _list651.size; ++_i653) + org.apache.thrift.protocol.TList _list691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList<String>(_list691.size); + String _elem692; + for (int _i693 = 0; _i693 < _list691.size; ++_i693) { - _elem652 = iprot.readString(); - struct.partitionVals.add(_elem652); + _elem692 = iprot.readString(); + struct.partitionVals.add(_elem692); } } struct.setPartitionValsIsSet(true); http://git-wip-us.apache.org/repos/asf/hive/blob/cbb9233a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java ---------------------------------------------------------------------- diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java index 2b4883d..ba29e90 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java @@ -346,14 +346,14 @@ import org.slf4j.LoggerFactory; case 1: // FUNCTIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list714 = iprot.readListBegin(); - struct.functions = new ArrayList<Function>(_list714.size); - Function _elem715; - for (int _i716 = 0; _i716 < _list714.size; ++_i716) + org.apache.thrift.protocol.TList _list754 = iprot.readListBegin(); + struct.functions = new ArrayList<Function>(_list754.size); + Function _elem755; + for (int _i756 = 0; _i756 < _list754.size; ++_i756) { - _elem715 = new Function(); - _elem715.read(iprot); - struct.functions.add(_elem715); + _elem755 = new Function(); + _elem755.read(iprot); + struct.functions.add(_elem755); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ import org.slf4j.LoggerFactory; oprot.writeFieldBegin(FUNCTIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.functions.size())); - for (Function _iter717 : struct.functions) + for (Function _iter757 : struct.functions) { - _iter717.write(oprot); + _iter757.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ import org.slf4j.LoggerFactory; if (struct.isSetFunctions()) { { oprot.writeI32(struct.functions.size()); - for (Function _iter718 : struct.functions) + for (Function _iter758 : struct.functions) { - _iter718.write(oprot); + _iter758.write(oprot); } } } @@ -428,14 +428,14 @@ import org.slf4j.LoggerFactory; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList<Function>(_list719.size); - Function _elem720; - for (int _i721 = 0; _i721 < _list719.size; ++_i721) + org.apache.thrift.protocol.TList _list759 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList<Function>(_list759.size); + Function _elem760; + for (int _i761 = 0; _i761 < _list759.size; ++_i761) { - _elem720 = new Function(); - _elem720.read(iprot); - struct.functions.add(_elem720); + _elem760 = new Function(); + _elem760.read(iprot); + struct.functions.add(_elem760); } } struct.setFunctionsIsSet(true);