You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2016/05/11 20:31:38 UTC
[08/12] hive git commit: HIVE-13350: Support Alter commands for
Rely/NoRely novalidate for PK/FK constraints (Hari Subramaniyan,
reviewed by Ashutosh Chauhan)
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
index 7afa2be..b5c4f14 100644
--- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
+++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
@@ -253,6 +253,10 @@ class ForeignKeysResponse;
class DropConstraintRequest;
+class AddPrimaryKeyRequest;
+
+class AddForeignKeyRequest;
+
class PartitionsByExprResult;
class PartitionsByExprRequest;
@@ -3838,6 +3842,86 @@ inline std::ostream& operator<<(std::ostream& out, const DropConstraintRequest&
}
+class AddPrimaryKeyRequest {
+ public:
+
+ AddPrimaryKeyRequest(const AddPrimaryKeyRequest&);
+ AddPrimaryKeyRequest& operator=(const AddPrimaryKeyRequest&);
+ AddPrimaryKeyRequest() {
+ }
+
+ virtual ~AddPrimaryKeyRequest() throw();
+ std::vector<SQLPrimaryKey> primaryKeyCols;
+
+ void __set_primaryKeyCols(const std::vector<SQLPrimaryKey> & val);
+
+ bool operator == (const AddPrimaryKeyRequest & rhs) const
+ {
+ if (!(primaryKeyCols == rhs.primaryKeyCols))
+ return false;
+ return true;
+ }
+ bool operator != (const AddPrimaryKeyRequest &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const AddPrimaryKeyRequest & ) 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(AddPrimaryKeyRequest &a, AddPrimaryKeyRequest &b);
+
+inline std::ostream& operator<<(std::ostream& out, const AddPrimaryKeyRequest& obj)
+{
+ obj.printTo(out);
+ return out;
+}
+
+
+class AddForeignKeyRequest {
+ public:
+
+ AddForeignKeyRequest(const AddForeignKeyRequest&);
+ AddForeignKeyRequest& operator=(const AddForeignKeyRequest&);
+ AddForeignKeyRequest() {
+ }
+
+ virtual ~AddForeignKeyRequest() throw();
+ std::vector<SQLForeignKey> foreignKeyCols;
+
+ void __set_foreignKeyCols(const std::vector<SQLForeignKey> & val);
+
+ bool operator == (const AddForeignKeyRequest & rhs) const
+ {
+ if (!(foreignKeyCols == rhs.foreignKeyCols))
+ return false;
+ return true;
+ }
+ bool operator != (const AddForeignKeyRequest &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const AddForeignKeyRequest & ) 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(AddForeignKeyRequest &a, AddForeignKeyRequest &b);
+
+inline std::ostream& operator<<(std::ostream& out, const AddForeignKeyRequest& obj)
+{
+ obj.printTo(out);
+ return out;
+}
+
+
class PartitionsByExprResult {
public:
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java
index c434737..d89eb97 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java
@@ -351,13 +351,13 @@ public class AbortTxnsRequest implements org.apache.thrift.TBase<AbortTxnsReques
case 1: // TXN_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list468 = iprot.readListBegin();
- struct.txn_ids = new ArrayList<Long>(_list468.size);
- long _elem469;
- for (int _i470 = 0; _i470 < _list468.size; ++_i470)
+ org.apache.thrift.protocol.TList _list484 = iprot.readListBegin();
+ struct.txn_ids = new ArrayList<Long>(_list484.size);
+ long _elem485;
+ for (int _i486 = 0; _i486 < _list484.size; ++_i486)
{
- _elem469 = iprot.readI64();
- struct.txn_ids.add(_elem469);
+ _elem485 = iprot.readI64();
+ struct.txn_ids.add(_elem485);
}
iprot.readListEnd();
}
@@ -383,9 +383,9 @@ public class AbortTxnsRequest implements org.apache.thrift.TBase<AbortTxnsReques
oprot.writeFieldBegin(TXN_IDS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txn_ids.size()));
- for (long _iter471 : struct.txn_ids)
+ for (long _iter487 : struct.txn_ids)
{
- oprot.writeI64(_iter471);
+ oprot.writeI64(_iter487);
}
oprot.writeListEnd();
}
@@ -410,9 +410,9 @@ public class AbortTxnsRequest implements org.apache.thrift.TBase<AbortTxnsReques
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.txn_ids.size());
- for (long _iter472 : struct.txn_ids)
+ for (long _iter488 : struct.txn_ids)
{
- oprot.writeI64(_iter472);
+ oprot.writeI64(_iter488);
}
}
}
@@ -421,13 +421,13 @@ public class AbortTxnsRequest implements org.apache.thrift.TBase<AbortTxnsReques
public void read(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
{
- org.apache.thrift.protocol.TList _list473 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.txn_ids = new ArrayList<Long>(_list473.size);
- long _elem474;
- for (int _i475 = 0; _i475 < _list473.size; ++_i475)
+ org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.txn_ids = new ArrayList<Long>(_list489.size);
+ long _elem490;
+ for (int _i491 = 0; _i491 < _list489.size; ++_i491)
{
- _elem474 = iprot.readI64();
- struct.txn_ids.add(_elem474);
+ _elem490 = iprot.readI64();
+ struct.txn_ids.add(_elem490);
}
}
struct.setTxn_idsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java
index 116e04f..544eff1 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java
@@ -630,13 +630,13 @@ public class AddDynamicPartitions implements org.apache.thrift.TBase<AddDynamicP
case 4: // PARTITIONNAMES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list516 = iprot.readListBegin();
- struct.partitionnames = new ArrayList<String>(_list516.size);
- String _elem517;
- for (int _i518 = 0; _i518 < _list516.size; ++_i518)
+ org.apache.thrift.protocol.TList _list532 = iprot.readListBegin();
+ struct.partitionnames = new ArrayList<String>(_list532.size);
+ String _elem533;
+ for (int _i534 = 0; _i534 < _list532.size; ++_i534)
{
- _elem517 = iprot.readString();
- struct.partitionnames.add(_elem517);
+ _elem533 = iprot.readString();
+ struct.partitionnames.add(_elem533);
}
iprot.readListEnd();
}
@@ -675,9 +675,9 @@ public class AddDynamicPartitions implements org.apache.thrift.TBase<AddDynamicP
oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size()));
- for (String _iter519 : struct.partitionnames)
+ for (String _iter535 : struct.partitionnames)
{
- oprot.writeString(_iter519);
+ oprot.writeString(_iter535);
}
oprot.writeListEnd();
}
@@ -705,9 +705,9 @@ public class AddDynamicPartitions implements org.apache.thrift.TBase<AddDynamicP
oprot.writeString(struct.tablename);
{
oprot.writeI32(struct.partitionnames.size());
- for (String _iter520 : struct.partitionnames)
+ for (String _iter536 : struct.partitionnames)
{
- oprot.writeString(_iter520);
+ oprot.writeString(_iter536);
}
}
}
@@ -722,13 +722,13 @@ public class AddDynamicPartitions implements org.apache.thrift.TBase<AddDynamicP
struct.tablename = iprot.readString();
struct.setTablenameIsSet(true);
{
- org.apache.thrift.protocol.TList _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.partitionnames = new ArrayList<String>(_list521.size);
- String _elem522;
- for (int _i523 = 0; _i523 < _list521.size; ++_i523)
+ org.apache.thrift.protocol.TList _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.partitionnames = new ArrayList<String>(_list537.size);
+ String _elem538;
+ for (int _i539 = 0; _i539 < _list537.size; ++_i539)
{
- _elem522 = iprot.readString();
- struct.partitionnames.add(_elem522);
+ _elem538 = iprot.readString();
+ struct.partitionnames.add(_elem538);
}
}
struct.setPartitionnamesIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java
new file mode 100644
index 0000000..43f7ca7
--- /dev/null
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.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)")
+public class AddForeignKeyRequest implements org.apache.thrift.TBase<AddForeignKeyRequest, AddForeignKeyRequest._Fields>, java.io.Serializable, Cloneable, Comparable<AddForeignKeyRequest> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddForeignKeyRequest");
+
+ private static final org.apache.thrift.protocol.TField FOREIGN_KEY_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("foreignKeyCols", 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 AddForeignKeyRequestStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new AddForeignKeyRequestTupleSchemeFactory());
+ }
+
+ private List<SQLForeignKey> foreignKeyCols; // 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 {
+ FOREIGN_KEY_COLS((short)1, "foreignKeyCols");
+
+ 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: // FOREIGN_KEY_COLS
+ return FOREIGN_KEY_COLS;
+ 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.FOREIGN_KEY_COLS, new org.apache.thrift.meta_data.FieldMetaData("foreignKeyCols", 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, SQLForeignKey.class))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AddForeignKeyRequest.class, metaDataMap);
+ }
+
+ public AddForeignKeyRequest() {
+ }
+
+ public AddForeignKeyRequest(
+ List<SQLForeignKey> foreignKeyCols)
+ {
+ this();
+ this.foreignKeyCols = foreignKeyCols;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public AddForeignKeyRequest(AddForeignKeyRequest other) {
+ if (other.isSetForeignKeyCols()) {
+ List<SQLForeignKey> __this__foreignKeyCols = new ArrayList<SQLForeignKey>(other.foreignKeyCols.size());
+ for (SQLForeignKey other_element : other.foreignKeyCols) {
+ __this__foreignKeyCols.add(new SQLForeignKey(other_element));
+ }
+ this.foreignKeyCols = __this__foreignKeyCols;
+ }
+ }
+
+ public AddForeignKeyRequest deepCopy() {
+ return new AddForeignKeyRequest(this);
+ }
+
+ @Override
+ public void clear() {
+ this.foreignKeyCols = null;
+ }
+
+ public int getForeignKeyColsSize() {
+ return (this.foreignKeyCols == null) ? 0 : this.foreignKeyCols.size();
+ }
+
+ public java.util.Iterator<SQLForeignKey> getForeignKeyColsIterator() {
+ return (this.foreignKeyCols == null) ? null : this.foreignKeyCols.iterator();
+ }
+
+ public void addToForeignKeyCols(SQLForeignKey elem) {
+ if (this.foreignKeyCols == null) {
+ this.foreignKeyCols = new ArrayList<SQLForeignKey>();
+ }
+ this.foreignKeyCols.add(elem);
+ }
+
+ public List<SQLForeignKey> getForeignKeyCols() {
+ return this.foreignKeyCols;
+ }
+
+ public void setForeignKeyCols(List<SQLForeignKey> foreignKeyCols) {
+ this.foreignKeyCols = foreignKeyCols;
+ }
+
+ public void unsetForeignKeyCols() {
+ this.foreignKeyCols = null;
+ }
+
+ /** Returns true if field foreignKeyCols is set (has been assigned a value) and false otherwise */
+ public boolean isSetForeignKeyCols() {
+ return this.foreignKeyCols != null;
+ }
+
+ public void setForeignKeyColsIsSet(boolean value) {
+ if (!value) {
+ this.foreignKeyCols = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case FOREIGN_KEY_COLS:
+ if (value == null) {
+ unsetForeignKeyCols();
+ } else {
+ setForeignKeyCols((List<SQLForeignKey>)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case FOREIGN_KEY_COLS:
+ return getForeignKeyCols();
+
+ }
+ 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 FOREIGN_KEY_COLS:
+ return isSetForeignKeyCols();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof AddForeignKeyRequest)
+ return this.equals((AddForeignKeyRequest)that);
+ return false;
+ }
+
+ public boolean equals(AddForeignKeyRequest that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_foreignKeyCols = true && this.isSetForeignKeyCols();
+ boolean that_present_foreignKeyCols = true && that.isSetForeignKeyCols();
+ if (this_present_foreignKeyCols || that_present_foreignKeyCols) {
+ if (!(this_present_foreignKeyCols && that_present_foreignKeyCols))
+ return false;
+ if (!this.foreignKeyCols.equals(that.foreignKeyCols))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_foreignKeyCols = true && (isSetForeignKeyCols());
+ list.add(present_foreignKeyCols);
+ if (present_foreignKeyCols)
+ list.add(foreignKeyCols);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(AddForeignKeyRequest other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetForeignKeyCols()).compareTo(other.isSetForeignKeyCols());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetForeignKeyCols()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.foreignKeyCols, other.foreignKeyCols);
+ 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("AddForeignKeyRequest(");
+ boolean first = true;
+
+ sb.append("foreignKeyCols:");
+ if (this.foreignKeyCols == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.foreignKeyCols);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ if (!isSetForeignKeyCols()) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'foreignKeyCols' 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 AddForeignKeyRequestStandardSchemeFactory implements SchemeFactory {
+ public AddForeignKeyRequestStandardScheme getScheme() {
+ return new AddForeignKeyRequestStandardScheme();
+ }
+ }
+
+ private static class AddForeignKeyRequestStandardScheme extends StandardScheme<AddForeignKeyRequest> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, AddForeignKeyRequest 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: // FOREIGN_KEY_COLS
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list346 = iprot.readListBegin();
+ struct.foreignKeyCols = new ArrayList<SQLForeignKey>(_list346.size);
+ SQLForeignKey _elem347;
+ for (int _i348 = 0; _i348 < _list346.size; ++_i348)
+ {
+ _elem347 = new SQLForeignKey();
+ _elem347.read(iprot);
+ struct.foreignKeyCols.add(_elem347);
+ }
+ iprot.readListEnd();
+ }
+ struct.setForeignKeyColsIsSet(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, AddForeignKeyRequest struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.foreignKeyCols != null) {
+ oprot.writeFieldBegin(FOREIGN_KEY_COLS_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeyCols.size()));
+ for (SQLForeignKey _iter349 : struct.foreignKeyCols)
+ {
+ _iter349.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class AddForeignKeyRequestTupleSchemeFactory implements SchemeFactory {
+ public AddForeignKeyRequestTupleScheme getScheme() {
+ return new AddForeignKeyRequestTupleScheme();
+ }
+ }
+
+ private static class AddForeignKeyRequestTupleScheme extends TupleScheme<AddForeignKeyRequest> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, AddForeignKeyRequest struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ {
+ oprot.writeI32(struct.foreignKeyCols.size());
+ for (SQLForeignKey _iter350 : struct.foreignKeyCols)
+ {
+ _iter350.write(oprot);
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, AddForeignKeyRequest struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ {
+ org.apache.thrift.protocol.TList _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.foreignKeyCols = new ArrayList<SQLForeignKey>(_list351.size);
+ SQLForeignKey _elem352;
+ for (int _i353 = 0; _i353 < _list351.size; ++_i353)
+ {
+ _elem352 = new SQLForeignKey();
+ _elem352.read(iprot);
+ struct.foreignKeyCols.add(_elem352);
+ }
+ }
+ struct.setForeignKeyColsIsSet(true);
+ }
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java
index 6df6fa5..da23f72 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java
@@ -704,14 +704,14 @@ public class AddPartitionsRequest implements org.apache.thrift.TBase<AddPartitio
case 3: // PARTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list404 = iprot.readListBegin();
- struct.parts = new ArrayList<Partition>(_list404.size);
- Partition _elem405;
- for (int _i406 = 0; _i406 < _list404.size; ++_i406)
+ org.apache.thrift.protocol.TList _list420 = iprot.readListBegin();
+ struct.parts = new ArrayList<Partition>(_list420.size);
+ Partition _elem421;
+ for (int _i422 = 0; _i422 < _list420.size; ++_i422)
{
- _elem405 = new Partition();
- _elem405.read(iprot);
- struct.parts.add(_elem405);
+ _elem421 = new Partition();
+ _elem421.read(iprot);
+ struct.parts.add(_elem421);
}
iprot.readListEnd();
}
@@ -763,9 +763,9 @@ public class AddPartitionsRequest implements org.apache.thrift.TBase<AddPartitio
oprot.writeFieldBegin(PARTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.parts.size()));
- for (Partition _iter407 : struct.parts)
+ for (Partition _iter423 : struct.parts)
{
- _iter407.write(oprot);
+ _iter423.write(oprot);
}
oprot.writeListEnd();
}
@@ -800,9 +800,9 @@ public class AddPartitionsRequest implements org.apache.thrift.TBase<AddPartitio
oprot.writeString(struct.tblName);
{
oprot.writeI32(struct.parts.size());
- for (Partition _iter408 : struct.parts)
+ for (Partition _iter424 : struct.parts)
{
- _iter408.write(oprot);
+ _iter424.write(oprot);
}
}
oprot.writeBool(struct.ifNotExists);
@@ -824,14 +824,14 @@ public class AddPartitionsRequest implements org.apache.thrift.TBase<AddPartitio
struct.tblName = iprot.readString();
struct.setTblNameIsSet(true);
{
- org.apache.thrift.protocol.TList _list409 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.parts = new ArrayList<Partition>(_list409.size);
- Partition _elem410;
- for (int _i411 = 0; _i411 < _list409.size; ++_i411)
+ org.apache.thrift.protocol.TList _list425 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.parts = new ArrayList<Partition>(_list425.size);
+ Partition _elem426;
+ for (int _i427 = 0; _i427 < _list425.size; ++_i427)
{
- _elem410 = new Partition();
- _elem410.read(iprot);
- struct.parts.add(_elem410);
+ _elem426 = new Partition();
+ _elem426.read(iprot);
+ struct.parts.add(_elem426);
}
}
struct.setPartsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java
index 521ed38..bfd483e 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java
@@ -346,14 +346,14 @@ public class AddPartitionsResult implements org.apache.thrift.TBase<AddPartition
case 1: // PARTITIONS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list396 = iprot.readListBegin();
- struct.partitions = new ArrayList<Partition>(_list396.size);
- Partition _elem397;
- for (int _i398 = 0; _i398 < _list396.size; ++_i398)
+ org.apache.thrift.protocol.TList _list412 = iprot.readListBegin();
+ struct.partitions = new ArrayList<Partition>(_list412.size);
+ Partition _elem413;
+ for (int _i414 = 0; _i414 < _list412.size; ++_i414)
{
- _elem397 = new Partition();
- _elem397.read(iprot);
- struct.partitions.add(_elem397);
+ _elem413 = new Partition();
+ _elem413.read(iprot);
+ struct.partitions.add(_elem413);
}
iprot.readListEnd();
}
@@ -380,9 +380,9 @@ public class AddPartitionsResult implements org.apache.thrift.TBase<AddPartition
oprot.writeFieldBegin(PARTITIONS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size()));
- for (Partition _iter399 : struct.partitions)
+ for (Partition _iter415 : struct.partitions)
{
- _iter399.write(oprot);
+ _iter415.write(oprot);
}
oprot.writeListEnd();
}
@@ -414,9 +414,9 @@ public class AddPartitionsResult implements org.apache.thrift.TBase<AddPartition
if (struct.isSetPartitions()) {
{
oprot.writeI32(struct.partitions.size());
- for (Partition _iter400 : struct.partitions)
+ for (Partition _iter416 : struct.partitions)
{
- _iter400.write(oprot);
+ _iter416.write(oprot);
}
}
}
@@ -428,14 +428,14 @@ public class AddPartitionsResult implements org.apache.thrift.TBase<AddPartition
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list401 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.partitions = new ArrayList<Partition>(_list401.size);
- Partition _elem402;
- for (int _i403 = 0; _i403 < _list401.size; ++_i403)
+ org.apache.thrift.protocol.TList _list417 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.partitions = new ArrayList<Partition>(_list417.size);
+ Partition _elem418;
+ for (int _i419 = 0; _i419 < _list417.size; ++_i419)
{
- _elem402 = new Partition();
- _elem402.read(iprot);
- struct.partitions.add(_elem402);
+ _elem418 = new Partition();
+ _elem418.read(iprot);
+ struct.partitions.add(_elem418);
}
}
struct.setPartitionsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java
new file mode 100644
index 0000000..987b031
--- /dev/null
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.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)")
+public class AddPrimaryKeyRequest implements org.apache.thrift.TBase<AddPrimaryKeyRequest, AddPrimaryKeyRequest._Fields>, java.io.Serializable, Cloneable, Comparable<AddPrimaryKeyRequest> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddPrimaryKeyRequest");
+
+ private static final org.apache.thrift.protocol.TField PRIMARY_KEY_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("primaryKeyCols", 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 AddPrimaryKeyRequestStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new AddPrimaryKeyRequestTupleSchemeFactory());
+ }
+
+ private List<SQLPrimaryKey> primaryKeyCols; // 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 {
+ PRIMARY_KEY_COLS((short)1, "primaryKeyCols");
+
+ 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: // PRIMARY_KEY_COLS
+ return PRIMARY_KEY_COLS;
+ 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.PRIMARY_KEY_COLS, new org.apache.thrift.meta_data.FieldMetaData("primaryKeyCols", 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, SQLPrimaryKey.class))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AddPrimaryKeyRequest.class, metaDataMap);
+ }
+
+ public AddPrimaryKeyRequest() {
+ }
+
+ public AddPrimaryKeyRequest(
+ List<SQLPrimaryKey> primaryKeyCols)
+ {
+ this();
+ this.primaryKeyCols = primaryKeyCols;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public AddPrimaryKeyRequest(AddPrimaryKeyRequest other) {
+ if (other.isSetPrimaryKeyCols()) {
+ List<SQLPrimaryKey> __this__primaryKeyCols = new ArrayList<SQLPrimaryKey>(other.primaryKeyCols.size());
+ for (SQLPrimaryKey other_element : other.primaryKeyCols) {
+ __this__primaryKeyCols.add(new SQLPrimaryKey(other_element));
+ }
+ this.primaryKeyCols = __this__primaryKeyCols;
+ }
+ }
+
+ public AddPrimaryKeyRequest deepCopy() {
+ return new AddPrimaryKeyRequest(this);
+ }
+
+ @Override
+ public void clear() {
+ this.primaryKeyCols = null;
+ }
+
+ public int getPrimaryKeyColsSize() {
+ return (this.primaryKeyCols == null) ? 0 : this.primaryKeyCols.size();
+ }
+
+ public java.util.Iterator<SQLPrimaryKey> getPrimaryKeyColsIterator() {
+ return (this.primaryKeyCols == null) ? null : this.primaryKeyCols.iterator();
+ }
+
+ public void addToPrimaryKeyCols(SQLPrimaryKey elem) {
+ if (this.primaryKeyCols == null) {
+ this.primaryKeyCols = new ArrayList<SQLPrimaryKey>();
+ }
+ this.primaryKeyCols.add(elem);
+ }
+
+ public List<SQLPrimaryKey> getPrimaryKeyCols() {
+ return this.primaryKeyCols;
+ }
+
+ public void setPrimaryKeyCols(List<SQLPrimaryKey> primaryKeyCols) {
+ this.primaryKeyCols = primaryKeyCols;
+ }
+
+ public void unsetPrimaryKeyCols() {
+ this.primaryKeyCols = null;
+ }
+
+ /** Returns true if field primaryKeyCols is set (has been assigned a value) and false otherwise */
+ public boolean isSetPrimaryKeyCols() {
+ return this.primaryKeyCols != null;
+ }
+
+ public void setPrimaryKeyColsIsSet(boolean value) {
+ if (!value) {
+ this.primaryKeyCols = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case PRIMARY_KEY_COLS:
+ if (value == null) {
+ unsetPrimaryKeyCols();
+ } else {
+ setPrimaryKeyCols((List<SQLPrimaryKey>)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case PRIMARY_KEY_COLS:
+ return getPrimaryKeyCols();
+
+ }
+ 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 PRIMARY_KEY_COLS:
+ return isSetPrimaryKeyCols();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof AddPrimaryKeyRequest)
+ return this.equals((AddPrimaryKeyRequest)that);
+ return false;
+ }
+
+ public boolean equals(AddPrimaryKeyRequest that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_primaryKeyCols = true && this.isSetPrimaryKeyCols();
+ boolean that_present_primaryKeyCols = true && that.isSetPrimaryKeyCols();
+ if (this_present_primaryKeyCols || that_present_primaryKeyCols) {
+ if (!(this_present_primaryKeyCols && that_present_primaryKeyCols))
+ return false;
+ if (!this.primaryKeyCols.equals(that.primaryKeyCols))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_primaryKeyCols = true && (isSetPrimaryKeyCols());
+ list.add(present_primaryKeyCols);
+ if (present_primaryKeyCols)
+ list.add(primaryKeyCols);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(AddPrimaryKeyRequest other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetPrimaryKeyCols()).compareTo(other.isSetPrimaryKeyCols());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetPrimaryKeyCols()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.primaryKeyCols, other.primaryKeyCols);
+ 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("AddPrimaryKeyRequest(");
+ boolean first = true;
+
+ sb.append("primaryKeyCols:");
+ if (this.primaryKeyCols == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.primaryKeyCols);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ if (!isSetPrimaryKeyCols()) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'primaryKeyCols' 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 AddPrimaryKeyRequestStandardSchemeFactory implements SchemeFactory {
+ public AddPrimaryKeyRequestStandardScheme getScheme() {
+ return new AddPrimaryKeyRequestStandardScheme();
+ }
+ }
+
+ private static class AddPrimaryKeyRequestStandardScheme extends StandardScheme<AddPrimaryKeyRequest> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPrimaryKeyRequest 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: // PRIMARY_KEY_COLS
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list338 = iprot.readListBegin();
+ struct.primaryKeyCols = new ArrayList<SQLPrimaryKey>(_list338.size);
+ SQLPrimaryKey _elem339;
+ for (int _i340 = 0; _i340 < _list338.size; ++_i340)
+ {
+ _elem339 = new SQLPrimaryKey();
+ _elem339.read(iprot);
+ struct.primaryKeyCols.add(_elem339);
+ }
+ iprot.readListEnd();
+ }
+ struct.setPrimaryKeyColsIsSet(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, AddPrimaryKeyRequest struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.primaryKeyCols != null) {
+ oprot.writeFieldBegin(PRIMARY_KEY_COLS_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.primaryKeyCols.size()));
+ for (SQLPrimaryKey _iter341 : struct.primaryKeyCols)
+ {
+ _iter341.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class AddPrimaryKeyRequestTupleSchemeFactory implements SchemeFactory {
+ public AddPrimaryKeyRequestTupleScheme getScheme() {
+ return new AddPrimaryKeyRequestTupleScheme();
+ }
+ }
+
+ private static class AddPrimaryKeyRequestTupleScheme extends TupleScheme<AddPrimaryKeyRequest> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, AddPrimaryKeyRequest struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ {
+ oprot.writeI32(struct.primaryKeyCols.size());
+ for (SQLPrimaryKey _iter342 : struct.primaryKeyCols)
+ {
+ _iter342.write(oprot);
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, AddPrimaryKeyRequest struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ {
+ org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.primaryKeyCols = new ArrayList<SQLPrimaryKey>(_list343.size);
+ SQLPrimaryKey _elem344;
+ for (int _i345 = 0; _i345 < _list343.size; ++_i345)
+ {
+ _elem344 = new SQLPrimaryKey();
+ _elem344.read(iprot);
+ struct.primaryKeyCols.add(_elem344);
+ }
+ }
+ struct.setPrimaryKeyColsIsSet(true);
+ }
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java
index a60ab7e..f71a3ca 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java
@@ -351,13 +351,13 @@ public class ClearFileMetadataRequest implements org.apache.thrift.TBase<ClearFi
case 1: // FILE_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list600 = iprot.readListBegin();
- struct.fileIds = new ArrayList<Long>(_list600.size);
- long _elem601;
- for (int _i602 = 0; _i602 < _list600.size; ++_i602)
+ org.apache.thrift.protocol.TList _list616 = iprot.readListBegin();
+ struct.fileIds = new ArrayList<Long>(_list616.size);
+ long _elem617;
+ for (int _i618 = 0; _i618 < _list616.size; ++_i618)
{
- _elem601 = iprot.readI64();
- struct.fileIds.add(_elem601);
+ _elem617 = iprot.readI64();
+ struct.fileIds.add(_elem617);
}
iprot.readListEnd();
}
@@ -383,9 +383,9 @@ public class ClearFileMetadataRequest implements org.apache.thrift.TBase<ClearFi
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 _iter603 : struct.fileIds)
+ for (long _iter619 : struct.fileIds)
{
- oprot.writeI64(_iter603);
+ oprot.writeI64(_iter619);
}
oprot.writeListEnd();
}
@@ -410,9 +410,9 @@ public class ClearFileMetadataRequest implements org.apache.thrift.TBase<ClearFi
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.fileIds.size());
- for (long _iter604 : struct.fileIds)
+ for (long _iter620 : struct.fileIds)
{
- oprot.writeI64(_iter604);
+ oprot.writeI64(_iter620);
}
}
}
@@ -421,13 +421,13 @@ public class ClearFileMetadataRequest implements org.apache.thrift.TBase<ClearFi
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 _list605 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.fileIds = new ArrayList<Long>(_list605.size);
- long _elem606;
- for (int _i607 = 0; _i607 < _list605.size; ++_i607)
+ org.apache.thrift.protocol.TList _list621 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.fileIds = new ArrayList<Long>(_list621.size);
+ long _elem622;
+ for (int _i623 = 0; _i623 < _list621.size; ++_i623)
{
- _elem606 = iprot.readI64();
- struct.fileIds.add(_elem606);
+ _elem622 = iprot.readI64();
+ struct.fileIds.add(_elem622);
}
}
struct.setFileIdsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java
index a70730a..96cfbd2 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java
@@ -346,14 +346,14 @@ public class DropPartitionsResult implements org.apache.thrift.TBase<DropPartiti
case 1: // PARTITIONS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list412 = iprot.readListBegin();
- struct.partitions = new ArrayList<Partition>(_list412.size);
- Partition _elem413;
- for (int _i414 = 0; _i414 < _list412.size; ++_i414)
+ org.apache.thrift.protocol.TList _list428 = iprot.readListBegin();
+ struct.partitions = new ArrayList<Partition>(_list428.size);
+ Partition _elem429;
+ for (int _i430 = 0; _i430 < _list428.size; ++_i430)
{
- _elem413 = new Partition();
- _elem413.read(iprot);
- struct.partitions.add(_elem413);
+ _elem429 = new Partition();
+ _elem429.read(iprot);
+ struct.partitions.add(_elem429);
}
iprot.readListEnd();
}
@@ -380,9 +380,9 @@ public class DropPartitionsResult implements org.apache.thrift.TBase<DropPartiti
oprot.writeFieldBegin(PARTITIONS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size()));
- for (Partition _iter415 : struct.partitions)
+ for (Partition _iter431 : struct.partitions)
{
- _iter415.write(oprot);
+ _iter431.write(oprot);
}
oprot.writeListEnd();
}
@@ -414,9 +414,9 @@ public class DropPartitionsResult implements org.apache.thrift.TBase<DropPartiti
if (struct.isSetPartitions()) {
{
oprot.writeI32(struct.partitions.size());
- for (Partition _iter416 : struct.partitions)
+ for (Partition _iter432 : struct.partitions)
{
- _iter416.write(oprot);
+ _iter432.write(oprot);
}
}
}
@@ -428,14 +428,14 @@ public class DropPartitionsResult implements org.apache.thrift.TBase<DropPartiti
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list417 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.partitions = new ArrayList<Partition>(_list417.size);
- Partition _elem418;
- for (int _i419 = 0; _i419 < _list417.size; ++_i419)
+ org.apache.thrift.protocol.TList _list433 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.partitions = new ArrayList<Partition>(_list433.size);
+ Partition _elem434;
+ for (int _i435 = 0; _i435 < _list433.size; ++_i435)
{
- _elem418 = new Partition();
- _elem418.read(iprot);
- struct.partitions.add(_elem418);
+ _elem434 = new Partition();
+ _elem434.read(iprot);
+ struct.partitions.add(_elem434);
}
}
struct.setPartitionsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java
index ffdfa9b..763fe5e 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java
@@ -713,13 +713,13 @@ public class FireEventRequest implements org.apache.thrift.TBase<FireEventReques
case 5: // PARTITION_VALS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list540 = iprot.readListBegin();
- struct.partitionVals = new ArrayList<String>(_list540.size);
- String _elem541;
- for (int _i542 = 0; _i542 < _list540.size; ++_i542)
+ org.apache.thrift.protocol.TList _list556 = iprot.readListBegin();
+ struct.partitionVals = new ArrayList<String>(_list556.size);
+ String _elem557;
+ for (int _i558 = 0; _i558 < _list556.size; ++_i558)
{
- _elem541 = iprot.readString();
- struct.partitionVals.add(_elem541);
+ _elem557 = iprot.readString();
+ struct.partitionVals.add(_elem557);
}
iprot.readListEnd();
}
@@ -768,9 +768,9 @@ public class FireEventRequest implements org.apache.thrift.TBase<FireEventReques
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 _iter543 : struct.partitionVals)
+ for (String _iter559 : struct.partitionVals)
{
- oprot.writeString(_iter543);
+ oprot.writeString(_iter559);
}
oprot.writeListEnd();
}
@@ -816,9 +816,9 @@ public class FireEventRequest implements org.apache.thrift.TBase<FireEventReques
if (struct.isSetPartitionVals()) {
{
oprot.writeI32(struct.partitionVals.size());
- for (String _iter544 : struct.partitionVals)
+ for (String _iter560 : struct.partitionVals)
{
- oprot.writeString(_iter544);
+ oprot.writeString(_iter560);
}
}
}
@@ -843,13 +843,13 @@ public class FireEventRequest implements org.apache.thrift.TBase<FireEventReques
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.partitionVals = new ArrayList<String>(_list545.size);
- String _elem546;
- for (int _i547 = 0; _i547 < _list545.size; ++_i547)
+ org.apache.thrift.protocol.TList _list561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.partitionVals = new ArrayList<String>(_list561.size);
+ String _elem562;
+ for (int _i563 = 0; _i563 < _list561.size; ++_i563)
{
- _elem546 = iprot.readString();
- struct.partitionVals.add(_elem546);
+ _elem562 = iprot.readString();
+ struct.partitionVals.add(_elem562);
}
}
struct.setPartitionValsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java
index 5cf2f59..56a4d30 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java
@@ -997,14 +997,14 @@ public class Function implements org.apache.thrift.TBase<Function, Function._Fie
case 8: // RESOURCE_URIS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list436 = iprot.readListBegin();
- struct.resourceUris = new ArrayList<ResourceUri>(_list436.size);
- ResourceUri _elem437;
- for (int _i438 = 0; _i438 < _list436.size; ++_i438)
+ org.apache.thrift.protocol.TList _list452 = iprot.readListBegin();
+ struct.resourceUris = new ArrayList<ResourceUri>(_list452.size);
+ ResourceUri _elem453;
+ for (int _i454 = 0; _i454 < _list452.size; ++_i454)
{
- _elem437 = new ResourceUri();
- _elem437.read(iprot);
- struct.resourceUris.add(_elem437);
+ _elem453 = new ResourceUri();
+ _elem453.read(iprot);
+ struct.resourceUris.add(_elem453);
}
iprot.readListEnd();
}
@@ -1063,9 +1063,9 @@ public class Function implements org.apache.thrift.TBase<Function, Function._Fie
oprot.writeFieldBegin(RESOURCE_URIS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourceUris.size()));
- for (ResourceUri _iter439 : struct.resourceUris)
+ for (ResourceUri _iter455 : struct.resourceUris)
{
- _iter439.write(oprot);
+ _iter455.write(oprot);
}
oprot.writeListEnd();
}
@@ -1138,9 +1138,9 @@ public class Function implements org.apache.thrift.TBase<Function, Function._Fie
if (struct.isSetResourceUris()) {
{
oprot.writeI32(struct.resourceUris.size());
- for (ResourceUri _iter440 : struct.resourceUris)
+ for (ResourceUri _iter456 : struct.resourceUris)
{
- _iter440.write(oprot);
+ _iter456.write(oprot);
}
}
}
@@ -1180,14 +1180,14 @@ public class Function implements org.apache.thrift.TBase<Function, Function._Fie
}
if (incoming.get(7)) {
{
- org.apache.thrift.protocol.TList _list441 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.resourceUris = new ArrayList<ResourceUri>(_list441.size);
- ResourceUri _elem442;
- for (int _i443 = 0; _i443 < _list441.size; ++_i443)
+ org.apache.thrift.protocol.TList _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.resourceUris = new ArrayList<ResourceUri>(_list457.size);
+ ResourceUri _elem458;
+ for (int _i459 = 0; _i459 < _list457.size; ++_i459)
{
- _elem442 = new ResourceUri();
- _elem442.read(iprot);
- struct.resourceUris.add(_elem442);
+ _elem458 = new ResourceUri();
+ _elem458.read(iprot);
+ struct.resourceUris.add(_elem458);
}
}
struct.setResourceUrisIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java
index a074515..c30e7b8 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java
@@ -346,14 +346,14 @@ public class GetAllFunctionsResponse implements org.apache.thrift.TBase<GetAllFu
case 1: // FUNCTIONS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list608 = iprot.readListBegin();
- struct.functions = new ArrayList<Function>(_list608.size);
- Function _elem609;
- for (int _i610 = 0; _i610 < _list608.size; ++_i610)
+ org.apache.thrift.protocol.TList _list624 = iprot.readListBegin();
+ struct.functions = new ArrayList<Function>(_list624.size);
+ Function _elem625;
+ for (int _i626 = 0; _i626 < _list624.size; ++_i626)
{
- _elem609 = new Function();
- _elem609.read(iprot);
- struct.functions.add(_elem609);
+ _elem625 = new Function();
+ _elem625.read(iprot);
+ struct.functions.add(_elem625);
}
iprot.readListEnd();
}
@@ -380,9 +380,9 @@ public class GetAllFunctionsResponse implements org.apache.thrift.TBase<GetAllFu
oprot.writeFieldBegin(FUNCTIONS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.functions.size()));
- for (Function _iter611 : struct.functions)
+ for (Function _iter627 : struct.functions)
{
- _iter611.write(oprot);
+ _iter627.write(oprot);
}
oprot.writeListEnd();
}
@@ -414,9 +414,9 @@ public class GetAllFunctionsResponse implements org.apache.thrift.TBase<GetAllFu
if (struct.isSetFunctions()) {
{
oprot.writeI32(struct.functions.size());
- for (Function _iter612 : struct.functions)
+ for (Function _iter628 : struct.functions)
{
- _iter612.write(oprot);
+ _iter628.write(oprot);
}
}
}
@@ -428,14 +428,14 @@ public class GetAllFunctionsResponse implements org.apache.thrift.TBase<GetAllFu
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list613 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.functions = new ArrayList<Function>(_list613.size);
- Function _elem614;
- for (int _i615 = 0; _i615 < _list613.size; ++_i615)
+ org.apache.thrift.protocol.TList _list629 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.functions = new ArrayList<Function>(_list629.size);
+ Function _elem630;
+ for (int _i631 = 0; _i631 < _list629.size; ++_i631)
{
- _elem614 = new Function();
- _elem614.read(iprot);
- struct.functions.add(_elem614);
+ _elem630 = new Function();
+ _elem630.read(iprot);
+ struct.functions.add(_elem630);
}
}
struct.setFunctionsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java
index 6df53bb..4ba95ba 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java
@@ -619,13 +619,13 @@ public class GetFileMetadataByExprRequest implements org.apache.thrift.TBase<Get
case 1: // FILE_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list558 = iprot.readListBegin();
- struct.fileIds = new ArrayList<Long>(_list558.size);
- long _elem559;
- for (int _i560 = 0; _i560 < _list558.size; ++_i560)
+ org.apache.thrift.protocol.TList _list574 = iprot.readListBegin();
+ struct.fileIds = new ArrayList<Long>(_list574.size);
+ long _elem575;
+ for (int _i576 = 0; _i576 < _list574.size; ++_i576)
{
- _elem559 = iprot.readI64();
- struct.fileIds.add(_elem559);
+ _elem575 = iprot.readI64();
+ struct.fileIds.add(_elem575);
}
iprot.readListEnd();
}
@@ -675,9 +675,9 @@ public class GetFileMetadataByExprRequest implements org.apache.thrift.TBase<Get
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 _iter561 : struct.fileIds)
+ for (long _iter577 : struct.fileIds)
{
- oprot.writeI64(_iter561);
+ oprot.writeI64(_iter577);
}
oprot.writeListEnd();
}
@@ -719,9 +719,9 @@ public class GetFileMetadataByExprRequest implements org.apache.thrift.TBase<Get
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.fileIds.size());
- for (long _iter562 : struct.fileIds)
+ for (long _iter578 : struct.fileIds)
{
- oprot.writeI64(_iter562);
+ oprot.writeI64(_iter578);
}
}
oprot.writeBinary(struct.expr);
@@ -745,13 +745,13 @@ public class GetFileMetadataByExprRequest implements org.apache.thrift.TBase<Get
public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprRequest struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
{
- org.apache.thrift.protocol.TList _list563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.fileIds = new ArrayList<Long>(_list563.size);
- long _elem564;
- for (int _i565 = 0; _i565 < _list563.size; ++_i565)
+ org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.fileIds = new ArrayList<Long>(_list579.size);
+ long _elem580;
+ for (int _i581 = 0; _i581 < _list579.size; ++_i581)
{
- _elem564 = iprot.readI64();
- struct.fileIds.add(_elem564);
+ _elem580 = iprot.readI64();
+ struct.fileIds.add(_elem580);
}
}
struct.setFileIdsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java
index c84e86b..2e0bd9c 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java
@@ -444,16 +444,16 @@ public class GetFileMetadataByExprResult implements org.apache.thrift.TBase<GetF
case 1: // METADATA
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map548 = iprot.readMapBegin();
- struct.metadata = new HashMap<Long,MetadataPpdResult>(2*_map548.size);
- long _key549;
- MetadataPpdResult _val550;
- for (int _i551 = 0; _i551 < _map548.size; ++_i551)
+ org.apache.thrift.protocol.TMap _map564 = iprot.readMapBegin();
+ struct.metadata = new HashMap<Long,MetadataPpdResult>(2*_map564.size);
+ long _key565;
+ MetadataPpdResult _val566;
+ for (int _i567 = 0; _i567 < _map564.size; ++_i567)
{
- _key549 = iprot.readI64();
- _val550 = new MetadataPpdResult();
- _val550.read(iprot);
- struct.metadata.put(_key549, _val550);
+ _key565 = iprot.readI64();
+ _val566 = new MetadataPpdResult();
+ _val566.read(iprot);
+ struct.metadata.put(_key565, _val566);
}
iprot.readMapEnd();
}
@@ -487,10 +487,10 @@ public class GetFileMetadataByExprResult implements org.apache.thrift.TBase<GetF
oprot.writeFieldBegin(METADATA_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.metadata.size()));
- for (Map.Entry<Long, MetadataPpdResult> _iter552 : struct.metadata.entrySet())
+ for (Map.Entry<Long, MetadataPpdResult> _iter568 : struct.metadata.entrySet())
{
- oprot.writeI64(_iter552.getKey());
- _iter552.getValue().write(oprot);
+ oprot.writeI64(_iter568.getKey());
+ _iter568.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -518,10 +518,10 @@ public class GetFileMetadataByExprResult implements org.apache.thrift.TBase<GetF
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.metadata.size());
- for (Map.Entry<Long, MetadataPpdResult> _iter553 : struct.metadata.entrySet())
+ for (Map.Entry<Long, MetadataPpdResult> _iter569 : struct.metadata.entrySet())
{
- oprot.writeI64(_iter553.getKey());
- _iter553.getValue().write(oprot);
+ oprot.writeI64(_iter569.getKey());
+ _iter569.getValue().write(oprot);
}
}
oprot.writeBool(struct.isSupported);
@@ -531,16 +531,16 @@ public class GetFileMetadataByExprResult implements org.apache.thrift.TBase<GetF
public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprResult struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
{
- org.apache.thrift.protocol.TMap _map554 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.metadata = new HashMap<Long,MetadataPpdResult>(2*_map554.size);
- long _key555;
- MetadataPpdResult _val556;
- for (int _i557 = 0; _i557 < _map554.size; ++_i557)
+ org.apache.thrift.protocol.TMap _map570 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.metadata = new HashMap<Long,MetadataPpdResult>(2*_map570.size);
+ long _key571;
+ MetadataPpdResult _val572;
+ for (int _i573 = 0; _i573 < _map570.size; ++_i573)
{
- _key555 = iprot.readI64();
- _val556 = new MetadataPpdResult();
- _val556.read(iprot);
- struct.metadata.put(_key555, _val556);
+ _key571 = iprot.readI64();
+ _val572 = new MetadataPpdResult();
+ _val572.read(iprot);
+ struct.metadata.put(_key571, _val572);
}
}
struct.setMetadataIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java
index c48f92f..c079ecd 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java
@@ -351,13 +351,13 @@ public class GetFileMetadataRequest implements org.apache.thrift.TBase<GetFileMe
case 1: // FILE_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list576 = iprot.readListBegin();
- struct.fileIds = new ArrayList<Long>(_list576.size);
- long _elem577;
- for (int _i578 = 0; _i578 < _list576.size; ++_i578)
+ org.apache.thrift.protocol.TList _list592 = iprot.readListBegin();
+ struct.fileIds = new ArrayList<Long>(_list592.size);
+ long _elem593;
+ for (int _i594 = 0; _i594 < _list592.size; ++_i594)
{
- _elem577 = iprot.readI64();
- struct.fileIds.add(_elem577);
+ _elem593 = iprot.readI64();
+ struct.fileIds.add(_elem593);
}
iprot.readListEnd();
}
@@ -383,9 +383,9 @@ public class GetFileMetadataRequest implements org.apache.thrift.TBase<GetFileMe
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 _iter579 : struct.fileIds)
+ for (long _iter595 : struct.fileIds)
{
- oprot.writeI64(_iter579);
+ oprot.writeI64(_iter595);
}
oprot.writeListEnd();
}
@@ -410,9 +410,9 @@ public class GetFileMetadataRequest implements org.apache.thrift.TBase<GetFileMe
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.fileIds.size());
- for (long _iter580 : struct.fileIds)
+ for (long _iter596 : struct.fileIds)
{
- oprot.writeI64(_iter580);
+ oprot.writeI64(_iter596);
}
}
}
@@ -421,13 +421,13 @@ public class GetFileMetadataRequest implements org.apache.thrift.TBase<GetFileMe
public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequest struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
{
- org.apache.thrift.protocol.TList _list581 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.fileIds = new ArrayList<Long>(_list581.size);
- long _elem582;
- for (int _i583 = 0; _i583 < _list581.size; ++_i583)
+ org.apache.thrift.protocol.TList _list597 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.fileIds = new ArrayList<Long>(_list597.size);
+ long _elem598;
+ for (int _i599 = 0; _i599 < _list597.size; ++_i599)
{
- _elem582 = iprot.readI64();
- struct.fileIds.add(_elem582);
+ _elem598 = iprot.readI64();
+ struct.fileIds.add(_elem598);
}
}
struct.setFileIdsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/b36f6a3a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java
index a722b93..fb2a64a 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java
@@ -433,15 +433,15 @@ public class GetFileMetadataResult implements org.apache.thrift.TBase<GetFileMet
case 1: // METADATA
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map566 = iprot.readMapBegin();
- struct.metadata = new HashMap<Long,ByteBuffer>(2*_map566.size);
- long _key567;
- ByteBuffer _val568;
- for (int _i569 = 0; _i569 < _map566.size; ++_i569)
+ org.apache.thrift.protocol.TMap _map582 = iprot.readMapBegin();
+ struct.metadata = new HashMap<Long,ByteBuffer>(2*_map582.size);
+ long _key583;
+ ByteBuffer _val584;
+ for (int _i585 = 0; _i585 < _map582.size; ++_i585)
{
- _key567 = iprot.readI64();
- _val568 = iprot.readBinary();
- struct.metadata.put(_key567, _val568);
+ _key583 = iprot.readI64();
+ _val584 = iprot.readBinary();
+ struct.metadata.put(_key583, _val584);
}
iprot.readMapEnd();
}
@@ -475,10 +475,10 @@ public class GetFileMetadataResult implements org.apache.thrift.TBase<GetFileMet
oprot.writeFieldBegin(METADATA_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.metadata.size()));
- for (Map.Entry<Long, ByteBuffer> _iter570 : struct.metadata.entrySet())
+ for (Map.Entry<Long, ByteBuffer> _iter586 : struct.metadata.entrySet())
{
- oprot.writeI64(_iter570.getKey());
- oprot.writeBinary(_iter570.getValue());
+ oprot.writeI64(_iter586.getKey());
+ oprot.writeBinary(_iter586.getValue());
}
oprot.writeMapEnd();
}
@@ -506,10 +506,10 @@ public class GetFileMetadataResult implements org.apache.thrift.TBase<GetFileMet
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.metadata.size());
- for (Map.Entry<Long, ByteBuffer> _iter571 : struct.metadata.entrySet())
+ for (Map.Entry<Long, ByteBuffer> _iter587 : struct.metadata.entrySet())
{
- oprot.writeI64(_iter571.getKey());
- oprot.writeBinary(_iter571.getValue());
+ oprot.writeI64(_iter587.getKey());
+ oprot.writeBinary(_iter587.getValue());
}
}
oprot.writeBool(struct.isSupported);
@@ -519,15 +519,15 @@ public class GetFileMetadataResult implements org.apache.thrift.TBase<GetFileMet
public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResult struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
{
- org.apache.thrift.protocol.TMap _map572 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.metadata = new HashMap<Long,ByteBuffer>(2*_map572.size);
- long _key573;
- ByteBuffer _val574;
- for (int _i575 = 0; _i575 < _map572.size; ++_i575)
+ org.apache.thrift.protocol.TMap _map588 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.metadata = new HashMap<Long,ByteBuffer>(2*_map588.size);
+ long _key589;
+ ByteBuffer _val590;
+ for (int _i591 = 0; _i591 < _map588.size; ++_i591)
{
- _key573 = iprot.readI64();
- _val574 = iprot.readBinary();
- struct.metadata.put(_key573, _val574);
+ _key589 = iprot.readI64();
+ _val590 = iprot.readBinary();
+ struct.metadata.put(_key589, _val590);
}
}
struct.setMetadataIsSet(true);