diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFieldsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFieldsRequest.java new file mode 100644 index 0000000000..7cf0eb3446 --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFieldsRequest.java @@ -0,0 +1,816 @@ +/** + * 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 GetFieldsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFieldsRequest"); + + 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)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField ENV_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("envContext", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField TABLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tableId", org.apache.thrift.protocol.TType.I64, (short)5); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetFieldsRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetFieldsRequestTupleSchemeFactory()); + } + + private String dbName; // required + private String tblName; // required + private EnvironmentContext envContext; // optional + private String validWriteIdList; // optional + private long tableId; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + DB_NAME((short)1, "dbName"), + TBL_NAME((short)2, "tblName"), + ENV_CONTEXT((short)3, "envContext"), + VALID_WRITE_ID_LIST((short)4, "validWriteIdList"), + TABLE_ID((short)5, "tableId"); + + private static final Map byName = new HashMap(); + + 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: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // ENV_CONTEXT + return ENV_CONTEXT; + case 4: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; + case 5: // TABLE_ID + return TABLE_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __TABLEID_ISSET_ID = 0; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.ENV_CONTEXT,_Fields.VALID_WRITE_ID_LIST,_Fields.TABLE_ID}; + 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.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.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ENV_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("envContext", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_ID, new org.apache.thrift.meta_data.FieldMetaData("tableId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetFieldsRequest.class, metaDataMap); + } + + public GetFieldsRequest() { + this.tableId = -1L; + + } + + public GetFieldsRequest( + String dbName, + String tblName) + { + this(); + this.dbName = dbName; + this.tblName = tblName; + } + + /** + * Performs a deep copy on other. + */ + public GetFieldsRequest(GetFieldsRequest other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbName()) { + this.dbName = other.dbName; + } + if (other.isSetTblName()) { + this.tblName = other.tblName; + } + if (other.isSetEnvContext()) { + this.envContext = new EnvironmentContext(other.envContext); + } + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } + this.tableId = other.tableId; + } + + public GetFieldsRequest deepCopy() { + return new GetFieldsRequest(this); + } + + @Override + public void clear() { + this.dbName = null; + this.tblName = null; + this.envContext = null; + this.validWriteIdList = null; + this.tableId = -1L; + + } + + 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 getTblName() { + return this.tblName; + } + + public void setTblName(String tblName) { + this.tblName = tblName; + } + + public void unsetTblName() { + this.tblName = null; + } + + /** Returns true if field tblName is set (has been assigned a value) and false otherwise */ + public boolean isSetTblName() { + return this.tblName != null; + } + + public void setTblNameIsSet(boolean value) { + if (!value) { + this.tblName = null; + } + } + + public EnvironmentContext getEnvContext() { + return this.envContext; + } + + public void setEnvContext(EnvironmentContext envContext) { + this.envContext = envContext; + } + + public void unsetEnvContext() { + this.envContext = null; + } + + /** Returns true if field envContext is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvContext() { + return this.envContext != null; + } + + public void setEnvContextIsSet(boolean value) { + if (!value) { + this.envContext = null; + } + } + + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + + public long getTableId() { + return this.tableId; + } + + public void setTableId(long tableId) { + this.tableId = tableId; + setTableIdIsSet(true); + } + + public void unsetTableId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + /** Returns true if field tableId is set (has been assigned a value) and false otherwise */ + public boolean isSetTableId() { + return EncodingUtils.testBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + public void setTableIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TABLEID_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDbName(); + } else { + setDbName((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTblName(); + } else { + setTblName((String)value); + } + break; + + case ENV_CONTEXT: + if (value == null) { + unsetEnvContext(); + } else { + setEnvContext((EnvironmentContext)value); + } + break; + + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + + case TABLE_ID: + if (value == null) { + unsetTableId(); + } else { + setTableId((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDbName(); + + case TBL_NAME: + return getTblName(); + + case ENV_CONTEXT: + return getEnvContext(); + + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + + case TABLE_ID: + return getTableId(); + + } + 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 DB_NAME: + return isSetDbName(); + case TBL_NAME: + return isSetTblName(); + case ENV_CONTEXT: + return isSetEnvContext(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); + case TABLE_ID: + return isSetTableId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetFieldsRequest) + return this.equals((GetFieldsRequest)that); + return false; + } + + public boolean equals(GetFieldsRequest that) { + if (that == null) + 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_tblName = true && this.isSetTblName(); + boolean that_present_tblName = true && that.isSetTblName(); + if (this_present_tblName || that_present_tblName) { + if (!(this_present_tblName && that_present_tblName)) + return false; + if (!this.tblName.equals(that.tblName)) + return false; + } + + boolean this_present_envContext = true && this.isSetEnvContext(); + boolean that_present_envContext = true && that.isSetEnvContext(); + if (this_present_envContext || that_present_envContext) { + if (!(this_present_envContext && that_present_envContext)) + return false; + if (!this.envContext.equals(that.envContext)) + return false; + } + + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + + boolean this_present_tableId = true && this.isSetTableId(); + boolean that_present_tableId = true && that.isSetTableId(); + if (this_present_tableId || that_present_tableId) { + if (!(this_present_tableId && that_present_tableId)) + return false; + if (this.tableId != that.tableId) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_dbName = true && (isSetDbName()); + list.add(present_dbName); + if (present_dbName) + list.add(dbName); + + boolean present_tblName = true && (isSetTblName()); + list.add(present_tblName); + if (present_tblName) + list.add(tblName); + + boolean present_envContext = true && (isSetEnvContext()); + list.add(present_envContext); + if (present_envContext) + list.add(envContext); + + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + + boolean present_tableId = true && (isSetTableId()); + list.add(present_tableId); + if (present_tableId) + list.add(tableId); + + return list.hashCode(); + } + + @Override + public int compareTo(GetFieldsRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + 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(isSetTblName()).compareTo(other.isSetTblName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTblName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvContext()).compareTo(other.isSetEnvContext()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvContext()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.envContext, other.envContext); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableId()).compareTo(other.isSetTableId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableId, other.tableId); + 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("GetFieldsRequest("); + boolean first = true; + + sb.append("dbName:"); + if (this.dbName == null) { + sb.append("null"); + } else { + sb.append(this.dbName); + } + first = false; + if (!first) sb.append(", "); + sb.append("tblName:"); + if (this.tblName == null) { + sb.append("null"); + } else { + sb.append(this.tblName); + } + first = false; + if (isSetEnvContext()) { + if (!first) sb.append(", "); + sb.append("envContext:"); + if (this.envContext == null) { + sb.append("null"); + } else { + sb.append(this.envContext); + } + first = false; + } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } + if (isSetTableId()) { + if (!first) sb.append(", "); + sb.append("tableId:"); + sb.append(this.tableId); + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetDbName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); + } + + if (!isSetTblName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + if (envContext != null) { + envContext.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class GetFieldsRequestStandardSchemeFactory implements SchemeFactory { + public GetFieldsRequestStandardScheme getScheme() { + return new GetFieldsRequestStandardScheme(); + } + } + + private static class GetFieldsRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetFieldsRequest 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: // 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 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ENV_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.envContext = new EnvironmentContext(); + struct.envContext.read(iprot); + struct.setEnvContextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(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, GetFieldsRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.dbName != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.dbName); + oprot.writeFieldEnd(); + } + if (struct.tblName != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tblName); + oprot.writeFieldEnd(); + } + if (struct.envContext != null) { + if (struct.isSetEnvContext()) { + oprot.writeFieldBegin(ENV_CONTEXT_FIELD_DESC); + struct.envContext.write(oprot); + oprot.writeFieldEnd(); + } + } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } + if (struct.isSetTableId()) { + oprot.writeFieldBegin(TABLE_ID_FIELD_DESC); + oprot.writeI64(struct.tableId); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetFieldsRequestTupleSchemeFactory implements SchemeFactory { + public GetFieldsRequestTupleScheme getScheme() { + return new GetFieldsRequestTupleScheme(); + } + } + + private static class GetFieldsRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetFieldsRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.dbName); + oprot.writeString(struct.tblName); + BitSet optionals = new BitSet(); + if (struct.isSetEnvContext()) { + optionals.set(0); + } + if (struct.isSetValidWriteIdList()) { + optionals.set(1); + } + if (struct.isSetTableId()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetEnvContext()) { + struct.envContext.write(oprot); + } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } + if (struct.isSetTableId()) { + oprot.writeI64(struct.tableId); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetFieldsRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.envContext = new EnvironmentContext(); + struct.envContext.read(iprot); + struct.setEnvContextIsSet(true); + } + if (incoming.get(1)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } + if (incoming.get(2)) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(true); + } + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFieldsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFieldsResponse.java new file mode 100644 index 0000000000..bfc9a6c205 --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFieldsResponse.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 GetFieldsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFieldsResponse"); + + private static final org.apache.thrift.protocol.TField FIELDS_FIELD_DESC = new org.apache.thrift.protocol.TField("fields", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetFieldsResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetFieldsResponseTupleSchemeFactory()); + } + + private List fields; // 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 { + FIELDS((short)1, "fields"); + + private static final Map byName = new HashMap(); + + 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: // FIELDS + return FIELDS; + 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.FIELDS, new org.apache.thrift.meta_data.FieldMetaData("fields", 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, FieldSchema.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetFieldsResponse.class, metaDataMap); + } + + public GetFieldsResponse() { + } + + public GetFieldsResponse( + List fields) + { + this(); + this.fields = fields; + } + + /** + * Performs a deep copy on other. + */ + public GetFieldsResponse(GetFieldsResponse other) { + if (other.isSetFields()) { + List __this__fields = new ArrayList(other.fields.size()); + for (FieldSchema other_element : other.fields) { + __this__fields.add(new FieldSchema(other_element)); + } + this.fields = __this__fields; + } + } + + public GetFieldsResponse deepCopy() { + return new GetFieldsResponse(this); + } + + @Override + public void clear() { + this.fields = null; + } + + public int getFieldsSize() { + return (this.fields == null) ? 0 : this.fields.size(); + } + + public java.util.Iterator getFieldsIterator() { + return (this.fields == null) ? null : this.fields.iterator(); + } + + public void addToFields(FieldSchema elem) { + if (this.fields == null) { + this.fields = new ArrayList(); + } + this.fields.add(elem); + } + + public List getFields() { + return this.fields; + } + + public void setFields(List fields) { + this.fields = fields; + } + + public void unsetFields() { + this.fields = null; + } + + /** Returns true if field fields is set (has been assigned a value) and false otherwise */ + public boolean isSetFields() { + return this.fields != null; + } + + public void setFieldsIsSet(boolean value) { + if (!value) { + this.fields = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case FIELDS: + if (value == null) { + unsetFields(); + } else { + setFields((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case FIELDS: + return getFields(); + + } + 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 FIELDS: + return isSetFields(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetFieldsResponse) + return this.equals((GetFieldsResponse)that); + return false; + } + + public boolean equals(GetFieldsResponse that) { + if (that == null) + return false; + + boolean this_present_fields = true && this.isSetFields(); + boolean that_present_fields = true && that.isSetFields(); + if (this_present_fields || that_present_fields) { + if (!(this_present_fields && that_present_fields)) + return false; + if (!this.fields.equals(that.fields)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_fields = true && (isSetFields()); + list.add(present_fields); + if (present_fields) + list.add(fields); + + return list.hashCode(); + } + + @Override + public int compareTo(GetFieldsResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetFields()).compareTo(other.isSetFields()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFields()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fields, other.fields); + 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("GetFieldsResponse("); + boolean first = true; + + sb.append("fields:"); + if (this.fields == null) { + sb.append("null"); + } else { + sb.append(this.fields); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetFields()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'fields' 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 GetFieldsResponseStandardSchemeFactory implements SchemeFactory { + public GetFieldsResponseStandardScheme getScheme() { + return new GetFieldsResponseStandardScheme(); + } + } + + private static class GetFieldsResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetFieldsResponse 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: // FIELDS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1208 = iprot.readListBegin(); + struct.fields = new ArrayList(_list1208.size); + FieldSchema _elem1209; + for (int _i1210 = 0; _i1210 < _list1208.size; ++_i1210) + { + _elem1209 = new FieldSchema(); + _elem1209.read(iprot); + struct.fields.add(_elem1209); + } + iprot.readListEnd(); + } + struct.setFieldsIsSet(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, GetFieldsResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.fields != null) { + oprot.writeFieldBegin(FIELDS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.fields.size())); + for (FieldSchema _iter1211 : struct.fields) + { + _iter1211.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetFieldsResponseTupleSchemeFactory implements SchemeFactory { + public GetFieldsResponseTupleScheme getScheme() { + return new GetFieldsResponseTupleScheme(); + } + } + + private static class GetFieldsResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetFieldsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.fields.size()); + for (FieldSchema _iter1212 : struct.fields) + { + _iter1212.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetFieldsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list1213 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.fields = new ArrayList(_list1213.size); + FieldSchema _elem1214; + for (int _i1215 = 0; _i1215 < _list1213.size; ++_i1215) + { + _elem1214 = new FieldSchema(); + _elem1214.read(iprot); + struct.fields.add(_elem1214); + } + } + struct.setFieldsIsSet(true); + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionNamesPsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionNamesPsRequest.java new file mode 100644 index 0000000000..d5e787ca6d --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionNamesPsRequest.java @@ -0,0 +1,961 @@ +/** + * 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 GetPartitionNamesPsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPartitionNamesPsRequest"); + + 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)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("partValues", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxParts", org.apache.thrift.protocol.TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField TABLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tableId", org.apache.thrift.protocol.TType.I64, (short)6); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetPartitionNamesPsRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetPartitionNamesPsRequestTupleSchemeFactory()); + } + + private String dbName; // required + private String tblName; // required + private List partValues; // optional + private short maxParts; // optional + private String validWriteIdList; // optional + private long tableId; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + DB_NAME((short)1, "dbName"), + TBL_NAME((short)2, "tblName"), + PART_VALUES((short)3, "partValues"), + MAX_PARTS((short)4, "maxParts"), + VALID_WRITE_ID_LIST((short)5, "validWriteIdList"), + TABLE_ID((short)6, "tableId"); + + private static final Map byName = new HashMap(); + + 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: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALUES + return PART_VALUES; + case 4: // MAX_PARTS + return MAX_PARTS; + case 5: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; + case 6: // TABLE_ID + return TABLE_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __MAXPARTS_ISSET_ID = 0; + private static final int __TABLEID_ISSET_ID = 1; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.PART_VALUES,_Fields.MAX_PARTS,_Fields.VALID_WRITE_ID_LIST,_Fields.TABLE_ID}; + 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.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.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALUES, new org.apache.thrift.meta_data.FieldMetaData("partValues", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("maxParts", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_ID, new org.apache.thrift.meta_data.FieldMetaData("tableId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPartitionNamesPsRequest.class, metaDataMap); + } + + public GetPartitionNamesPsRequest() { + this.maxParts = (short)-1; + + this.tableId = -1L; + + } + + public GetPartitionNamesPsRequest( + String dbName, + String tblName) + { + this(); + this.dbName = dbName; + this.tblName = tblName; + } + + /** + * Performs a deep copy on other. + */ + public GetPartitionNamesPsRequest(GetPartitionNamesPsRequest other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbName()) { + this.dbName = other.dbName; + } + if (other.isSetTblName()) { + this.tblName = other.tblName; + } + if (other.isSetPartValues()) { + List __this__partValues = new ArrayList(other.partValues); + this.partValues = __this__partValues; + } + this.maxParts = other.maxParts; + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } + this.tableId = other.tableId; + } + + public GetPartitionNamesPsRequest deepCopy() { + return new GetPartitionNamesPsRequest(this); + } + + @Override + public void clear() { + this.dbName = null; + this.tblName = null; + this.partValues = null; + this.maxParts = (short)-1; + + this.validWriteIdList = null; + this.tableId = -1L; + + } + + 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 getTblName() { + return this.tblName; + } + + public void setTblName(String tblName) { + this.tblName = tblName; + } + + public void unsetTblName() { + this.tblName = null; + } + + /** Returns true if field tblName is set (has been assigned a value) and false otherwise */ + public boolean isSetTblName() { + return this.tblName != null; + } + + public void setTblNameIsSet(boolean value) { + if (!value) { + this.tblName = null; + } + } + + public int getPartValuesSize() { + return (this.partValues == null) ? 0 : this.partValues.size(); + } + + public java.util.Iterator getPartValuesIterator() { + return (this.partValues == null) ? null : this.partValues.iterator(); + } + + public void addToPartValues(String elem) { + if (this.partValues == null) { + this.partValues = new ArrayList(); + } + this.partValues.add(elem); + } + + public List getPartValues() { + return this.partValues; + } + + public void setPartValues(List partValues) { + this.partValues = partValues; + } + + public void unsetPartValues() { + this.partValues = null; + } + + /** Returns true if field partValues is set (has been assigned a value) and false otherwise */ + public boolean isSetPartValues() { + return this.partValues != null; + } + + public void setPartValuesIsSet(boolean value) { + if (!value) { + this.partValues = null; + } + } + + public short getMaxParts() { + return this.maxParts; + } + + public void setMaxParts(short maxParts) { + this.maxParts = maxParts; + setMaxPartsIsSet(true); + } + + public void unsetMaxParts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXPARTS_ISSET_ID); + } + + /** Returns true if field maxParts is set (has been assigned a value) and false otherwise */ + public boolean isSetMaxParts() { + return EncodingUtils.testBit(__isset_bitfield, __MAXPARTS_ISSET_ID); + } + + public void setMaxPartsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXPARTS_ISSET_ID, value); + } + + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + + public long getTableId() { + return this.tableId; + } + + public void setTableId(long tableId) { + this.tableId = tableId; + setTableIdIsSet(true); + } + + public void unsetTableId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + /** Returns true if field tableId is set (has been assigned a value) and false otherwise */ + public boolean isSetTableId() { + return EncodingUtils.testBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + public void setTableIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TABLEID_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDbName(); + } else { + setDbName((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTblName(); + } else { + setTblName((String)value); + } + break; + + case PART_VALUES: + if (value == null) { + unsetPartValues(); + } else { + setPartValues((List)value); + } + break; + + case MAX_PARTS: + if (value == null) { + unsetMaxParts(); + } else { + setMaxParts((Short)value); + } + break; + + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + + case TABLE_ID: + if (value == null) { + unsetTableId(); + } else { + setTableId((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDbName(); + + case TBL_NAME: + return getTblName(); + + case PART_VALUES: + return getPartValues(); + + case MAX_PARTS: + return getMaxParts(); + + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + + case TABLE_ID: + return getTableId(); + + } + 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 DB_NAME: + return isSetDbName(); + case TBL_NAME: + return isSetTblName(); + case PART_VALUES: + return isSetPartValues(); + case MAX_PARTS: + return isSetMaxParts(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); + case TABLE_ID: + return isSetTableId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetPartitionNamesPsRequest) + return this.equals((GetPartitionNamesPsRequest)that); + return false; + } + + public boolean equals(GetPartitionNamesPsRequest that) { + if (that == null) + 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_tblName = true && this.isSetTblName(); + boolean that_present_tblName = true && that.isSetTblName(); + if (this_present_tblName || that_present_tblName) { + if (!(this_present_tblName && that_present_tblName)) + return false; + if (!this.tblName.equals(that.tblName)) + return false; + } + + boolean this_present_partValues = true && this.isSetPartValues(); + boolean that_present_partValues = true && that.isSetPartValues(); + if (this_present_partValues || that_present_partValues) { + if (!(this_present_partValues && that_present_partValues)) + return false; + if (!this.partValues.equals(that.partValues)) + return false; + } + + boolean this_present_maxParts = true && this.isSetMaxParts(); + boolean that_present_maxParts = true && that.isSetMaxParts(); + if (this_present_maxParts || that_present_maxParts) { + if (!(this_present_maxParts && that_present_maxParts)) + return false; + if (this.maxParts != that.maxParts) + return false; + } + + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + + boolean this_present_tableId = true && this.isSetTableId(); + boolean that_present_tableId = true && that.isSetTableId(); + if (this_present_tableId || that_present_tableId) { + if (!(this_present_tableId && that_present_tableId)) + return false; + if (this.tableId != that.tableId) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_dbName = true && (isSetDbName()); + list.add(present_dbName); + if (present_dbName) + list.add(dbName); + + boolean present_tblName = true && (isSetTblName()); + list.add(present_tblName); + if (present_tblName) + list.add(tblName); + + boolean present_partValues = true && (isSetPartValues()); + list.add(present_partValues); + if (present_partValues) + list.add(partValues); + + boolean present_maxParts = true && (isSetMaxParts()); + list.add(present_maxParts); + if (present_maxParts) + list.add(maxParts); + + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + + boolean present_tableId = true && (isSetTableId()); + list.add(present_tableId); + if (present_tableId) + list.add(tableId); + + return list.hashCode(); + } + + @Override + public int compareTo(GetPartitionNamesPsRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + 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(isSetTblName()).compareTo(other.isSetTblName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTblName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartValues()).compareTo(other.isSetPartValues()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartValues()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partValues, other.partValues); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMaxParts()).compareTo(other.isSetMaxParts()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMaxParts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxParts, other.maxParts); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableId()).compareTo(other.isSetTableId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableId, other.tableId); + 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("GetPartitionNamesPsRequest("); + boolean first = true; + + sb.append("dbName:"); + if (this.dbName == null) { + sb.append("null"); + } else { + sb.append(this.dbName); + } + first = false; + if (!first) sb.append(", "); + sb.append("tblName:"); + if (this.tblName == null) { + sb.append("null"); + } else { + sb.append(this.tblName); + } + first = false; + if (isSetPartValues()) { + if (!first) sb.append(", "); + sb.append("partValues:"); + if (this.partValues == null) { + sb.append("null"); + } else { + sb.append(this.partValues); + } + first = false; + } + if (isSetMaxParts()) { + if (!first) sb.append(", "); + sb.append("maxParts:"); + sb.append(this.maxParts); + first = false; + } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } + if (isSetTableId()) { + if (!first) sb.append(", "); + sb.append("tableId:"); + sb.append(this.tableId); + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetDbName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); + } + + if (!isSetTblName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class GetPartitionNamesPsRequestStandardSchemeFactory implements SchemeFactory { + public GetPartitionNamesPsRequestStandardScheme getScheme() { + return new GetPartitionNamesPsRequestStandardScheme(); + } + } + + private static class GetPartitionNamesPsRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionNamesPsRequest 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: // 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 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_VALUES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1240 = iprot.readListBegin(); + struct.partValues = new ArrayList(_list1240.size); + String _elem1241; + for (int _i1242 = 0; _i1242 < _list1240.size; ++_i1242) + { + _elem1241 = iprot.readString(); + struct.partValues.add(_elem1241); + } + iprot.readListEnd(); + } + struct.setPartValuesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.maxParts = iprot.readI16(); + struct.setMaxPartsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(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, GetPartitionNamesPsRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.dbName != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.dbName); + oprot.writeFieldEnd(); + } + if (struct.tblName != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tblName); + oprot.writeFieldEnd(); + } + if (struct.partValues != null) { + if (struct.isSetPartValues()) { + oprot.writeFieldBegin(PART_VALUES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partValues.size())); + for (String _iter1243 : struct.partValues) + { + oprot.writeString(_iter1243); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.isSetMaxParts()) { + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI16(struct.maxParts); + oprot.writeFieldEnd(); + } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } + if (struct.isSetTableId()) { + oprot.writeFieldBegin(TABLE_ID_FIELD_DESC); + oprot.writeI64(struct.tableId); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetPartitionNamesPsRequestTupleSchemeFactory implements SchemeFactory { + public GetPartitionNamesPsRequestTupleScheme getScheme() { + return new GetPartitionNamesPsRequestTupleScheme(); + } + } + + private static class GetPartitionNamesPsRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionNamesPsRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.dbName); + oprot.writeString(struct.tblName); + BitSet optionals = new BitSet(); + if (struct.isSetPartValues()) { + optionals.set(0); + } + if (struct.isSetMaxParts()) { + optionals.set(1); + } + if (struct.isSetValidWriteIdList()) { + optionals.set(2); + } + if (struct.isSetTableId()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetPartValues()) { + { + oprot.writeI32(struct.partValues.size()); + for (String _iter1244 : struct.partValues) + { + oprot.writeString(_iter1244); + } + } + } + if (struct.isSetMaxParts()) { + oprot.writeI16(struct.maxParts); + } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } + if (struct.isSetTableId()) { + oprot.writeI64(struct.tableId); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionNamesPsRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list1245 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partValues = new ArrayList(_list1245.size); + String _elem1246; + for (int _i1247 = 0; _i1247 < _list1245.size; ++_i1247) + { + _elem1246 = iprot.readString(); + struct.partValues.add(_elem1246); + } + } + struct.setPartValuesIsSet(true); + } + if (incoming.get(1)) { + struct.maxParts = iprot.readI16(); + struct.setMaxPartsIsSet(true); + } + if (incoming.get(2)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } + if (incoming.get(3)) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(true); + } + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionNamesPsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionNamesPsResponse.java new file mode 100644 index 0000000000..87ebd594c3 --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionNamesPsResponse.java @@ -0,0 +1,438 @@ +/** + * 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 GetPartitionNamesPsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPartitionNamesPsResponse"); + + private static final org.apache.thrift.protocol.TField NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("names", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetPartitionNamesPsResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetPartitionNamesPsResponseTupleSchemeFactory()); + } + + private List names; // 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 { + NAMES((short)1, "names"); + + private static final Map byName = new HashMap(); + + 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: // NAMES + return NAMES; + 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.NAMES, new org.apache.thrift.meta_data.FieldMetaData("names", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPartitionNamesPsResponse.class, metaDataMap); + } + + public GetPartitionNamesPsResponse() { + } + + public GetPartitionNamesPsResponse( + List names) + { + this(); + this.names = names; + } + + /** + * Performs a deep copy on other. + */ + public GetPartitionNamesPsResponse(GetPartitionNamesPsResponse other) { + if (other.isSetNames()) { + List __this__names = new ArrayList(other.names); + this.names = __this__names; + } + } + + public GetPartitionNamesPsResponse deepCopy() { + return new GetPartitionNamesPsResponse(this); + } + + @Override + public void clear() { + this.names = null; + } + + public int getNamesSize() { + return (this.names == null) ? 0 : this.names.size(); + } + + public java.util.Iterator getNamesIterator() { + return (this.names == null) ? null : this.names.iterator(); + } + + public void addToNames(String elem) { + if (this.names == null) { + this.names = new ArrayList(); + } + this.names.add(elem); + } + + public List getNames() { + return this.names; + } + + public void setNames(List names) { + this.names = names; + } + + public void unsetNames() { + this.names = null; + } + + /** Returns true if field names is set (has been assigned a value) and false otherwise */ + public boolean isSetNames() { + return this.names != null; + } + + public void setNamesIsSet(boolean value) { + if (!value) { + this.names = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case NAMES: + if (value == null) { + unsetNames(); + } else { + setNames((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case NAMES: + return getNames(); + + } + 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 NAMES: + return isSetNames(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetPartitionNamesPsResponse) + return this.equals((GetPartitionNamesPsResponse)that); + return false; + } + + public boolean equals(GetPartitionNamesPsResponse that) { + if (that == null) + return false; + + boolean this_present_names = true && this.isSetNames(); + boolean that_present_names = true && that.isSetNames(); + if (this_present_names || that_present_names) { + if (!(this_present_names && that_present_names)) + return false; + if (!this.names.equals(that.names)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_names = true && (isSetNames()); + list.add(present_names); + if (present_names) + list.add(names); + + return list.hashCode(); + } + + @Override + public int compareTo(GetPartitionNamesPsResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetNames()).compareTo(other.isSetNames()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNames()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.names, other.names); + 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("GetPartitionNamesPsResponse("); + boolean first = true; + + sb.append("names:"); + if (this.names == null) { + sb.append("null"); + } else { + sb.append(this.names); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetNames()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'names' 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 GetPartitionNamesPsResponseStandardSchemeFactory implements SchemeFactory { + public GetPartitionNamesPsResponseStandardScheme getScheme() { + return new GetPartitionNamesPsResponseStandardScheme(); + } + } + + private static class GetPartitionNamesPsResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionNamesPsResponse 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: // NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1248 = iprot.readListBegin(); + struct.names = new ArrayList(_list1248.size); + String _elem1249; + for (int _i1250 = 0; _i1250 < _list1248.size; ++_i1250) + { + _elem1249 = iprot.readString(); + struct.names.add(_elem1249); + } + iprot.readListEnd(); + } + struct.setNamesIsSet(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, GetPartitionNamesPsResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.names != null) { + oprot.writeFieldBegin(NAMES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); + for (String _iter1251 : struct.names) + { + oprot.writeString(_iter1251); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetPartitionNamesPsResponseTupleSchemeFactory implements SchemeFactory { + public GetPartitionNamesPsResponseTupleScheme getScheme() { + return new GetPartitionNamesPsResponseTupleScheme(); + } + } + + private static class GetPartitionNamesPsResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionNamesPsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.names.size()); + for (String _iter1252 : struct.names) + { + oprot.writeString(_iter1252); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionNamesPsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list1253 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1253.size); + String _elem1254; + for (int _i1255 = 0; _i1255 < _list1253.size; ++_i1255) + { + _elem1254 = iprot.readString(); + struct.names.add(_elem1254); + } + } + struct.setNamesIsSet(true); + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionRequest.java new file mode 100644 index 0000000000..5befde9c0d --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionRequest.java @@ -0,0 +1,855 @@ +/** + * 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 GetPartitionRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPartitionRequest"); + + 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)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("partVals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField TABLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tableId", org.apache.thrift.protocol.TType.I64, (short)5); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetPartitionRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetPartitionRequestTupleSchemeFactory()); + } + + private String dbName; // required + private String tblName; // required + private List partVals; // required + private String validWriteIdList; // optional + private long tableId; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + DB_NAME((short)1, "dbName"), + TBL_NAME((short)2, "tblName"), + PART_VALS((short)3, "partVals"), + VALID_WRITE_ID_LIST((short)4, "validWriteIdList"), + TABLE_ID((short)5, "tableId"); + + private static final Map byName = new HashMap(); + + 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: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; + case 4: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; + case 5: // TABLE_ID + return TABLE_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __TABLEID_ISSET_ID = 0; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.VALID_WRITE_ID_LIST,_Fields.TABLE_ID}; + 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.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.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("partVals", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_ID, new org.apache.thrift.meta_data.FieldMetaData("tableId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPartitionRequest.class, metaDataMap); + } + + public GetPartitionRequest() { + this.tableId = -1L; + + } + + public GetPartitionRequest( + String dbName, + String tblName, + List partVals) + { + this(); + this.dbName = dbName; + this.tblName = tblName; + this.partVals = partVals; + } + + /** + * Performs a deep copy on other. + */ + public GetPartitionRequest(GetPartitionRequest other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbName()) { + this.dbName = other.dbName; + } + if (other.isSetTblName()) { + this.tblName = other.tblName; + } + if (other.isSetPartVals()) { + List __this__partVals = new ArrayList(other.partVals); + this.partVals = __this__partVals; + } + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } + this.tableId = other.tableId; + } + + public GetPartitionRequest deepCopy() { + return new GetPartitionRequest(this); + } + + @Override + public void clear() { + this.dbName = null; + this.tblName = null; + this.partVals = null; + this.validWriteIdList = null; + this.tableId = -1L; + + } + + 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 getTblName() { + return this.tblName; + } + + public void setTblName(String tblName) { + this.tblName = tblName; + } + + public void unsetTblName() { + this.tblName = null; + } + + /** Returns true if field tblName is set (has been assigned a value) and false otherwise */ + public boolean isSetTblName() { + return this.tblName != null; + } + + public void setTblNameIsSet(boolean value) { + if (!value) { + this.tblName = null; + } + } + + public int getPartValsSize() { + return (this.partVals == null) ? 0 : this.partVals.size(); + } + + public java.util.Iterator getPartValsIterator() { + return (this.partVals == null) ? null : this.partVals.iterator(); + } + + public void addToPartVals(String elem) { + if (this.partVals == null) { + this.partVals = new ArrayList(); + } + this.partVals.add(elem); + } + + public List getPartVals() { + return this.partVals; + } + + public void setPartVals(List partVals) { + this.partVals = partVals; + } + + public void unsetPartVals() { + this.partVals = null; + } + + /** Returns true if field partVals is set (has been assigned a value) and false otherwise */ + public boolean isSetPartVals() { + return this.partVals != null; + } + + public void setPartValsIsSet(boolean value) { + if (!value) { + this.partVals = null; + } + } + + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + + public long getTableId() { + return this.tableId; + } + + public void setTableId(long tableId) { + this.tableId = tableId; + setTableIdIsSet(true); + } + + public void unsetTableId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + /** Returns true if field tableId is set (has been assigned a value) and false otherwise */ + public boolean isSetTableId() { + return EncodingUtils.testBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + public void setTableIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TABLEID_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDbName(); + } else { + setDbName((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTblName(); + } else { + setTblName((String)value); + } + break; + + case PART_VALS: + if (value == null) { + unsetPartVals(); + } else { + setPartVals((List)value); + } + break; + + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + + case TABLE_ID: + if (value == null) { + unsetTableId(); + } else { + setTableId((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDbName(); + + case TBL_NAME: + return getTblName(); + + case PART_VALS: + return getPartVals(); + + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + + case TABLE_ID: + return getTableId(); + + } + 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 DB_NAME: + return isSetDbName(); + case TBL_NAME: + return isSetTblName(); + case PART_VALS: + return isSetPartVals(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); + case TABLE_ID: + return isSetTableId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetPartitionRequest) + return this.equals((GetPartitionRequest)that); + return false; + } + + public boolean equals(GetPartitionRequest that) { + if (that == null) + 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_tblName = true && this.isSetTblName(); + boolean that_present_tblName = true && that.isSetTblName(); + if (this_present_tblName || that_present_tblName) { + if (!(this_present_tblName && that_present_tblName)) + return false; + if (!this.tblName.equals(that.tblName)) + return false; + } + + boolean this_present_partVals = true && this.isSetPartVals(); + boolean that_present_partVals = true && that.isSetPartVals(); + if (this_present_partVals || that_present_partVals) { + if (!(this_present_partVals && that_present_partVals)) + return false; + if (!this.partVals.equals(that.partVals)) + return false; + } + + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + + boolean this_present_tableId = true && this.isSetTableId(); + boolean that_present_tableId = true && that.isSetTableId(); + if (this_present_tableId || that_present_tableId) { + if (!(this_present_tableId && that_present_tableId)) + return false; + if (this.tableId != that.tableId) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_dbName = true && (isSetDbName()); + list.add(present_dbName); + if (present_dbName) + list.add(dbName); + + boolean present_tblName = true && (isSetTblName()); + list.add(present_tblName); + if (present_tblName) + list.add(tblName); + + boolean present_partVals = true && (isSetPartVals()); + list.add(present_partVals); + if (present_partVals) + list.add(partVals); + + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + + boolean present_tableId = true && (isSetTableId()); + list.add(present_tableId); + if (present_tableId) + list.add(tableId); + + return list.hashCode(); + } + + @Override + public int compareTo(GetPartitionRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + 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(isSetTblName()).compareTo(other.isSetTblName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTblName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartVals()).compareTo(other.isSetPartVals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartVals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partVals, other.partVals); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableId()).compareTo(other.isSetTableId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableId, other.tableId); + 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("GetPartitionRequest("); + boolean first = true; + + sb.append("dbName:"); + if (this.dbName == null) { + sb.append("null"); + } else { + sb.append(this.dbName); + } + first = false; + if (!first) sb.append(", "); + sb.append("tblName:"); + if (this.tblName == null) { + sb.append("null"); + } else { + sb.append(this.tblName); + } + first = false; + if (!first) sb.append(", "); + sb.append("partVals:"); + if (this.partVals == null) { + sb.append("null"); + } else { + sb.append(this.partVals); + } + first = false; + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } + if (isSetTableId()) { + if (!first) sb.append(", "); + sb.append("tableId:"); + sb.append(this.tableId); + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetDbName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); + } + + if (!isSetTblName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); + } + + if (!isSetPartVals()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'partVals' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class GetPartitionRequestStandardSchemeFactory implements SchemeFactory { + public GetPartitionRequestStandardScheme getScheme() { + return new GetPartitionRequestStandardScheme(); + } + } + + private static class GetPartitionRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionRequest 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: // 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 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1224 = iprot.readListBegin(); + struct.partVals = new ArrayList(_list1224.size); + String _elem1225; + for (int _i1226 = 0; _i1226 < _list1224.size; ++_i1226) + { + _elem1225 = iprot.readString(); + struct.partVals.add(_elem1225); + } + iprot.readListEnd(); + } + struct.setPartValsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(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, GetPartitionRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.dbName != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.dbName); + oprot.writeFieldEnd(); + } + if (struct.tblName != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tblName); + oprot.writeFieldEnd(); + } + if (struct.partVals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partVals.size())); + for (String _iter1227 : struct.partVals) + { + oprot.writeString(_iter1227); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } + if (struct.isSetTableId()) { + oprot.writeFieldBegin(TABLE_ID_FIELD_DESC); + oprot.writeI64(struct.tableId); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetPartitionRequestTupleSchemeFactory implements SchemeFactory { + public GetPartitionRequestTupleScheme getScheme() { + return new GetPartitionRequestTupleScheme(); + } + } + + private static class GetPartitionRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.dbName); + oprot.writeString(struct.tblName); + { + oprot.writeI32(struct.partVals.size()); + for (String _iter1228 : struct.partVals) + { + oprot.writeString(_iter1228); + } + } + BitSet optionals = new BitSet(); + if (struct.isSetValidWriteIdList()) { + optionals.set(0); + } + if (struct.isSetTableId()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } + if (struct.isSetTableId()) { + oprot.writeI64(struct.tableId); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + { + org.apache.thrift.protocol.TList _list1229 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partVals = new ArrayList(_list1229.size); + String _elem1230; + for (int _i1231 = 0; _i1231 < _list1229.size; ++_i1231) + { + _elem1230 = iprot.readString(); + struct.partVals.add(_elem1230); + } + } + struct.setPartValsIsSet(true); + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } + if (incoming.get(1)) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(true); + } + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionResponse.java new file mode 100644 index 0000000000..a30a5b3f0e --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionResponse.java @@ -0,0 +1,394 @@ +/** + * 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 GetPartitionResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPartitionResponse"); + + private static final org.apache.thrift.protocol.TField PARTITION_FIELD_DESC = new org.apache.thrift.protocol.TField("partition", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetPartitionResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetPartitionResponseTupleSchemeFactory()); + } + + private Partition partition; // 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 { + PARTITION((short)1, "partition"); + + private static final Map byName = new HashMap(); + + 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: // PARTITION + return PARTITION; + 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.PARTITION, new org.apache.thrift.meta_data.FieldMetaData("partition", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPartitionResponse.class, metaDataMap); + } + + public GetPartitionResponse() { + } + + public GetPartitionResponse( + Partition partition) + { + this(); + this.partition = partition; + } + + /** + * Performs a deep copy on other. + */ + public GetPartitionResponse(GetPartitionResponse other) { + if (other.isSetPartition()) { + this.partition = new Partition(other.partition); + } + } + + public GetPartitionResponse deepCopy() { + return new GetPartitionResponse(this); + } + + @Override + public void clear() { + this.partition = null; + } + + public Partition getPartition() { + return this.partition; + } + + public void setPartition(Partition partition) { + this.partition = partition; + } + + public void unsetPartition() { + this.partition = null; + } + + /** Returns true if field partition is set (has been assigned a value) and false otherwise */ + public boolean isSetPartition() { + return this.partition != null; + } + + public void setPartitionIsSet(boolean value) { + if (!value) { + this.partition = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PARTITION: + if (value == null) { + unsetPartition(); + } else { + setPartition((Partition)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PARTITION: + return getPartition(); + + } + 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 PARTITION: + return isSetPartition(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetPartitionResponse) + return this.equals((GetPartitionResponse)that); + return false; + } + + public boolean equals(GetPartitionResponse that) { + if (that == null) + return false; + + boolean this_present_partition = true && this.isSetPartition(); + boolean that_present_partition = true && that.isSetPartition(); + if (this_present_partition || that_present_partition) { + if (!(this_present_partition && that_present_partition)) + return false; + if (!this.partition.equals(that.partition)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_partition = true && (isSetPartition()); + list.add(present_partition); + if (present_partition) + list.add(partition); + + return list.hashCode(); + } + + @Override + public int compareTo(GetPartitionResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetPartition()).compareTo(other.isSetPartition()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartition()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partition, other.partition); + 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("GetPartitionResponse("); + boolean first = true; + + sb.append("partition:"); + if (this.partition == null) { + sb.append("null"); + } else { + sb.append(this.partition); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetPartition()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'partition' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + if (partition != null) { + partition.validate(); + } + } + + 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 GetPartitionResponseStandardSchemeFactory implements SchemeFactory { + public GetPartitionResponseStandardScheme getScheme() { + return new GetPartitionResponseStandardScheme(); + } + } + + private static class GetPartitionResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionResponse 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: // PARTITION + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.partition = new Partition(); + struct.partition.read(iprot); + struct.setPartitionIsSet(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, GetPartitionResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.partition != null) { + oprot.writeFieldBegin(PARTITION_FIELD_DESC); + struct.partition.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetPartitionResponseTupleSchemeFactory implements SchemeFactory { + public GetPartitionResponseTupleScheme getScheme() { + return new GetPartitionResponseTupleScheme(); + } + } + + private static class GetPartitionResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + struct.partition.write(oprot); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.partition = new Partition(); + struct.partition.read(iprot); + struct.setPartitionIsSet(true); + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesRequest.java index c93a052a01..09230c5d25 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesRequest.java @@ -45,6 +45,7 @@ private static final org.apache.thrift.protocol.TField PROCESSOR_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("processorCapabilities", org.apache.thrift.protocol.TType.LIST, (short)5); private static final org.apache.thrift.protocol.TField PROCESSOR_IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("processorIdentifier", org.apache.thrift.protocol.TType.STRING, (short)6); private static final org.apache.thrift.protocol.TField ENGINE_FIELD_DESC = new org.apache.thrift.protocol.TField("engine", org.apache.thrift.protocol.TType.STRING, (short)7); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)8); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -59,6 +60,7 @@ private List processorCapabilities; // optional private String processorIdentifier; // optional private String engine; // optional + private String validWriteIdList; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -68,7 +70,8 @@ GET_COL_STATS((short)4, "get_col_stats"), PROCESSOR_CAPABILITIES((short)5, "processorCapabilities"), PROCESSOR_IDENTIFIER((short)6, "processorIdentifier"), - ENGINE((short)7, "engine"); + ENGINE((short)7, "engine"), + VALID_WRITE_ID_LIST((short)8, "validWriteIdList"); private static final Map byName = new HashMap(); @@ -97,6 +100,8 @@ public static _Fields findByThriftId(int fieldId) { return PROCESSOR_IDENTIFIER; case 7: // ENGINE return ENGINE; + case 8: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; default: return null; } @@ -139,7 +144,7 @@ public String getFieldName() { // isset id assignments private static final int __GET_COL_STATS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.NAMES,_Fields.GET_COL_STATS,_Fields.PROCESSOR_CAPABILITIES,_Fields.PROCESSOR_IDENTIFIER,_Fields.ENGINE}; + private static final _Fields optionals[] = {_Fields.NAMES,_Fields.GET_COL_STATS,_Fields.PROCESSOR_CAPABILITIES,_Fields.PROCESSOR_IDENTIFIER,_Fields.ENGINE,_Fields.VALID_WRITE_ID_LIST}; 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); @@ -159,6 +164,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.ENGINE, new org.apache.thrift.meta_data.FieldMetaData("engine", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPartitionsByNamesRequest.class, metaDataMap); } @@ -201,6 +208,9 @@ public GetPartitionsByNamesRequest(GetPartitionsByNamesRequest other) { if (other.isSetEngine()) { this.engine = other.engine; } + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } } public GetPartitionsByNamesRequest deepCopy() { @@ -217,6 +227,7 @@ public void clear() { this.processorCapabilities = null; this.processorIdentifier = null; this.engine = null; + this.validWriteIdList = null; } public String getDb_name() { @@ -409,6 +420,29 @@ public void setEngineIsSet(boolean value) { } } + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -467,6 +501,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + } } @@ -493,6 +535,9 @@ public Object getFieldValue(_Fields field) { case ENGINE: return getEngine(); + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + } throw new IllegalStateException(); } @@ -518,6 +563,8 @@ public boolean isSet(_Fields field) { return isSetProcessorIdentifier(); case ENGINE: return isSetEngine(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); } throw new IllegalStateException(); } @@ -598,6 +645,15 @@ public boolean equals(GetPartitionsByNamesRequest that) { return false; } + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + return true; } @@ -640,6 +696,11 @@ public int hashCode() { if (present_engine) list.add(engine); + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + return list.hashCode(); } @@ -721,6 +782,16 @@ public int compareTo(GetPartitionsByNamesRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -802,6 +873,16 @@ public String toString() { } first = false; } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -931,6 +1012,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsByName org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 8: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1001,6 +1090,13 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsByNam oprot.writeFieldEnd(); } } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1036,7 +1132,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByName if (struct.isSetEngine()) { optionals.set(4); } - oprot.writeBitSet(optionals, 5); + if (struct.isSetValidWriteIdList()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); @@ -1064,6 +1163,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByName if (struct.isSetEngine()) { oprot.writeString(struct.engine); } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } } @Override @@ -1073,7 +1175,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByNames struct.setDb_nameIsSet(true); struct.tbl_name = iprot.readString(); struct.setTbl_nameIsSet(true); - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list596 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); @@ -1112,6 +1214,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByNames struct.engine = iprot.readString(); struct.setEngineIsSet(true); } + if (incoming.get(5)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsPsWithAuthRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsPsWithAuthRequest.java new file mode 100644 index 0000000000..d0937eadfc --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsPsWithAuthRequest.java @@ -0,0 +1,1222 @@ +/** + * 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 GetPartitionsPsWithAuthRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPartitionsPsWithAuthRequest"); + + 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)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("partVals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxParts", org.apache.thrift.protocol.TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("groupNames", org.apache.thrift.protocol.TType.LIST, (short)6); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)7); + private static final org.apache.thrift.protocol.TField TABLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tableId", org.apache.thrift.protocol.TType.I64, (short)8); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetPartitionsPsWithAuthRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetPartitionsPsWithAuthRequestTupleSchemeFactory()); + } + + private String dbName; // required + private String tblName; // required + private List partVals; // optional + private short maxParts; // optional + private String userName; // optional + private List groupNames; // optional + private String validWriteIdList; // optional + private long tableId; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + DB_NAME((short)1, "dbName"), + TBL_NAME((short)2, "tblName"), + PART_VALS((short)3, "partVals"), + MAX_PARTS((short)4, "maxParts"), + USER_NAME((short)5, "userName"), + GROUP_NAMES((short)6, "groupNames"), + VALID_WRITE_ID_LIST((short)7, "validWriteIdList"), + TABLE_ID((short)8, "tableId"); + + private static final Map byName = new HashMap(); + + 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: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; + case 4: // MAX_PARTS + return MAX_PARTS; + case 5: // USER_NAME + return USER_NAME; + case 6: // GROUP_NAMES + return GROUP_NAMES; + case 7: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; + case 8: // TABLE_ID + return TABLE_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __MAXPARTS_ISSET_ID = 0; + private static final int __TABLEID_ISSET_ID = 1; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.PART_VALS,_Fields.MAX_PARTS,_Fields.USER_NAME,_Fields.GROUP_NAMES,_Fields.VALID_WRITE_ID_LIST,_Fields.TABLE_ID}; + 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.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.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("partVals", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("maxParts", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("groupNames", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_ID, new org.apache.thrift.meta_data.FieldMetaData("tableId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPartitionsPsWithAuthRequest.class, metaDataMap); + } + + public GetPartitionsPsWithAuthRequest() { + this.maxParts = (short)-1; + + this.tableId = -1L; + + } + + public GetPartitionsPsWithAuthRequest( + String dbName, + String tblName) + { + this(); + this.dbName = dbName; + this.tblName = tblName; + } + + /** + * Performs a deep copy on other. + */ + public GetPartitionsPsWithAuthRequest(GetPartitionsPsWithAuthRequest other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbName()) { + this.dbName = other.dbName; + } + if (other.isSetTblName()) { + this.tblName = other.tblName; + } + if (other.isSetPartVals()) { + List __this__partVals = new ArrayList(other.partVals); + this.partVals = __this__partVals; + } + this.maxParts = other.maxParts; + if (other.isSetUserName()) { + this.userName = other.userName; + } + if (other.isSetGroupNames()) { + List __this__groupNames = new ArrayList(other.groupNames); + this.groupNames = __this__groupNames; + } + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } + this.tableId = other.tableId; + } + + public GetPartitionsPsWithAuthRequest deepCopy() { + return new GetPartitionsPsWithAuthRequest(this); + } + + @Override + public void clear() { + this.dbName = null; + this.tblName = null; + this.partVals = null; + this.maxParts = (short)-1; + + this.userName = null; + this.groupNames = null; + this.validWriteIdList = null; + this.tableId = -1L; + + } + + 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 getTblName() { + return this.tblName; + } + + public void setTblName(String tblName) { + this.tblName = tblName; + } + + public void unsetTblName() { + this.tblName = null; + } + + /** Returns true if field tblName is set (has been assigned a value) and false otherwise */ + public boolean isSetTblName() { + return this.tblName != null; + } + + public void setTblNameIsSet(boolean value) { + if (!value) { + this.tblName = null; + } + } + + public int getPartValsSize() { + return (this.partVals == null) ? 0 : this.partVals.size(); + } + + public java.util.Iterator getPartValsIterator() { + return (this.partVals == null) ? null : this.partVals.iterator(); + } + + public void addToPartVals(String elem) { + if (this.partVals == null) { + this.partVals = new ArrayList(); + } + this.partVals.add(elem); + } + + public List getPartVals() { + return this.partVals; + } + + public void setPartVals(List partVals) { + this.partVals = partVals; + } + + public void unsetPartVals() { + this.partVals = null; + } + + /** Returns true if field partVals is set (has been assigned a value) and false otherwise */ + public boolean isSetPartVals() { + return this.partVals != null; + } + + public void setPartValsIsSet(boolean value) { + if (!value) { + this.partVals = null; + } + } + + public short getMaxParts() { + return this.maxParts; + } + + public void setMaxParts(short maxParts) { + this.maxParts = maxParts; + setMaxPartsIsSet(true); + } + + public void unsetMaxParts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXPARTS_ISSET_ID); + } + + /** Returns true if field maxParts is set (has been assigned a value) and false otherwise */ + public boolean isSetMaxParts() { + return EncodingUtils.testBit(__isset_bitfield, __MAXPARTS_ISSET_ID); + } + + public void setMaxPartsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXPARTS_ISSET_ID, value); + } + + public String getUserName() { + return this.userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public void unsetUserName() { + this.userName = null; + } + + /** Returns true if field userName is set (has been assigned a value) and false otherwise */ + public boolean isSetUserName() { + return this.userName != null; + } + + public void setUserNameIsSet(boolean value) { + if (!value) { + this.userName = null; + } + } + + public int getGroupNamesSize() { + return (this.groupNames == null) ? 0 : this.groupNames.size(); + } + + public java.util.Iterator getGroupNamesIterator() { + return (this.groupNames == null) ? null : this.groupNames.iterator(); + } + + public void addToGroupNames(String elem) { + if (this.groupNames == null) { + this.groupNames = new ArrayList(); + } + this.groupNames.add(elem); + } + + public List getGroupNames() { + return this.groupNames; + } + + public void setGroupNames(List groupNames) { + this.groupNames = groupNames; + } + + public void unsetGroupNames() { + this.groupNames = null; + } + + /** Returns true if field groupNames is set (has been assigned a value) and false otherwise */ + public boolean isSetGroupNames() { + return this.groupNames != null; + } + + public void setGroupNamesIsSet(boolean value) { + if (!value) { + this.groupNames = null; + } + } + + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + + public long getTableId() { + return this.tableId; + } + + public void setTableId(long tableId) { + this.tableId = tableId; + setTableIdIsSet(true); + } + + public void unsetTableId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + /** Returns true if field tableId is set (has been assigned a value) and false otherwise */ + public boolean isSetTableId() { + return EncodingUtils.testBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + public void setTableIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TABLEID_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDbName(); + } else { + setDbName((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTblName(); + } else { + setTblName((String)value); + } + break; + + case PART_VALS: + if (value == null) { + unsetPartVals(); + } else { + setPartVals((List)value); + } + break; + + case MAX_PARTS: + if (value == null) { + unsetMaxParts(); + } else { + setMaxParts((Short)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUserName(); + } else { + setUserName((String)value); + } + break; + + case GROUP_NAMES: + if (value == null) { + unsetGroupNames(); + } else { + setGroupNames((List)value); + } + break; + + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + + case TABLE_ID: + if (value == null) { + unsetTableId(); + } else { + setTableId((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDbName(); + + case TBL_NAME: + return getTblName(); + + case PART_VALS: + return getPartVals(); + + case MAX_PARTS: + return getMaxParts(); + + case USER_NAME: + return getUserName(); + + case GROUP_NAMES: + return getGroupNames(); + + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + + case TABLE_ID: + return getTableId(); + + } + 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 DB_NAME: + return isSetDbName(); + case TBL_NAME: + return isSetTblName(); + case PART_VALS: + return isSetPartVals(); + case MAX_PARTS: + return isSetMaxParts(); + case USER_NAME: + return isSetUserName(); + case GROUP_NAMES: + return isSetGroupNames(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); + case TABLE_ID: + return isSetTableId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetPartitionsPsWithAuthRequest) + return this.equals((GetPartitionsPsWithAuthRequest)that); + return false; + } + + public boolean equals(GetPartitionsPsWithAuthRequest that) { + if (that == null) + 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_tblName = true && this.isSetTblName(); + boolean that_present_tblName = true && that.isSetTblName(); + if (this_present_tblName || that_present_tblName) { + if (!(this_present_tblName && that_present_tblName)) + return false; + if (!this.tblName.equals(that.tblName)) + return false; + } + + boolean this_present_partVals = true && this.isSetPartVals(); + boolean that_present_partVals = true && that.isSetPartVals(); + if (this_present_partVals || that_present_partVals) { + if (!(this_present_partVals && that_present_partVals)) + return false; + if (!this.partVals.equals(that.partVals)) + return false; + } + + boolean this_present_maxParts = true && this.isSetMaxParts(); + boolean that_present_maxParts = true && that.isSetMaxParts(); + if (this_present_maxParts || that_present_maxParts) { + if (!(this_present_maxParts && that_present_maxParts)) + return false; + if (this.maxParts != that.maxParts) + return false; + } + + boolean this_present_userName = true && this.isSetUserName(); + boolean that_present_userName = true && that.isSetUserName(); + if (this_present_userName || that_present_userName) { + if (!(this_present_userName && that_present_userName)) + return false; + if (!this.userName.equals(that.userName)) + return false; + } + + boolean this_present_groupNames = true && this.isSetGroupNames(); + boolean that_present_groupNames = true && that.isSetGroupNames(); + if (this_present_groupNames || that_present_groupNames) { + if (!(this_present_groupNames && that_present_groupNames)) + return false; + if (!this.groupNames.equals(that.groupNames)) + return false; + } + + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + + boolean this_present_tableId = true && this.isSetTableId(); + boolean that_present_tableId = true && that.isSetTableId(); + if (this_present_tableId || that_present_tableId) { + if (!(this_present_tableId && that_present_tableId)) + return false; + if (this.tableId != that.tableId) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_dbName = true && (isSetDbName()); + list.add(present_dbName); + if (present_dbName) + list.add(dbName); + + boolean present_tblName = true && (isSetTblName()); + list.add(present_tblName); + if (present_tblName) + list.add(tblName); + + boolean present_partVals = true && (isSetPartVals()); + list.add(present_partVals); + if (present_partVals) + list.add(partVals); + + boolean present_maxParts = true && (isSetMaxParts()); + list.add(present_maxParts); + if (present_maxParts) + list.add(maxParts); + + boolean present_userName = true && (isSetUserName()); + list.add(present_userName); + if (present_userName) + list.add(userName); + + boolean present_groupNames = true && (isSetGroupNames()); + list.add(present_groupNames); + if (present_groupNames) + list.add(groupNames); + + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + + boolean present_tableId = true && (isSetTableId()); + list.add(present_tableId); + if (present_tableId) + list.add(tableId); + + return list.hashCode(); + } + + @Override + public int compareTo(GetPartitionsPsWithAuthRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + 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(isSetTblName()).compareTo(other.isSetTblName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTblName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartVals()).compareTo(other.isSetPartVals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartVals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partVals, other.partVals); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMaxParts()).compareTo(other.isSetMaxParts()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMaxParts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxParts, other.maxParts); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGroupNames()).compareTo(other.isSetGroupNames()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGroupNames()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupNames, other.groupNames); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableId()).compareTo(other.isSetTableId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableId, other.tableId); + 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("GetPartitionsPsWithAuthRequest("); + boolean first = true; + + sb.append("dbName:"); + if (this.dbName == null) { + sb.append("null"); + } else { + sb.append(this.dbName); + } + first = false; + if (!first) sb.append(", "); + sb.append("tblName:"); + if (this.tblName == null) { + sb.append("null"); + } else { + sb.append(this.tblName); + } + first = false; + if (isSetPartVals()) { + if (!first) sb.append(", "); + sb.append("partVals:"); + if (this.partVals == null) { + sb.append("null"); + } else { + sb.append(this.partVals); + } + first = false; + } + if (isSetMaxParts()) { + if (!first) sb.append(", "); + sb.append("maxParts:"); + sb.append(this.maxParts); + first = false; + } + if (isSetUserName()) { + if (!first) sb.append(", "); + sb.append("userName:"); + if (this.userName == null) { + sb.append("null"); + } else { + sb.append(this.userName); + } + first = false; + } + if (isSetGroupNames()) { + if (!first) sb.append(", "); + sb.append("groupNames:"); + if (this.groupNames == null) { + sb.append("null"); + } else { + sb.append(this.groupNames); + } + first = false; + } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } + if (isSetTableId()) { + if (!first) sb.append(", "); + sb.append("tableId:"); + sb.append(this.tableId); + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetDbName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); + } + + if (!isSetTblName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class GetPartitionsPsWithAuthRequestStandardSchemeFactory implements SchemeFactory { + public GetPartitionsPsWithAuthRequestStandardScheme getScheme() { + return new GetPartitionsPsWithAuthRequestStandardScheme(); + } + } + + private static class GetPartitionsPsWithAuthRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsPsWithAuthRequest 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: // 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 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1256 = iprot.readListBegin(); + struct.partVals = new ArrayList(_list1256.size); + String _elem1257; + for (int _i1258 = 0; _i1258 < _list1256.size; ++_i1258) + { + _elem1257 = iprot.readString(); + struct.partVals.add(_elem1257); + } + iprot.readListEnd(); + } + struct.setPartValsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.maxParts = iprot.readI16(); + struct.setMaxPartsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1259 = iprot.readListBegin(); + struct.groupNames = new ArrayList(_list1259.size); + String _elem1260; + for (int _i1261 = 0; _i1261 < _list1259.size; ++_i1261) + { + _elem1260 = iprot.readString(); + struct.groupNames.add(_elem1260); + } + iprot.readListEnd(); + } + struct.setGroupNamesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(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, GetPartitionsPsWithAuthRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.dbName != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.dbName); + oprot.writeFieldEnd(); + } + if (struct.tblName != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tblName); + oprot.writeFieldEnd(); + } + if (struct.partVals != null) { + if (struct.isSetPartVals()) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partVals.size())); + for (String _iter1262 : struct.partVals) + { + oprot.writeString(_iter1262); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.isSetMaxParts()) { + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI16(struct.maxParts); + oprot.writeFieldEnd(); + } + if (struct.userName != null) { + if (struct.isSetUserName()) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.userName); + oprot.writeFieldEnd(); + } + } + if (struct.groupNames != null) { + if (struct.isSetGroupNames()) { + oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.groupNames.size())); + for (String _iter1263 : struct.groupNames) + { + oprot.writeString(_iter1263); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } + if (struct.isSetTableId()) { + oprot.writeFieldBegin(TABLE_ID_FIELD_DESC); + oprot.writeI64(struct.tableId); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetPartitionsPsWithAuthRequestTupleSchemeFactory implements SchemeFactory { + public GetPartitionsPsWithAuthRequestTupleScheme getScheme() { + return new GetPartitionsPsWithAuthRequestTupleScheme(); + } + } + + private static class GetPartitionsPsWithAuthRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsPsWithAuthRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.dbName); + oprot.writeString(struct.tblName); + BitSet optionals = new BitSet(); + if (struct.isSetPartVals()) { + optionals.set(0); + } + if (struct.isSetMaxParts()) { + optionals.set(1); + } + if (struct.isSetUserName()) { + optionals.set(2); + } + if (struct.isSetGroupNames()) { + optionals.set(3); + } + if (struct.isSetValidWriteIdList()) { + optionals.set(4); + } + if (struct.isSetTableId()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); + if (struct.isSetPartVals()) { + { + oprot.writeI32(struct.partVals.size()); + for (String _iter1264 : struct.partVals) + { + oprot.writeString(_iter1264); + } + } + } + if (struct.isSetMaxParts()) { + oprot.writeI16(struct.maxParts); + } + if (struct.isSetUserName()) { + oprot.writeString(struct.userName); + } + if (struct.isSetGroupNames()) { + { + oprot.writeI32(struct.groupNames.size()); + for (String _iter1265 : struct.groupNames) + { + oprot.writeString(_iter1265); + } + } + } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } + if (struct.isSetTableId()) { + oprot.writeI64(struct.tableId); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsPsWithAuthRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + BitSet incoming = iprot.readBitSet(6); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list1266 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partVals = new ArrayList(_list1266.size); + String _elem1267; + for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268) + { + _elem1267 = iprot.readString(); + struct.partVals.add(_elem1267); + } + } + struct.setPartValsIsSet(true); + } + if (incoming.get(1)) { + struct.maxParts = iprot.readI16(); + struct.setMaxPartsIsSet(true); + } + if (incoming.get(2)) { + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + } + if (incoming.get(3)) { + { + org.apache.thrift.protocol.TList _list1269 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.groupNames = new ArrayList(_list1269.size); + String _elem1270; + for (int _i1271 = 0; _i1271 < _list1269.size; ++_i1271) + { + _elem1270 = iprot.readString(); + struct.groupNames.add(_elem1270); + } + } + struct.setGroupNamesIsSet(true); + } + if (incoming.get(4)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } + if (incoming.get(5)) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(true); + } + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsPsWithAuthResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsPsWithAuthResponse.java new file mode 100644 index 0000000000..00aa02d117 --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsPsWithAuthResponse.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 GetPartitionsPsWithAuthResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPartitionsPsWithAuthResponse"); + + private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetPartitionsPsWithAuthResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetPartitionsPsWithAuthResponseTupleSchemeFactory()); + } + + private List partitions; // 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 { + PARTITIONS((short)1, "partitions"); + + private static final Map byName = new HashMap(); + + 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: // PARTITIONS + return PARTITIONS; + 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.PARTITIONS, new org.apache.thrift.meta_data.FieldMetaData("partitions", 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, Partition.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPartitionsPsWithAuthResponse.class, metaDataMap); + } + + public GetPartitionsPsWithAuthResponse() { + } + + public GetPartitionsPsWithAuthResponse( + List partitions) + { + this(); + this.partitions = partitions; + } + + /** + * Performs a deep copy on other. + */ + public GetPartitionsPsWithAuthResponse(GetPartitionsPsWithAuthResponse other) { + if (other.isSetPartitions()) { + List __this__partitions = new ArrayList(other.partitions.size()); + for (Partition other_element : other.partitions) { + __this__partitions.add(new Partition(other_element)); + } + this.partitions = __this__partitions; + } + } + + public GetPartitionsPsWithAuthResponse deepCopy() { + return new GetPartitionsPsWithAuthResponse(this); + } + + @Override + public void clear() { + this.partitions = null; + } + + public int getPartitionsSize() { + return (this.partitions == null) ? 0 : this.partitions.size(); + } + + public java.util.Iterator getPartitionsIterator() { + return (this.partitions == null) ? null : this.partitions.iterator(); + } + + public void addToPartitions(Partition elem) { + if (this.partitions == null) { + this.partitions = new ArrayList(); + } + this.partitions.add(elem); + } + + public List getPartitions() { + return this.partitions; + } + + public void setPartitions(List partitions) { + this.partitions = partitions; + } + + public void unsetPartitions() { + this.partitions = null; + } + + /** Returns true if field partitions is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitions() { + return this.partitions != null; + } + + public void setPartitionsIsSet(boolean value) { + if (!value) { + this.partitions = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PARTITIONS: + if (value == null) { + unsetPartitions(); + } else { + setPartitions((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PARTITIONS: + return getPartitions(); + + } + 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 PARTITIONS: + return isSetPartitions(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetPartitionsPsWithAuthResponse) + return this.equals((GetPartitionsPsWithAuthResponse)that); + return false; + } + + public boolean equals(GetPartitionsPsWithAuthResponse that) { + if (that == null) + return false; + + boolean this_present_partitions = true && this.isSetPartitions(); + boolean that_present_partitions = true && that.isSetPartitions(); + if (this_present_partitions || that_present_partitions) { + if (!(this_present_partitions && that_present_partitions)) + return false; + if (!this.partitions.equals(that.partitions)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_partitions = true && (isSetPartitions()); + list.add(present_partitions); + if (present_partitions) + list.add(partitions); + + return list.hashCode(); + } + + @Override + public int compareTo(GetPartitionsPsWithAuthResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitions()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + 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("GetPartitionsPsWithAuthResponse("); + boolean first = true; + + sb.append("partitions:"); + if (this.partitions == null) { + sb.append("null"); + } else { + sb.append(this.partitions); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetPartitions()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'partitions' 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 GetPartitionsPsWithAuthResponseStandardSchemeFactory implements SchemeFactory { + public GetPartitionsPsWithAuthResponseStandardScheme getScheme() { + return new GetPartitionsPsWithAuthResponseStandardScheme(); + } + } + + private static class GetPartitionsPsWithAuthResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsPsWithAuthResponse 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: // PARTITIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1272 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list1272.size); + Partition _elem1273; + for (int _i1274 = 0; _i1274 < _list1272.size; ++_i1274) + { + _elem1273 = new Partition(); + _elem1273.read(iprot); + struct.partitions.add(_elem1273); + } + iprot.readListEnd(); + } + struct.setPartitionsIsSet(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, GetPartitionsPsWithAuthResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.partitions != null) { + oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); + for (Partition _iter1275 : struct.partitions) + { + _iter1275.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetPartitionsPsWithAuthResponseTupleSchemeFactory implements SchemeFactory { + public GetPartitionsPsWithAuthResponseTupleScheme getScheme() { + return new GetPartitionsPsWithAuthResponseTupleScheme(); + } + } + + private static class GetPartitionsPsWithAuthResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsPsWithAuthResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.partitions.size()); + for (Partition _iter1276 : struct.partitions) + { + _iter1276.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsPsWithAuthResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list1277 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list1277.size); + Partition _elem1278; + for (int _i1279 = 0; _i1279 < _list1277.size; ++_i1279) + { + _elem1278 = new Partition(); + _elem1278.read(iprot); + struct.partitions.add(_elem1278); + } + } + struct.setPartitionsIsSet(true); + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java index c927bbca17..80619e82f1 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java @@ -48,6 +48,7 @@ private static final org.apache.thrift.protocol.TField FILTER_SPEC_FIELD_DESC = new org.apache.thrift.protocol.TField("filterSpec", org.apache.thrift.protocol.TType.STRUCT, (short)8); private static final org.apache.thrift.protocol.TField PROCESSOR_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("processorCapabilities", org.apache.thrift.protocol.TType.LIST, (short)9); private static final org.apache.thrift.protocol.TField PROCESSOR_IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("processorIdentifier", org.apache.thrift.protocol.TType.STRING, (short)10); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)11); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -65,6 +66,7 @@ private GetPartitionsFilterSpec filterSpec; // required private List processorCapabilities; // optional private String processorIdentifier; // optional + private String validWriteIdList; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -77,7 +79,8 @@ PROJECTION_SPEC((short)7, "projectionSpec"), FILTER_SPEC((short)8, "filterSpec"), PROCESSOR_CAPABILITIES((short)9, "processorCapabilities"), - PROCESSOR_IDENTIFIER((short)10, "processorIdentifier"); + PROCESSOR_IDENTIFIER((short)10, "processorIdentifier"), + VALID_WRITE_ID_LIST((short)11, "validWriteIdList"); private static final Map byName = new HashMap(); @@ -112,6 +115,8 @@ public static _Fields findByThriftId(int fieldId) { return PROCESSOR_CAPABILITIES; case 10: // PROCESSOR_IDENTIFIER return PROCESSOR_IDENTIFIER; + case 11: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; default: return null; } @@ -154,7 +159,7 @@ public String getFieldName() { // isset id assignments private static final int __WITHAUTH_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.CAT_NAME,_Fields.WITH_AUTH,_Fields.USER,_Fields.GROUP_NAMES,_Fields.PROCESSOR_CAPABILITIES,_Fields.PROCESSOR_IDENTIFIER}; + private static final _Fields optionals[] = {_Fields.CAT_NAME,_Fields.WITH_AUTH,_Fields.USER,_Fields.GROUP_NAMES,_Fields.PROCESSOR_CAPABILITIES,_Fields.PROCESSOR_IDENTIFIER,_Fields.VALID_WRITE_ID_LIST}; 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); @@ -180,6 +185,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.PROCESSOR_IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("processorIdentifier", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPartitionsRequest.class, metaDataMap); } @@ -235,6 +242,9 @@ public GetPartitionsRequest(GetPartitionsRequest other) { if (other.isSetProcessorIdentifier()) { this.processorIdentifier = other.processorIdentifier; } + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } } public GetPartitionsRequest deepCopy() { @@ -254,6 +264,7 @@ public void clear() { this.filterSpec = null; this.processorCapabilities = null; this.processorIdentifier = null; + this.validWriteIdList = null; } public String getCatName() { @@ -515,6 +526,29 @@ public void setProcessorIdentifierIsSet(boolean value) { } } + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case CAT_NAME: @@ -597,6 +631,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + } } @@ -632,6 +674,9 @@ public Object getFieldValue(_Fields field) { case PROCESSOR_IDENTIFIER: return getProcessorIdentifier(); + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + } throw new IllegalStateException(); } @@ -663,6 +708,8 @@ public boolean isSet(_Fields field) { return isSetProcessorCapabilities(); case PROCESSOR_IDENTIFIER: return isSetProcessorIdentifier(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); } throw new IllegalStateException(); } @@ -770,6 +817,15 @@ public boolean equals(GetPartitionsRequest that) { return false; } + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + return true; } @@ -827,6 +883,11 @@ public int hashCode() { if (present_processorIdentifier) list.add(processorIdentifier); + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + return list.hashCode(); } @@ -938,6 +999,16 @@ public int compareTo(GetPartitionsRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -1045,6 +1116,16 @@ public String toString() { } first = false; } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -1198,6 +1279,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsReques org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 11: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1285,6 +1374,13 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsReque oprot.writeFieldEnd(); } } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1333,7 +1429,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsReques if (struct.isSetProcessorIdentifier()) { optionals.set(9); } - oprot.writeBitSet(optionals, 10); + if (struct.isSetValidWriteIdList()) { + optionals.set(10); + } + oprot.writeBitSet(optionals, 11); if (struct.isSetCatName()) { oprot.writeString(struct.catName); } @@ -1376,12 +1475,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsReques if (struct.isSetProcessorIdentifier()) { oprot.writeString(struct.processorIdentifier); } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(10); + BitSet incoming = iprot.readBitSet(11); if (incoming.get(0)) { struct.catName = iprot.readString(); struct.setCatNameIsSet(true); @@ -1442,6 +1544,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRequest struct.processorIdentifier = iprot.readString(); struct.setProcessorIdentifierIsSet(true); } + if (incoming.get(10)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetSchemaRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetSchemaRequest.java new file mode 100644 index 0000000000..fd1ae48575 --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetSchemaRequest.java @@ -0,0 +1,816 @@ +/** + * 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 GetSchemaRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetSchemaRequest"); + + 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)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField ENV_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("envContext", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField TABLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tableId", org.apache.thrift.protocol.TType.I64, (short)5); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetSchemaRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetSchemaRequestTupleSchemeFactory()); + } + + private String dbName; // required + private String tblName; // required + private EnvironmentContext envContext; // optional + private String validWriteIdList; // optional + private long tableId; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + DB_NAME((short)1, "dbName"), + TBL_NAME((short)2, "tblName"), + ENV_CONTEXT((short)3, "envContext"), + VALID_WRITE_ID_LIST((short)4, "validWriteIdList"), + TABLE_ID((short)5, "tableId"); + + private static final Map byName = new HashMap(); + + 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: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // ENV_CONTEXT + return ENV_CONTEXT; + case 4: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; + case 5: // TABLE_ID + return TABLE_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __TABLEID_ISSET_ID = 0; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.ENV_CONTEXT,_Fields.VALID_WRITE_ID_LIST,_Fields.TABLE_ID}; + 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.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.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ENV_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("envContext", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_ID, new org.apache.thrift.meta_data.FieldMetaData("tableId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetSchemaRequest.class, metaDataMap); + } + + public GetSchemaRequest() { + this.tableId = -1L; + + } + + public GetSchemaRequest( + String dbName, + String tblName) + { + this(); + this.dbName = dbName; + this.tblName = tblName; + } + + /** + * Performs a deep copy on other. + */ + public GetSchemaRequest(GetSchemaRequest other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbName()) { + this.dbName = other.dbName; + } + if (other.isSetTblName()) { + this.tblName = other.tblName; + } + if (other.isSetEnvContext()) { + this.envContext = new EnvironmentContext(other.envContext); + } + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } + this.tableId = other.tableId; + } + + public GetSchemaRequest deepCopy() { + return new GetSchemaRequest(this); + } + + @Override + public void clear() { + this.dbName = null; + this.tblName = null; + this.envContext = null; + this.validWriteIdList = null; + this.tableId = -1L; + + } + + 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 getTblName() { + return this.tblName; + } + + public void setTblName(String tblName) { + this.tblName = tblName; + } + + public void unsetTblName() { + this.tblName = null; + } + + /** Returns true if field tblName is set (has been assigned a value) and false otherwise */ + public boolean isSetTblName() { + return this.tblName != null; + } + + public void setTblNameIsSet(boolean value) { + if (!value) { + this.tblName = null; + } + } + + public EnvironmentContext getEnvContext() { + return this.envContext; + } + + public void setEnvContext(EnvironmentContext envContext) { + this.envContext = envContext; + } + + public void unsetEnvContext() { + this.envContext = null; + } + + /** Returns true if field envContext is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvContext() { + return this.envContext != null; + } + + public void setEnvContextIsSet(boolean value) { + if (!value) { + this.envContext = null; + } + } + + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + + public long getTableId() { + return this.tableId; + } + + public void setTableId(long tableId) { + this.tableId = tableId; + setTableIdIsSet(true); + } + + public void unsetTableId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + /** Returns true if field tableId is set (has been assigned a value) and false otherwise */ + public boolean isSetTableId() { + return EncodingUtils.testBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + public void setTableIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TABLEID_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDbName(); + } else { + setDbName((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTblName(); + } else { + setTblName((String)value); + } + break; + + case ENV_CONTEXT: + if (value == null) { + unsetEnvContext(); + } else { + setEnvContext((EnvironmentContext)value); + } + break; + + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + + case TABLE_ID: + if (value == null) { + unsetTableId(); + } else { + setTableId((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDbName(); + + case TBL_NAME: + return getTblName(); + + case ENV_CONTEXT: + return getEnvContext(); + + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + + case TABLE_ID: + return getTableId(); + + } + 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 DB_NAME: + return isSetDbName(); + case TBL_NAME: + return isSetTblName(); + case ENV_CONTEXT: + return isSetEnvContext(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); + case TABLE_ID: + return isSetTableId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetSchemaRequest) + return this.equals((GetSchemaRequest)that); + return false; + } + + public boolean equals(GetSchemaRequest that) { + if (that == null) + 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_tblName = true && this.isSetTblName(); + boolean that_present_tblName = true && that.isSetTblName(); + if (this_present_tblName || that_present_tblName) { + if (!(this_present_tblName && that_present_tblName)) + return false; + if (!this.tblName.equals(that.tblName)) + return false; + } + + boolean this_present_envContext = true && this.isSetEnvContext(); + boolean that_present_envContext = true && that.isSetEnvContext(); + if (this_present_envContext || that_present_envContext) { + if (!(this_present_envContext && that_present_envContext)) + return false; + if (!this.envContext.equals(that.envContext)) + return false; + } + + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + + boolean this_present_tableId = true && this.isSetTableId(); + boolean that_present_tableId = true && that.isSetTableId(); + if (this_present_tableId || that_present_tableId) { + if (!(this_present_tableId && that_present_tableId)) + return false; + if (this.tableId != that.tableId) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_dbName = true && (isSetDbName()); + list.add(present_dbName); + if (present_dbName) + list.add(dbName); + + boolean present_tblName = true && (isSetTblName()); + list.add(present_tblName); + if (present_tblName) + list.add(tblName); + + boolean present_envContext = true && (isSetEnvContext()); + list.add(present_envContext); + if (present_envContext) + list.add(envContext); + + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + + boolean present_tableId = true && (isSetTableId()); + list.add(present_tableId); + if (present_tableId) + list.add(tableId); + + return list.hashCode(); + } + + @Override + public int compareTo(GetSchemaRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + 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(isSetTblName()).compareTo(other.isSetTblName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTblName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvContext()).compareTo(other.isSetEnvContext()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvContext()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.envContext, other.envContext); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableId()).compareTo(other.isSetTableId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableId, other.tableId); + 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("GetSchemaRequest("); + boolean first = true; + + sb.append("dbName:"); + if (this.dbName == null) { + sb.append("null"); + } else { + sb.append(this.dbName); + } + first = false; + if (!first) sb.append(", "); + sb.append("tblName:"); + if (this.tblName == null) { + sb.append("null"); + } else { + sb.append(this.tblName); + } + first = false; + if (isSetEnvContext()) { + if (!first) sb.append(", "); + sb.append("envContext:"); + if (this.envContext == null) { + sb.append("null"); + } else { + sb.append(this.envContext); + } + first = false; + } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } + if (isSetTableId()) { + if (!first) sb.append(", "); + sb.append("tableId:"); + sb.append(this.tableId); + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetDbName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); + } + + if (!isSetTblName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + if (envContext != null) { + envContext.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class GetSchemaRequestStandardSchemeFactory implements SchemeFactory { + public GetSchemaRequestStandardScheme getScheme() { + return new GetSchemaRequestStandardScheme(); + } + } + + private static class GetSchemaRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetSchemaRequest 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: // 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 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ENV_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.envContext = new EnvironmentContext(); + struct.envContext.read(iprot); + struct.setEnvContextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(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, GetSchemaRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.dbName != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.dbName); + oprot.writeFieldEnd(); + } + if (struct.tblName != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tblName); + oprot.writeFieldEnd(); + } + if (struct.envContext != null) { + if (struct.isSetEnvContext()) { + oprot.writeFieldBegin(ENV_CONTEXT_FIELD_DESC); + struct.envContext.write(oprot); + oprot.writeFieldEnd(); + } + } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } + if (struct.isSetTableId()) { + oprot.writeFieldBegin(TABLE_ID_FIELD_DESC); + oprot.writeI64(struct.tableId); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetSchemaRequestTupleSchemeFactory implements SchemeFactory { + public GetSchemaRequestTupleScheme getScheme() { + return new GetSchemaRequestTupleScheme(); + } + } + + private static class GetSchemaRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetSchemaRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.dbName); + oprot.writeString(struct.tblName); + BitSet optionals = new BitSet(); + if (struct.isSetEnvContext()) { + optionals.set(0); + } + if (struct.isSetValidWriteIdList()) { + optionals.set(1); + } + if (struct.isSetTableId()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetEnvContext()) { + struct.envContext.write(oprot); + } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } + if (struct.isSetTableId()) { + oprot.writeI64(struct.tableId); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetSchemaRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.envContext = new EnvironmentContext(); + struct.envContext.read(iprot); + struct.setEnvContextIsSet(true); + } + if (incoming.get(1)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } + if (incoming.get(2)) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(true); + } + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetSchemaResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetSchemaResponse.java new file mode 100644 index 0000000000..847d04cc6b --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetSchemaResponse.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 GetSchemaResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetSchemaResponse"); + + private static final org.apache.thrift.protocol.TField FIELDS_FIELD_DESC = new org.apache.thrift.protocol.TField("fields", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetSchemaResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetSchemaResponseTupleSchemeFactory()); + } + + private List fields; // 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 { + FIELDS((short)1, "fields"); + + private static final Map byName = new HashMap(); + + 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: // FIELDS + return FIELDS; + 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.FIELDS, new org.apache.thrift.meta_data.FieldMetaData("fields", 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, FieldSchema.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetSchemaResponse.class, metaDataMap); + } + + public GetSchemaResponse() { + } + + public GetSchemaResponse( + List fields) + { + this(); + this.fields = fields; + } + + /** + * Performs a deep copy on other. + */ + public GetSchemaResponse(GetSchemaResponse other) { + if (other.isSetFields()) { + List __this__fields = new ArrayList(other.fields.size()); + for (FieldSchema other_element : other.fields) { + __this__fields.add(new FieldSchema(other_element)); + } + this.fields = __this__fields; + } + } + + public GetSchemaResponse deepCopy() { + return new GetSchemaResponse(this); + } + + @Override + public void clear() { + this.fields = null; + } + + public int getFieldsSize() { + return (this.fields == null) ? 0 : this.fields.size(); + } + + public java.util.Iterator getFieldsIterator() { + return (this.fields == null) ? null : this.fields.iterator(); + } + + public void addToFields(FieldSchema elem) { + if (this.fields == null) { + this.fields = new ArrayList(); + } + this.fields.add(elem); + } + + public List getFields() { + return this.fields; + } + + public void setFields(List fields) { + this.fields = fields; + } + + public void unsetFields() { + this.fields = null; + } + + /** Returns true if field fields is set (has been assigned a value) and false otherwise */ + public boolean isSetFields() { + return this.fields != null; + } + + public void setFieldsIsSet(boolean value) { + if (!value) { + this.fields = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case FIELDS: + if (value == null) { + unsetFields(); + } else { + setFields((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case FIELDS: + return getFields(); + + } + 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 FIELDS: + return isSetFields(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetSchemaResponse) + return this.equals((GetSchemaResponse)that); + return false; + } + + public boolean equals(GetSchemaResponse that) { + if (that == null) + return false; + + boolean this_present_fields = true && this.isSetFields(); + boolean that_present_fields = true && that.isSetFields(); + if (this_present_fields || that_present_fields) { + if (!(this_present_fields && that_present_fields)) + return false; + if (!this.fields.equals(that.fields)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_fields = true && (isSetFields()); + list.add(present_fields); + if (present_fields) + list.add(fields); + + return list.hashCode(); + } + + @Override + public int compareTo(GetSchemaResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetFields()).compareTo(other.isSetFields()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFields()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fields, other.fields); + 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("GetSchemaResponse("); + boolean first = true; + + sb.append("fields:"); + if (this.fields == null) { + sb.append("null"); + } else { + sb.append(this.fields); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetFields()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'fields' 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 GetSchemaResponseStandardSchemeFactory implements SchemeFactory { + public GetSchemaResponseStandardScheme getScheme() { + return new GetSchemaResponseStandardScheme(); + } + } + + private static class GetSchemaResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetSchemaResponse 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: // FIELDS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1216 = iprot.readListBegin(); + struct.fields = new ArrayList(_list1216.size); + FieldSchema _elem1217; + for (int _i1218 = 0; _i1218 < _list1216.size; ++_i1218) + { + _elem1217 = new FieldSchema(); + _elem1217.read(iprot); + struct.fields.add(_elem1217); + } + iprot.readListEnd(); + } + struct.setFieldsIsSet(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, GetSchemaResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.fields != null) { + oprot.writeFieldBegin(FIELDS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.fields.size())); + for (FieldSchema _iter1219 : struct.fields) + { + _iter1219.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetSchemaResponseTupleSchemeFactory implements SchemeFactory { + public GetSchemaResponseTupleScheme getScheme() { + return new GetSchemaResponseTupleScheme(); + } + } + + private static class GetSchemaResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetSchemaResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.fields.size()); + for (FieldSchema _iter1220 : struct.fields) + { + _iter1220.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetSchemaResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list1221 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.fields = new ArrayList(_list1221.size); + FieldSchema _elem1222; + for (int _i1223 = 0; _i1223 < _list1221.size; ++_i1223) + { + _elem1222 = new FieldSchema(); + _elem1222.read(iprot); + struct.fields.add(_elem1222); + } + } + struct.setFieldsIsSet(true); + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java index 4e66f0717c..b60fd75d2e 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java @@ -47,6 +47,7 @@ private static final org.apache.thrift.protocol.TField PROCESSOR_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("processorCapabilities", org.apache.thrift.protocol.TType.LIST, (short)8); private static final org.apache.thrift.protocol.TField PROCESSOR_IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("processorIdentifier", org.apache.thrift.protocol.TType.STRING, (short)9); private static final org.apache.thrift.protocol.TField ENGINE_FIELD_DESC = new org.apache.thrift.protocol.TField("engine", org.apache.thrift.protocol.TType.STRING, (short)10); + private static final org.apache.thrift.protocol.TField TABLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tableId", org.apache.thrift.protocol.TType.I64, (short)11); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -63,6 +64,7 @@ private List processorCapabilities; // optional private String processorIdentifier; // optional private String engine; // optional + private long tableId; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -74,7 +76,8 @@ GET_COLUMN_STATS((short)7, "getColumnStats"), PROCESSOR_CAPABILITIES((short)8, "processorCapabilities"), PROCESSOR_IDENTIFIER((short)9, "processorIdentifier"), - ENGINE((short)10, "engine"); + ENGINE((short)10, "engine"), + TABLE_ID((short)11, "tableId"); private static final Map byName = new HashMap(); @@ -107,6 +110,8 @@ public static _Fields findByThriftId(int fieldId) { return PROCESSOR_IDENTIFIER; case 10: // ENGINE return ENGINE; + case 11: // TABLE_ID + return TABLE_ID; default: return null; } @@ -148,8 +153,9 @@ public String getFieldName() { // isset id assignments private static final int __GETCOLUMNSTATS_ISSET_ID = 0; + private static final int __TABLEID_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.CAPABILITIES,_Fields.CAT_NAME,_Fields.VALID_WRITE_ID_LIST,_Fields.GET_COLUMN_STATS,_Fields.PROCESSOR_CAPABILITIES,_Fields.PROCESSOR_IDENTIFIER,_Fields.ENGINE}; + private static final _Fields optionals[] = {_Fields.CAPABILITIES,_Fields.CAT_NAME,_Fields.VALID_WRITE_ID_LIST,_Fields.GET_COLUMN_STATS,_Fields.PROCESSOR_CAPABILITIES,_Fields.PROCESSOR_IDENTIFIER,_Fields.ENGINE,_Fields.TABLE_ID}; 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); @@ -172,11 +178,15 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.ENGINE, new org.apache.thrift.meta_data.FieldMetaData("engine", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_ID, new org.apache.thrift.meta_data.FieldMetaData("tableId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTableRequest.class, metaDataMap); } public GetTableRequest() { + this.tableId = -1L; + } public GetTableRequest( @@ -219,6 +229,7 @@ public GetTableRequest(GetTableRequest other) { if (other.isSetEngine()) { this.engine = other.engine; } + this.tableId = other.tableId; } public GetTableRequest deepCopy() { @@ -237,6 +248,8 @@ public void clear() { this.processorCapabilities = null; this.processorIdentifier = null; this.engine = null; + this.tableId = -1L; + } public String getDbName() { @@ -460,6 +473,28 @@ public void setEngineIsSet(boolean value) { } } + public long getTableId() { + return this.tableId; + } + + public void setTableId(long tableId) { + this.tableId = tableId; + setTableIdIsSet(true); + } + + public void unsetTableId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + /** Returns true if field tableId is set (has been assigned a value) and false otherwise */ + public boolean isSetTableId() { + return EncodingUtils.testBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + public void setTableIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TABLEID_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -534,6 +569,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TABLE_ID: + if (value == null) { + unsetTableId(); + } else { + setTableId((Long)value); + } + break; + } } @@ -566,6 +609,9 @@ public Object getFieldValue(_Fields field) { case ENGINE: return getEngine(); + case TABLE_ID: + return getTableId(); + } throw new IllegalStateException(); } @@ -595,6 +641,8 @@ public boolean isSet(_Fields field) { return isSetProcessorIdentifier(); case ENGINE: return isSetEngine(); + case TABLE_ID: + return isSetTableId(); } throw new IllegalStateException(); } @@ -693,6 +741,15 @@ public boolean equals(GetTableRequest that) { return false; } + boolean this_present_tableId = true && this.isSetTableId(); + boolean that_present_tableId = true && that.isSetTableId(); + if (this_present_tableId || that_present_tableId) { + if (!(this_present_tableId && that_present_tableId)) + return false; + if (this.tableId != that.tableId) + return false; + } + return true; } @@ -745,6 +802,11 @@ public int hashCode() { if (present_engine) list.add(engine); + boolean present_tableId = true && (isSetTableId()); + list.add(present_tableId); + if (present_tableId) + list.add(tableId); + return list.hashCode(); } @@ -846,6 +908,16 @@ public int compareTo(GetTableRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTableId()).compareTo(other.isSetTableId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableId, other.tableId); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -947,6 +1019,12 @@ public String toString() { } first = false; } + if (isSetTableId()) { + if (!first) sb.append(", "); + sb.append("tableId:"); + sb.append(this.tableId); + first = false; + } sb.append(")"); return sb.toString(); } @@ -1086,6 +1164,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTableRequest str org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 11: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1163,6 +1249,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTableRequest st oprot.writeFieldEnd(); } } + if (struct.isSetTableId()) { + oprot.writeFieldBegin(TABLE_ID_FIELD_DESC); + oprot.writeI64(struct.tableId); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1204,7 +1295,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTableRequest str if (struct.isSetEngine()) { optionals.set(6); } - oprot.writeBitSet(optionals, 7); + if (struct.isSetTableId()) { + optionals.set(7); + } + oprot.writeBitSet(optionals, 8); if (struct.isSetCapabilities()) { struct.capabilities.write(oprot); } @@ -1232,6 +1326,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTableRequest str if (struct.isSetEngine()) { oprot.writeString(struct.engine); } + if (struct.isSetTableId()) { + oprot.writeI64(struct.tableId); + } } @Override @@ -1241,7 +1338,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTableRequest stru struct.setDbNameIsSet(true); struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); - BitSet incoming = iprot.readBitSet(7); + BitSet incoming = iprot.readBitSet(8); if (incoming.get(0)) { struct.capabilities = new ClientCapabilities(); struct.capabilities.read(iprot); @@ -1280,6 +1377,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTableRequest stru struct.engine = iprot.readString(); struct.setEngineIsSet(true); } + if (incoming.get(7)) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(true); + } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java index 783f28c111..8694f7a2a4 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java @@ -47,6 +47,7 @@ private static final org.apache.thrift.protocol.TField ASCENDING_FIELD_DESC = new org.apache.thrift.protocol.TField("ascending", org.apache.thrift.protocol.TType.BOOL, (short)7); private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxParts", org.apache.thrift.protocol.TType.I64, (short)8); private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (short)9); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)10); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -63,6 +64,7 @@ private boolean ascending; // optional private long maxParts; // optional private String catName; // optional + private String validWriteIdList; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -74,7 +76,8 @@ PARTITION_ORDER((short)6, "partitionOrder"), ASCENDING((short)7, "ascending"), MAX_PARTS((short)8, "maxParts"), - CAT_NAME((short)9, "catName"); + CAT_NAME((short)9, "catName"), + VALID_WRITE_ID_LIST((short)10, "validWriteIdList"); private static final Map byName = new HashMap(); @@ -107,6 +110,8 @@ public static _Fields findByThriftId(int fieldId) { return MAX_PARTS; case 9: // CAT_NAME return CAT_NAME; + case 10: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; default: return null; } @@ -151,7 +156,7 @@ public String getFieldName() { private static final int __ASCENDING_ISSET_ID = 1; private static final int __MAXPARTS_ISSET_ID = 2; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.APPLY_DISTINCT,_Fields.FILTER,_Fields.PARTITION_ORDER,_Fields.ASCENDING,_Fields.MAX_PARTS,_Fields.CAT_NAME}; + private static final _Fields optionals[] = {_Fields.APPLY_DISTINCT,_Fields.FILTER,_Fields.PARTITION_ORDER,_Fields.ASCENDING,_Fields.MAX_PARTS,_Fields.CAT_NAME,_Fields.VALID_WRITE_ID_LIST}; 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); @@ -175,6 +180,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CAT_NAME, new org.apache.thrift.meta_data.FieldMetaData("catName", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PartitionValuesRequest.class, metaDataMap); } @@ -233,6 +240,9 @@ public PartitionValuesRequest(PartitionValuesRequest other) { if (other.isSetCatName()) { this.catName = other.catName; } + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } } public PartitionValuesRequest deepCopy() { @@ -253,6 +263,7 @@ public void clear() { this.maxParts = -1L; this.catName = null; + this.validWriteIdList = null; } public String getDbName() { @@ -489,6 +500,29 @@ public void setCatNameIsSet(boolean value) { } } + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -563,6 +597,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + } } @@ -595,6 +637,9 @@ public Object getFieldValue(_Fields field) { case CAT_NAME: return getCatName(); + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + } throw new IllegalStateException(); } @@ -624,6 +669,8 @@ public boolean isSet(_Fields field) { return isSetMaxParts(); case CAT_NAME: return isSetCatName(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); } throw new IllegalStateException(); } @@ -722,6 +769,15 @@ public boolean equals(PartitionValuesRequest that) { return false; } + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + return true; } @@ -774,6 +830,11 @@ public int hashCode() { if (present_catName) list.add(catName); + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + return list.hashCode(); } @@ -875,6 +936,16 @@ public int compareTo(PartitionValuesRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -966,6 +1037,16 @@ public String toString() { } first = false; } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -1117,6 +1198,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesRequ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 10: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1195,6 +1284,13 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionValuesReq oprot.writeFieldEnd(); } } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1240,7 +1336,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRequ if (struct.isSetCatName()) { optionals.set(5); } - oprot.writeBitSet(optionals, 6); + if (struct.isSetValidWriteIdList()) { + optionals.set(6); + } + oprot.writeBitSet(optionals, 7); if (struct.isSetApplyDistinct()) { oprot.writeBool(struct.applyDistinct); } @@ -1265,6 +1364,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRequ if (struct.isSetCatName()) { oprot.writeString(struct.catName); } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } } @Override @@ -1286,7 +1388,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesReque } } struct.setPartitionKeysIsSet(true); - BitSet incoming = iprot.readBitSet(6); + BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.applyDistinct = iprot.readBool(); struct.setApplyDistinctIsSet(true); @@ -1321,6 +1423,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesReque struct.catName = iprot.readString(); struct.setCatNameIsSet(true); } + if (incoming.get(6)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprRequest.java index c55da7377b..28b3ea2ad4 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprRequest.java @@ -45,6 +45,8 @@ private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxParts", org.apache.thrift.protocol.TType.I16, (short)5); private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (short)6); private static final org.apache.thrift.protocol.TField ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("order", org.apache.thrift.protocol.TType.STRING, (short)7); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)8); + private static final org.apache.thrift.protocol.TField TABLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tableId", org.apache.thrift.protocol.TType.I64, (short)9); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -59,6 +61,8 @@ private short maxParts; // optional private String catName; // optional private String order; // optional + private String validWriteIdList; // optional + private long tableId; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -68,7 +72,9 @@ DEFAULT_PARTITION_NAME((short)4, "defaultPartitionName"), MAX_PARTS((short)5, "maxParts"), CAT_NAME((short)6, "catName"), - ORDER((short)7, "order"); + ORDER((short)7, "order"), + VALID_WRITE_ID_LIST((short)8, "validWriteIdList"), + TABLE_ID((short)9, "tableId"); private static final Map byName = new HashMap(); @@ -97,6 +103,10 @@ public static _Fields findByThriftId(int fieldId) { return CAT_NAME; case 7: // ORDER return ORDER; + case 8: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; + case 9: // TABLE_ID + return TABLE_ID; default: return null; } @@ -138,8 +148,9 @@ public String getFieldName() { // isset id assignments private static final int __MAXPARTS_ISSET_ID = 0; + private static final int __TABLEID_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.DEFAULT_PARTITION_NAME,_Fields.MAX_PARTS,_Fields.CAT_NAME,_Fields.ORDER}; + private static final _Fields optionals[] = {_Fields.DEFAULT_PARTITION_NAME,_Fields.MAX_PARTS,_Fields.CAT_NAME,_Fields.ORDER,_Fields.VALID_WRITE_ID_LIST,_Fields.TABLE_ID}; 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); @@ -157,6 +168,10 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.ORDER, new org.apache.thrift.meta_data.FieldMetaData("order", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_ID, new org.apache.thrift.meta_data.FieldMetaData("tableId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PartitionsByExprRequest.class, metaDataMap); } @@ -164,6 +179,8 @@ public String getFieldName() { public PartitionsByExprRequest() { this.maxParts = (short)-1; + this.tableId = -1L; + } public PartitionsByExprRequest( @@ -201,6 +218,10 @@ public PartitionsByExprRequest(PartitionsByExprRequest other) { if (other.isSetOrder()) { this.order = other.order; } + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } + this.tableId = other.tableId; } public PartitionsByExprRequest deepCopy() { @@ -217,6 +238,9 @@ public void clear() { this.catName = null; this.order = null; + this.validWriteIdList = null; + this.tableId = -1L; + } public String getDbName() { @@ -388,6 +412,51 @@ public void setOrderIsSet(boolean value) { } } + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + + public long getTableId() { + return this.tableId; + } + + public void setTableId(long tableId) { + this.tableId = tableId; + setTableIdIsSet(true); + } + + public void unsetTableId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + /** Returns true if field tableId is set (has been assigned a value) and false otherwise */ + public boolean isSetTableId() { + return EncodingUtils.testBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + public void setTableIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TABLEID_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -446,6 +515,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + + case TABLE_ID: + if (value == null) { + unsetTableId(); + } else { + setTableId((Long)value); + } + break; + } } @@ -472,6 +557,12 @@ public Object getFieldValue(_Fields field) { case ORDER: return getOrder(); + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + + case TABLE_ID: + return getTableId(); + } throw new IllegalStateException(); } @@ -497,6 +588,10 @@ public boolean isSet(_Fields field) { return isSetCatName(); case ORDER: return isSetOrder(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); + case TABLE_ID: + return isSetTableId(); } throw new IllegalStateException(); } @@ -577,6 +672,24 @@ public boolean equals(PartitionsByExprRequest that) { return false; } + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + + boolean this_present_tableId = true && this.isSetTableId(); + boolean that_present_tableId = true && that.isSetTableId(); + if (this_present_tableId || that_present_tableId) { + if (!(this_present_tableId && that_present_tableId)) + return false; + if (this.tableId != that.tableId) + return false; + } + return true; } @@ -619,6 +732,16 @@ public int hashCode() { if (present_order) list.add(order); + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + + boolean present_tableId = true && (isSetTableId()); + list.add(present_tableId); + if (present_tableId) + list.add(tableId); + return list.hashCode(); } @@ -700,6 +823,26 @@ public int compareTo(PartitionsByExprRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableId()).compareTo(other.isSetTableId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableId, other.tableId); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -779,6 +922,22 @@ public String toString() { } first = false; } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } + if (isSetTableId()) { + if (!first) sb.append(", "); + sb.append("tableId:"); + sb.append(this.tableId); + first = false; + } sb.append(")"); return sb.toString(); } @@ -892,6 +1051,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsByExprReq org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 8: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -946,6 +1121,18 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsByExprRe oprot.writeFieldEnd(); } } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } + if (struct.isSetTableId()) { + oprot.writeFieldBegin(TABLE_ID_FIELD_DESC); + oprot.writeI64(struct.tableId); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -979,7 +1166,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprReq if (struct.isSetOrder()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetValidWriteIdList()) { + optionals.set(4); + } + if (struct.isSetTableId()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); if (struct.isSetDefaultPartitionName()) { oprot.writeString(struct.defaultPartitionName); } @@ -992,6 +1185,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprReq if (struct.isSetOrder()) { oprot.writeString(struct.order); } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } + if (struct.isSetTableId()) { + oprot.writeI64(struct.tableId); + } } @Override @@ -1003,7 +1202,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprRequ struct.setTblNameIsSet(true); struct.expr = iprot.readBinary(); struct.setExprIsSet(true); - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.defaultPartitionName = iprot.readString(); struct.setDefaultPartitionNameIsSet(true); @@ -1020,6 +1219,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprRequ struct.order = iprot.readString(); struct.setOrderIsSet(true); } + if (incoming.get(4)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } + if (incoming.get(5)) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(true); + } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsRequest.java new file mode 100644 index 0000000000..1b4b526d5d --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsRequest.java @@ -0,0 +1,806 @@ +/** + * 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 PartitionsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionsRequest"); + + 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)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxParts", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField TABLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tableId", org.apache.thrift.protocol.TType.I64, (short)5); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new PartitionsRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new PartitionsRequestTupleSchemeFactory()); + } + + private String dbName; // required + private String tblName; // required + private short maxParts; // optional + private String validWriteIdList; // optional + private long tableId; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + DB_NAME((short)1, "dbName"), + TBL_NAME((short)2, "tblName"), + MAX_PARTS((short)3, "maxParts"), + VALID_WRITE_ID_LIST((short)4, "validWriteIdList"), + TABLE_ID((short)5, "tableId"); + + private static final Map byName = new HashMap(); + + 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: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // MAX_PARTS + return MAX_PARTS; + case 4: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; + case 5: // TABLE_ID + return TABLE_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __MAXPARTS_ISSET_ID = 0; + private static final int __TABLEID_ISSET_ID = 1; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.MAX_PARTS,_Fields.VALID_WRITE_ID_LIST,_Fields.TABLE_ID}; + 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.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.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("maxParts", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_ID, new org.apache.thrift.meta_data.FieldMetaData("tableId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PartitionsRequest.class, metaDataMap); + } + + public PartitionsRequest() { + this.maxParts = (short)-1; + + this.tableId = -1L; + + } + + public PartitionsRequest( + String dbName, + String tblName) + { + this(); + this.dbName = dbName; + this.tblName = tblName; + } + + /** + * Performs a deep copy on other. + */ + public PartitionsRequest(PartitionsRequest other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbName()) { + this.dbName = other.dbName; + } + if (other.isSetTblName()) { + this.tblName = other.tblName; + } + this.maxParts = other.maxParts; + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } + this.tableId = other.tableId; + } + + public PartitionsRequest deepCopy() { + return new PartitionsRequest(this); + } + + @Override + public void clear() { + this.dbName = null; + this.tblName = null; + this.maxParts = (short)-1; + + this.validWriteIdList = null; + this.tableId = -1L; + + } + + 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 getTblName() { + return this.tblName; + } + + public void setTblName(String tblName) { + this.tblName = tblName; + } + + public void unsetTblName() { + this.tblName = null; + } + + /** Returns true if field tblName is set (has been assigned a value) and false otherwise */ + public boolean isSetTblName() { + return this.tblName != null; + } + + public void setTblNameIsSet(boolean value) { + if (!value) { + this.tblName = null; + } + } + + public short getMaxParts() { + return this.maxParts; + } + + public void setMaxParts(short maxParts) { + this.maxParts = maxParts; + setMaxPartsIsSet(true); + } + + public void unsetMaxParts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXPARTS_ISSET_ID); + } + + /** Returns true if field maxParts is set (has been assigned a value) and false otherwise */ + public boolean isSetMaxParts() { + return EncodingUtils.testBit(__isset_bitfield, __MAXPARTS_ISSET_ID); + } + + public void setMaxPartsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXPARTS_ISSET_ID, value); + } + + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + + public long getTableId() { + return this.tableId; + } + + public void setTableId(long tableId) { + this.tableId = tableId; + setTableIdIsSet(true); + } + + public void unsetTableId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + /** Returns true if field tableId is set (has been assigned a value) and false otherwise */ + public boolean isSetTableId() { + return EncodingUtils.testBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + public void setTableIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TABLEID_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDbName(); + } else { + setDbName((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTblName(); + } else { + setTblName((String)value); + } + break; + + case MAX_PARTS: + if (value == null) { + unsetMaxParts(); + } else { + setMaxParts((Short)value); + } + break; + + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + + case TABLE_ID: + if (value == null) { + unsetTableId(); + } else { + setTableId((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDbName(); + + case TBL_NAME: + return getTblName(); + + case MAX_PARTS: + return getMaxParts(); + + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + + case TABLE_ID: + return getTableId(); + + } + 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 DB_NAME: + return isSetDbName(); + case TBL_NAME: + return isSetTblName(); + case MAX_PARTS: + return isSetMaxParts(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); + case TABLE_ID: + return isSetTableId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof PartitionsRequest) + return this.equals((PartitionsRequest)that); + return false; + } + + public boolean equals(PartitionsRequest that) { + if (that == null) + 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_tblName = true && this.isSetTblName(); + boolean that_present_tblName = true && that.isSetTblName(); + if (this_present_tblName || that_present_tblName) { + if (!(this_present_tblName && that_present_tblName)) + return false; + if (!this.tblName.equals(that.tblName)) + return false; + } + + boolean this_present_maxParts = true && this.isSetMaxParts(); + boolean that_present_maxParts = true && that.isSetMaxParts(); + if (this_present_maxParts || that_present_maxParts) { + if (!(this_present_maxParts && that_present_maxParts)) + return false; + if (this.maxParts != that.maxParts) + return false; + } + + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + + boolean this_present_tableId = true && this.isSetTableId(); + boolean that_present_tableId = true && that.isSetTableId(); + if (this_present_tableId || that_present_tableId) { + if (!(this_present_tableId && that_present_tableId)) + return false; + if (this.tableId != that.tableId) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_dbName = true && (isSetDbName()); + list.add(present_dbName); + if (present_dbName) + list.add(dbName); + + boolean present_tblName = true && (isSetTblName()); + list.add(present_tblName); + if (present_tblName) + list.add(tblName); + + boolean present_maxParts = true && (isSetMaxParts()); + list.add(present_maxParts); + if (present_maxParts) + list.add(maxParts); + + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + + boolean present_tableId = true && (isSetTableId()); + list.add(present_tableId); + if (present_tableId) + list.add(tableId); + + return list.hashCode(); + } + + @Override + public int compareTo(PartitionsRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + 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(isSetTblName()).compareTo(other.isSetTblName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTblName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMaxParts()).compareTo(other.isSetMaxParts()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMaxParts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxParts, other.maxParts); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableId()).compareTo(other.isSetTableId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableId, other.tableId); + 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("PartitionsRequest("); + boolean first = true; + + sb.append("dbName:"); + if (this.dbName == null) { + sb.append("null"); + } else { + sb.append(this.dbName); + } + first = false; + if (!first) sb.append(", "); + sb.append("tblName:"); + if (this.tblName == null) { + sb.append("null"); + } else { + sb.append(this.tblName); + } + first = false; + if (isSetMaxParts()) { + if (!first) sb.append(", "); + sb.append("maxParts:"); + sb.append(this.maxParts); + first = false; + } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } + if (isSetTableId()) { + if (!first) sb.append(", "); + sb.append("tableId:"); + sb.append(this.tableId); + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetDbName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); + } + + if (!isSetTblName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class PartitionsRequestStandardSchemeFactory implements SchemeFactory { + public PartitionsRequestStandardScheme getScheme() { + return new PartitionsRequestStandardScheme(); + } + } + + private static class PartitionsRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsRequest 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: // 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 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.maxParts = iprot.readI16(); + struct.setMaxPartsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(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, PartitionsRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.dbName != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.dbName); + oprot.writeFieldEnd(); + } + if (struct.tblName != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tblName); + oprot.writeFieldEnd(); + } + if (struct.isSetMaxParts()) { + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI16(struct.maxParts); + oprot.writeFieldEnd(); + } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } + if (struct.isSetTableId()) { + oprot.writeFieldBegin(TABLE_ID_FIELD_DESC); + oprot.writeI64(struct.tableId); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class PartitionsRequestTupleSchemeFactory implements SchemeFactory { + public PartitionsRequestTupleScheme getScheme() { + return new PartitionsRequestTupleScheme(); + } + } + + private static class PartitionsRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.dbName); + oprot.writeString(struct.tblName); + BitSet optionals = new BitSet(); + if (struct.isSetMaxParts()) { + optionals.set(0); + } + if (struct.isSetValidWriteIdList()) { + optionals.set(1); + } + if (struct.isSetTableId()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetMaxParts()) { + oprot.writeI16(struct.maxParts); + } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } + if (struct.isSetTableId()) { + oprot.writeI64(struct.tableId); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.maxParts = iprot.readI16(); + struct.setMaxPartsIsSet(true); + } + if (incoming.get(1)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } + if (incoming.get(2)) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(true); + } + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsResponse.java new file mode 100644 index 0000000000..8e6cc45fd3 --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsResponse.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 PartitionsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionsResponse"); + + private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new PartitionsResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new PartitionsResponseTupleSchemeFactory()); + } + + private List partitions; // 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 { + PARTITIONS((short)1, "partitions"); + + private static final Map byName = new HashMap(); + + 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: // PARTITIONS + return PARTITIONS; + 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.PARTITIONS, new org.apache.thrift.meta_data.FieldMetaData("partitions", 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, Partition.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PartitionsResponse.class, metaDataMap); + } + + public PartitionsResponse() { + } + + public PartitionsResponse( + List partitions) + { + this(); + this.partitions = partitions; + } + + /** + * Performs a deep copy on other. + */ + public PartitionsResponse(PartitionsResponse other) { + if (other.isSetPartitions()) { + List __this__partitions = new ArrayList(other.partitions.size()); + for (Partition other_element : other.partitions) { + __this__partitions.add(new Partition(other_element)); + } + this.partitions = __this__partitions; + } + } + + public PartitionsResponse deepCopy() { + return new PartitionsResponse(this); + } + + @Override + public void clear() { + this.partitions = null; + } + + public int getPartitionsSize() { + return (this.partitions == null) ? 0 : this.partitions.size(); + } + + public java.util.Iterator getPartitionsIterator() { + return (this.partitions == null) ? null : this.partitions.iterator(); + } + + public void addToPartitions(Partition elem) { + if (this.partitions == null) { + this.partitions = new ArrayList(); + } + this.partitions.add(elem); + } + + public List getPartitions() { + return this.partitions; + } + + public void setPartitions(List partitions) { + this.partitions = partitions; + } + + public void unsetPartitions() { + this.partitions = null; + } + + /** Returns true if field partitions is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitions() { + return this.partitions != null; + } + + public void setPartitionsIsSet(boolean value) { + if (!value) { + this.partitions = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PARTITIONS: + if (value == null) { + unsetPartitions(); + } else { + setPartitions((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PARTITIONS: + return getPartitions(); + + } + 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 PARTITIONS: + return isSetPartitions(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof PartitionsResponse) + return this.equals((PartitionsResponse)that); + return false; + } + + public boolean equals(PartitionsResponse that) { + if (that == null) + return false; + + boolean this_present_partitions = true && this.isSetPartitions(); + boolean that_present_partitions = true && that.isSetPartitions(); + if (this_present_partitions || that_present_partitions) { + if (!(this_present_partitions && that_present_partitions)) + return false; + if (!this.partitions.equals(that.partitions)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_partitions = true && (isSetPartitions()); + list.add(present_partitions); + if (present_partitions) + list.add(partitions); + + return list.hashCode(); + } + + @Override + public int compareTo(PartitionsResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitions()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + 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("PartitionsResponse("); + boolean first = true; + + sb.append("partitions:"); + if (this.partitions == null) { + sb.append("null"); + } else { + sb.append(this.partitions); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetPartitions()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'partitions' 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 PartitionsResponseStandardSchemeFactory implements SchemeFactory { + public PartitionsResponseStandardScheme getScheme() { + return new PartitionsResponseStandardScheme(); + } + } + + private static class PartitionsResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsResponse 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: // PARTITIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1232 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list1232.size); + Partition _elem1233; + for (int _i1234 = 0; _i1234 < _list1232.size; ++_i1234) + { + _elem1233 = new Partition(); + _elem1233.read(iprot); + struct.partitions.add(_elem1233); + } + iprot.readListEnd(); + } + struct.setPartitionsIsSet(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, PartitionsResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.partitions != null) { + oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); + for (Partition _iter1235 : struct.partitions) + { + _iter1235.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class PartitionsResponseTupleSchemeFactory implements SchemeFactory { + public PartitionsResponseTupleScheme getScheme() { + return new PartitionsResponseTupleScheme(); + } + } + + private static class PartitionsResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.partitions.size()); + for (Partition _iter1236 : struct.partitions) + { + _iter1236.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list1237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list1237.size); + Partition _elem1238; + for (int _i1239 = 0; _i1239 < _list1237.size; ++_i1239) + { + _elem1238 = new Partition(); + _elem1238.read(iprot); + struct.partitions.add(_elem1238); + } + } + struct.setPartitionsIsSet(true); + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java index 1eafee5d15..3b9775aa9b 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java @@ -44,6 +44,7 @@ private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)5); private static final org.apache.thrift.protocol.TField ENGINE_FIELD_DESC = new org.apache.thrift.protocol.TField("engine", org.apache.thrift.protocol.TType.STRING, (short)6); + private static final org.apache.thrift.protocol.TField TABLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tableId", org.apache.thrift.protocol.TType.I64, (short)7); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -57,6 +58,7 @@ private String catName; // optional private String validWriteIdList; // optional private String engine; // required + private long tableId; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -65,7 +67,8 @@ COL_NAMES((short)3, "colNames"), CAT_NAME((short)4, "catName"), VALID_WRITE_ID_LIST((short)5, "validWriteIdList"), - ENGINE((short)6, "engine"); + ENGINE((short)6, "engine"), + TABLE_ID((short)7, "tableId"); private static final Map byName = new HashMap(); @@ -92,6 +95,8 @@ public static _Fields findByThriftId(int fieldId) { return VALID_WRITE_ID_LIST; case 6: // ENGINE return ENGINE; + case 7: // TABLE_ID + return TABLE_ID; default: return null; } @@ -132,7 +137,9 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.CAT_NAME,_Fields.VALID_WRITE_ID_LIST}; + private static final int __TABLEID_ISSET_ID = 0; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.CAT_NAME,_Fields.VALID_WRITE_ID_LIST,_Fields.TABLE_ID}; 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); @@ -149,11 +156,15 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.ENGINE, new org.apache.thrift.meta_data.FieldMetaData("engine", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_ID, new org.apache.thrift.meta_data.FieldMetaData("tableId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TableStatsRequest.class, metaDataMap); } public TableStatsRequest() { + this.tableId = -1L; + } public TableStatsRequest( @@ -173,6 +184,7 @@ public TableStatsRequest( * Performs a deep copy on other. */ public TableStatsRequest(TableStatsRequest other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDbName()) { this.dbName = other.dbName; } @@ -192,6 +204,7 @@ public TableStatsRequest(TableStatsRequest other) { if (other.isSetEngine()) { this.engine = other.engine; } + this.tableId = other.tableId; } public TableStatsRequest deepCopy() { @@ -206,6 +219,8 @@ public void clear() { this.catName = null; this.validWriteIdList = null; this.engine = null; + this.tableId = -1L; + } public String getDbName() { @@ -361,6 +376,28 @@ public void setEngineIsSet(boolean value) { } } + public long getTableId() { + return this.tableId; + } + + public void setTableId(long tableId) { + this.tableId = tableId; + setTableIdIsSet(true); + } + + public void unsetTableId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + /** Returns true if field tableId is set (has been assigned a value) and false otherwise */ + public boolean isSetTableId() { + return EncodingUtils.testBit(__isset_bitfield, __TABLEID_ISSET_ID); + } + + public void setTableIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TABLEID_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -411,6 +448,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TABLE_ID: + if (value == null) { + unsetTableId(); + } else { + setTableId((Long)value); + } + break; + } } @@ -434,6 +479,9 @@ public Object getFieldValue(_Fields field) { case ENGINE: return getEngine(); + case TABLE_ID: + return getTableId(); + } throw new IllegalStateException(); } @@ -457,6 +505,8 @@ public boolean isSet(_Fields field) { return isSetValidWriteIdList(); case ENGINE: return isSetEngine(); + case TABLE_ID: + return isSetTableId(); } throw new IllegalStateException(); } @@ -528,6 +578,15 @@ public boolean equals(TableStatsRequest that) { return false; } + boolean this_present_tableId = true && this.isSetTableId(); + boolean that_present_tableId = true && that.isSetTableId(); + if (this_present_tableId || that_present_tableId) { + if (!(this_present_tableId && that_present_tableId)) + return false; + if (this.tableId != that.tableId) + return false; + } + return true; } @@ -565,6 +624,11 @@ public int hashCode() { if (present_engine) list.add(engine); + boolean present_tableId = true && (isSetTableId()); + list.add(present_tableId); + if (present_tableId) + list.add(tableId); + return list.hashCode(); } @@ -636,6 +700,16 @@ public int compareTo(TableStatsRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTableId()).compareTo(other.isSetTableId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableId, other.tableId); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -707,6 +781,12 @@ public String toString() { sb.append(this.engine); } first = false; + if (isSetTableId()) { + if (!first) sb.append(", "); + sb.append("tableId:"); + sb.append(this.tableId); + first = false; + } sb.append(")"); return sb.toString(); } @@ -742,6 +822,8 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); @@ -824,6 +906,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableStatsRequest s org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 7: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -878,6 +968,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TableStatsRequest oprot.writeString(struct.engine); oprot.writeFieldEnd(); } + if (struct.isSetTableId()) { + oprot.writeFieldBegin(TABLE_ID_FIELD_DESC); + oprot.writeI64(struct.tableId); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -912,13 +1007,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest s if (struct.isSetValidWriteIdList()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetTableId()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetCatName()) { oprot.writeString(struct.catName); } if (struct.isSetValidWriteIdList()) { oprot.writeString(struct.validWriteIdList); } + if (struct.isSetTableId()) { + oprot.writeI64(struct.tableId); + } } @Override @@ -941,7 +1042,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest st struct.setColNamesIsSet(true); struct.engine = iprot.readString(); struct.setEngineIsSet(true); - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.catName = iprot.readString(); struct.setCatNameIsSet(true); @@ -950,6 +1051,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest st struct.validWriteIdList = iprot.readString(); struct.setValidWriteIdListIsSet(true); } + if (incoming.get(2)) { + struct.tableId = iprot.readI64(); + struct.setTableIdIsSet(true); + } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 5fd34d728b..7475d5d00f 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -82,10 +82,14 @@ public List get_fields_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException; + public GetFieldsResponse get_fields_req(GetFieldsRequest req) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException; + public List get_schema(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException; public List get_schema_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException; + public GetSchemaResponse get_schema_req(GetSchemaRequest req) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException; + public void create_table(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException; public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException; @@ -182,6 +186,8 @@ public Partition get_partition(String db_name, String tbl_name, List part_vals) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public GetPartitionResponse get_partition_req(GetPartitionRequest req) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public Partition exchange_partition(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException; public List exchange_partitions(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException; @@ -192,6 +198,8 @@ public List get_partitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public PartitionsResponse get_partitions_req(PartitionsRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public List get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; public List get_partitions_pspec(String db_name, String tbl_name, int max_parts) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; @@ -204,8 +212,12 @@ public List get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public GetPartitionsPsWithAuthResponse get_partitions_ps_with_auth_req(GetPartitionsPsWithAuthRequest req) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public List get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public GetPartitionNamesPsResponse get_partition_names_ps_req(GetPartitionNamesPsRequest req) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public List get_partition_names_req(PartitionsByExprRequest req) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; public List get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; @@ -552,10 +564,14 @@ public void get_fields_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_fields_req(GetFieldsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_schema_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_schema_req(GetSchemaRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -652,6 +668,8 @@ public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_req(GetPartitionRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void exchange_partition(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void exchange_partitions(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -662,6 +680,8 @@ public void get_partitions(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_req(PartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_partitions_pspec(String db_name, String tbl_name, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -674,8 +694,12 @@ public void get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_ps_with_auth_req(GetPartitionsPsWithAuthRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_names_ps_req(GetPartitionNamesPsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_names_req(PartitionsByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -1570,6 +1594,38 @@ public void send_get_fields_with_environment_context(String db_name, String tabl throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_fields_with_environment_context failed: unknown result"); } + public GetFieldsResponse get_fields_req(GetFieldsRequest req) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException + { + send_get_fields_req(req); + return recv_get_fields_req(); + } + + public void send_get_fields_req(GetFieldsRequest req) throws org.apache.thrift.TException + { + get_fields_req_args args = new get_fields_req_args(); + args.setReq(req); + sendBase("get_fields_req", args); + } + + public GetFieldsResponse recv_get_fields_req() throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException + { + get_fields_req_result result = new get_fields_req_result(); + receiveBase(result, "get_fields_req"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + if (result.o3 != null) { + throw result.o3; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_fields_req failed: unknown result"); + } + public List get_schema(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException { send_get_schema(db_name, table_name); @@ -1637,6 +1693,38 @@ public void send_get_schema_with_environment_context(String db_name, String tabl throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_schema_with_environment_context failed: unknown result"); } + public GetSchemaResponse get_schema_req(GetSchemaRequest req) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException + { + send_get_schema_req(req); + return recv_get_schema_req(); + } + + public void send_get_schema_req(GetSchemaRequest req) throws org.apache.thrift.TException + { + get_schema_req_args args = new get_schema_req_args(); + args.setReq(req); + sendBase("get_schema_req", args); + } + + public GetSchemaResponse recv_get_schema_req() throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException + { + get_schema_req_result result = new get_schema_req_result(); + receiveBase(result, "get_schema_req"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + if (result.o3 != null) { + throw result.o3; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_schema_req failed: unknown result"); + } + public void create_table(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException { send_create_table(tbl); @@ -3066,6 +3154,35 @@ public Partition recv_get_partition() throws MetaException, NoSuchObjectExceptio throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition failed: unknown result"); } + public GetPartitionResponse get_partition_req(GetPartitionRequest req) throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + send_get_partition_req(req); + return recv_get_partition_req(); + } + + public void send_get_partition_req(GetPartitionRequest req) throws org.apache.thrift.TException + { + get_partition_req_args args = new get_partition_req_args(); + args.setReq(req); + sendBase("get_partition_req", args); + } + + public GetPartitionResponse recv_get_partition_req() throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + get_partition_req_result result = new get_partition_req_result(); + receiveBase(result, "get_partition_req"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition_req failed: unknown result"); + } + public Partition exchange_partition(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException { send_exchange_partition(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name); @@ -3239,6 +3356,35 @@ public void send_get_partitions(String db_name, String tbl_name, short max_parts throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions failed: unknown result"); } + public PartitionsResponse get_partitions_req(PartitionsRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + send_get_partitions_req(req); + return recv_get_partitions_req(); + } + + public void send_get_partitions_req(PartitionsRequest req) throws org.apache.thrift.TException + { + get_partitions_req_args args = new get_partitions_req_args(); + args.setReq(req); + sendBase("get_partitions_req", args); + } + + public PartitionsResponse recv_get_partitions_req() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + get_partitions_req_result result = new get_partitions_req_result(); + receiveBase(result, "get_partitions_req"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions_req failed: unknown result"); + } + public List get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names); @@ -3429,6 +3575,35 @@ public void send_get_partitions_ps_with_auth(String db_name, String tbl_name, Li throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result"); } + public GetPartitionsPsWithAuthResponse get_partitions_ps_with_auth_req(GetPartitionsPsWithAuthRequest req) throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + send_get_partitions_ps_with_auth_req(req); + return recv_get_partitions_ps_with_auth_req(); + } + + public void send_get_partitions_ps_with_auth_req(GetPartitionsPsWithAuthRequest req) throws org.apache.thrift.TException + { + get_partitions_ps_with_auth_req_args args = new get_partitions_ps_with_auth_req_args(); + args.setReq(req); + sendBase("get_partitions_ps_with_auth_req", args); + } + + public GetPartitionsPsWithAuthResponse recv_get_partitions_ps_with_auth_req() throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + get_partitions_ps_with_auth_req_result result = new get_partitions_ps_with_auth_req_result(); + receiveBase(result, "get_partitions_ps_with_auth_req"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth_req failed: unknown result"); + } + public List get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts); @@ -3461,6 +3636,35 @@ public void send_get_partition_names_ps(String db_name, String tbl_name, List get_partition_names_req(PartitionsByExprRequest req) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_partition_names_req(req); @@ -8321,6 +8525,38 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void get_fields_req(GetFieldsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_fields_req_call method_call = new get_fields_req_call(req, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_fields_req_call extends org.apache.thrift.async.TAsyncMethodCall { + private GetFieldsRequest req; + public get_fields_req_call(GetFieldsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.req = req; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_fields_req", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_fields_req_args args = new get_fields_req_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetFieldsResponse getResult() throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_fields_req(); + } + } + public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_schema_call method_call = new get_schema_call(db_name, table_name, resultHandler, this, ___protocolFactory, ___transport); @@ -8394,6 +8630,38 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void get_schema_req(GetSchemaRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_schema_req_call method_call = new get_schema_req_call(req, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_req_call extends org.apache.thrift.async.TAsyncMethodCall { + private GetSchemaRequest req; + public get_schema_req_call(GetSchemaRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.req = req; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_schema_req", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_schema_req_args args = new get_schema_req_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetSchemaResponse getResult() throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_schema_req(); + } + } + public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_table_call method_call = new create_table_call(tbl, resultHandler, this, ___protocolFactory, ___transport); @@ -10113,6 +10381,38 @@ public Partition getResult() throws MetaException, NoSuchObjectException, org.ap } } + public void get_partition_req(GetPartitionRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_partition_req_call method_call = new get_partition_req_call(req, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_req_call extends org.apache.thrift.async.TAsyncMethodCall { + private GetPartitionRequest req; + public get_partition_req_call(GetPartitionRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.req = req; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partition_req", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_partition_req_args args = new get_partition_req_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetPartitionResponse getResult() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_partition_req(); + } + } + public void exchange_partition(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); exchange_partition_call method_call = new exchange_partition_call(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name, resultHandler, this, ___protocolFactory, ___transport); @@ -10321,6 +10621,38 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void get_partitions_req(PartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_partitions_req_call method_call = new get_partitions_req_call(req, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_req_call extends org.apache.thrift.async.TAsyncMethodCall { + private PartitionsRequest req; + public get_partitions_req_call(PartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.req = req; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partitions_req", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_partitions_req_args args = new get_partitions_req_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public PartitionsResponse getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_partitions_req(); + } + } + public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_with_auth_call method_call = new get_partitions_with_auth_call(db_name, tbl_name, max_parts, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); @@ -10561,6 +10893,38 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void get_partitions_ps_with_auth_req(GetPartitionsPsWithAuthRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_partitions_ps_with_auth_req_call method_call = new get_partitions_ps_with_auth_req_call(req, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_with_auth_req_call extends org.apache.thrift.async.TAsyncMethodCall { + private GetPartitionsPsWithAuthRequest req; + public get_partitions_ps_with_auth_req_call(GetPartitionsPsWithAuthRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.req = req; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partitions_ps_with_auth_req", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_partitions_ps_with_auth_req_args args = new get_partitions_ps_with_auth_req_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetPartitionsPsWithAuthResponse getResult() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_partitions_ps_with_auth_req(); + } + } + public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_names_ps_call method_call = new get_partition_names_ps_call(db_name, tbl_name, part_vals, max_parts, resultHandler, this, ___protocolFactory, ___transport); @@ -10602,6 +10966,38 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void get_partition_names_ps_req(GetPartitionNamesPsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_partition_names_ps_req_call method_call = new get_partition_names_ps_req_call(req, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_ps_req_call extends org.apache.thrift.async.TAsyncMethodCall { + private GetPartitionNamesPsRequest req; + public get_partition_names_ps_req_call(GetPartitionNamesPsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.req = req; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partition_names_ps_req", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_partition_names_ps_req_args args = new get_partition_names_ps_req_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetPartitionNamesPsResponse getResult() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_partition_names_ps_req(); + } + } + public void get_partition_names_req(PartitionsByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_names_req_call method_call = new get_partition_names_req_call(req, resultHandler, this, ___protocolFactory, ___transport); @@ -15656,8 +16052,10 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_fields_req() { + super("get_fields_req"); + } + + public get_fields_req_args getEmptyArgsInstance() { + return new get_fields_req_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_fields_req_result getResult(I iface, get_fields_req_args args) throws org.apache.thrift.TException { + get_fields_req_result result = new get_fields_req_result(); + try { + result.success = iface.get_fields_req(args.req); + } catch (MetaException o1) { + result.o1 = o1; + } catch (UnknownTableException o2) { + result.o2 = o2; + } catch (UnknownDBException o3) { + result.o3 = o3; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema extends org.apache.thrift.ProcessFunction { public get_schema() { super("get_schema"); @@ -16454,6 +16884,34 @@ public get_schema_with_environment_context_result getResult(I iface, get_schema_ } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_req extends org.apache.thrift.ProcessFunction { + public get_schema_req() { + super("get_schema_req"); + } + + public get_schema_req_args getEmptyArgsInstance() { + return new get_schema_req_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_schema_req_result getResult(I iface, get_schema_req_args args) throws org.apache.thrift.TException { + get_schema_req_result result = new get_schema_req_result(); + try { + result.success = iface.get_schema_req(args.req); + } catch (MetaException o1) { + result.o1 = o1; + } catch (UnknownTableException o2) { + result.o2 = o2; + } catch (UnknownDBException o3) { + result.o3 = o3; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table extends org.apache.thrift.ProcessFunction { public create_table() { super("create_table"); @@ -17726,6 +18184,32 @@ public get_partition_result getResult(I iface, get_partition_args args) throws o } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_req extends org.apache.thrift.ProcessFunction { + public get_partition_req() { + super("get_partition_req"); + } + + public get_partition_req_args getEmptyArgsInstance() { + return new get_partition_req_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_partition_req_result getResult(I iface, get_partition_req_args args) throws org.apache.thrift.TException { + get_partition_req_result result = new get_partition_req_result(); + try { + result.success = iface.get_partition_req(args.req); + } catch (MetaException o1) { + result.o1 = o1; + } catch (NoSuchObjectException o2) { + result.o2 = o2; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partition extends org.apache.thrift.ProcessFunction { public exchange_partition() { super("exchange_partition"); @@ -17864,6 +18348,32 @@ public get_partitions_result getResult(I iface, get_partitions_args args) throws } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_req extends org.apache.thrift.ProcessFunction { + public get_partitions_req() { + super("get_partitions_req"); + } + + public get_partitions_req_args getEmptyArgsInstance() { + return new get_partitions_req_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_partitions_req_result getResult(I iface, get_partitions_req_args args) throws org.apache.thrift.TException { + get_partitions_req_result result = new get_partitions_req_result(); + try { + result.success = iface.get_partitions_req(args.req); + } catch (NoSuchObjectException o1) { + result.o1 = o1; + } catch (MetaException o2) { + result.o2 = o2; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_with_auth extends org.apache.thrift.ProcessFunction { public get_partitions_with_auth() { super("get_partitions_with_auth"); @@ -18020,6 +18530,32 @@ public get_partitions_ps_with_auth_result getResult(I iface, get_partitions_ps_w } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_with_auth_req extends org.apache.thrift.ProcessFunction { + public get_partitions_ps_with_auth_req() { + super("get_partitions_ps_with_auth_req"); + } + + public get_partitions_ps_with_auth_req_args getEmptyArgsInstance() { + return new get_partitions_ps_with_auth_req_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_partitions_ps_with_auth_req_result getResult(I iface, get_partitions_ps_with_auth_req_args args) throws org.apache.thrift.TException { + get_partitions_ps_with_auth_req_result result = new get_partitions_ps_with_auth_req_result(); + try { + result.success = iface.get_partitions_ps_with_auth_req(args.req); + } catch (MetaException o1) { + result.o1 = o1; + } catch (NoSuchObjectException o2) { + result.o2 = o2; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_ps extends org.apache.thrift.ProcessFunction { public get_partition_names_ps() { super("get_partition_names_ps"); @@ -18046,6 +18582,32 @@ public get_partition_names_ps_result getResult(I iface, get_partition_names_ps_a } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_ps_req extends org.apache.thrift.ProcessFunction { + public get_partition_names_ps_req() { + super("get_partition_names_ps_req"); + } + + public get_partition_names_ps_req_args getEmptyArgsInstance() { + return new get_partition_names_ps_req_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_partition_names_ps_req_result getResult(I iface, get_partition_names_ps_req_args args) throws org.apache.thrift.TException { + get_partition_names_ps_req_result result = new get_partition_names_ps_req_result(); + try { + result.success = iface.get_partition_names_ps_req(args.req); + } catch (MetaException o1) { + result.o1 = o1; + } catch (NoSuchObjectException o2) { + result.o2 = o2; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_req extends org.apache.thrift.ProcessFunction { public get_partition_names_req() { super("get_partition_names_req"); @@ -21865,8 +22427,10 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction { + public get_fields_req() { + super("get_fields_req"); + } + + public get_fields_req_args getEmptyArgsInstance() { + return new get_fields_req_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(GetFieldsResponse o) { + get_fields_req_result result = new get_fields_req_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_fields_req_result result = new get_fields_req_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof UnknownTableException) { + result.o2 = (UnknownTableException) e; + result.setO2IsSet(true); + msg = result; + } + else if (e instanceof UnknownDBException) { + result.o3 = (UnknownDBException) e; + result.setO3IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_fields_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_fields_req(args.req,resultHandler); + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema extends org.apache.thrift.AsyncProcessFunction> { public get_schema() { super("get_schema"); @@ -23460,6 +24095,73 @@ public void start(I iface, get_schema_with_environment_context_args args, org.ap } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_req extends org.apache.thrift.AsyncProcessFunction { + public get_schema_req() { + super("get_schema_req"); + } + + public get_schema_req_args getEmptyArgsInstance() { + return new get_schema_req_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(GetSchemaResponse o) { + get_schema_req_result result = new get_schema_req_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_schema_req_result result = new get_schema_req_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof UnknownTableException) { + result.o2 = (UnknownTableException) e; + result.setO2IsSet(true); + msg = result; + } + else if (e instanceof UnknownDBException) { + result.o3 = (UnknownDBException) e; + result.setO3IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_schema_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_schema_req(args.req,resultHandler); + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table extends org.apache.thrift.AsyncProcessFunction { public create_table() { super("create_table"); @@ -26473,20 +27175,20 @@ public void start(I iface, get_partition_args args, org.apache.thrift.async.Asyn } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partition extends org.apache.thrift.AsyncProcessFunction { - public exchange_partition() { - super("exchange_partition"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_req extends org.apache.thrift.AsyncProcessFunction { + public get_partition_req() { + super("get_partition_req"); } - public exchange_partition_args getEmptyArgsInstance() { - return new exchange_partition_args(); + public get_partition_req_args getEmptyArgsInstance() { + return new get_partition_req_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - exchange_partition_result result = new exchange_partition_result(); + return new AsyncMethodCallback() { + public void onComplete(GetPartitionResponse o) { + get_partition_req_result result = new get_partition_req_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -26499,7 +27201,7 @@ public void onComplete(Partition o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - exchange_partition_result result = new exchange_partition_result(); + get_partition_req_result result = new get_partition_req_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -26509,16 +27211,6 @@ else if (e instanceof NoSuchObjectException) { result.o2 = (NoSuchObjectException) e; result.setO2IsSet(true); msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o3 = (InvalidObjectException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o4 = (InvalidInputException) e; - result.setO4IsSet(true); - msg = result; } else { @@ -26540,25 +27232,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, exchange_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.exchange_partition(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name,resultHandler); + public void start(I iface, get_partition_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_partition_req(args.req,resultHandler); } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partitions extends org.apache.thrift.AsyncProcessFunction> { - public exchange_partitions() { - super("exchange_partitions"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partition extends org.apache.thrift.AsyncProcessFunction { + public exchange_partition() { + super("exchange_partition"); } - public exchange_partitions_args getEmptyArgsInstance() { - return new exchange_partitions_args(); + public exchange_partition_args getEmptyArgsInstance() { + return new exchange_partition_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - exchange_partitions_result result = new exchange_partitions_result(); + return new AsyncMethodCallback() { + public void onComplete(Partition o) { + exchange_partition_result result = new exchange_partition_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -26571,7 +27263,79 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - exchange_partitions_result result = new exchange_partitions_result(); + exchange_partition_result result = new exchange_partition_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; + result.setO2IsSet(true); + msg = result; + } + else if (e instanceof InvalidObjectException) { + result.o3 = (InvalidObjectException) e; + result.setO3IsSet(true); + msg = result; + } + else if (e instanceof InvalidInputException) { + result.o4 = (InvalidInputException) e; + result.setO4IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, exchange_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.exchange_partition(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partitions extends org.apache.thrift.AsyncProcessFunction> { + public exchange_partitions() { + super("exchange_partitions"); + } + + public exchange_partitions_args getEmptyArgsInstance() { + return new exchange_partitions_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + exchange_partitions_result result = new exchange_partitions_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + exchange_partitions_result result = new exchange_partitions_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -26803,6 +27567,68 @@ public void start(I iface, get_partitions_args args, org.apache.thrift.async.Asy } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_req extends org.apache.thrift.AsyncProcessFunction { + public get_partitions_req() { + super("get_partitions_req"); + } + + public get_partitions_req_args getEmptyArgsInstance() { + return new get_partitions_req_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(PartitionsResponse o) { + get_partitions_req_result result = new get_partitions_req_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_partitions_req_result result = new get_partitions_req_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + result.o2 = (MetaException) e; + result.setO2IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_partitions_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_partitions_req(args.req,resultHandler); + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_with_auth extends org.apache.thrift.AsyncProcessFunction> { public get_partitions_with_auth() { super("get_partitions_with_auth"); @@ -27175,20 +28001,20 @@ public void start(I iface, get_partitions_ps_with_auth_args args, org.apache.thr } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_ps extends org.apache.thrift.AsyncProcessFunction> { - public get_partition_names_ps() { - super("get_partition_names_ps"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_with_auth_req extends org.apache.thrift.AsyncProcessFunction { + public get_partitions_ps_with_auth_req() { + super("get_partitions_ps_with_auth_req"); } - public get_partition_names_ps_args getEmptyArgsInstance() { - return new get_partition_names_ps_args(); + public get_partitions_ps_with_auth_req_args getEmptyArgsInstance() { + return new get_partitions_ps_with_auth_req_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partition_names_ps_result result = new get_partition_names_ps_result(); + return new AsyncMethodCallback() { + public void onComplete(GetPartitionsPsWithAuthResponse o) { + get_partitions_ps_with_auth_req_result result = new get_partitions_ps_with_auth_req_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -27201,7 +28027,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partition_names_ps_result result = new get_partition_names_ps_result(); + get_partitions_ps_with_auth_req_result result = new get_partitions_ps_with_auth_req_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -27232,25 +28058,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partition_names_ps_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts,resultHandler); + public void start(I iface, get_partitions_ps_with_auth_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_partitions_ps_with_auth_req(args.req,resultHandler); } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_req extends org.apache.thrift.AsyncProcessFunction> { - public get_partition_names_req() { - super("get_partition_names_req"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_ps extends org.apache.thrift.AsyncProcessFunction> { + public get_partition_names_ps() { + super("get_partition_names_ps"); } - public get_partition_names_req_args getEmptyArgsInstance() { - return new get_partition_names_req_args(); + public get_partition_names_ps_args getEmptyArgsInstance() { + return new get_partition_names_ps_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - get_partition_names_req_result result = new get_partition_names_req_result(); + get_partition_names_ps_result result = new get_partition_names_ps_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -27263,7 +28089,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partition_names_req_result result = new get_partition_names_req_result(); + get_partition_names_ps_result result = new get_partition_names_ps_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -27294,25 +28120,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partition_names_req_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partition_names_req(args.req,resultHandler); + public void start(I iface, get_partition_names_ps_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts,resultHandler); } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_by_filter extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_by_filter() { - super("get_partitions_by_filter"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_ps_req extends org.apache.thrift.AsyncProcessFunction { + public get_partition_names_ps_req() { + super("get_partition_names_ps_req"); } - public get_partitions_by_filter_args getEmptyArgsInstance() { - return new get_partitions_by_filter_args(); + public get_partition_names_ps_req_args getEmptyArgsInstance() { + return new get_partition_names_ps_req_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_by_filter_result result = new get_partitions_by_filter_result(); + return new AsyncMethodCallback() { + public void onComplete(GetPartitionNamesPsResponse o) { + get_partition_names_ps_req_result result = new get_partition_names_ps_req_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -27325,7 +28151,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partitions_by_filter_result result = new get_partitions_by_filter_result(); + get_partition_names_ps_req_result result = new get_partition_names_ps_req_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -27356,25 +28182,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partitions_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts,resultHandler); + public void start(I iface, get_partition_names_ps_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_partition_names_ps_req(args.req,resultHandler); } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_part_specs_by_filter extends org.apache.thrift.AsyncProcessFunction> { - public get_part_specs_by_filter() { - super("get_part_specs_by_filter"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_req extends org.apache.thrift.AsyncProcessFunction> { + public get_partition_names_req() { + super("get_partition_names_req"); } - public get_part_specs_by_filter_args getEmptyArgsInstance() { - return new get_part_specs_by_filter_args(); + public get_partition_names_req_args getEmptyArgsInstance() { + return new get_partition_names_req_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_part_specs_by_filter_result result = new get_part_specs_by_filter_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_partition_names_req_result result = new get_partition_names_req_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -27387,7 +28213,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_part_specs_by_filter_result result = new get_part_specs_by_filter_result(); + get_partition_names_req_result result = new get_partition_names_req_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -27418,25 +28244,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_part_specs_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_part_specs_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts,resultHandler); + public void start(I iface, get_partition_names_req_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_partition_names_req(args.req,resultHandler); } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_by_expr extends org.apache.thrift.AsyncProcessFunction { - public get_partitions_by_expr() { - super("get_partitions_by_expr"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_by_filter extends org.apache.thrift.AsyncProcessFunction> { + public get_partitions_by_filter() { + super("get_partitions_by_filter"); } - public get_partitions_by_expr_args getEmptyArgsInstance() { - return new get_partitions_by_expr_args(); + public get_partitions_by_filter_args getEmptyArgsInstance() { + return new get_partitions_by_filter_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(PartitionsByExprResult o) { - get_partitions_by_expr_result result = new get_partitions_by_expr_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_partitions_by_filter_result result = new get_partitions_by_filter_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -27449,7 +28275,7 @@ public void onComplete(PartitionsByExprResult o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partitions_by_expr_result result = new get_partitions_by_expr_result(); + get_partitions_by_filter_result result = new get_partitions_by_filter_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -27480,25 +28306,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partitions_by_expr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partitions_by_expr(args.req,resultHandler); + public void start(I iface, get_partitions_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts,resultHandler); } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_spec_by_expr extends org.apache.thrift.AsyncProcessFunction { - public get_partitions_spec_by_expr() { - super("get_partitions_spec_by_expr"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_part_specs_by_filter extends org.apache.thrift.AsyncProcessFunction> { + public get_part_specs_by_filter() { + super("get_part_specs_by_filter"); } - public get_partitions_spec_by_expr_args getEmptyArgsInstance() { - return new get_partitions_spec_by_expr_args(); + public get_part_specs_by_filter_args getEmptyArgsInstance() { + return new get_part_specs_by_filter_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(PartitionsSpecByExprResult o) { - get_partitions_spec_by_expr_result result = new get_partitions_spec_by_expr_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_part_specs_by_filter_result result = new get_part_specs_by_filter_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -27511,7 +28337,7 @@ public void onComplete(PartitionsSpecByExprResult o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partitions_spec_by_expr_result result = new get_partitions_spec_by_expr_result(); + get_part_specs_by_filter_result result = new get_part_specs_by_filter_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -27542,27 +28368,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partitions_spec_by_expr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partitions_spec_by_expr(args.req,resultHandler); + public void start(I iface, get_part_specs_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_part_specs_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts,resultHandler); } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_num_partitions_by_filter extends org.apache.thrift.AsyncProcessFunction { - public get_num_partitions_by_filter() { - super("get_num_partitions_by_filter"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_by_expr extends org.apache.thrift.AsyncProcessFunction { + public get_partitions_by_expr() { + super("get_partitions_by_expr"); } - public get_num_partitions_by_filter_args getEmptyArgsInstance() { - return new get_num_partitions_by_filter_args(); + public get_partitions_by_expr_args getEmptyArgsInstance() { + return new get_partitions_by_expr_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { - get_num_partitions_by_filter_result result = new get_num_partitions_by_filter_result(); + return new AsyncMethodCallback() { + public void onComplete(PartitionsByExprResult o) { + get_partitions_by_expr_result result = new get_partitions_by_expr_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -27574,7 +28399,132 @@ public void onComplete(Integer o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_num_partitions_by_filter_result result = new get_num_partitions_by_filter_result(); + get_partitions_by_expr_result result = new get_partitions_by_expr_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; + result.setO2IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_partitions_by_expr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_partitions_by_expr(args.req,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_spec_by_expr extends org.apache.thrift.AsyncProcessFunction { + public get_partitions_spec_by_expr() { + super("get_partitions_spec_by_expr"); + } + + public get_partitions_spec_by_expr_args getEmptyArgsInstance() { + return new get_partitions_spec_by_expr_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(PartitionsSpecByExprResult o) { + get_partitions_spec_by_expr_result result = new get_partitions_spec_by_expr_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_partitions_spec_by_expr_result result = new get_partitions_spec_by_expr_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; + result.setO2IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_partitions_spec_by_expr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_partitions_spec_by_expr(args.req,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_num_partitions_by_filter extends org.apache.thrift.AsyncProcessFunction { + public get_num_partitions_by_filter() { + super("get_num_partitions_by_filter"); + } + + public get_num_partitions_by_filter_args getEmptyArgsInstance() { + return new get_num_partitions_by_filter_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Integer o) { + get_num_partitions_by_filter_result result = new get_num_partitions_by_filter_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_num_partitions_by_filter_result result = new get_num_partitions_by_filter_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -47098,13 +48048,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1208 = iprot.readListBegin(); - struct.success = new ArrayList(_list1208.size); - String _elem1209; - for (int _i1210 = 0; _i1210 < _list1208.size; ++_i1210) + org.apache.thrift.protocol.TList _list1280 = iprot.readListBegin(); + struct.success = new ArrayList(_list1280.size); + String _elem1281; + for (int _i1282 = 0; _i1282 < _list1280.size; ++_i1282) { - _elem1209 = iprot.readString(); - struct.success.add(_elem1209); + _elem1281 = iprot.readString(); + struct.success.add(_elem1281); } iprot.readListEnd(); } @@ -47139,9 +48089,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_databases_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1211 : struct.success) + for (String _iter1283 : struct.success) { - oprot.writeString(_iter1211); + oprot.writeString(_iter1283); } oprot.writeListEnd(); } @@ -47180,9 +48130,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1212 : struct.success) + for (String _iter1284 : struct.success) { - oprot.writeString(_iter1212); + oprot.writeString(_iter1284); } } } @@ -47197,13 +48147,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1213 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1213.size); - String _elem1214; - for (int _i1215 = 0; _i1215 < _list1213.size; ++_i1215) + org.apache.thrift.protocol.TList _list1285 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1285.size); + String _elem1286; + for (int _i1287 = 0; _i1287 < _list1285.size; ++_i1287) { - _elem1214 = iprot.readString(); - struct.success.add(_elem1214); + _elem1286 = iprot.readString(); + struct.success.add(_elem1286); } } struct.setSuccessIsSet(true); @@ -47857,13 +48807,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1216 = iprot.readListBegin(); - struct.success = new ArrayList(_list1216.size); - String _elem1217; - for (int _i1218 = 0; _i1218 < _list1216.size; ++_i1218) + org.apache.thrift.protocol.TList _list1288 = iprot.readListBegin(); + struct.success = new ArrayList(_list1288.size); + String _elem1289; + for (int _i1290 = 0; _i1290 < _list1288.size; ++_i1290) { - _elem1217 = iprot.readString(); - struct.success.add(_elem1217); + _elem1289 = iprot.readString(); + struct.success.add(_elem1289); } iprot.readListEnd(); } @@ -47898,9 +48848,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_databases_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1219 : struct.success) + for (String _iter1291 : struct.success) { - oprot.writeString(_iter1219); + oprot.writeString(_iter1291); } oprot.writeListEnd(); } @@ -47939,9 +48889,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1220 : struct.success) + for (String _iter1292 : struct.success) { - oprot.writeString(_iter1220); + oprot.writeString(_iter1292); } } } @@ -47956,13 +48906,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_re BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1221 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1221.size); - String _elem1222; - for (int _i1223 = 0; _i1223 < _list1221.size; ++_i1223) + org.apache.thrift.protocol.TList _list1293 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1293.size); + String _elem1294; + for (int _i1295 = 0; _i1295 < _list1293.size; ++_i1295) { - _elem1222 = iprot.readString(); - struct.success.add(_elem1222); + _elem1294 = iprot.readString(); + struct.success.add(_elem1294); } } struct.setSuccessIsSet(true); @@ -52569,16 +53519,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_result case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1224 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1224.size); - String _key1225; - Type _val1226; - for (int _i1227 = 0; _i1227 < _map1224.size; ++_i1227) + org.apache.thrift.protocol.TMap _map1296 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1296.size); + String _key1297; + Type _val1298; + for (int _i1299 = 0; _i1299 < _map1296.size; ++_i1299) { - _key1225 = iprot.readString(); - _val1226 = new Type(); - _val1226.read(iprot); - struct.success.put(_key1225, _val1226); + _key1297 = iprot.readString(); + _val1298 = new Type(); + _val1298.read(iprot); + struct.success.put(_key1297, _val1298); } iprot.readMapEnd(); } @@ -52613,10 +53563,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_all_resul oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter1228 : struct.success.entrySet()) + for (Map.Entry _iter1300 : struct.success.entrySet()) { - oprot.writeString(_iter1228.getKey()); - _iter1228.getValue().write(oprot); + oprot.writeString(_iter1300.getKey()); + _iter1300.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -52655,10 +53605,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_type_all_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter1229 : struct.success.entrySet()) + for (Map.Entry _iter1301 : struct.success.entrySet()) { - oprot.writeString(_iter1229.getKey()); - _iter1229.getValue().write(oprot); + oprot.writeString(_iter1301.getKey()); + _iter1301.getValue().write(oprot); } } } @@ -52673,16 +53623,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map1230 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map1230.size); - String _key1231; - Type _val1232; - for (int _i1233 = 0; _i1233 < _map1230.size; ++_i1233) + org.apache.thrift.protocol.TMap _map1302 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map1302.size); + String _key1303; + Type _val1304; + for (int _i1305 = 0; _i1305 < _map1302.size; ++_i1305) { - _key1231 = iprot.readString(); - _val1232 = new Type(); - _val1232.read(iprot); - struct.success.put(_key1231, _val1232); + _key1303 = iprot.readString(); + _val1304 = new Type(); + _val1304.read(iprot); + struct.success.put(_key1303, _val1304); } } struct.setSuccessIsSet(true); @@ -53717,14 +54667,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1234 = iprot.readListBegin(); - struct.success = new ArrayList(_list1234.size); - FieldSchema _elem1235; - for (int _i1236 = 0; _i1236 < _list1234.size; ++_i1236) + org.apache.thrift.protocol.TList _list1306 = iprot.readListBegin(); + struct.success = new ArrayList(_list1306.size); + FieldSchema _elem1307; + for (int _i1308 = 0; _i1308 < _list1306.size; ++_i1308) { - _elem1235 = new FieldSchema(); - _elem1235.read(iprot); - struct.success.add(_elem1235); + _elem1307 = new FieldSchema(); + _elem1307.read(iprot); + struct.success.add(_elem1307); } iprot.readListEnd(); } @@ -53777,9 +54727,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter1237 : struct.success) + for (FieldSchema _iter1309 : struct.success) { - _iter1237.write(oprot); + _iter1309.write(oprot); } oprot.writeListEnd(); } @@ -53834,9 +54784,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1238 : struct.success) + for (FieldSchema _iter1310 : struct.success) { - _iter1238.write(oprot); + _iter1310.write(oprot); } } } @@ -53857,14 +54807,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1239.size); - FieldSchema _elem1240; - for (int _i1241 = 0; _i1241 < _list1239.size; ++_i1241) + org.apache.thrift.protocol.TList _list1311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1311.size); + FieldSchema _elem1312; + for (int _i1313 = 0; _i1313 < _list1311.size; ++_i1313) { - _elem1240 = new FieldSchema(); - _elem1240.read(iprot); - struct.success.add(_elem1240); + _elem1312 = new FieldSchema(); + _elem1312.read(iprot); + struct.success.add(_elem1312); } } struct.setSuccessIsSet(true); @@ -55018,14 +55968,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1242 = iprot.readListBegin(); - struct.success = new ArrayList(_list1242.size); - FieldSchema _elem1243; - for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) + org.apache.thrift.protocol.TList _list1314 = iprot.readListBegin(); + struct.success = new ArrayList(_list1314.size); + FieldSchema _elem1315; + for (int _i1316 = 0; _i1316 < _list1314.size; ++_i1316) { - _elem1243 = new FieldSchema(); - _elem1243.read(iprot); - struct.success.add(_elem1243); + _elem1315 = new FieldSchema(); + _elem1315.read(iprot); + struct.success.add(_elem1315); } iprot.readListEnd(); } @@ -55078,9 +56028,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter1245 : struct.success) + for (FieldSchema _iter1317 : struct.success) { - _iter1245.write(oprot); + _iter1317.write(oprot); } oprot.writeListEnd(); } @@ -55135,9 +56085,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1246 : struct.success) + for (FieldSchema _iter1318 : struct.success) { - _iter1246.write(oprot); + _iter1318.write(oprot); } } } @@ -55158,14 +56108,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1247.size); - FieldSchema _elem1248; - for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249) + org.apache.thrift.protocol.TList _list1319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1319.size); + FieldSchema _elem1320; + for (int _i1321 = 0; _i1321 < _list1319.size; ++_i1321) { - _elem1248 = new FieldSchema(); - _elem1248.read(iprot); - struct.success.add(_elem1248); + _elem1320 = new FieldSchema(); + _elem1320.read(iprot); + struct.success.add(_elem1320); } } struct.setSuccessIsSet(true); @@ -55190,25 +56140,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_fields_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_fields_req_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("table_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_schema_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_schema_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_fields_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_fields_req_argsTupleSchemeFactory()); } - private String db_name; // required - private String table_name; // required + private GetFieldsRequest req; // 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 { - DB_NAME((short)1, "db_name"), - TABLE_NAME((short)2, "table_name"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -55223,10 +56170,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TABLE_NAME - return TABLE_NAME; + case 1: // REQ + return REQ; default: return null; } @@ -55270,109 +56215,70 @@ public String getFieldName() { 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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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("table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetFieldsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_req_args.class, metaDataMap); } - public get_schema_args() { + public get_fields_req_args() { } - public get_schema_args( - String db_name, - String table_name) + public get_fields_req_args( + GetFieldsRequest req) { this(); - this.db_name = db_name; - this.table_name = table_name; + this.req = req; } /** * Performs a deep copy on other. */ - public get_schema_args(get_schema_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTable_name()) { - this.table_name = other.table_name; + public get_fields_req_args(get_fields_req_args other) { + if (other.isSetReq()) { + this.req = new GetFieldsRequest(other.req); } } - public get_schema_args deepCopy() { - return new get_schema_args(this); + public get_fields_req_args deepCopy() { + return new get_fields_req_args(this); } @Override public void clear() { - this.db_name = null; - this.table_name = null; - } - - public String getDb_name() { - return this.db_name; - } - - public void setDb_name(String db_name) { - this.db_name = db_name; - } - - public void unsetDb_name() { - this.db_name = null; - } - - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; - } - - public void setDb_nameIsSet(boolean value) { - if (!value) { - this.db_name = null; - } + this.req = null; } - public String getTable_name() { - return this.table_name; + public GetFieldsRequest getReq() { + return this.req; } - public void setTable_name(String table_name) { - this.table_name = table_name; + public void setReq(GetFieldsRequest req) { + this.req = req; } - public void unsetTable_name() { - this.table_name = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field table_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTable_name() { - return this.table_name != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setTable_nameIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.table_name = null; + this.req = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: - if (value == null) { - unsetDb_name(); - } else { - setDb_name((String)value); - } - break; - - case TABLE_NAME: + case REQ: if (value == null) { - unsetTable_name(); + unsetReq(); } else { - setTable_name((String)value); + setReq((GetFieldsRequest)value); } break; @@ -55381,11 +56287,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TABLE_NAME: - return getTable_name(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -55398,10 +56301,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TABLE_NAME: - return isSetTable_name(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -55410,30 +56311,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_schema_args) - return this.equals((get_schema_args)that); + if (that instanceof get_fields_req_args) + return this.equals((get_fields_req_args)that); return false; } - public boolean equals(get_schema_args that) { + public boolean equals(get_fields_req_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_table_name = true && this.isSetTable_name(); - boolean that_present_table_name = true && that.isSetTable_name(); - if (this_present_table_name || that_present_table_name) { - if (!(this_present_table_name && that_present_table_name)) + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (!this.table_name.equals(that.table_name)) + if (!this.req.equals(that.req)) return false; } @@ -55444,43 +56336,28 @@ public boolean equals(get_schema_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_table_name = true && (isSetTable_name()); - list.add(present_table_name); - if (present_table_name) - list.add(table_name); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(get_schema_args other) { + public int compareTo(get_fields_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(other.isSetTable_name()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetTable_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, other.table_name); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -55502,22 +56379,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_schema_args("); + StringBuilder sb = new StringBuilder("get_fields_req_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("table_name:"); - if (this.table_name == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.table_name); + sb.append(this.req); } first = false; sb.append(")"); @@ -55527,6 +56396,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (req != null) { + req.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -55545,15 +56417,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_schema_argsStandardSchemeFactory implements SchemeFactory { - public get_schema_argsStandardScheme getScheme() { - return new get_schema_argsStandardScheme(); + private static class get_fields_req_argsStandardSchemeFactory implements SchemeFactory { + public get_fields_req_argsStandardScheme getScheme() { + return new get_fields_req_argsStandardScheme(); } } - private static class get_schema_argsStandardScheme extends StandardScheme { + private static class get_fields_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -55563,18 +56435,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_args str break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.table_name = iprot.readString(); - struct.setTable_nameIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new GetFieldsRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -55588,18 +56453,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.table_name != null) { - oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.table_name); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -55608,65 +56468,56 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_args st } - private static class get_schema_argsTupleSchemeFactory implements SchemeFactory { - public get_schema_argsTupleScheme getScheme() { - return new get_schema_argsTupleScheme(); + private static class get_fields_req_argsTupleSchemeFactory implements SchemeFactory { + public get_fields_req_argsTupleScheme getScheme() { + return new get_fields_req_argsTupleScheme(); } } - private static class get_schema_argsTupleScheme extends TupleScheme { + private static class get_fields_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetTable_name()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTable_name()) { - oprot.writeString(struct.table_name); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.table_name = iprot.readString(); - struct.setTable_nameIsSet(true); + struct.req = new GetFieldsRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_fields_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_fields_req_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_schema_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_schema_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_fields_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_fields_req_resultTupleSchemeFactory()); } - private List success; // required + private GetFieldsResponse success; // required private MetaException o1; // required private UnknownTableException o2; // required private UnknownDBException o3; // required @@ -55743,8 +56594,7 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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, FieldSchema.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetFieldsResponse.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -55752,14 +56602,14 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_req_result.class, metaDataMap); } - public get_schema_result() { + public get_fields_req_result() { } - public get_schema_result( - List success, + public get_fields_req_result( + GetFieldsResponse success, MetaException o1, UnknownTableException o2, UnknownDBException o3) @@ -55774,13 +56624,9 @@ public get_schema_result( /** * Performs a deep copy on other. */ - public get_schema_result(get_schema_result other) { + public get_fields_req_result(get_fields_req_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (FieldSchema other_element : other.success) { - __this__success.add(new FieldSchema(other_element)); - } - this.success = __this__success; + this.success = new GetFieldsResponse(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -55793,8 +56639,8 @@ public get_schema_result(get_schema_result other) { } } - public get_schema_result deepCopy() { - return new get_schema_result(this); + public get_fields_req_result deepCopy() { + return new get_fields_req_result(this); } @Override @@ -55805,26 +56651,11 @@ public void clear() { this.o3 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(FieldSchema elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public GetFieldsResponse getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(GetFieldsResponse success) { this.success = success; } @@ -55918,7 +56749,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((GetFieldsResponse)value); } break; @@ -55990,12 +56821,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_schema_result) - return this.equals((get_schema_result)that); + if (that instanceof get_fields_req_result) + return this.equals((get_fields_req_result)that); return false; } - public boolean equals(get_schema_result that) { + public boolean equals(get_fields_req_result that) { if (that == null) return false; @@ -56066,7 +56897,7 @@ public int hashCode() { } @Override - public int compareTo(get_schema_result other) { + public int compareTo(get_fields_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -56130,7 +56961,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_schema_result("); + StringBuilder sb = new StringBuilder("get_fields_req_result("); boolean first = true; sb.append("success:"); @@ -56171,6 +57002,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -56189,15 +57023,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_schema_resultStandardSchemeFactory implements SchemeFactory { - public get_schema_resultStandardScheme getScheme() { - return new get_schema_resultStandardScheme(); + private static class get_fields_req_resultStandardSchemeFactory implements SchemeFactory { + public get_fields_req_resultStandardScheme getScheme() { + return new get_fields_req_resultStandardScheme(); } } - private static class get_schema_resultStandardScheme extends StandardScheme { + private static class get_fields_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -56208,19 +57042,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result s } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1250 = iprot.readListBegin(); - struct.success = new ArrayList(_list1250.size); - FieldSchema _elem1251; - for (int _i1252 = 0; _i1252 < _list1250.size; ++_i1252) - { - _elem1251 = new FieldSchema(); - _elem1251.read(iprot); - struct.success.add(_elem1251); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new GetFieldsResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -56262,20 +57086,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter1253 : struct.success) - { - _iter1253.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -56299,16 +57116,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result } - private static class get_schema_resultTupleSchemeFactory implements SchemeFactory { - public get_schema_resultTupleScheme getScheme() { - return new get_schema_resultTupleScheme(); + private static class get_fields_req_resultTupleSchemeFactory implements SchemeFactory { + public get_fields_req_resultTupleScheme getScheme() { + return new get_fields_req_resultTupleScheme(); } } - private static class get_schema_resultTupleScheme extends TupleScheme { + private static class get_fields_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -56325,13 +57142,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1254 : struct.success) - { - _iter1254.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -56345,21 +57156,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1255.size); - FieldSchema _elem1256; - for (int _i1257 = 0; _i1257 < _list1255.size; ++_i1257) - { - _elem1256 = new FieldSchema(); - _elem1256.read(iprot); - struct.success.add(_elem1256); - } - } + struct.success = new GetFieldsResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -56382,28 +57184,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result st } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_with_environment_context_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("table_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_schema_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_schema_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_schema_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_schema_argsTupleSchemeFactory()); } private String db_name; // required private String table_name; // required - private EnvironmentContext environment_context; // 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 { DB_NAME((short)1, "db_name"), - TABLE_NAME((short)2, "table_name"), - ENVIRONMENT_CONTEXT((short)3, "environment_context"); + TABLE_NAME((short)2, "table_name"); private static final Map byName = new HashMap(); @@ -56422,8 +57221,6 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TABLE_NAME return TABLE_NAME; - case 3: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; default: return null; } @@ -56471,50 +57268,42 @@ public String getFieldName() { 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("table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_args.class, metaDataMap); } - public get_schema_with_environment_context_args() { + public get_schema_args() { } - public get_schema_with_environment_context_args( + public get_schema_args( String db_name, - String table_name, - EnvironmentContext environment_context) + String table_name) { this(); this.db_name = db_name; this.table_name = table_name; - this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public get_schema_with_environment_context_args(get_schema_with_environment_context_args other) { + public get_schema_args(get_schema_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTable_name()) { this.table_name = other.table_name; } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); - } } - public get_schema_with_environment_context_args deepCopy() { - return new get_schema_with_environment_context_args(this); + public get_schema_args deepCopy() { + return new get_schema_args(this); } @Override public void clear() { this.db_name = null; this.table_name = null; - this.environment_context = null; } public String getDb_name() { @@ -56563,29 +57352,6 @@ public void setTable_nameIsSet(boolean value) { } } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; - } - - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; - } - - public void unsetEnvironment_context() { - this.environment_context = null; - } - - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; - } - - public void setEnvironment_contextIsSet(boolean value) { - if (!value) { - this.environment_context = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -56604,14 +57370,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case ENVIRONMENT_CONTEXT: - if (value == null) { - unsetEnvironment_context(); - } else { - setEnvironment_context((EnvironmentContext)value); - } - break; - } } @@ -56623,9 +57381,6 @@ public Object getFieldValue(_Fields field) { case TABLE_NAME: return getTable_name(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); - } throw new IllegalStateException(); } @@ -56641,8 +57396,6 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TABLE_NAME: return isSetTable_name(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -56651,12 +57404,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_schema_with_environment_context_args) - return this.equals((get_schema_with_environment_context_args)that); + if (that instanceof get_schema_args) + return this.equals((get_schema_args)that); return false; } - public boolean equals(get_schema_with_environment_context_args that) { + public boolean equals(get_schema_args that) { if (that == null) return false; @@ -56678,15 +57431,6 @@ public boolean equals(get_schema_with_environment_context_args that) { return false; } - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) - return false; - if (!this.environment_context.equals(that.environment_context)) - return false; - } - return true; } @@ -56704,16 +57448,11 @@ public int hashCode() { if (present_table_name) list.add(table_name); - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); - return list.hashCode(); } @Override - public int compareTo(get_schema_with_environment_context_args other) { + public int compareTo(get_schema_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -56740,16 +57479,6 @@ public int compareTo(get_schema_with_environment_context_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -56767,7 +57496,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_schema_with_environment_context_args("); + StringBuilder sb = new StringBuilder("get_schema_args("); boolean first = true; sb.append("db_name:"); @@ -56785,14 +57514,6 @@ public String toString() { sb.append(this.table_name); } first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { - sb.append("null"); - } else { - sb.append(this.environment_context); - } - first = false; sb.append(")"); return sb.toString(); } @@ -56800,9 +57521,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -56821,15 +57539,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_schema_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public get_schema_with_environment_context_argsStandardScheme getScheme() { - return new get_schema_with_environment_context_argsStandardScheme(); + private static class get_schema_argsStandardSchemeFactory implements SchemeFactory { + public get_schema_argsStandardScheme getScheme() { + return new get_schema_argsStandardScheme(); } } - private static class get_schema_with_environment_context_argsStandardScheme extends StandardScheme { + private static class get_schema_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -56855,15 +57573,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -56873,7 +57582,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -56887,27 +57596,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_en oprot.writeString(struct.table_name); oprot.writeFieldEnd(); } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_schema_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public get_schema_with_environment_context_argsTupleScheme getScheme() { - return new get_schema_with_environment_context_argsTupleScheme(); + private static class get_schema_argsTupleSchemeFactory implements SchemeFactory { + public get_schema_argsTupleScheme getScheme() { + return new get_schema_argsTupleScheme(); } } - private static class get_schema_with_environment_context_argsTupleScheme extends TupleScheme { + private static class get_schema_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -56916,25 +57620,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetTable_name()) { optionals.set(1); } - if (struct.isSetEnvironment_context()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTable_name()) { oprot.writeString(struct.table_name); } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -56943,18 +57641,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi struct.table_name = iprot.readString(); struct.setTable_nameIsSet(true); } - if (incoming.get(2)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_with_environment_context_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -56963,8 +57656,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_schema_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_schema_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_schema_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_schema_resultTupleSchemeFactory()); } private List success; // required @@ -57053,13 +57746,13 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_result.class, metaDataMap); } - public get_schema_with_environment_context_result() { + public get_schema_result() { } - public get_schema_with_environment_context_result( + public get_schema_result( List success, MetaException o1, UnknownTableException o2, @@ -57075,7 +57768,7 @@ public get_schema_with_environment_context_result( /** * Performs a deep copy on other. */ - public get_schema_with_environment_context_result(get_schema_with_environment_context_result other) { + public get_schema_result(get_schema_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (FieldSchema other_element : other.success) { @@ -57094,8 +57787,8 @@ public get_schema_with_environment_context_result(get_schema_with_environment_co } } - public get_schema_with_environment_context_result deepCopy() { - return new get_schema_with_environment_context_result(this); + public get_schema_result deepCopy() { + return new get_schema_result(this); } @Override @@ -57291,12 +57984,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_schema_with_environment_context_result) - return this.equals((get_schema_with_environment_context_result)that); + if (that instanceof get_schema_result) + return this.equals((get_schema_result)that); return false; } - public boolean equals(get_schema_with_environment_context_result that) { + public boolean equals(get_schema_result that) { if (that == null) return false; @@ -57367,7 +58060,7 @@ public int hashCode() { } @Override - public int compareTo(get_schema_with_environment_context_result other) { + public int compareTo(get_schema_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -57431,7 +58124,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_schema_with_environment_context_result("); + StringBuilder sb = new StringBuilder("get_schema_result("); boolean first = true; sb.append("success:"); @@ -57490,15 +58183,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_schema_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public get_schema_with_environment_context_resultStandardScheme getScheme() { - return new get_schema_with_environment_context_resultStandardScheme(); + private static class get_schema_resultStandardSchemeFactory implements SchemeFactory { + public get_schema_resultStandardScheme getScheme() { + return new get_schema_resultStandardScheme(); } } - private static class get_schema_with_environment_context_resultStandardScheme extends StandardScheme { + private static class get_schema_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -57511,14 +58204,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1258 = iprot.readListBegin(); - struct.success = new ArrayList(_list1258.size); - FieldSchema _elem1259; - for (int _i1260 = 0; _i1260 < _list1258.size; ++_i1260) + org.apache.thrift.protocol.TList _list1322 = iprot.readListBegin(); + struct.success = new ArrayList(_list1322.size); + FieldSchema _elem1323; + for (int _i1324 = 0; _i1324 < _list1322.size; ++_i1324) { - _elem1259 = new FieldSchema(); - _elem1259.read(iprot); - struct.success.add(_elem1259); + _elem1323 = new FieldSchema(); + _elem1323.read(iprot); + struct.success.add(_elem1323); } iprot.readListEnd(); } @@ -57563,7 +58256,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -57571,9 +58264,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter1261 : struct.success) + for (FieldSchema _iter1325 : struct.success) { - _iter1261.write(oprot); + _iter1325.write(oprot); } oprot.writeListEnd(); } @@ -57600,16 +58293,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_en } - private static class get_schema_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public get_schema_with_environment_context_resultTupleScheme getScheme() { - return new get_schema_with_environment_context_resultTupleScheme(); + private static class get_schema_resultTupleSchemeFactory implements SchemeFactory { + public get_schema_resultTupleScheme getScheme() { + return new get_schema_resultTupleScheme(); } } - private static class get_schema_with_environment_context_resultTupleScheme extends TupleScheme { + private static class get_schema_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -57628,9 +58321,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1262 : struct.success) + for (FieldSchema _iter1326 : struct.success) { - _iter1262.write(oprot); + _iter1326.write(oprot); } } } @@ -57646,19 +58339,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1263.size); - FieldSchema _elem1264; - for (int _i1265 = 0; _i1265 < _list1263.size; ++_i1265) + org.apache.thrift.protocol.TList _list1327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1327.size); + FieldSchema _elem1328; + for (int _i1329 = 0; _i1329 < _list1327.size; ++_i1329) { - _elem1264 = new FieldSchema(); - _elem1264.read(iprot); - struct.success.add(_elem1264); + _elem1328 = new FieldSchema(); + _elem1328.read(iprot); + struct.success.add(_elem1328); } } struct.setSuccessIsSet(true); @@ -57683,22 +58376,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_with_environment_context_args"); - private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("table_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_schema_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_schema_with_environment_context_argsTupleSchemeFactory()); } - private Table tbl; // required + private String db_name; // required + private String table_name; // required + private EnvironmentContext environment_context; // 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 { - TBL((short)1, "tbl"); + DB_NAME((short)1, "db_name"), + TABLE_NAME((short)2, "table_name"), + ENVIRONMENT_CONTEXT((short)3, "environment_context"); private static final Map byName = new HashMap(); @@ -57713,8 +58412,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TBL - return TBL; + case 1: // DB_NAME + return DB_NAME; + case 2: // TABLE_NAME + return TABLE_NAME; + case 3: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -57758,70 +58461,148 @@ public String getFieldName() { 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.TBL, new org.apache.thrift.meta_data.FieldMetaData("tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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("table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_with_environment_context_args.class, metaDataMap); } - public create_table_args() { + public get_schema_with_environment_context_args() { } - public create_table_args( - Table tbl) + public get_schema_with_environment_context_args( + String db_name, + String table_name, + EnvironmentContext environment_context) { this(); - this.tbl = tbl; + this.db_name = db_name; + this.table_name = table_name; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public create_table_args(create_table_args other) { - if (other.isSetTbl()) { - this.tbl = new Table(other.tbl); + public get_schema_with_environment_context_args(get_schema_with_environment_context_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTable_name()) { + this.table_name = other.table_name; + } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } } - public create_table_args deepCopy() { - return new create_table_args(this); + public get_schema_with_environment_context_args deepCopy() { + return new get_schema_with_environment_context_args(this); } @Override public void clear() { - this.tbl = null; + this.db_name = null; + this.table_name = null; + this.environment_context = null; } - public Table getTbl() { - return this.tbl; + public String getDb_name() { + return this.db_name; } - public void setTbl(Table tbl) { - this.tbl = tbl; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetTbl() { - this.tbl = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field tbl is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl() { - return this.tbl != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setTblIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.tbl = null; + this.db_name = null; + } + } + + public String getTable_name() { + return this.table_name; + } + + public void setTable_name(String table_name) { + this.table_name = table_name; + } + + public void unsetTable_name() { + this.table_name = null; + } + + /** Returns true if field table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTable_name() { + return this.table_name != null; + } + + public void setTable_nameIsSet(boolean value) { + if (!value) { + this.table_name = null; + } + } + + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case TBL: + case DB_NAME: if (value == null) { - unsetTbl(); + unsetDb_name(); } else { - setTbl((Table)value); + setDb_name((String)value); + } + break; + + case TABLE_NAME: + if (value == null) { + unsetTable_name(); + } else { + setTable_name((String)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -57830,8 +58611,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case TBL: - return getTbl(); + case DB_NAME: + return getDb_name(); + + case TABLE_NAME: + return getTable_name(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -57844,8 +58631,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case TBL: - return isSetTbl(); + case DB_NAME: + return isSetDb_name(); + case TABLE_NAME: + return isSetTable_name(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -57854,21 +58645,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_table_args) - return this.equals((create_table_args)that); + if (that instanceof get_schema_with_environment_context_args) + return this.equals((get_schema_with_environment_context_args)that); return false; } - public boolean equals(create_table_args that) { + public boolean equals(get_schema_with_environment_context_args that) { if (that == null) return false; - boolean this_present_tbl = true && this.isSetTbl(); - boolean that_present_tbl = true && that.isSetTbl(); - if (this_present_tbl || that_present_tbl) { - if (!(this_present_tbl && that_present_tbl)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.tbl.equals(that.tbl)) + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_table_name = true && this.isSetTable_name(); + boolean that_present_table_name = true && that.isSetTable_name(); + if (this_present_table_name || that_present_table_name) { + if (!(this_present_table_name && that_present_table_name)) + return false; + if (!this.table_name.equals(that.table_name)) + return false; + } + + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) return false; } @@ -57879,28 +58688,58 @@ public boolean equals(create_table_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_tbl = true && (isSetTbl()); - list.add(present_tbl); - if (present_tbl) - list.add(tbl); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_table_name = true && (isSetTable_name()); + list.add(present_table_name); + if (present_table_name) + list.add(table_name); + + boolean present_environment_context = true && (isSetEnvironment_context()); + list.add(present_environment_context); + if (present_environment_context) + list.add(environment_context); return list.hashCode(); } @Override - public int compareTo(create_table_args other) { + public int compareTo(get_schema_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTbl()).compareTo(other.isSetTbl()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, other.tbl); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(other.isSetTable_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTable_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, other.table_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -57922,14 +58761,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_table_args("); + StringBuilder sb = new StringBuilder("get_schema_with_environment_context_args("); boolean first = true; - sb.append("tbl:"); - if (this.tbl == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.tbl); + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("table_name:"); + if (this.table_name == null) { + sb.append("null"); + } else { + sb.append(this.table_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); } first = false; sb.append(")"); @@ -57939,8 +58794,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (tbl != null) { - tbl.validate(); + if (environment_context != null) { + environment_context.validate(); } } @@ -57960,15 +58815,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_table_argsStandardSchemeFactory implements SchemeFactory { - public create_table_argsStandardScheme getScheme() { - return new create_table_argsStandardScheme(); + private static class get_schema_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public get_schema_with_environment_context_argsStandardScheme getScheme() { + return new get_schema_with_environment_context_argsStandardScheme(); } } - private static class create_table_argsStandardScheme extends StandardScheme { + private static class get_schema_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -57978,11 +58833,27 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_args s break; } switch (schemeField.id) { - case 1: // TBL + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table_name = iprot.readString(); + struct.setTable_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ENVIRONMENT_CONTEXT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tbl = new Table(); - struct.tbl.read(iprot); - struct.setTblIsSet(true); + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -57996,13 +58867,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_args s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.tbl != null) { - oprot.writeFieldBegin(TBL_FIELD_DESC); - struct.tbl.write(oprot); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.table_name != null) { + oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.table_name); + oprot.writeFieldEnd(); + } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -58011,66 +58892,86 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_args } - private static class create_table_argsTupleSchemeFactory implements SchemeFactory { - public create_table_argsTupleScheme getScheme() { - return new create_table_argsTupleScheme(); + private static class get_schema_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public get_schema_with_environment_context_argsTupleScheme getScheme() { + return new get_schema_with_environment_context_argsTupleScheme(); } } - private static class create_table_argsTupleScheme extends TupleScheme { + private static class get_schema_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetTbl()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetTbl()) { - struct.tbl.write(oprot); + if (struct.isSetTable_name()) { + optionals.set(1); + } + if (struct.isSetEnvironment_context()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTable_name()) { + oprot.writeString(struct.table_name); + } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.tbl = new Table(); - struct.tbl.read(iprot); - struct.setTblIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.table_name = iprot.readString(); + struct.setTable_nameIsSet(true); + } + if (incoming.get(2)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_with_environment_context_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_schema_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_schema_with_environment_context_resultTupleSchemeFactory()); } - private AlreadyExistsException o1; // required - private InvalidObjectException o2; // required - private MetaException o3; // required - private NoSuchObjectException o4; // required + private List success; // required + private MetaException o1; // required + private UnknownTableException o2; // required + private UnknownDBException o3; // 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 { + SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), - O3((short)3, "o3"), - O4((short)4, "o4"); + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -58085,14 +58986,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_args st */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; case 3: // O3 return O3; - case 4: // O4 - return O4; default: return null; } @@ -58136,69 +59037,112 @@ public String getFieldName() { 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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, FieldSchema.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_with_environment_context_result.class, metaDataMap); } - public create_table_result() { + public get_schema_with_environment_context_result() { } - public create_table_result( - AlreadyExistsException o1, - InvalidObjectException o2, - MetaException o3, - NoSuchObjectException o4) + public get_schema_with_environment_context_result( + List success, + MetaException o1, + UnknownTableException o2, + UnknownDBException o3) { this(); + this.success = success; this.o1 = o1; this.o2 = o2; this.o3 = o3; - this.o4 = o4; } /** * Performs a deep copy on other. */ - public create_table_result(create_table_result other) { + public get_schema_with_environment_context_result(get_schema_with_environment_context_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (FieldSchema other_element : other.success) { + __this__success.add(new FieldSchema(other_element)); + } + this.success = __this__success; + } if (other.isSetO1()) { - this.o1 = new AlreadyExistsException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new InvalidObjectException(other.o2); + this.o2 = new UnknownTableException(other.o2); } if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); - } - if (other.isSetO4()) { - this.o4 = new NoSuchObjectException(other.o4); + this.o3 = new UnknownDBException(other.o3); } } - public create_table_result deepCopy() { - return new create_table_result(this); + public get_schema_with_environment_context_result deepCopy() { + return new get_schema_with_environment_context_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; this.o2 = null; this.o3 = null; - this.o4 = null; } - public AlreadyExistsException getO1() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(FieldSchema elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public void setSuccess(List success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public MetaException getO1() { return this.o1; } - public void setO1(AlreadyExistsException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -58217,11 +59161,11 @@ public void setO1IsSet(boolean value) { } } - public InvalidObjectException getO2() { + public UnknownTableException getO2() { return this.o2; } - public void setO2(InvalidObjectException o2) { + public void setO2(UnknownTableException o2) { this.o2 = o2; } @@ -58240,11 +59184,11 @@ public void setO2IsSet(boolean value) { } } - public MetaException getO3() { + public UnknownDBException getO3() { return this.o3; } - public void setO3(MetaException o3) { + public void setO3(UnknownDBException o3) { this.o3 = o3; } @@ -58263,36 +59207,21 @@ public void setO3IsSet(boolean value) { } } - public NoSuchObjectException getO4() { - return this.o4; - } - - public void setO4(NoSuchObjectException o4) { - this.o4 = o4; - } - - public void unsetO4() { - this.o4 = null; - } - - /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ - public boolean isSetO4() { - return this.o4 != null; - } - - public void setO4IsSet(boolean value) { - if (!value) { - this.o4 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + case O1: if (value == null) { unsetO1(); } else { - setO1((AlreadyExistsException)value); + setO1((MetaException)value); } break; @@ -58300,7 +59229,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((InvalidObjectException)value); + setO2((UnknownTableException)value); } break; @@ -58308,15 +59237,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO3(); } else { - setO3((MetaException)value); - } - break; - - case O4: - if (value == null) { - unsetO4(); - } else { - setO4((NoSuchObjectException)value); + setO3((UnknownDBException)value); } break; @@ -58325,6 +59246,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); @@ -58334,9 +59258,6 @@ public Object getFieldValue(_Fields field) { case O3: return getO3(); - case O4: - return getO4(); - } throw new IllegalStateException(); } @@ -58348,14 +59269,14 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); case O3: return isSetO3(); - case O4: - return isSetO4(); } throw new IllegalStateException(); } @@ -58364,15 +59285,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_table_result) - return this.equals((create_table_result)that); + if (that instanceof get_schema_with_environment_context_result) + return this.equals((get_schema_with_environment_context_result)that); return false; } - public boolean equals(create_table_result that) { + public boolean equals(get_schema_with_environment_context_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -58400,15 +59330,6 @@ public boolean equals(create_table_result that) { return false; } - boolean this_present_o4 = true && this.isSetO4(); - boolean that_present_o4 = true && that.isSetO4(); - if (this_present_o4 || that_present_o4) { - if (!(this_present_o4 && that_present_o4)) - return false; - if (!this.o4.equals(that.o4)) - return false; - } - return true; } @@ -58416,6 +59337,11 @@ public boolean equals(create_table_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -58431,22 +59357,27 @@ public int hashCode() { if (present_o3) list.add(o3); - boolean present_o4 = true && (isSetO4()); - list.add(present_o4); - if (present_o4) - list.add(o4); - return list.hashCode(); } @Override - public int compareTo(create_table_result other) { + public int compareTo(get_schema_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -58477,16 +59408,6 @@ public int compareTo(create_table_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -58504,9 +59425,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_table_result("); + StringBuilder sb = new StringBuilder("get_schema_with_environment_context_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -58530,14 +59459,6 @@ public String toString() { sb.append(this.o3); } first = false; - if (!first) sb.append(", "); - sb.append("o4:"); - if (this.o4 == null) { - sb.append("null"); - } else { - sb.append(this.o4); - } - first = false; sb.append(")"); return sb.toString(); } @@ -58563,15 +59484,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_table_resultStandardSchemeFactory implements SchemeFactory { - public create_table_resultStandardScheme getScheme() { - return new create_table_resultStandardScheme(); + private static class get_schema_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public get_schema_with_environment_context_resultStandardScheme getScheme() { + return new get_schema_with_environment_context_resultStandardScheme(); } } - private static class create_table_resultStandardScheme extends StandardScheme { + private static class get_schema_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -58581,9 +59502,28 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_result break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1330 = iprot.readListBegin(); + struct.success = new ArrayList(_list1330.size); + FieldSchema _elem1331; + for (int _i1332 = 0; _i1332 < _list1330.size; ++_i1332) + { + _elem1331 = new FieldSchema(); + _elem1331.read(iprot); + struct.success.add(_elem1331); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new AlreadyExistsException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -58592,7 +59532,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_result break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new InvalidObjectException(); + struct.o2 = new UnknownTableException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -58601,22 +59541,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_result break; case 3: // O3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); + struct.o3 = new UnknownDBException(); struct.o3.read(iprot); struct.setO3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // O4 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o4 = new NoSuchObjectException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -58626,10 +59557,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (FieldSchema _iter1333 : struct.success) + { + _iter1333.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -58645,42 +59588,46 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_resul struct.o3.write(oprot); oprot.writeFieldEnd(); } - if (struct.o4 != null) { - oprot.writeFieldBegin(O4_FIELD_DESC); - struct.o4.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class create_table_resultTupleSchemeFactory implements SchemeFactory { - public create_table_resultTupleScheme getScheme() { - return new create_table_resultTupleScheme(); + private static class get_schema_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public get_schema_with_environment_context_resultTupleScheme getScheme() { + return new get_schema_with_environment_context_resultTupleScheme(); } } - private static class create_table_resultTupleScheme extends TupleScheme { + private static class get_schema_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - if (struct.isSetO3()) { + if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO4()) { + if (struct.isSetO3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (FieldSchema _iter1334 : struct.success) + { + _iter1334.write(oprot); + } + } + } if (struct.isSetO1()) { struct.o1.write(oprot); } @@ -58690,59 +59637,62 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_result if (struct.isSetO3()) { struct.o3.write(oprot); } - if (struct.isSetO4()) { - struct.o4.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.o1 = new AlreadyExistsException(); + { + org.apache.thrift.protocol.TList _list1335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1335.size); + FieldSchema _elem1336; + for (int _i1337 = 0; _i1337 < _list1335.size; ++_i1337) + { + _elem1336 = new FieldSchema(); + _elem1336.read(iprot); + struct.success.add(_elem1336); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new InvalidObjectException(); + if (incoming.get(2)) { + struct.o2 = new UnknownTableException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(2)) { - struct.o3 = new MetaException(); + if (incoming.get(3)) { + struct.o3 = new UnknownDBException(); struct.o3.read(iprot); struct.setO3IsSet(true); } - if (incoming.get(3)) { - struct.o4 = new NoSuchObjectException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_with_environment_context_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_req_args"); - private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_table_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_table_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_schema_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_schema_req_argsTupleSchemeFactory()); } - private Table tbl; // required - private EnvironmentContext environment_context; // required + private GetSchemaRequest req; // 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 { - TBL((short)1, "tbl"), - ENVIRONMENT_CONTEXT((short)2, "environment_context"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -58757,10 +59707,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TBL - return TBL; - case 2: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 1: // REQ + return REQ; default: return null; } @@ -58804,109 +59752,70 @@ public String getFieldName() { 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.TBL, new org.apache.thrift.meta_data.FieldMetaData("tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); - tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetSchemaRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_req_args.class, metaDataMap); } - public create_table_with_environment_context_args() { + public get_schema_req_args() { } - public create_table_with_environment_context_args( - Table tbl, - EnvironmentContext environment_context) + public get_schema_req_args( + GetSchemaRequest req) { this(); - this.tbl = tbl; - this.environment_context = environment_context; + this.req = req; } /** * Performs a deep copy on other. */ - public create_table_with_environment_context_args(create_table_with_environment_context_args other) { - if (other.isSetTbl()) { - this.tbl = new Table(other.tbl); - } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + public get_schema_req_args(get_schema_req_args other) { + if (other.isSetReq()) { + this.req = new GetSchemaRequest(other.req); } } - public create_table_with_environment_context_args deepCopy() { - return new create_table_with_environment_context_args(this); + public get_schema_req_args deepCopy() { + return new get_schema_req_args(this); } @Override public void clear() { - this.tbl = null; - this.environment_context = null; - } - - public Table getTbl() { - return this.tbl; - } - - public void setTbl(Table tbl) { - this.tbl = tbl; - } - - public void unsetTbl() { - this.tbl = null; - } - - /** Returns true if field tbl is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl() { - return this.tbl != null; - } - - public void setTblIsSet(boolean value) { - if (!value) { - this.tbl = null; - } + this.req = null; } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public GetSchemaRequest getReq() { + return this.req; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setReq(GetSchemaRequest req) { + this.req = req; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.req = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case TBL: - if (value == null) { - unsetTbl(); - } else { - setTbl((Table)value); - } - break; - - case ENVIRONMENT_CONTEXT: + case REQ: if (value == null) { - unsetEnvironment_context(); + unsetReq(); } else { - setEnvironment_context((EnvironmentContext)value); + setReq((GetSchemaRequest)value); } break; @@ -58915,11 +59824,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case TBL: - return getTbl(); - - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -58932,10 +59838,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case TBL: - return isSetTbl(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -58944,30 +59848,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_table_with_environment_context_args) - return this.equals((create_table_with_environment_context_args)that); + if (that instanceof get_schema_req_args) + return this.equals((get_schema_req_args)that); return false; } - public boolean equals(create_table_with_environment_context_args that) { + public boolean equals(get_schema_req_args that) { if (that == null) return false; - boolean this_present_tbl = true && this.isSetTbl(); - boolean that_present_tbl = true && that.isSetTbl(); - if (this_present_tbl || that_present_tbl) { - if (!(this_present_tbl && that_present_tbl)) - return false; - if (!this.tbl.equals(that.tbl)) - return false; - } - - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (!this.req.equals(that.req)) return false; } @@ -58978,43 +59873,28 @@ public boolean equals(create_table_with_environment_context_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_tbl = true && (isSetTbl()); - list.add(present_tbl); - if (present_tbl) - list.add(tbl); - - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(create_table_with_environment_context_args other) { + public int compareTo(get_schema_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTbl()).compareTo(other.isSetTbl()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, other.tbl); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -59036,22 +59916,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_table_with_environment_context_args("); + StringBuilder sb = new StringBuilder("get_schema_req_args("); boolean first = true; - sb.append("tbl:"); - if (this.tbl == null) { - sb.append("null"); - } else { - sb.append(this.tbl); - } - first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.req); } first = false; sb.append(")"); @@ -59061,11 +59933,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (tbl != null) { - tbl.validate(); - } - if (environment_context != null) { - environment_context.validate(); + if (req != null) { + req.validate(); } } @@ -59085,15 +59954,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public create_table_with_environment_context_argsStandardScheme getScheme() { - return new create_table_with_environment_context_argsStandardScheme(); + private static class get_schema_req_argsStandardSchemeFactory implements SchemeFactory { + public get_schema_req_argsStandardScheme getScheme() { + return new get_schema_req_argsStandardScheme(); } } - private static class create_table_with_environment_context_argsStandardScheme extends StandardScheme { + private static class get_schema_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -59103,20 +59972,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_e break; } switch (schemeField.id) { - case 1: // TBL - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tbl = new Table(); - struct.tbl.read(iprot); - struct.setTblIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // ENVIRONMENT_CONTEXT + case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.req = new GetSchemaRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -59130,18 +59990,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_e struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.tbl != null) { - oprot.writeFieldBegin(TBL_FIELD_DESC); - struct.tbl.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -59150,77 +60005,66 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ } - private static class create_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public create_table_with_environment_context_argsTupleScheme getScheme() { - return new create_table_with_environment_context_argsTupleScheme(); + private static class get_schema_req_argsTupleSchemeFactory implements SchemeFactory { + public get_schema_req_argsTupleScheme getScheme() { + return new get_schema_req_argsTupleScheme(); } } - private static class create_table_with_environment_context_argsTupleScheme extends TupleScheme { + private static class get_schema_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetTbl()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetEnvironment_context()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetTbl()) { - struct.tbl.write(oprot); - } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.tbl = new Table(); - struct.tbl.read(iprot); - struct.setTblIsSet(true); - } - if (incoming.get(1)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.req = new GetSchemaRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_with_environment_context_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_schema_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_req_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_table_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_table_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_schema_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_schema_req_resultTupleSchemeFactory()); } - private AlreadyExistsException o1; // required - private InvalidObjectException o2; // required - private MetaException o3; // required - private NoSuchObjectException o4; // required + private GetSchemaResponse success; // required + private MetaException o1; // required + private UnknownTableException o2; // required + private UnknownDBException o3; // 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 { + SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), - O3((short)3, "o3"), - O4((short)4, "o4"); + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -59235,14 +60079,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_en */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; case 3: // O3 return O3; - case 4: // O4 - return O4; default: return null; } @@ -59286,69 +60130,92 @@ public String getFieldName() { 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetSchemaResponse.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_req_result.class, metaDataMap); } - public create_table_with_environment_context_result() { + public get_schema_req_result() { } - public create_table_with_environment_context_result( - AlreadyExistsException o1, - InvalidObjectException o2, - MetaException o3, - NoSuchObjectException o4) + public get_schema_req_result( + GetSchemaResponse success, + MetaException o1, + UnknownTableException o2, + UnknownDBException o3) { this(); + this.success = success; this.o1 = o1; this.o2 = o2; this.o3 = o3; - this.o4 = o4; } /** * Performs a deep copy on other. */ - public create_table_with_environment_context_result(create_table_with_environment_context_result other) { + public get_schema_req_result(get_schema_req_result other) { + if (other.isSetSuccess()) { + this.success = new GetSchemaResponse(other.success); + } if (other.isSetO1()) { - this.o1 = new AlreadyExistsException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new InvalidObjectException(other.o2); + this.o2 = new UnknownTableException(other.o2); } if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); - } - if (other.isSetO4()) { - this.o4 = new NoSuchObjectException(other.o4); + this.o3 = new UnknownDBException(other.o3); } } - public create_table_with_environment_context_result deepCopy() { - return new create_table_with_environment_context_result(this); + public get_schema_req_result deepCopy() { + return new get_schema_req_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; this.o2 = null; this.o3 = null; - this.o4 = null; } - public AlreadyExistsException getO1() { + public GetSchemaResponse getSuccess() { + return this.success; + } + + public void setSuccess(GetSchemaResponse success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public MetaException getO1() { return this.o1; } - public void setO1(AlreadyExistsException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -59367,11 +60234,11 @@ public void setO1IsSet(boolean value) { } } - public InvalidObjectException getO2() { + public UnknownTableException getO2() { return this.o2; } - public void setO2(InvalidObjectException o2) { + public void setO2(UnknownTableException o2) { this.o2 = o2; } @@ -59390,11 +60257,11 @@ public void setO2IsSet(boolean value) { } } - public MetaException getO3() { + public UnknownDBException getO3() { return this.o3; } - public void setO3(MetaException o3) { + public void setO3(UnknownDBException o3) { this.o3 = o3; } @@ -59413,36 +60280,21 @@ public void setO3IsSet(boolean value) { } } - public NoSuchObjectException getO4() { - return this.o4; - } - - public void setO4(NoSuchObjectException o4) { - this.o4 = o4; - } - - public void unsetO4() { - this.o4 = null; - } - - /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ - public boolean isSetO4() { - return this.o4 != null; - } - - public void setO4IsSet(boolean value) { - if (!value) { - this.o4 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((GetSchemaResponse)value); + } + break; + case O1: if (value == null) { unsetO1(); } else { - setO1((AlreadyExistsException)value); + setO1((MetaException)value); } break; @@ -59450,7 +60302,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((InvalidObjectException)value); + setO2((UnknownTableException)value); } break; @@ -59458,15 +60310,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO3(); } else { - setO3((MetaException)value); - } - break; - - case O4: - if (value == null) { - unsetO4(); - } else { - setO4((NoSuchObjectException)value); + setO3((UnknownDBException)value); } break; @@ -59475,6 +60319,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); @@ -59484,9 +60331,6 @@ public Object getFieldValue(_Fields field) { case O3: return getO3(); - case O4: - return getO4(); - } throw new IllegalStateException(); } @@ -59498,14 +60342,14 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); case O3: return isSetO3(); - case O4: - return isSetO4(); } throw new IllegalStateException(); } @@ -59514,15 +60358,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_table_with_environment_context_result) - return this.equals((create_table_with_environment_context_result)that); + if (that instanceof get_schema_req_result) + return this.equals((get_schema_req_result)that); return false; } - public boolean equals(create_table_with_environment_context_result that) { + public boolean equals(get_schema_req_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -59550,15 +60403,6 @@ public boolean equals(create_table_with_environment_context_result that) { return false; } - boolean this_present_o4 = true && this.isSetO4(); - boolean that_present_o4 = true && that.isSetO4(); - if (this_present_o4 || that_present_o4) { - if (!(this_present_o4 && that_present_o4)) - return false; - if (!this.o4.equals(that.o4)) - return false; - } - return true; } @@ -59566,6 +60410,11 @@ public boolean equals(create_table_with_environment_context_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -59581,22 +60430,27 @@ public int hashCode() { if (present_o3) list.add(o3); - boolean present_o4 = true && (isSetO4()); - list.add(present_o4); - if (present_o4) - list.add(o4); - return list.hashCode(); } @Override - public int compareTo(create_table_with_environment_context_result other) { + public int compareTo(get_schema_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -59627,16 +60481,6 @@ public int compareTo(create_table_with_environment_context_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -59654,9 +60498,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_table_with_environment_context_result("); + StringBuilder sb = new StringBuilder("get_schema_req_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -59680,14 +60532,6 @@ public String toString() { sb.append(this.o3); } first = false; - if (!first) sb.append(", "); - sb.append("o4:"); - if (this.o4 == null) { - sb.append("null"); - } else { - sb.append(this.o4); - } - first = false; sb.append(")"); return sb.toString(); } @@ -59695,6 +60539,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -59713,15 +60560,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public create_table_with_environment_context_resultStandardScheme getScheme() { - return new create_table_with_environment_context_resultStandardScheme(); + private static class get_schema_req_resultStandardSchemeFactory implements SchemeFactory { + public get_schema_req_resultStandardScheme getScheme() { + return new get_schema_req_resultStandardScheme(); } } - private static class create_table_with_environment_context_resultStandardScheme extends StandardScheme { + private static class get_schema_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -59731,9 +60578,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_e break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new GetSchemaResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new AlreadyExistsException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -59742,7 +60598,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_e break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new InvalidObjectException(); + struct.o2 = new UnknownTableException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -59751,22 +60607,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_e break; case 3: // O3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); + struct.o3 = new UnknownDBException(); struct.o3.read(iprot); struct.setO3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // O4 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o4 = new NoSuchObjectException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -59776,10 +60623,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_e struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -59795,42 +60647,40 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ struct.o3.write(oprot); oprot.writeFieldEnd(); } - if (struct.o4 != null) { - oprot.writeFieldBegin(O4_FIELD_DESC); - struct.o4.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class create_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public create_table_with_environment_context_resultTupleScheme getScheme() { - return new create_table_with_environment_context_resultTupleScheme(); + private static class get_schema_req_resultTupleSchemeFactory implements SchemeFactory { + public get_schema_req_resultTupleScheme getScheme() { + return new get_schema_req_resultTupleScheme(); } } - private static class create_table_with_environment_context_resultTupleScheme extends TupleScheme { + private static class get_schema_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - if (struct.isSetO3()) { + if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO4()) { + if (struct.isSetO3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetO1()) { struct.o1.write(oprot); } @@ -59840,74 +60690,53 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_e if (struct.isSetO3()) { struct.o3.write(oprot); } - if (struct.isSetO4()) { - struct.o4.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.o1 = new AlreadyExistsException(); + struct.success = new GetSchemaResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new InvalidObjectException(); + if (incoming.get(2)) { + struct.o2 = new UnknownTableException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(2)) { - struct.o3 = new MetaException(); + if (incoming.get(3)) { + struct.o3 = new UnknownDBException(); struct.o3.read(iprot); struct.setO3IsSet(true); } - if (incoming.get(3)) { - struct.o4 = new NoSuchObjectException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_with_constraints_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_with_constraints_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_args"); private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField PRIMARY_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("primaryKeys", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final org.apache.thrift.protocol.TField FOREIGN_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("foreignKeys", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField UNIQUE_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("uniqueConstraints", org.apache.thrift.protocol.TType.LIST, (short)4); - private static final org.apache.thrift.protocol.TField NOT_NULL_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("notNullConstraints", org.apache.thrift.protocol.TType.LIST, (short)5); - private static final org.apache.thrift.protocol.TField DEFAULT_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultConstraints", org.apache.thrift.protocol.TType.LIST, (short)6); - private static final org.apache.thrift.protocol.TField CHECK_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("checkConstraints", org.apache.thrift.protocol.TType.LIST, (short)7); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_table_with_constraints_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_table_with_constraints_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_argsTupleSchemeFactory()); } private Table tbl; // required - private List primaryKeys; // required - private List foreignKeys; // required - private List uniqueConstraints; // required - private List notNullConstraints; // required - private List defaultConstraints; // required - private List checkConstraints; // 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 { - TBL((short)1, "tbl"), - PRIMARY_KEYS((short)2, "primaryKeys"), - FOREIGN_KEYS((short)3, "foreignKeys"), - UNIQUE_CONSTRAINTS((short)4, "uniqueConstraints"), - NOT_NULL_CONSTRAINTS((short)5, "notNullConstraints"), - DEFAULT_CONSTRAINTS((short)6, "defaultConstraints"), - CHECK_CONSTRAINTS((short)7, "checkConstraints"); + TBL((short)1, "tbl"); private static final Map byName = new HashMap(); @@ -59924,18 +60753,6 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TBL return TBL; - case 2: // PRIMARY_KEYS - return PRIMARY_KEYS; - case 3: // FOREIGN_KEYS - return FOREIGN_KEYS; - case 4: // UNIQUE_CONSTRAINTS - return UNIQUE_CONSTRAINTS; - case 5: // NOT_NULL_CONSTRAINTS - return NOT_NULL_CONSTRAINTS; - case 6: // DEFAULT_CONSTRAINTS - return DEFAULT_CONSTRAINTS; - case 7: // CHECK_CONSTRAINTS - return CHECK_CONSTRAINTS; default: return null; } @@ -59981,114 +60798,36 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TBL, new org.apache.thrift.meta_data.FieldMetaData("tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); - tmpMap.put(_Fields.PRIMARY_KEYS, new org.apache.thrift.meta_data.FieldMetaData("primaryKeys", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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)))); - tmpMap.put(_Fields.FOREIGN_KEYS, new org.apache.thrift.meta_data.FieldMetaData("foreignKeys", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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)))); - tmpMap.put(_Fields.UNIQUE_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("uniqueConstraints", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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, SQLUniqueConstraint.class)))); - tmpMap.put(_Fields.NOT_NULL_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("notNullConstraints", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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, SQLNotNullConstraint.class)))); - tmpMap.put(_Fields.DEFAULT_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("defaultConstraints", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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, SQLDefaultConstraint.class)))); - tmpMap.put(_Fields.CHECK_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("checkConstraints", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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, SQLCheckConstraint.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_constraints_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_args.class, metaDataMap); } - public create_table_with_constraints_args() { + public create_table_args() { } - public create_table_with_constraints_args( - Table tbl, - List primaryKeys, - List foreignKeys, - List uniqueConstraints, - List notNullConstraints, - List defaultConstraints, - List checkConstraints) + public create_table_args( + Table tbl) { this(); this.tbl = tbl; - this.primaryKeys = primaryKeys; - this.foreignKeys = foreignKeys; - this.uniqueConstraints = uniqueConstraints; - this.notNullConstraints = notNullConstraints; - this.defaultConstraints = defaultConstraints; - this.checkConstraints = checkConstraints; } /** * Performs a deep copy on other. */ - public create_table_with_constraints_args(create_table_with_constraints_args other) { + public create_table_args(create_table_args other) { if (other.isSetTbl()) { this.tbl = new Table(other.tbl); } - if (other.isSetPrimaryKeys()) { - List __this__primaryKeys = new ArrayList(other.primaryKeys.size()); - for (SQLPrimaryKey other_element : other.primaryKeys) { - __this__primaryKeys.add(new SQLPrimaryKey(other_element)); - } - this.primaryKeys = __this__primaryKeys; - } - if (other.isSetForeignKeys()) { - List __this__foreignKeys = new ArrayList(other.foreignKeys.size()); - for (SQLForeignKey other_element : other.foreignKeys) { - __this__foreignKeys.add(new SQLForeignKey(other_element)); - } - this.foreignKeys = __this__foreignKeys; - } - if (other.isSetUniqueConstraints()) { - List __this__uniqueConstraints = new ArrayList(other.uniqueConstraints.size()); - for (SQLUniqueConstraint other_element : other.uniqueConstraints) { - __this__uniqueConstraints.add(new SQLUniqueConstraint(other_element)); - } - this.uniqueConstraints = __this__uniqueConstraints; - } - if (other.isSetNotNullConstraints()) { - List __this__notNullConstraints = new ArrayList(other.notNullConstraints.size()); - for (SQLNotNullConstraint other_element : other.notNullConstraints) { - __this__notNullConstraints.add(new SQLNotNullConstraint(other_element)); - } - this.notNullConstraints = __this__notNullConstraints; - } - if (other.isSetDefaultConstraints()) { - List __this__defaultConstraints = new ArrayList(other.defaultConstraints.size()); - for (SQLDefaultConstraint other_element : other.defaultConstraints) { - __this__defaultConstraints.add(new SQLDefaultConstraint(other_element)); - } - this.defaultConstraints = __this__defaultConstraints; - } - if (other.isSetCheckConstraints()) { - List __this__checkConstraints = new ArrayList(other.checkConstraints.size()); - for (SQLCheckConstraint other_element : other.checkConstraints) { - __this__checkConstraints.add(new SQLCheckConstraint(other_element)); - } - this.checkConstraints = __this__checkConstraints; - } } - public create_table_with_constraints_args deepCopy() { - return new create_table_with_constraints_args(this); + public create_table_args deepCopy() { + return new create_table_args(this); } @Override public void clear() { this.tbl = null; - this.primaryKeys = null; - this.foreignKeys = null; - this.uniqueConstraints = null; - this.notNullConstraints = null; - this.defaultConstraints = null; - this.checkConstraints = null; } public Table getTbl() { @@ -60114,293 +60853,17 @@ public void setTblIsSet(boolean value) { } } - public int getPrimaryKeysSize() { - return (this.primaryKeys == null) ? 0 : this.primaryKeys.size(); - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case TBL: + if (value == null) { + unsetTbl(); + } else { + setTbl((Table)value); + } + break; - public java.util.Iterator getPrimaryKeysIterator() { - return (this.primaryKeys == null) ? null : this.primaryKeys.iterator(); - } - - public void addToPrimaryKeys(SQLPrimaryKey elem) { - if (this.primaryKeys == null) { - this.primaryKeys = new ArrayList(); - } - this.primaryKeys.add(elem); - } - - public List getPrimaryKeys() { - return this.primaryKeys; - } - - public void setPrimaryKeys(List primaryKeys) { - this.primaryKeys = primaryKeys; - } - - public void unsetPrimaryKeys() { - this.primaryKeys = null; - } - - /** Returns true if field primaryKeys is set (has been assigned a value) and false otherwise */ - public boolean isSetPrimaryKeys() { - return this.primaryKeys != null; - } - - public void setPrimaryKeysIsSet(boolean value) { - if (!value) { - this.primaryKeys = null; - } - } - - public int getForeignKeysSize() { - return (this.foreignKeys == null) ? 0 : this.foreignKeys.size(); - } - - public java.util.Iterator getForeignKeysIterator() { - return (this.foreignKeys == null) ? null : this.foreignKeys.iterator(); - } - - public void addToForeignKeys(SQLForeignKey elem) { - if (this.foreignKeys == null) { - this.foreignKeys = new ArrayList(); - } - this.foreignKeys.add(elem); - } - - public List getForeignKeys() { - return this.foreignKeys; - } - - public void setForeignKeys(List foreignKeys) { - this.foreignKeys = foreignKeys; - } - - public void unsetForeignKeys() { - this.foreignKeys = null; - } - - /** Returns true if field foreignKeys is set (has been assigned a value) and false otherwise */ - public boolean isSetForeignKeys() { - return this.foreignKeys != null; - } - - public void setForeignKeysIsSet(boolean value) { - if (!value) { - this.foreignKeys = null; - } - } - - public int getUniqueConstraintsSize() { - return (this.uniqueConstraints == null) ? 0 : this.uniqueConstraints.size(); - } - - public java.util.Iterator getUniqueConstraintsIterator() { - return (this.uniqueConstraints == null) ? null : this.uniqueConstraints.iterator(); - } - - public void addToUniqueConstraints(SQLUniqueConstraint elem) { - if (this.uniqueConstraints == null) { - this.uniqueConstraints = new ArrayList(); - } - this.uniqueConstraints.add(elem); - } - - public List getUniqueConstraints() { - return this.uniqueConstraints; - } - - public void setUniqueConstraints(List uniqueConstraints) { - this.uniqueConstraints = uniqueConstraints; - } - - public void unsetUniqueConstraints() { - this.uniqueConstraints = null; - } - - /** Returns true if field uniqueConstraints is set (has been assigned a value) and false otherwise */ - public boolean isSetUniqueConstraints() { - return this.uniqueConstraints != null; - } - - public void setUniqueConstraintsIsSet(boolean value) { - if (!value) { - this.uniqueConstraints = null; - } - } - - public int getNotNullConstraintsSize() { - return (this.notNullConstraints == null) ? 0 : this.notNullConstraints.size(); - } - - public java.util.Iterator getNotNullConstraintsIterator() { - return (this.notNullConstraints == null) ? null : this.notNullConstraints.iterator(); - } - - public void addToNotNullConstraints(SQLNotNullConstraint elem) { - if (this.notNullConstraints == null) { - this.notNullConstraints = new ArrayList(); - } - this.notNullConstraints.add(elem); - } - - public List getNotNullConstraints() { - return this.notNullConstraints; - } - - public void setNotNullConstraints(List notNullConstraints) { - this.notNullConstraints = notNullConstraints; - } - - public void unsetNotNullConstraints() { - this.notNullConstraints = null; - } - - /** Returns true if field notNullConstraints is set (has been assigned a value) and false otherwise */ - public boolean isSetNotNullConstraints() { - return this.notNullConstraints != null; - } - - public void setNotNullConstraintsIsSet(boolean value) { - if (!value) { - this.notNullConstraints = null; - } - } - - public int getDefaultConstraintsSize() { - return (this.defaultConstraints == null) ? 0 : this.defaultConstraints.size(); - } - - public java.util.Iterator getDefaultConstraintsIterator() { - return (this.defaultConstraints == null) ? null : this.defaultConstraints.iterator(); - } - - public void addToDefaultConstraints(SQLDefaultConstraint elem) { - if (this.defaultConstraints == null) { - this.defaultConstraints = new ArrayList(); - } - this.defaultConstraints.add(elem); - } - - public List getDefaultConstraints() { - return this.defaultConstraints; - } - - public void setDefaultConstraints(List defaultConstraints) { - this.defaultConstraints = defaultConstraints; - } - - public void unsetDefaultConstraints() { - this.defaultConstraints = null; - } - - /** Returns true if field defaultConstraints is set (has been assigned a value) and false otherwise */ - public boolean isSetDefaultConstraints() { - return this.defaultConstraints != null; - } - - public void setDefaultConstraintsIsSet(boolean value) { - if (!value) { - this.defaultConstraints = null; - } - } - - public int getCheckConstraintsSize() { - return (this.checkConstraints == null) ? 0 : this.checkConstraints.size(); - } - - public java.util.Iterator getCheckConstraintsIterator() { - return (this.checkConstraints == null) ? null : this.checkConstraints.iterator(); - } - - public void addToCheckConstraints(SQLCheckConstraint elem) { - if (this.checkConstraints == null) { - this.checkConstraints = new ArrayList(); - } - this.checkConstraints.add(elem); - } - - public List getCheckConstraints() { - return this.checkConstraints; - } - - public void setCheckConstraints(List checkConstraints) { - this.checkConstraints = checkConstraints; - } - - public void unsetCheckConstraints() { - this.checkConstraints = null; - } - - /** Returns true if field checkConstraints is set (has been assigned a value) and false otherwise */ - public boolean isSetCheckConstraints() { - return this.checkConstraints != null; - } - - public void setCheckConstraintsIsSet(boolean value) { - if (!value) { - this.checkConstraints = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case TBL: - if (value == null) { - unsetTbl(); - } else { - setTbl((Table)value); - } - break; - - case PRIMARY_KEYS: - if (value == null) { - unsetPrimaryKeys(); - } else { - setPrimaryKeys((List)value); - } - break; - - case FOREIGN_KEYS: - if (value == null) { - unsetForeignKeys(); - } else { - setForeignKeys((List)value); - } - break; - - case UNIQUE_CONSTRAINTS: - if (value == null) { - unsetUniqueConstraints(); - } else { - setUniqueConstraints((List)value); - } - break; - - case NOT_NULL_CONSTRAINTS: - if (value == null) { - unsetNotNullConstraints(); - } else { - setNotNullConstraints((List)value); - } - break; - - case DEFAULT_CONSTRAINTS: - if (value == null) { - unsetDefaultConstraints(); - } else { - setDefaultConstraints((List)value); - } - break; - - case CHECK_CONSTRAINTS: - if (value == null) { - unsetCheckConstraints(); - } else { - setCheckConstraints((List)value); - } - break; - - } + } } public Object getFieldValue(_Fields field) { @@ -60408,24 +60871,6 @@ public Object getFieldValue(_Fields field) { case TBL: return getTbl(); - case PRIMARY_KEYS: - return getPrimaryKeys(); - - case FOREIGN_KEYS: - return getForeignKeys(); - - case UNIQUE_CONSTRAINTS: - return getUniqueConstraints(); - - case NOT_NULL_CONSTRAINTS: - return getNotNullConstraints(); - - case DEFAULT_CONSTRAINTS: - return getDefaultConstraints(); - - case CHECK_CONSTRAINTS: - return getCheckConstraints(); - } throw new IllegalStateException(); } @@ -60439,18 +60884,6 @@ public boolean isSet(_Fields field) { switch (field) { case TBL: return isSetTbl(); - case PRIMARY_KEYS: - return isSetPrimaryKeys(); - case FOREIGN_KEYS: - return isSetForeignKeys(); - case UNIQUE_CONSTRAINTS: - return isSetUniqueConstraints(); - case NOT_NULL_CONSTRAINTS: - return isSetNotNullConstraints(); - case DEFAULT_CONSTRAINTS: - return isSetDefaultConstraints(); - case CHECK_CONSTRAINTS: - return isSetCheckConstraints(); } throw new IllegalStateException(); } @@ -60459,12 +60892,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_table_with_constraints_args) - return this.equals((create_table_with_constraints_args)that); + if (that instanceof create_table_args) + return this.equals((create_table_args)that); return false; } - public boolean equals(create_table_with_constraints_args that) { + public boolean equals(create_table_args that) { if (that == null) return false; @@ -60477,60 +60910,6 @@ public boolean equals(create_table_with_constraints_args that) { return false; } - boolean this_present_primaryKeys = true && this.isSetPrimaryKeys(); - boolean that_present_primaryKeys = true && that.isSetPrimaryKeys(); - if (this_present_primaryKeys || that_present_primaryKeys) { - if (!(this_present_primaryKeys && that_present_primaryKeys)) - return false; - if (!this.primaryKeys.equals(that.primaryKeys)) - return false; - } - - boolean this_present_foreignKeys = true && this.isSetForeignKeys(); - boolean that_present_foreignKeys = true && that.isSetForeignKeys(); - if (this_present_foreignKeys || that_present_foreignKeys) { - if (!(this_present_foreignKeys && that_present_foreignKeys)) - return false; - if (!this.foreignKeys.equals(that.foreignKeys)) - return false; - } - - boolean this_present_uniqueConstraints = true && this.isSetUniqueConstraints(); - boolean that_present_uniqueConstraints = true && that.isSetUniqueConstraints(); - if (this_present_uniqueConstraints || that_present_uniqueConstraints) { - if (!(this_present_uniqueConstraints && that_present_uniqueConstraints)) - return false; - if (!this.uniqueConstraints.equals(that.uniqueConstraints)) - return false; - } - - boolean this_present_notNullConstraints = true && this.isSetNotNullConstraints(); - boolean that_present_notNullConstraints = true && that.isSetNotNullConstraints(); - if (this_present_notNullConstraints || that_present_notNullConstraints) { - if (!(this_present_notNullConstraints && that_present_notNullConstraints)) - return false; - if (!this.notNullConstraints.equals(that.notNullConstraints)) - return false; - } - - boolean this_present_defaultConstraints = true && this.isSetDefaultConstraints(); - boolean that_present_defaultConstraints = true && that.isSetDefaultConstraints(); - if (this_present_defaultConstraints || that_present_defaultConstraints) { - if (!(this_present_defaultConstraints && that_present_defaultConstraints)) - return false; - if (!this.defaultConstraints.equals(that.defaultConstraints)) - return false; - } - - boolean this_present_checkConstraints = true && this.isSetCheckConstraints(); - boolean that_present_checkConstraints = true && that.isSetCheckConstraints(); - if (this_present_checkConstraints || that_present_checkConstraints) { - if (!(this_present_checkConstraints && that_present_checkConstraints)) - return false; - if (!this.checkConstraints.equals(that.checkConstraints)) - return false; - } - return true; } @@ -60543,41 +60922,11 @@ public int hashCode() { if (present_tbl) list.add(tbl); - boolean present_primaryKeys = true && (isSetPrimaryKeys()); - list.add(present_primaryKeys); - if (present_primaryKeys) - list.add(primaryKeys); - - boolean present_foreignKeys = true && (isSetForeignKeys()); - list.add(present_foreignKeys); - if (present_foreignKeys) - list.add(foreignKeys); - - boolean present_uniqueConstraints = true && (isSetUniqueConstraints()); - list.add(present_uniqueConstraints); - if (present_uniqueConstraints) - list.add(uniqueConstraints); - - boolean present_notNullConstraints = true && (isSetNotNullConstraints()); - list.add(present_notNullConstraints); - if (present_notNullConstraints) - list.add(notNullConstraints); - - boolean present_defaultConstraints = true && (isSetDefaultConstraints()); - list.add(present_defaultConstraints); - if (present_defaultConstraints) - list.add(defaultConstraints); - - boolean present_checkConstraints = true && (isSetCheckConstraints()); - list.add(present_checkConstraints); - if (present_checkConstraints) - list.add(checkConstraints); - return list.hashCode(); } @Override - public int compareTo(create_table_with_constraints_args other) { + public int compareTo(create_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -60594,66 +60943,6 @@ public int compareTo(create_table_with_constraints_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrimaryKeys()).compareTo(other.isSetPrimaryKeys()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPrimaryKeys()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.primaryKeys, other.primaryKeys); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetForeignKeys()).compareTo(other.isSetForeignKeys()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetForeignKeys()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.foreignKeys, other.foreignKeys); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUniqueConstraints()).compareTo(other.isSetUniqueConstraints()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUniqueConstraints()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uniqueConstraints, other.uniqueConstraints); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNotNullConstraints()).compareTo(other.isSetNotNullConstraints()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNotNullConstraints()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notNullConstraints, other.notNullConstraints); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDefaultConstraints()).compareTo(other.isSetDefaultConstraints()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDefaultConstraints()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultConstraints, other.defaultConstraints); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetCheckConstraints()).compareTo(other.isSetCheckConstraints()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetCheckConstraints()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.checkConstraints, other.checkConstraints); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -60671,7 +60960,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_table_with_constraints_args("); + StringBuilder sb = new StringBuilder("create_table_args("); boolean first = true; sb.append("tbl:"); @@ -60681,54 +60970,6 @@ public String toString() { sb.append(this.tbl); } first = false; - if (!first) sb.append(", "); - sb.append("primaryKeys:"); - if (this.primaryKeys == null) { - sb.append("null"); - } else { - sb.append(this.primaryKeys); - } - first = false; - if (!first) sb.append(", "); - sb.append("foreignKeys:"); - if (this.foreignKeys == null) { - sb.append("null"); - } else { - sb.append(this.foreignKeys); - } - first = false; - if (!first) sb.append(", "); - sb.append("uniqueConstraints:"); - if (this.uniqueConstraints == null) { - sb.append("null"); - } else { - sb.append(this.uniqueConstraints); - } - first = false; - if (!first) sb.append(", "); - sb.append("notNullConstraints:"); - if (this.notNullConstraints == null) { - sb.append("null"); - } else { - sb.append(this.notNullConstraints); - } - first = false; - if (!first) sb.append(", "); - sb.append("defaultConstraints:"); - if (this.defaultConstraints == null) { - sb.append("null"); - } else { - sb.append(this.defaultConstraints); - } - first = false; - if (!first) sb.append(", "); - sb.append("checkConstraints:"); - if (this.checkConstraints == null) { - sb.append("null"); - } else { - sb.append(this.checkConstraints); - } - first = false; sb.append(")"); return sb.toString(); } @@ -60757,15 +60998,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_table_with_constraints_argsStandardSchemeFactory implements SchemeFactory { - public create_table_with_constraints_argsStandardScheme getScheme() { - return new create_table_with_constraints_argsStandardScheme(); + private static class create_table_argsStandardSchemeFactory implements SchemeFactory { + public create_table_argsStandardScheme getScheme() { + return new create_table_argsStandardScheme(); } } - private static class create_table_with_constraints_argsStandardScheme extends StandardScheme { + private static class create_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_constraints_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -60784,120 +61025,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // PRIMARY_KEYS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1266 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list1266.size); - SQLPrimaryKey _elem1267; - for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268) - { - _elem1267 = new SQLPrimaryKey(); - _elem1267.read(iprot); - struct.primaryKeys.add(_elem1267); - } - iprot.readListEnd(); - } - struct.setPrimaryKeysIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // FOREIGN_KEYS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1269 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list1269.size); - SQLForeignKey _elem1270; - for (int _i1271 = 0; _i1271 < _list1269.size; ++_i1271) - { - _elem1270 = new SQLForeignKey(); - _elem1270.read(iprot); - struct.foreignKeys.add(_elem1270); - } - iprot.readListEnd(); - } - struct.setForeignKeysIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // UNIQUE_CONSTRAINTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1272 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list1272.size); - SQLUniqueConstraint _elem1273; - for (int _i1274 = 0; _i1274 < _list1272.size; ++_i1274) - { - _elem1273 = new SQLUniqueConstraint(); - _elem1273.read(iprot); - struct.uniqueConstraints.add(_elem1273); - } - iprot.readListEnd(); - } - struct.setUniqueConstraintsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // NOT_NULL_CONSTRAINTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1275 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list1275.size); - SQLNotNullConstraint _elem1276; - for (int _i1277 = 0; _i1277 < _list1275.size; ++_i1277) - { - _elem1276 = new SQLNotNullConstraint(); - _elem1276.read(iprot); - struct.notNullConstraints.add(_elem1276); - } - iprot.readListEnd(); - } - struct.setNotNullConstraintsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // DEFAULT_CONSTRAINTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1278 = iprot.readListBegin(); - struct.defaultConstraints = new ArrayList(_list1278.size); - SQLDefaultConstraint _elem1279; - for (int _i1280 = 0; _i1280 < _list1278.size; ++_i1280) - { - _elem1279 = new SQLDefaultConstraint(); - _elem1279.read(iprot); - struct.defaultConstraints.add(_elem1279); - } - iprot.readListEnd(); - } - struct.setDefaultConstraintsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // CHECK_CONSTRAINTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1281 = iprot.readListBegin(); - struct.checkConstraints = new ArrayList(_list1281.size); - SQLCheckConstraint _elem1282; - for (int _i1283 = 0; _i1283 < _list1281.size; ++_i1283) - { - _elem1282 = new SQLCheckConstraint(); - _elem1282.read(iprot); - struct.checkConstraints.add(_elem1282); - } - iprot.readListEnd(); - } - struct.setCheckConstraintsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -60907,7 +61034,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_constraints_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -60916,277 +61043,49 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ struct.tbl.write(oprot); oprot.writeFieldEnd(); } - if (struct.primaryKeys != null) { - oprot.writeFieldBegin(PRIMARY_KEYS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.primaryKeys.size())); - for (SQLPrimaryKey _iter1284 : struct.primaryKeys) - { - _iter1284.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.foreignKeys != null) { - oprot.writeFieldBegin(FOREIGN_KEYS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeys.size())); - for (SQLForeignKey _iter1285 : struct.foreignKeys) - { - _iter1285.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.uniqueConstraints != null) { - oprot.writeFieldBegin(UNIQUE_CONSTRAINTS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraints.size())); - for (SQLUniqueConstraint _iter1286 : struct.uniqueConstraints) - { - _iter1286.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.notNullConstraints != null) { - oprot.writeFieldBegin(NOT_NULL_CONSTRAINTS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraints.size())); - for (SQLNotNullConstraint _iter1287 : struct.notNullConstraints) - { - _iter1287.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.defaultConstraints != null) { - oprot.writeFieldBegin(DEFAULT_CONSTRAINTS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.defaultConstraints.size())); - for (SQLDefaultConstraint _iter1288 : struct.defaultConstraints) - { - _iter1288.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.checkConstraints != null) { - oprot.writeFieldBegin(CHECK_CONSTRAINTS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.checkConstraints.size())); - for (SQLCheckConstraint _iter1289 : struct.checkConstraints) - { - _iter1289.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class create_table_with_constraints_argsTupleSchemeFactory implements SchemeFactory { - public create_table_with_constraints_argsTupleScheme getScheme() { - return new create_table_with_constraints_argsTupleScheme(); + private static class create_table_argsTupleSchemeFactory implements SchemeFactory { + public create_table_argsTupleScheme getScheme() { + return new create_table_argsTupleScheme(); } } - private static class create_table_with_constraints_argsTupleScheme extends TupleScheme { + private static class create_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_constraints_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTbl()) { optionals.set(0); } - if (struct.isSetPrimaryKeys()) { - optionals.set(1); - } - if (struct.isSetForeignKeys()) { - optionals.set(2); - } - if (struct.isSetUniqueConstraints()) { - optionals.set(3); - } - if (struct.isSetNotNullConstraints()) { - optionals.set(4); - } - if (struct.isSetDefaultConstraints()) { - optionals.set(5); - } - if (struct.isSetCheckConstraints()) { - optionals.set(6); - } - oprot.writeBitSet(optionals, 7); + oprot.writeBitSet(optionals, 1); if (struct.isSetTbl()) { struct.tbl.write(oprot); } - if (struct.isSetPrimaryKeys()) { - { - oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter1290 : struct.primaryKeys) - { - _iter1290.write(oprot); - } - } - } - if (struct.isSetForeignKeys()) { - { - oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter1291 : struct.foreignKeys) - { - _iter1291.write(oprot); - } - } - } - if (struct.isSetUniqueConstraints()) { - { - oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter1292 : struct.uniqueConstraints) - { - _iter1292.write(oprot); - } - } - } - if (struct.isSetNotNullConstraints()) { - { - oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter1293 : struct.notNullConstraints) - { - _iter1293.write(oprot); - } - } - } - if (struct.isSetDefaultConstraints()) { - { - oprot.writeI32(struct.defaultConstraints.size()); - for (SQLDefaultConstraint _iter1294 : struct.defaultConstraints) - { - _iter1294.write(oprot); - } - } - } - if (struct.isSetCheckConstraints()) { - { - oprot.writeI32(struct.checkConstraints.size()); - for (SQLCheckConstraint _iter1295 : struct.checkConstraints) - { - _iter1295.write(oprot); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_constraints_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(7); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.tbl = new Table(); struct.tbl.read(iprot); struct.setTblIsSet(true); } - if (incoming.get(1)) { - { - org.apache.thrift.protocol.TList _list1296 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list1296.size); - SQLPrimaryKey _elem1297; - for (int _i1298 = 0; _i1298 < _list1296.size; ++_i1298) - { - _elem1297 = new SQLPrimaryKey(); - _elem1297.read(iprot); - struct.primaryKeys.add(_elem1297); - } - } - struct.setPrimaryKeysIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list1299 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list1299.size); - SQLForeignKey _elem1300; - for (int _i1301 = 0; _i1301 < _list1299.size; ++_i1301) - { - _elem1300 = new SQLForeignKey(); - _elem1300.read(iprot); - struct.foreignKeys.add(_elem1300); - } - } - struct.setForeignKeysIsSet(true); - } - if (incoming.get(3)) { - { - org.apache.thrift.protocol.TList _list1302 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list1302.size); - SQLUniqueConstraint _elem1303; - for (int _i1304 = 0; _i1304 < _list1302.size; ++_i1304) - { - _elem1303 = new SQLUniqueConstraint(); - _elem1303.read(iprot); - struct.uniqueConstraints.add(_elem1303); - } - } - struct.setUniqueConstraintsIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list1305 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list1305.size); - SQLNotNullConstraint _elem1306; - for (int _i1307 = 0; _i1307 < _list1305.size; ++_i1307) - { - _elem1306 = new SQLNotNullConstraint(); - _elem1306.read(iprot); - struct.notNullConstraints.add(_elem1306); - } - } - struct.setNotNullConstraintsIsSet(true); - } - if (incoming.get(5)) { - { - org.apache.thrift.protocol.TList _list1308 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraints = new ArrayList(_list1308.size); - SQLDefaultConstraint _elem1309; - for (int _i1310 = 0; _i1310 < _list1308.size; ++_i1310) - { - _elem1309 = new SQLDefaultConstraint(); - _elem1309.read(iprot); - struct.defaultConstraints.add(_elem1309); - } - } - struct.setDefaultConstraintsIsSet(true); - } - if (incoming.get(6)) { - { - org.apache.thrift.protocol.TList _list1311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.checkConstraints = new ArrayList(_list1311.size); - SQLCheckConstraint _elem1312; - for (int _i1313 = 0; _i1313 < _list1311.size; ++_i1313) - { - _elem1312 = new SQLCheckConstraint(); - _elem1312.read(iprot); - struct.checkConstraints.add(_elem1312); - } - } - struct.setCheckConstraintsIsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_with_constraints_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_with_constraints_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); @@ -61195,8 +61094,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_table_with_constraints_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_table_with_constraints_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_resultTupleSchemeFactory()); } private AlreadyExistsException o1; // required @@ -61284,13 +61183,13 @@ public String getFieldName() { tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_constraints_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_result.class, metaDataMap); } - public create_table_with_constraints_result() { + public create_table_result() { } - public create_table_with_constraints_result( + public create_table_result( AlreadyExistsException o1, InvalidObjectException o2, MetaException o3, @@ -61306,7 +61205,7 @@ public create_table_with_constraints_result( /** * Performs a deep copy on other. */ - public create_table_with_constraints_result(create_table_with_constraints_result other) { + public create_table_result(create_table_result other) { if (other.isSetO1()) { this.o1 = new AlreadyExistsException(other.o1); } @@ -61321,8 +61220,8 @@ public create_table_with_constraints_result(create_table_with_constraints_result } } - public create_table_with_constraints_result deepCopy() { - return new create_table_with_constraints_result(this); + public create_table_result deepCopy() { + return new create_table_result(this); } @Override @@ -61503,12 +61402,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_table_with_constraints_result) - return this.equals((create_table_with_constraints_result)that); + if (that instanceof create_table_result) + return this.equals((create_table_result)that); return false; } - public boolean equals(create_table_with_constraints_result that) { + public boolean equals(create_table_result that) { if (that == null) return false; @@ -61579,7 +61478,7 @@ public int hashCode() { } @Override - public int compareTo(create_table_with_constraints_result other) { + public int compareTo(create_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -61643,7 +61542,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_table_with_constraints_result("); + StringBuilder sb = new StringBuilder("create_table_result("); boolean first = true; sb.append("o1:"); @@ -61702,15 +61601,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_table_with_constraints_resultStandardSchemeFactory implements SchemeFactory { - public create_table_with_constraints_resultStandardScheme getScheme() { - return new create_table_with_constraints_resultStandardScheme(); + private static class create_table_resultStandardSchemeFactory implements SchemeFactory { + public create_table_resultStandardScheme getScheme() { + return new create_table_resultStandardScheme(); } } - private static class create_table_with_constraints_resultStandardScheme extends StandardScheme { + private static class create_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_constraints_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -61765,7 +61664,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_constraints_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -61795,16 +61694,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ } - private static class create_table_with_constraints_resultTupleSchemeFactory implements SchemeFactory { - public create_table_with_constraints_resultTupleScheme getScheme() { - return new create_table_with_constraints_resultTupleScheme(); + private static class create_table_resultTupleSchemeFactory implements SchemeFactory { + public create_table_resultTupleScheme getScheme() { + return new create_table_resultTupleScheme(); } } - private static class create_table_with_constraints_resultTupleScheme extends TupleScheme { + private static class create_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_constraints_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -61835,7 +61734,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_constraints_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -61863,22 +61762,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_req_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_with_environment_context_args"); - private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_table_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_table_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_table_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_with_environment_context_argsTupleSchemeFactory()); } - private CreateTableRequest request; // required + private Table tbl; // required + private EnvironmentContext environment_context; // 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 { - REQUEST((short)1, "request"); + TBL((short)1, "tbl"), + ENVIRONMENT_CONTEXT((short)2, "environment_context"); private static final Map byName = new HashMap(); @@ -61893,8 +61795,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQUEST - return REQUEST; + case 1: // TBL + return TBL; + case 2: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -61938,70 +61842,109 @@ public String getFieldName() { 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.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreateTableRequest.class))); + tmpMap.put(_Fields.TBL, new org.apache.thrift.meta_data.FieldMetaData("tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_environment_context_args.class, metaDataMap); } - public create_table_req_args() { + public create_table_with_environment_context_args() { } - public create_table_req_args( - CreateTableRequest request) + public create_table_with_environment_context_args( + Table tbl, + EnvironmentContext environment_context) { this(); - this.request = request; + this.tbl = tbl; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public create_table_req_args(create_table_req_args other) { - if (other.isSetRequest()) { - this.request = new CreateTableRequest(other.request); + public create_table_with_environment_context_args(create_table_with_environment_context_args other) { + if (other.isSetTbl()) { + this.tbl = new Table(other.tbl); + } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } } - public create_table_req_args deepCopy() { - return new create_table_req_args(this); + public create_table_with_environment_context_args deepCopy() { + return new create_table_with_environment_context_args(this); } @Override public void clear() { - this.request = null; + this.tbl = null; + this.environment_context = null; } - public CreateTableRequest getRequest() { - return this.request; + public Table getTbl() { + return this.tbl; } - public void setRequest(CreateTableRequest request) { - this.request = request; + public void setTbl(Table tbl) { + this.tbl = tbl; } - public void unsetRequest() { - this.request = null; + public void unsetTbl() { + this.tbl = null; } - /** Returns true if field request is set (has been assigned a value) and false otherwise */ - public boolean isSetRequest() { - return this.request != null; + /** Returns true if field tbl is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl() { + return this.tbl != null; } - public void setRequestIsSet(boolean value) { + public void setTblIsSet(boolean value) { if (!value) { - this.request = null; + this.tbl = null; + } + } + + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQUEST: + case TBL: if (value == null) { - unsetRequest(); + unsetTbl(); } else { - setRequest((CreateTableRequest)value); + setTbl((Table)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -62010,8 +61953,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQUEST: - return getRequest(); + case TBL: + return getTbl(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -62024,8 +61970,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQUEST: - return isSetRequest(); + case TBL: + return isSetTbl(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -62034,21 +61982,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_table_req_args) - return this.equals((create_table_req_args)that); + if (that instanceof create_table_with_environment_context_args) + return this.equals((create_table_with_environment_context_args)that); return false; } - public boolean equals(create_table_req_args that) { + public boolean equals(create_table_with_environment_context_args that) { if (that == null) return false; - boolean this_present_request = true && this.isSetRequest(); - boolean that_present_request = true && that.isSetRequest(); - if (this_present_request || that_present_request) { - if (!(this_present_request && that_present_request)) + boolean this_present_tbl = true && this.isSetTbl(); + boolean that_present_tbl = true && that.isSetTbl(); + if (this_present_tbl || that_present_tbl) { + if (!(this_present_tbl && that_present_tbl)) return false; - if (!this.request.equals(that.request)) + if (!this.tbl.equals(that.tbl)) + return false; + } + + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) return false; } @@ -62059,28 +62016,43 @@ public boolean equals(create_table_req_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_request = true && (isSetRequest()); - list.add(present_request); - if (present_request) - list.add(request); + boolean present_tbl = true && (isSetTbl()); + list.add(present_tbl); + if (present_tbl) + list.add(tbl); + + boolean present_environment_context = true && (isSetEnvironment_context()); + list.add(present_environment_context); + if (present_environment_context) + list.add(environment_context); return list.hashCode(); } @Override - public int compareTo(create_table_req_args other) { + public int compareTo(create_table_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetTbl()).compareTo(other.isSetTbl()); if (lastComparison != 0) { return lastComparison; } - if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + if (isSetTbl()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, other.tbl); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -62102,25 +62074,36 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_table_req_args("); + StringBuilder sb = new StringBuilder("create_table_with_environment_context_args("); boolean first = true; - sb.append("request:"); - if (this.request == null) { + sb.append("tbl:"); + if (this.tbl == null) { sb.append("null"); } else { - sb.append(this.request); + sb.append(this.tbl); } first = false; - sb.append(")"); + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); + } + first = false; + sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (request != null) { - request.validate(); + if (tbl != null) { + tbl.validate(); + } + if (environment_context != null) { + environment_context.validate(); } } @@ -62140,15 +62123,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_table_req_argsStandardSchemeFactory implements SchemeFactory { - public create_table_req_argsStandardScheme getScheme() { - return new create_table_req_argsStandardScheme(); + private static class create_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public create_table_with_environment_context_argsStandardScheme getScheme() { + return new create_table_with_environment_context_argsStandardScheme(); } } - private static class create_table_req_argsStandardScheme extends StandardScheme { + private static class create_table_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -62158,11 +62141,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_req_ar break; } switch (schemeField.id) { - case 1: // REQUEST + case 1: // TBL if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new CreateTableRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + struct.tbl = new Table(); + struct.tbl.read(iprot); + struct.setTblIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -62176,13 +62168,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_req_ar struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.request != null) { - oprot.writeFieldBegin(REQUEST_FIELD_DESC); - struct.request.write(oprot); + if (struct.tbl != null) { + oprot.writeFieldBegin(TBL_FIELD_DESC); + struct.tbl.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -62191,43 +62188,54 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_req_a } - private static class create_table_req_argsTupleSchemeFactory implements SchemeFactory { - public create_table_req_argsTupleScheme getScheme() { - return new create_table_req_argsTupleScheme(); + private static class create_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public create_table_with_environment_context_argsTupleScheme getScheme() { + return new create_table_with_environment_context_argsTupleScheme(); } } - private static class create_table_req_argsTupleScheme extends TupleScheme { + private static class create_table_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetRequest()) { + if (struct.isSetTbl()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetRequest()) { - struct.request.write(oprot); + if (struct.isSetEnvironment_context()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetTbl()) { + struct.tbl.write(oprot); + } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.request = new CreateTableRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + struct.tbl = new Table(); + struct.tbl.read(iprot); + struct.setTblIsSet(true); + } + if (incoming.get(1)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_req_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_with_environment_context_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); @@ -62236,8 +62244,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_req_arg private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_table_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_table_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_table_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_with_environment_context_resultTupleSchemeFactory()); } private AlreadyExistsException o1; // required @@ -62325,13 +62333,13 @@ public String getFieldName() { tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_environment_context_result.class, metaDataMap); } - public create_table_req_result() { + public create_table_with_environment_context_result() { } - public create_table_req_result( + public create_table_with_environment_context_result( AlreadyExistsException o1, InvalidObjectException o2, MetaException o3, @@ -62347,7 +62355,7 @@ public create_table_req_result( /** * Performs a deep copy on other. */ - public create_table_req_result(create_table_req_result other) { + public create_table_with_environment_context_result(create_table_with_environment_context_result other) { if (other.isSetO1()) { this.o1 = new AlreadyExistsException(other.o1); } @@ -62362,8 +62370,8 @@ public create_table_req_result(create_table_req_result other) { } } - public create_table_req_result deepCopy() { - return new create_table_req_result(this); + public create_table_with_environment_context_result deepCopy() { + return new create_table_with_environment_context_result(this); } @Override @@ -62544,12 +62552,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_table_req_result) - return this.equals((create_table_req_result)that); + if (that instanceof create_table_with_environment_context_result) + return this.equals((create_table_with_environment_context_result)that); return false; } - public boolean equals(create_table_req_result that) { + public boolean equals(create_table_with_environment_context_result that) { if (that == null) return false; @@ -62620,7 +62628,7 @@ public int hashCode() { } @Override - public int compareTo(create_table_req_result other) { + public int compareTo(create_table_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -62684,7 +62692,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_table_req_result("); + StringBuilder sb = new StringBuilder("create_table_with_environment_context_result("); boolean first = true; sb.append("o1:"); @@ -62743,15 +62751,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_table_req_resultStandardSchemeFactory implements SchemeFactory { - public create_table_req_resultStandardScheme getScheme() { - return new create_table_req_resultStandardScheme(); + private static class create_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public create_table_with_environment_context_resultStandardScheme getScheme() { + return new create_table_with_environment_context_resultStandardScheme(); } } - private static class create_table_req_resultStandardScheme extends StandardScheme { + private static class create_table_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -62806,7 +62814,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_req_re struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -62836,16 +62844,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_req_r } - private static class create_table_req_resultTupleSchemeFactory implements SchemeFactory { - public create_table_req_resultTupleScheme getScheme() { - return new create_table_req_resultTupleScheme(); + private static class create_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public create_table_with_environment_context_resultTupleScheme getScheme() { + return new create_table_with_environment_context_resultTupleScheme(); } } - private static class create_table_req_resultTupleScheme extends TupleScheme { + private static class create_table_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_table_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -62876,7 +62884,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_req_re } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -62904,22 +62912,40 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_req_res } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_constraint_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_constraint_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_with_constraints_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_with_constraints_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField PRIMARY_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("primaryKeys", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField FOREIGN_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("foreignKeys", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField UNIQUE_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("uniqueConstraints", org.apache.thrift.protocol.TType.LIST, (short)4); + private static final org.apache.thrift.protocol.TField NOT_NULL_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("notNullConstraints", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField DEFAULT_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultConstraints", org.apache.thrift.protocol.TType.LIST, (short)6); + private static final org.apache.thrift.protocol.TField CHECK_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("checkConstraints", org.apache.thrift.protocol.TType.LIST, (short)7); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_constraint_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_constraint_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_table_with_constraints_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_with_constraints_argsTupleSchemeFactory()); } - private DropConstraintRequest req; // required + private Table tbl; // required + private List primaryKeys; // required + private List foreignKeys; // required + private List uniqueConstraints; // required + private List notNullConstraints; // required + private List defaultConstraints; // required + private List checkConstraints; // 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 { - REQ((short)1, "req"); + TBL((short)1, "tbl"), + PRIMARY_KEYS((short)2, "primaryKeys"), + FOREIGN_KEYS((short)3, "foreignKeys"), + UNIQUE_CONSTRAINTS((short)4, "uniqueConstraints"), + NOT_NULL_CONSTRAINTS((short)5, "notNullConstraints"), + DEFAULT_CONSTRAINTS((short)6, "defaultConstraints"), + CHECK_CONSTRAINTS((short)7, "checkConstraints"); private static final Map byName = new HashMap(); @@ -62934,8 +62960,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_req_res */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // TBL + return TBL; + case 2: // PRIMARY_KEYS + return PRIMARY_KEYS; + case 3: // FOREIGN_KEYS + return FOREIGN_KEYS; + case 4: // UNIQUE_CONSTRAINTS + return UNIQUE_CONSTRAINTS; + case 5: // NOT_NULL_CONSTRAINTS + return NOT_NULL_CONSTRAINTS; + case 6: // DEFAULT_CONSTRAINTS + return DEFAULT_CONSTRAINTS; + case 7: // CHECK_CONSTRAINTS + return CHECK_CONSTRAINTS; default: return null; } @@ -62979,477 +63017,424 @@ public String getFieldName() { 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropConstraintRequest.class))); + tmpMap.put(_Fields.TBL, new org.apache.thrift.meta_data.FieldMetaData("tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.PRIMARY_KEYS, new org.apache.thrift.meta_data.FieldMetaData("primaryKeys", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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)))); + tmpMap.put(_Fields.FOREIGN_KEYS, new org.apache.thrift.meta_data.FieldMetaData("foreignKeys", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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)))); + tmpMap.put(_Fields.UNIQUE_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("uniqueConstraints", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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, SQLUniqueConstraint.class)))); + tmpMap.put(_Fields.NOT_NULL_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("notNullConstraints", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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, SQLNotNullConstraint.class)))); + tmpMap.put(_Fields.DEFAULT_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("defaultConstraints", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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, SQLDefaultConstraint.class)))); + tmpMap.put(_Fields.CHECK_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("checkConstraints", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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, SQLCheckConstraint.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_constraint_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_constraints_args.class, metaDataMap); } - public drop_constraint_args() { + public create_table_with_constraints_args() { } - public drop_constraint_args( - DropConstraintRequest req) + public create_table_with_constraints_args( + Table tbl, + List primaryKeys, + List foreignKeys, + List uniqueConstraints, + List notNullConstraints, + List defaultConstraints, + List checkConstraints) { this(); - this.req = req; + this.tbl = tbl; + this.primaryKeys = primaryKeys; + this.foreignKeys = foreignKeys; + this.uniqueConstraints = uniqueConstraints; + this.notNullConstraints = notNullConstraints; + this.defaultConstraints = defaultConstraints; + this.checkConstraints = checkConstraints; } /** * Performs a deep copy on other. */ - public drop_constraint_args(drop_constraint_args other) { - if (other.isSetReq()) { - this.req = new DropConstraintRequest(other.req); + public create_table_with_constraints_args(create_table_with_constraints_args other) { + if (other.isSetTbl()) { + this.tbl = new Table(other.tbl); + } + if (other.isSetPrimaryKeys()) { + List __this__primaryKeys = new ArrayList(other.primaryKeys.size()); + for (SQLPrimaryKey other_element : other.primaryKeys) { + __this__primaryKeys.add(new SQLPrimaryKey(other_element)); + } + this.primaryKeys = __this__primaryKeys; + } + if (other.isSetForeignKeys()) { + List __this__foreignKeys = new ArrayList(other.foreignKeys.size()); + for (SQLForeignKey other_element : other.foreignKeys) { + __this__foreignKeys.add(new SQLForeignKey(other_element)); + } + this.foreignKeys = __this__foreignKeys; + } + if (other.isSetUniqueConstraints()) { + List __this__uniqueConstraints = new ArrayList(other.uniqueConstraints.size()); + for (SQLUniqueConstraint other_element : other.uniqueConstraints) { + __this__uniqueConstraints.add(new SQLUniqueConstraint(other_element)); + } + this.uniqueConstraints = __this__uniqueConstraints; + } + if (other.isSetNotNullConstraints()) { + List __this__notNullConstraints = new ArrayList(other.notNullConstraints.size()); + for (SQLNotNullConstraint other_element : other.notNullConstraints) { + __this__notNullConstraints.add(new SQLNotNullConstraint(other_element)); + } + this.notNullConstraints = __this__notNullConstraints; + } + if (other.isSetDefaultConstraints()) { + List __this__defaultConstraints = new ArrayList(other.defaultConstraints.size()); + for (SQLDefaultConstraint other_element : other.defaultConstraints) { + __this__defaultConstraints.add(new SQLDefaultConstraint(other_element)); + } + this.defaultConstraints = __this__defaultConstraints; + } + if (other.isSetCheckConstraints()) { + List __this__checkConstraints = new ArrayList(other.checkConstraints.size()); + for (SQLCheckConstraint other_element : other.checkConstraints) { + __this__checkConstraints.add(new SQLCheckConstraint(other_element)); + } + this.checkConstraints = __this__checkConstraints; } } - public drop_constraint_args deepCopy() { - return new drop_constraint_args(this); + public create_table_with_constraints_args deepCopy() { + return new create_table_with_constraints_args(this); } @Override public void clear() { - this.req = null; + this.tbl = null; + this.primaryKeys = null; + this.foreignKeys = null; + this.uniqueConstraints = null; + this.notNullConstraints = null; + this.defaultConstraints = null; + this.checkConstraints = null; } - public DropConstraintRequest getReq() { - return this.req; + public Table getTbl() { + return this.tbl; } - public void setReq(DropConstraintRequest req) { - this.req = req; + public void setTbl(Table tbl) { + this.tbl = tbl; } - public void unsetReq() { - this.req = null; + public void unsetTbl() { + this.tbl = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + /** Returns true if field tbl is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl() { + return this.tbl != null; } - public void setReqIsSet(boolean value) { + public void setTblIsSet(boolean value) { if (!value) { - this.req = null; + this.tbl = null; } } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case REQ: - if (value == null) { - unsetReq(); - } else { - setReq((DropConstraintRequest)value); - } - break; - - } + public int getPrimaryKeysSize() { + return (this.primaryKeys == null) ? 0 : this.primaryKeys.size(); } - public Object getFieldValue(_Fields field) { - switch (field) { - case REQ: - return getReq(); + public java.util.Iterator getPrimaryKeysIterator() { + return (this.primaryKeys == null) ? null : this.primaryKeys.iterator(); + } + public void addToPrimaryKeys(SQLPrimaryKey elem) { + if (this.primaryKeys == null) { + this.primaryKeys = new ArrayList(); } - throw new IllegalStateException(); + this.primaryKeys.add(elem); } - /** 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(); - } + public List getPrimaryKeys() { + return this.primaryKeys; + } - switch (field) { - case REQ: - return isSetReq(); - } - throw new IllegalStateException(); + public void setPrimaryKeys(List primaryKeys) { + this.primaryKeys = primaryKeys; } - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof drop_constraint_args) - return this.equals((drop_constraint_args)that); - return false; + public void unsetPrimaryKeys() { + this.primaryKeys = null; } - public boolean equals(drop_constraint_args that) { - if (that == null) - return false; + /** Returns true if field primaryKeys is set (has been assigned a value) and false otherwise */ + public boolean isSetPrimaryKeys() { + return this.primaryKeys != null; + } - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) - return false; - if (!this.req.equals(that.req)) - return false; + public void setPrimaryKeysIsSet(boolean value) { + if (!value) { + this.primaryKeys = null; } - - return true; } - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); - - return list.hashCode(); + public int getForeignKeysSize() { + return (this.foreignKeys == null) ? 0 : this.foreignKeys.size(); } - @Override - public int compareTo(drop_constraint_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; + public java.util.Iterator getForeignKeysIterator() { + return (this.foreignKeys == null) ? null : this.foreignKeys.iterator(); + } - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); - if (lastComparison != 0) { - return lastComparison; - } + public void addToForeignKeys(SQLForeignKey elem) { + if (this.foreignKeys == null) { + this.foreignKeys = new ArrayList(); } - return 0; + this.foreignKeys.add(elem); } - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); + public List getForeignKeys() { + return this.foreignKeys; } - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + public void setForeignKeys(List foreignKeys) { + this.foreignKeys = foreignKeys; } - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + public void unsetForeignKeys() { + this.foreignKeys = null; } - @Override - public String toString() { - StringBuilder sb = new StringBuilder("drop_constraint_args("); - boolean first = true; - - sb.append("req:"); - if (this.req == null) { - sb.append("null"); - } else { - sb.append(this.req); - } - first = false; - sb.append(")"); - return sb.toString(); + /** Returns true if field foreignKeys is set (has been assigned a value) and false otherwise */ + public boolean isSetForeignKeys() { + return this.foreignKeys != null; } - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - if (req != null) { - req.validate(); + public void setForeignKeysIsSet(boolean value) { + if (!value) { + this.foreignKeys = null; } } - 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); - } + public int getUniqueConstraintsSize() { + return (this.uniqueConstraints == null) ? 0 : this.uniqueConstraints.size(); } - 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); - } + public java.util.Iterator getUniqueConstraintsIterator() { + return (this.uniqueConstraints == null) ? null : this.uniqueConstraints.iterator(); } - private static class drop_constraint_argsStandardSchemeFactory implements SchemeFactory { - public drop_constraint_argsStandardScheme getScheme() { - return new drop_constraint_argsStandardScheme(); + public void addToUniqueConstraints(SQLUniqueConstraint elem) { + if (this.uniqueConstraints == null) { + this.uniqueConstraints = new ArrayList(); } + this.uniqueConstraints.add(elem); } - private static class drop_constraint_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_args 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: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new DropConstraintRequest(); - struct.req.read(iprot); - struct.setReqIsSet(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, drop_constraint_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - + public List getUniqueConstraints() { + return this.uniqueConstraints; } - private static class drop_constraint_argsTupleSchemeFactory implements SchemeFactory { - public drop_constraint_argsTupleScheme getScheme() { - return new drop_constraint_argsTupleScheme(); - } + public void setUniqueConstraints(List uniqueConstraints) { + this.uniqueConstraints = uniqueConstraints; } - private static class drop_constraint_argsTupleScheme extends TupleScheme { + public void unsetUniqueConstraints() { + this.uniqueConstraints = null; + } - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetReq()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); - } - } + /** Returns true if field uniqueConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetUniqueConstraints() { + return this.uniqueConstraints != null; + } - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.req = new DropConstraintRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); - } + public void setUniqueConstraintsIsSet(boolean value) { + if (!value) { + this.uniqueConstraints = null; } } - } - - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_constraint_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_constraint_result"); - - private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new drop_constraint_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_constraint_resultTupleSchemeFactory()); + public int getNotNullConstraintsSize() { + return (this.notNullConstraints == null) ? 0 : this.notNullConstraints.size(); } - private NoSuchObjectException o1; // required - private MetaException o3; // 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 { - O1((short)1, "o1"), - O3((short)2, "o3"); - - private static final Map byName = new HashMap(); - - 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: // O1 - return O1; - case 2: // O3 - return O3; - default: - return null; - } - } + public java.util.Iterator getNotNullConstraintsIterator() { + return (this.notNullConstraints == null) ? null : this.notNullConstraints.iterator(); + } - /** - * 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; + public void addToNotNullConstraints(SQLNotNullConstraint elem) { + if (this.notNullConstraints == null) { + this.notNullConstraints = new ArrayList(); } + this.notNullConstraints.add(elem); + } - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } + public List getNotNullConstraints() { + return this.notNullConstraints; + } - private final short _thriftId; - private final String _fieldName; + public void setNotNullConstraints(List notNullConstraints) { + this.notNullConstraints = notNullConstraints; + } - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } + public void unsetNotNullConstraints() { + this.notNullConstraints = null; + } - public short getThriftFieldId() { - return _thriftId; - } + /** Returns true if field notNullConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetNotNullConstraints() { + return this.notNullConstraints != null; + } - public String getFieldName() { - return _fieldName; + public void setNotNullConstraintsIsSet(boolean value) { + if (!value) { + this.notNullConstraints = null; } } - // 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.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_constraint_result.class, metaDataMap); + public int getDefaultConstraintsSize() { + return (this.defaultConstraints == null) ? 0 : this.defaultConstraints.size(); } - public drop_constraint_result() { + public java.util.Iterator getDefaultConstraintsIterator() { + return (this.defaultConstraints == null) ? null : this.defaultConstraints.iterator(); } - public drop_constraint_result( - NoSuchObjectException o1, - MetaException o3) - { - this(); - this.o1 = o1; - this.o3 = o3; + public void addToDefaultConstraints(SQLDefaultConstraint elem) { + if (this.defaultConstraints == null) { + this.defaultConstraints = new ArrayList(); + } + this.defaultConstraints.add(elem); } - /** - * Performs a deep copy on other. - */ - public drop_constraint_result(drop_constraint_result other) { - if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); - } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); - } + public List getDefaultConstraints() { + return this.defaultConstraints; } - public drop_constraint_result deepCopy() { - return new drop_constraint_result(this); + public void setDefaultConstraints(List defaultConstraints) { + this.defaultConstraints = defaultConstraints; } - @Override - public void clear() { - this.o1 = null; - this.o3 = null; + public void unsetDefaultConstraints() { + this.defaultConstraints = null; } - public NoSuchObjectException getO1() { - return this.o1; + /** Returns true if field defaultConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetDefaultConstraints() { + return this.defaultConstraints != null; } - public void setO1(NoSuchObjectException o1) { - this.o1 = o1; + public void setDefaultConstraintsIsSet(boolean value) { + if (!value) { + this.defaultConstraints = null; + } } - public void unsetO1() { - this.o1 = null; + public int getCheckConstraintsSize() { + return (this.checkConstraints == null) ? 0 : this.checkConstraints.size(); } - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; + public java.util.Iterator getCheckConstraintsIterator() { + return (this.checkConstraints == null) ? null : this.checkConstraints.iterator(); } - public void setO1IsSet(boolean value) { - if (!value) { - this.o1 = null; + public void addToCheckConstraints(SQLCheckConstraint elem) { + if (this.checkConstraints == null) { + this.checkConstraints = new ArrayList(); } + this.checkConstraints.add(elem); } - public MetaException getO3() { - return this.o3; + public List getCheckConstraints() { + return this.checkConstraints; } - public void setO3(MetaException o3) { - this.o3 = o3; + public void setCheckConstraints(List checkConstraints) { + this.checkConstraints = checkConstraints; } - public void unsetO3() { - this.o3 = null; + public void unsetCheckConstraints() { + this.checkConstraints = null; } - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; + /** Returns true if field checkConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetCheckConstraints() { + return this.checkConstraints != null; } - public void setO3IsSet(boolean value) { + public void setCheckConstraintsIsSet(boolean value) { if (!value) { - this.o3 = null; + this.checkConstraints = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case O1: + case TBL: if (value == null) { - unsetO1(); + unsetTbl(); } else { - setO1((NoSuchObjectException)value); + setTbl((Table)value); } break; - case O3: + case PRIMARY_KEYS: if (value == null) { - unsetO3(); + unsetPrimaryKeys(); } else { - setO3((MetaException)value); + setPrimaryKeys((List)value); + } + break; + + case FOREIGN_KEYS: + if (value == null) { + unsetForeignKeys(); + } else { + setForeignKeys((List)value); + } + break; + + case UNIQUE_CONSTRAINTS: + if (value == null) { + unsetUniqueConstraints(); + } else { + setUniqueConstraints((List)value); + } + break; + + case NOT_NULL_CONSTRAINTS: + if (value == null) { + unsetNotNullConstraints(); + } else { + setNotNullConstraints((List)value); + } + break; + + case DEFAULT_CONSTRAINTS: + if (value == null) { + unsetDefaultConstraints(); + } else { + setDefaultConstraints((List)value); + } + break; + + case CHECK_CONSTRAINTS: + if (value == null) { + unsetCheckConstraints(); + } else { + setCheckConstraints((List)value); } break; @@ -63458,11 +63443,26 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case O1: - return getO1(); + case TBL: + return getTbl(); - case O3: - return getO3(); + case PRIMARY_KEYS: + return getPrimaryKeys(); + + case FOREIGN_KEYS: + return getForeignKeys(); + + case UNIQUE_CONSTRAINTS: + return getUniqueConstraints(); + + case NOT_NULL_CONSTRAINTS: + return getNotNullConstraints(); + + case DEFAULT_CONSTRAINTS: + return getDefaultConstraints(); + + case CHECK_CONSTRAINTS: + return getCheckConstraints(); } throw new IllegalStateException(); @@ -63475,10 +63475,20 @@ public boolean isSet(_Fields field) { } switch (field) { - case O1: - return isSetO1(); - case O3: - return isSetO3(); + case TBL: + return isSetTbl(); + case PRIMARY_KEYS: + return isSetPrimaryKeys(); + case FOREIGN_KEYS: + return isSetForeignKeys(); + case UNIQUE_CONSTRAINTS: + return isSetUniqueConstraints(); + case NOT_NULL_CONSTRAINTS: + return isSetNotNullConstraints(); + case DEFAULT_CONSTRAINTS: + return isSetDefaultConstraints(); + case CHECK_CONSTRAINTS: + return isSetCheckConstraints(); } throw new IllegalStateException(); } @@ -63487,30 +63497,75 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_constraint_result) - return this.equals((drop_constraint_result)that); + if (that instanceof create_table_with_constraints_args) + return this.equals((create_table_with_constraints_args)that); return false; } - public boolean equals(drop_constraint_result that) { + public boolean equals(create_table_with_constraints_args that) { if (that == null) return false; - boolean this_present_o1 = true && this.isSetO1(); - boolean that_present_o1 = true && that.isSetO1(); - if (this_present_o1 || that_present_o1) { - if (!(this_present_o1 && that_present_o1)) + boolean this_present_tbl = true && this.isSetTbl(); + boolean that_present_tbl = true && that.isSetTbl(); + if (this_present_tbl || that_present_tbl) { + if (!(this_present_tbl && that_present_tbl)) return false; - if (!this.o1.equals(that.o1)) + if (!this.tbl.equals(that.tbl)) return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) + boolean this_present_primaryKeys = true && this.isSetPrimaryKeys(); + boolean that_present_primaryKeys = true && that.isSetPrimaryKeys(); + if (this_present_primaryKeys || that_present_primaryKeys) { + if (!(this_present_primaryKeys && that_present_primaryKeys)) return false; - if (!this.o3.equals(that.o3)) + if (!this.primaryKeys.equals(that.primaryKeys)) + return false; + } + + boolean this_present_foreignKeys = true && this.isSetForeignKeys(); + boolean that_present_foreignKeys = true && that.isSetForeignKeys(); + if (this_present_foreignKeys || that_present_foreignKeys) { + if (!(this_present_foreignKeys && that_present_foreignKeys)) + return false; + if (!this.foreignKeys.equals(that.foreignKeys)) + return false; + } + + boolean this_present_uniqueConstraints = true && this.isSetUniqueConstraints(); + boolean that_present_uniqueConstraints = true && that.isSetUniqueConstraints(); + if (this_present_uniqueConstraints || that_present_uniqueConstraints) { + if (!(this_present_uniqueConstraints && that_present_uniqueConstraints)) + return false; + if (!this.uniqueConstraints.equals(that.uniqueConstraints)) + return false; + } + + boolean this_present_notNullConstraints = true && this.isSetNotNullConstraints(); + boolean that_present_notNullConstraints = true && that.isSetNotNullConstraints(); + if (this_present_notNullConstraints || that_present_notNullConstraints) { + if (!(this_present_notNullConstraints && that_present_notNullConstraints)) + return false; + if (!this.notNullConstraints.equals(that.notNullConstraints)) + return false; + } + + boolean this_present_defaultConstraints = true && this.isSetDefaultConstraints(); + boolean that_present_defaultConstraints = true && that.isSetDefaultConstraints(); + if (this_present_defaultConstraints || that_present_defaultConstraints) { + if (!(this_present_defaultConstraints && that_present_defaultConstraints)) + return false; + if (!this.defaultConstraints.equals(that.defaultConstraints)) + return false; + } + + boolean this_present_checkConstraints = true && this.isSetCheckConstraints(); + boolean that_present_checkConstraints = true && that.isSetCheckConstraints(); + if (this_present_checkConstraints || that_present_checkConstraints) { + if (!(this_present_checkConstraints && that_present_checkConstraints)) + return false; + if (!this.checkConstraints.equals(that.checkConstraints)) return false; } @@ -63521,89 +63576,5947 @@ public boolean equals(drop_constraint_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); + boolean present_tbl = true && (isSetTbl()); + list.add(present_tbl); + if (present_tbl) + list.add(tbl); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); + boolean present_primaryKeys = true && (isSetPrimaryKeys()); + list.add(present_primaryKeys); + if (present_primaryKeys) + list.add(primaryKeys); + + boolean present_foreignKeys = true && (isSetForeignKeys()); + list.add(present_foreignKeys); + if (present_foreignKeys) + list.add(foreignKeys); + + boolean present_uniqueConstraints = true && (isSetUniqueConstraints()); + list.add(present_uniqueConstraints); + if (present_uniqueConstraints) + list.add(uniqueConstraints); + + boolean present_notNullConstraints = true && (isSetNotNullConstraints()); + list.add(present_notNullConstraints); + if (present_notNullConstraints) + list.add(notNullConstraints); + + boolean present_defaultConstraints = true && (isSetDefaultConstraints()); + list.add(present_defaultConstraints); + if (present_defaultConstraints) + list.add(defaultConstraints); + + boolean present_checkConstraints = true && (isSetCheckConstraints()); + list.add(present_checkConstraints); + if (present_checkConstraints) + list.add(checkConstraints); return list.hashCode(); } @Override - public int compareTo(drop_constraint_result other) { + public int compareTo(create_table_with_constraints_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetTbl()).compareTo(other.isSetTbl()); if (lastComparison != 0) { return lastComparison; } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (isSetTbl()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, other.tbl); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetPrimaryKeys()).compareTo(other.isSetPrimaryKeys()); if (lastComparison != 0) { return lastComparison; } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (isSetPrimaryKeys()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.primaryKeys, other.primaryKeys); 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); + lastComparison = Boolean.valueOf(isSetForeignKeys()).compareTo(other.isSetForeignKeys()); + if (lastComparison != 0) { + return lastComparison; } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("drop_constraint_result("); - boolean first = true; - - sb.append("o1:"); - if (this.o1 == null) { - sb.append("null"); - } else { - sb.append(this.o1); + if (isSetForeignKeys()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.foreignKeys, other.foreignKeys); + if (lastComparison != 0) { + return lastComparison; + } } - first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); + lastComparison = Boolean.valueOf(isSetUniqueConstraints()).compareTo(other.isSetUniqueConstraints()); + if (lastComparison != 0) { + return lastComparison; } - first = false; - sb.append(")"); - return sb.toString(); + if (isSetUniqueConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uniqueConstraints, other.uniqueConstraints); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNotNullConstraints()).compareTo(other.isSetNotNullConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNotNullConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notNullConstraints, other.notNullConstraints); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDefaultConstraints()).compareTo(other.isSetDefaultConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDefaultConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultConstraints, other.defaultConstraints); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCheckConstraints()).compareTo(other.isSetCheckConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCheckConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.checkConstraints, other.checkConstraints); + 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("create_table_with_constraints_args("); + boolean first = true; + + sb.append("tbl:"); + if (this.tbl == null) { + sb.append("null"); + } else { + sb.append(this.tbl); + } + first = false; + if (!first) sb.append(", "); + sb.append("primaryKeys:"); + if (this.primaryKeys == null) { + sb.append("null"); + } else { + sb.append(this.primaryKeys); + } + first = false; + if (!first) sb.append(", "); + sb.append("foreignKeys:"); + if (this.foreignKeys == null) { + sb.append("null"); + } else { + sb.append(this.foreignKeys); + } + first = false; + if (!first) sb.append(", "); + sb.append("uniqueConstraints:"); + if (this.uniqueConstraints == null) { + sb.append("null"); + } else { + sb.append(this.uniqueConstraints); + } + first = false; + if (!first) sb.append(", "); + sb.append("notNullConstraints:"); + if (this.notNullConstraints == null) { + sb.append("null"); + } else { + sb.append(this.notNullConstraints); + } + first = false; + if (!first) sb.append(", "); + sb.append("defaultConstraints:"); + if (this.defaultConstraints == null) { + sb.append("null"); + } else { + sb.append(this.defaultConstraints); + } + first = false; + if (!first) sb.append(", "); + sb.append("checkConstraints:"); + if (this.checkConstraints == null) { + sb.append("null"); + } else { + sb.append(this.checkConstraints); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (tbl != null) { + tbl.validate(); + } + } + + 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 create_table_with_constraints_argsStandardSchemeFactory implements SchemeFactory { + public create_table_with_constraints_argsStandardScheme getScheme() { + return new create_table_with_constraints_argsStandardScheme(); + } + } + + private static class create_table_with_constraints_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_constraints_args 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: // TBL + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tbl = new Table(); + struct.tbl.read(iprot); + struct.setTblIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRIMARY_KEYS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1338 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list1338.size); + SQLPrimaryKey _elem1339; + for (int _i1340 = 0; _i1340 < _list1338.size; ++_i1340) + { + _elem1339 = new SQLPrimaryKey(); + _elem1339.read(iprot); + struct.primaryKeys.add(_elem1339); + } + iprot.readListEnd(); + } + struct.setPrimaryKeysIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FOREIGN_KEYS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1341 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list1341.size); + SQLForeignKey _elem1342; + for (int _i1343 = 0; _i1343 < _list1341.size; ++_i1343) + { + _elem1342 = new SQLForeignKey(); + _elem1342.read(iprot); + struct.foreignKeys.add(_elem1342); + } + iprot.readListEnd(); + } + struct.setForeignKeysIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // UNIQUE_CONSTRAINTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1344 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list1344.size); + SQLUniqueConstraint _elem1345; + for (int _i1346 = 0; _i1346 < _list1344.size; ++_i1346) + { + _elem1345 = new SQLUniqueConstraint(); + _elem1345.read(iprot); + struct.uniqueConstraints.add(_elem1345); + } + iprot.readListEnd(); + } + struct.setUniqueConstraintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // NOT_NULL_CONSTRAINTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1347 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list1347.size); + SQLNotNullConstraint _elem1348; + for (int _i1349 = 0; _i1349 < _list1347.size; ++_i1349) + { + _elem1348 = new SQLNotNullConstraint(); + _elem1348.read(iprot); + struct.notNullConstraints.add(_elem1348); + } + iprot.readListEnd(); + } + struct.setNotNullConstraintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // DEFAULT_CONSTRAINTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1350 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list1350.size); + SQLDefaultConstraint _elem1351; + for (int _i1352 = 0; _i1352 < _list1350.size; ++_i1352) + { + _elem1351 = new SQLDefaultConstraint(); + _elem1351.read(iprot); + struct.defaultConstraints.add(_elem1351); + } + iprot.readListEnd(); + } + struct.setDefaultConstraintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // CHECK_CONSTRAINTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1353 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list1353.size); + SQLCheckConstraint _elem1354; + for (int _i1355 = 0; _i1355 < _list1353.size; ++_i1355) + { + _elem1354 = new SQLCheckConstraint(); + _elem1354.read(iprot); + struct.checkConstraints.add(_elem1354); + } + iprot.readListEnd(); + } + struct.setCheckConstraintsIsSet(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, create_table_with_constraints_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.tbl != null) { + oprot.writeFieldBegin(TBL_FIELD_DESC); + struct.tbl.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.primaryKeys != null) { + oprot.writeFieldBegin(PRIMARY_KEYS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.primaryKeys.size())); + for (SQLPrimaryKey _iter1356 : struct.primaryKeys) + { + _iter1356.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.foreignKeys != null) { + oprot.writeFieldBegin(FOREIGN_KEYS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeys.size())); + for (SQLForeignKey _iter1357 : struct.foreignKeys) + { + _iter1357.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.uniqueConstraints != null) { + oprot.writeFieldBegin(UNIQUE_CONSTRAINTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraints.size())); + for (SQLUniqueConstraint _iter1358 : struct.uniqueConstraints) + { + _iter1358.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.notNullConstraints != null) { + oprot.writeFieldBegin(NOT_NULL_CONSTRAINTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraints.size())); + for (SQLNotNullConstraint _iter1359 : struct.notNullConstraints) + { + _iter1359.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.defaultConstraints != null) { + oprot.writeFieldBegin(DEFAULT_CONSTRAINTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.defaultConstraints.size())); + for (SQLDefaultConstraint _iter1360 : struct.defaultConstraints) + { + _iter1360.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.checkConstraints != null) { + oprot.writeFieldBegin(CHECK_CONSTRAINTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.checkConstraints.size())); + for (SQLCheckConstraint _iter1361 : struct.checkConstraints) + { + _iter1361.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class create_table_with_constraints_argsTupleSchemeFactory implements SchemeFactory { + public create_table_with_constraints_argsTupleScheme getScheme() { + return new create_table_with_constraints_argsTupleScheme(); + } + } + + private static class create_table_with_constraints_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_constraints_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetTbl()) { + optionals.set(0); + } + if (struct.isSetPrimaryKeys()) { + optionals.set(1); + } + if (struct.isSetForeignKeys()) { + optionals.set(2); + } + if (struct.isSetUniqueConstraints()) { + optionals.set(3); + } + if (struct.isSetNotNullConstraints()) { + optionals.set(4); + } + if (struct.isSetDefaultConstraints()) { + optionals.set(5); + } + if (struct.isSetCheckConstraints()) { + optionals.set(6); + } + oprot.writeBitSet(optionals, 7); + if (struct.isSetTbl()) { + struct.tbl.write(oprot); + } + if (struct.isSetPrimaryKeys()) { + { + oprot.writeI32(struct.primaryKeys.size()); + for (SQLPrimaryKey _iter1362 : struct.primaryKeys) + { + _iter1362.write(oprot); + } + } + } + if (struct.isSetForeignKeys()) { + { + oprot.writeI32(struct.foreignKeys.size()); + for (SQLForeignKey _iter1363 : struct.foreignKeys) + { + _iter1363.write(oprot); + } + } + } + if (struct.isSetUniqueConstraints()) { + { + oprot.writeI32(struct.uniqueConstraints.size()); + for (SQLUniqueConstraint _iter1364 : struct.uniqueConstraints) + { + _iter1364.write(oprot); + } + } + } + if (struct.isSetNotNullConstraints()) { + { + oprot.writeI32(struct.notNullConstraints.size()); + for (SQLNotNullConstraint _iter1365 : struct.notNullConstraints) + { + _iter1365.write(oprot); + } + } + } + if (struct.isSetDefaultConstraints()) { + { + oprot.writeI32(struct.defaultConstraints.size()); + for (SQLDefaultConstraint _iter1366 : struct.defaultConstraints) + { + _iter1366.write(oprot); + } + } + } + if (struct.isSetCheckConstraints()) { + { + oprot.writeI32(struct.checkConstraints.size()); + for (SQLCheckConstraint _iter1367 : struct.checkConstraints) + { + _iter1367.write(oprot); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_constraints_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(7); + if (incoming.get(0)) { + struct.tbl = new Table(); + struct.tbl.read(iprot); + struct.setTblIsSet(true); + } + if (incoming.get(1)) { + { + org.apache.thrift.protocol.TList _list1368 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list1368.size); + SQLPrimaryKey _elem1369; + for (int _i1370 = 0; _i1370 < _list1368.size; ++_i1370) + { + _elem1369 = new SQLPrimaryKey(); + _elem1369.read(iprot); + struct.primaryKeys.add(_elem1369); + } + } + struct.setPrimaryKeysIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list1371 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list1371.size); + SQLForeignKey _elem1372; + for (int _i1373 = 0; _i1373 < _list1371.size; ++_i1373) + { + _elem1372 = new SQLForeignKey(); + _elem1372.read(iprot); + struct.foreignKeys.add(_elem1372); + } + } + struct.setForeignKeysIsSet(true); + } + if (incoming.get(3)) { + { + org.apache.thrift.protocol.TList _list1374 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list1374.size); + SQLUniqueConstraint _elem1375; + for (int _i1376 = 0; _i1376 < _list1374.size; ++_i1376) + { + _elem1375 = new SQLUniqueConstraint(); + _elem1375.read(iprot); + struct.uniqueConstraints.add(_elem1375); + } + } + struct.setUniqueConstraintsIsSet(true); + } + if (incoming.get(4)) { + { + org.apache.thrift.protocol.TList _list1377 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list1377.size); + SQLNotNullConstraint _elem1378; + for (int _i1379 = 0; _i1379 < _list1377.size; ++_i1379) + { + _elem1378 = new SQLNotNullConstraint(); + _elem1378.read(iprot); + struct.notNullConstraints.add(_elem1378); + } + } + struct.setNotNullConstraintsIsSet(true); + } + if (incoming.get(5)) { + { + org.apache.thrift.protocol.TList _list1380 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraints = new ArrayList(_list1380.size); + SQLDefaultConstraint _elem1381; + for (int _i1382 = 0; _i1382 < _list1380.size; ++_i1382) + { + _elem1381 = new SQLDefaultConstraint(); + _elem1381.read(iprot); + struct.defaultConstraints.add(_elem1381); + } + } + struct.setDefaultConstraintsIsSet(true); + } + if (incoming.get(6)) { + { + org.apache.thrift.protocol.TList _list1383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraints = new ArrayList(_list1383.size); + SQLCheckConstraint _elem1384; + for (int _i1385 = 0; _i1385 < _list1383.size; ++_i1385) + { + _elem1384 = new SQLCheckConstraint(); + _elem1384.read(iprot); + struct.checkConstraints.add(_elem1384); + } + } + struct.setCheckConstraintsIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_with_constraints_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_with_constraints_result"); + + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new create_table_with_constraints_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_with_constraints_resultTupleSchemeFactory()); + } + + private AlreadyExistsException o1; // required + private InvalidObjectException o2; // required + private MetaException o3; // required + private NoSuchObjectException o4; // 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 { + O1((short)1, "o1"), + O2((short)2, "o2"), + O3((short)3, "o3"), + O4((short)4, "o4"); + + private static final Map byName = new HashMap(); + + 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: // O1 + return O1; + case 2: // O2 + return O2; + case 3: // O3 + return O3; + case 4: // O4 + return O4; + 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.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_constraints_result.class, metaDataMap); + } + + public create_table_with_constraints_result() { + } + + public create_table_with_constraints_result( + AlreadyExistsException o1, + InvalidObjectException o2, + MetaException o3, + NoSuchObjectException o4) + { + this(); + this.o1 = o1; + this.o2 = o2; + this.o3 = o3; + this.o4 = o4; + } + + /** + * Performs a deep copy on other. + */ + public create_table_with_constraints_result(create_table_with_constraints_result other) { + if (other.isSetO1()) { + this.o1 = new AlreadyExistsException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new InvalidObjectException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); + } + if (other.isSetO4()) { + this.o4 = new NoSuchObjectException(other.o4); + } + } + + public create_table_with_constraints_result deepCopy() { + return new create_table_with_constraints_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o2 = null; + this.o3 = null; + this.o4 = null; + } + + public AlreadyExistsException getO1() { + return this.o1; + } + + public void setO1(AlreadyExistsException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public InvalidObjectException getO2() { + return this.o2; + } + + public void setO2(InvalidObjectException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public MetaException getO3() { + return this.o3; + } + + public void setO3(MetaException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + + public NoSuchObjectException getO4() { + return this.o4; + } + + public void setO4(NoSuchObjectException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((AlreadyExistsException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((InvalidObjectException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); + } + break; + + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((NoSuchObjectException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O2: + return getO2(); + + case O3: + return getO3(); + + case O4: + return getO4(); + + } + 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 O1: + return isSetO1(); + case O2: + return isSetO2(); + case O3: + return isSetO3(); + case O4: + return isSetO4(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof create_table_with_constraints_result) + return this.equals((create_table_with_constraints_result)that); + return false; + } + + public boolean equals(create_table_with_constraints_result that) { + if (that == null) + return false; + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + + boolean present_o4 = true && (isSetO4()); + list.add(present_o4); + if (present_o4) + list.add(o4); + + return list.hashCode(); + } + + @Override + public int compareTo(create_table_with_constraints_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + 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("create_table_with_constraints_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; + if (!first) sb.append(", "); + sb.append("o4:"); + if (this.o4 == null) { + sb.append("null"); + } else { + sb.append(this.o4); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // 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 create_table_with_constraints_resultStandardSchemeFactory implements SchemeFactory { + public create_table_with_constraints_resultStandardScheme getScheme() { + return new create_table_with_constraints_resultStandardScheme(); + } + } + + private static class create_table_with_constraints_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_constraints_result 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: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new AlreadyExistsException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new InvalidObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // O4 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o4 = new NoSuchObjectException(); + struct.o4.read(iprot); + struct.setO4IsSet(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, create_table_with_constraints_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o4 != null) { + oprot.writeFieldBegin(O4_FIELD_DESC); + struct.o4.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class create_table_with_constraints_resultTupleSchemeFactory implements SchemeFactory { + public create_table_with_constraints_resultTupleScheme getScheme() { + return new create_table_with_constraints_resultTupleScheme(); + } + } + + private static class create_table_with_constraints_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_constraints_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + if (struct.isSetO3()) { + optionals.set(2); + } + if (struct.isSetO4()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + if (struct.isSetO4()) { + struct.o4.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_constraints_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.o1 = new AlreadyExistsException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new InvalidObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + if (incoming.get(2)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + if (incoming.get(3)) { + struct.o4 = new NoSuchObjectException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_req_args"); + + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new create_table_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_req_argsTupleSchemeFactory()); + } + + private CreateTableRequest request; // 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 { + REQUEST((short)1, "request"); + + private static final Map byName = new HashMap(); + + 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: // REQUEST + return REQUEST; + 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.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreateTableRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_req_args.class, metaDataMap); + } + + public create_table_req_args() { + } + + public create_table_req_args( + CreateTableRequest request) + { + this(); + this.request = request; + } + + /** + * Performs a deep copy on other. + */ + public create_table_req_args(create_table_req_args other) { + if (other.isSetRequest()) { + this.request = new CreateTableRequest(other.request); + } + } + + public create_table_req_args deepCopy() { + return new create_table_req_args(this); + } + + @Override + public void clear() { + this.request = null; + } + + public CreateTableRequest getRequest() { + return this.request; + } + + public void setRequest(CreateTableRequest request) { + this.request = request; + } + + public void unsetRequest() { + this.request = null; + } + + /** Returns true if field request is set (has been assigned a value) and false otherwise */ + public boolean isSetRequest() { + return this.request != null; + } + + public void setRequestIsSet(boolean value) { + if (!value) { + this.request = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQUEST: + if (value == null) { + unsetRequest(); + } else { + setRequest((CreateTableRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQUEST: + return getRequest(); + + } + 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 REQUEST: + return isSetRequest(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof create_table_req_args) + return this.equals((create_table_req_args)that); + return false; + } + + public boolean equals(create_table_req_args that) { + if (that == null) + return false; + + boolean this_present_request = true && this.isSetRequest(); + boolean that_present_request = true && that.isSetRequest(); + if (this_present_request || that_present_request) { + if (!(this_present_request && that_present_request)) + return false; + if (!this.request.equals(that.request)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_request = true && (isSetRequest()); + list.add(present_request); + if (present_request) + list.add(request); + + return list.hashCode(); + } + + @Override + public int compareTo(create_table_req_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + 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("create_table_req_args("); + boolean first = true; + + sb.append("request:"); + if (this.request == null) { + sb.append("null"); + } else { + sb.append(this.request); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (request != null) { + request.validate(); + } + } + + 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 create_table_req_argsStandardSchemeFactory implements SchemeFactory { + public create_table_req_argsStandardScheme getScheme() { + return new create_table_req_argsStandardScheme(); + } + } + + private static class create_table_req_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_req_args 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: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new CreateTableRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(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, create_table_req_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class create_table_req_argsTupleSchemeFactory implements SchemeFactory { + public create_table_req_argsTupleScheme getScheme() { + return new create_table_req_argsTupleScheme(); + } + } + + private static class create_table_req_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_req_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetRequest()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_req_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.request = new CreateTableRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_table_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_req_result"); + + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new create_table_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_req_resultTupleSchemeFactory()); + } + + private AlreadyExistsException o1; // required + private InvalidObjectException o2; // required + private MetaException o3; // required + private NoSuchObjectException o4; // 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 { + O1((short)1, "o1"), + O2((short)2, "o2"), + O3((short)3, "o3"), + O4((short)4, "o4"); + + private static final Map byName = new HashMap(); + + 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: // O1 + return O1; + case 2: // O2 + return O2; + case 3: // O3 + return O3; + case 4: // O4 + return O4; + 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.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_req_result.class, metaDataMap); + } + + public create_table_req_result() { + } + + public create_table_req_result( + AlreadyExistsException o1, + InvalidObjectException o2, + MetaException o3, + NoSuchObjectException o4) + { + this(); + this.o1 = o1; + this.o2 = o2; + this.o3 = o3; + this.o4 = o4; + } + + /** + * Performs a deep copy on other. + */ + public create_table_req_result(create_table_req_result other) { + if (other.isSetO1()) { + this.o1 = new AlreadyExistsException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new InvalidObjectException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); + } + if (other.isSetO4()) { + this.o4 = new NoSuchObjectException(other.o4); + } + } + + public create_table_req_result deepCopy() { + return new create_table_req_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o2 = null; + this.o3 = null; + this.o4 = null; + } + + public AlreadyExistsException getO1() { + return this.o1; + } + + public void setO1(AlreadyExistsException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public InvalidObjectException getO2() { + return this.o2; + } + + public void setO2(InvalidObjectException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public MetaException getO3() { + return this.o3; + } + + public void setO3(MetaException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + + public NoSuchObjectException getO4() { + return this.o4; + } + + public void setO4(NoSuchObjectException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((AlreadyExistsException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((InvalidObjectException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); + } + break; + + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((NoSuchObjectException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O2: + return getO2(); + + case O3: + return getO3(); + + case O4: + return getO4(); + + } + 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 O1: + return isSetO1(); + case O2: + return isSetO2(); + case O3: + return isSetO3(); + case O4: + return isSetO4(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof create_table_req_result) + return this.equals((create_table_req_result)that); + return false; + } + + public boolean equals(create_table_req_result that) { + if (that == null) + return false; + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + + boolean present_o4 = true && (isSetO4()); + list.add(present_o4); + if (present_o4) + list.add(o4); + + return list.hashCode(); + } + + @Override + public int compareTo(create_table_req_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + 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("create_table_req_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; + if (!first) sb.append(", "); + sb.append("o4:"); + if (this.o4 == null) { + sb.append("null"); + } else { + sb.append(this.o4); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // 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 create_table_req_resultStandardSchemeFactory implements SchemeFactory { + public create_table_req_resultStandardScheme getScheme() { + return new create_table_req_resultStandardScheme(); + } + } + + private static class create_table_req_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_req_result 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: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new AlreadyExistsException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new InvalidObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // O4 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o4 = new NoSuchObjectException(); + struct.o4.read(iprot); + struct.setO4IsSet(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, create_table_req_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o4 != null) { + oprot.writeFieldBegin(O4_FIELD_DESC); + struct.o4.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class create_table_req_resultTupleSchemeFactory implements SchemeFactory { + public create_table_req_resultTupleScheme getScheme() { + return new create_table_req_resultTupleScheme(); + } + } + + private static class create_table_req_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_req_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + if (struct.isSetO3()) { + optionals.set(2); + } + if (struct.isSetO4()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + if (struct.isSetO4()) { + struct.o4.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_req_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.o1 = new AlreadyExistsException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new InvalidObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + if (incoming.get(2)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + if (incoming.get(3)) { + struct.o4 = new NoSuchObjectException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_constraint_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_constraint_args"); + + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new drop_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_constraint_argsTupleSchemeFactory()); + } + + private DropConstraintRequest req; // 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 { + REQ((short)1, "req"); + + private static final Map byName = new HashMap(); + + 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: // REQ + return REQ; + 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropConstraintRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_constraint_args.class, metaDataMap); + } + + public drop_constraint_args() { + } + + public drop_constraint_args( + DropConstraintRequest req) + { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public drop_constraint_args(drop_constraint_args other) { + if (other.isSetReq()) { + this.req = new DropConstraintRequest(other.req); + } + } + + public drop_constraint_args deepCopy() { + return new drop_constraint_args(this); + } + + @Override + public void clear() { + this.req = null; + } + + public DropConstraintRequest getReq() { + return this.req; + } + + public void setReq(DropConstraintRequest req) { + this.req = req; + } + + public void unsetReq() { + this.req = null; + } + + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean value) { + if (!value) { + this.req = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQ: + if (value == null) { + unsetReq(); + } else { + setReq((DropConstraintRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQ: + return getReq(); + + } + 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 REQ: + return isSetReq(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof drop_constraint_args) + return this.equals((drop_constraint_args)that); + return false; + } + + public boolean equals(drop_constraint_args that) { + if (that == null) + return false; + + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) + return false; + if (!this.req.equals(that.req)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); + + return list.hashCode(); + } + + @Override + public int compareTo(drop_constraint_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + 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("drop_constraint_args("); + boolean first = true; + + sb.append("req:"); + if (this.req == null) { + sb.append("null"); + } else { + sb.append(this.req); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (req != null) { + req.validate(); + } + } + + 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 drop_constraint_argsStandardSchemeFactory implements SchemeFactory { + public drop_constraint_argsStandardScheme getScheme() { + return new drop_constraint_argsStandardScheme(); + } + } + + private static class drop_constraint_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_args 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: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new DropConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(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, drop_constraint_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class drop_constraint_argsTupleSchemeFactory implements SchemeFactory { + public drop_constraint_argsTupleScheme getScheme() { + return new drop_constraint_argsTupleScheme(); + } + } + + private static class drop_constraint_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetReq()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.req = new DropConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_constraint_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_constraint_result"); + + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new drop_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_constraint_resultTupleSchemeFactory()); + } + + private NoSuchObjectException o1; // required + private MetaException o3; // 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 { + O1((short)1, "o1"), + O3((short)2, "o3"); + + private static final Map byName = new HashMap(); + + 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: // O1 + return O1; + case 2: // O3 + return O3; + 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.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_constraint_result.class, metaDataMap); + } + + public drop_constraint_result() { + } + + public drop_constraint_result( + NoSuchObjectException o1, + MetaException o3) + { + this(); + this.o1 = o1; + this.o3 = o3; + } + + /** + * Performs a deep copy on other. + */ + public drop_constraint_result(drop_constraint_result other) { + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); + } + } + + public drop_constraint_result deepCopy() { + return new drop_constraint_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o3 = null; + } + + public NoSuchObjectException getO1() { + return this.o1; + } + + public void setO1(NoSuchObjectException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public MetaException getO3() { + return this.o3; + } + + public void setO3(MetaException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchObjectException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O3: + return getO3(); + + } + 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 O1: + return isSetO1(); + case O3: + return isSetO3(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof drop_constraint_result) + return this.equals((drop_constraint_result)that); + return false; + } + + public boolean equals(drop_constraint_result that) { + if (that == null) + return false; + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + + return list.hashCode(); + } + + @Override + public int compareTo(drop_constraint_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + 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("drop_constraint_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // 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 drop_constraint_resultStandardSchemeFactory implements SchemeFactory { + public drop_constraint_resultStandardScheme getScheme() { + return new drop_constraint_resultStandardScheme(); + } + } + + private static class drop_constraint_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_result 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: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(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, drop_constraint_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class drop_constraint_resultTupleSchemeFactory implements SchemeFactory { + public drop_constraint_resultTupleScheme getScheme() { + return new drop_constraint_resultTupleScheme(); + } + } + + private static class drop_constraint_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO3()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_primary_key_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_primary_key_args"); + + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_primary_key_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_primary_key_argsTupleSchemeFactory()); + } + + private AddPrimaryKeyRequest req; // 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 { + REQ((short)1, "req"); + + private static final Map byName = new HashMap(); + + 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: // REQ + return REQ; + 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPrimaryKeyRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_primary_key_args.class, metaDataMap); + } + + public add_primary_key_args() { + } + + public add_primary_key_args( + AddPrimaryKeyRequest req) + { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public add_primary_key_args(add_primary_key_args other) { + if (other.isSetReq()) { + this.req = new AddPrimaryKeyRequest(other.req); + } + } + + public add_primary_key_args deepCopy() { + return new add_primary_key_args(this); + } + + @Override + public void clear() { + this.req = null; + } + + public AddPrimaryKeyRequest getReq() { + return this.req; + } + + public void setReq(AddPrimaryKeyRequest req) { + this.req = req; + } + + public void unsetReq() { + this.req = null; + } + + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean value) { + if (!value) { + this.req = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQ: + if (value == null) { + unsetReq(); + } else { + setReq((AddPrimaryKeyRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQ: + return getReq(); + + } + 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 REQ: + return isSetReq(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_primary_key_args) + return this.equals((add_primary_key_args)that); + return false; + } + + public boolean equals(add_primary_key_args that) { + if (that == null) + return false; + + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) + return false; + if (!this.req.equals(that.req)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); + + return list.hashCode(); + } + + @Override + public int compareTo(add_primary_key_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + 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("add_primary_key_args("); + boolean first = true; + + sb.append("req:"); + if (this.req == null) { + sb.append("null"); + } else { + sb.append(this.req); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (req != null) { + req.validate(); + } + } + + 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 add_primary_key_argsStandardSchemeFactory implements SchemeFactory { + public add_primary_key_argsStandardScheme getScheme() { + return new add_primary_key_argsStandardScheme(); + } + } + + private static class add_primary_key_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_args 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: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new AddPrimaryKeyRequest(); + struct.req.read(iprot); + struct.setReqIsSet(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, add_primary_key_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_primary_key_argsTupleSchemeFactory implements SchemeFactory { + public add_primary_key_argsTupleScheme getScheme() { + return new add_primary_key_argsTupleScheme(); + } + } + + private static class add_primary_key_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetReq()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.req = new AddPrimaryKeyRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_primary_key_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_primary_key_result"); + + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_primary_key_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_primary_key_resultTupleSchemeFactory()); + } + + private NoSuchObjectException o1; // required + private MetaException o2; // 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 { + O1((short)1, "o1"), + O2((short)2, "o2"); + + private static final Map byName = new HashMap(); + + 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: // O1 + return O1; + case 2: // O2 + return O2; + 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.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_primary_key_result.class, metaDataMap); + } + + public add_primary_key_result() { + } + + public add_primary_key_result( + NoSuchObjectException o1, + MetaException o2) + { + this(); + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public add_primary_key_result(add_primary_key_result other) { + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public add_primary_key_result deepCopy() { + return new add_primary_key_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o2 = null; + } + + public NoSuchObjectException getO1() { + return this.o1; + } + + public void setO1(NoSuchObjectException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public MetaException getO2() { + return this.o2; + } + + public void setO2(MetaException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchObjectException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O2: + return getO2(); + + } + 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 O1: + return isSetO1(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_primary_key_result) + return this.equals((add_primary_key_result)that); + return false; + } + + public boolean equals(add_primary_key_result that) { + if (that == null) + return false; + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + return list.hashCode(); + } + + @Override + public int compareTo(add_primary_key_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + 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("add_primary_key_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // 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 add_primary_key_resultStandardSchemeFactory implements SchemeFactory { + public add_primary_key_resultStandardScheme getScheme() { + return new add_primary_key_resultStandardScheme(); + } + } + + private static class add_primary_key_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_result 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: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(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, add_primary_key_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_primary_key_resultTupleSchemeFactory implements SchemeFactory { + public add_primary_key_resultTupleScheme getScheme() { + return new add_primary_key_resultTupleScheme(); + } + } + + private static class add_primary_key_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_foreign_key_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_foreign_key_args"); + + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_foreign_key_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_foreign_key_argsTupleSchemeFactory()); + } + + private AddForeignKeyRequest req; // 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 { + REQ((short)1, "req"); + + private static final Map byName = new HashMap(); + + 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: // REQ + return REQ; + 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddForeignKeyRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_foreign_key_args.class, metaDataMap); + } + + public add_foreign_key_args() { + } + + public add_foreign_key_args( + AddForeignKeyRequest req) + { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public add_foreign_key_args(add_foreign_key_args other) { + if (other.isSetReq()) { + this.req = new AddForeignKeyRequest(other.req); + } + } + + public add_foreign_key_args deepCopy() { + return new add_foreign_key_args(this); + } + + @Override + public void clear() { + this.req = null; + } + + public AddForeignKeyRequest getReq() { + return this.req; + } + + public void setReq(AddForeignKeyRequest req) { + this.req = req; + } + + public void unsetReq() { + this.req = null; + } + + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean value) { + if (!value) { + this.req = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQ: + if (value == null) { + unsetReq(); + } else { + setReq((AddForeignKeyRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQ: + return getReq(); + + } + 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 REQ: + return isSetReq(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_foreign_key_args) + return this.equals((add_foreign_key_args)that); + return false; + } + + public boolean equals(add_foreign_key_args that) { + if (that == null) + return false; + + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) + return false; + if (!this.req.equals(that.req)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); + + return list.hashCode(); + } + + @Override + public int compareTo(add_foreign_key_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + 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("add_foreign_key_args("); + boolean first = true; + + sb.append("req:"); + if (this.req == null) { + sb.append("null"); + } else { + sb.append(this.req); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (req != null) { + req.validate(); + } + } + + 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 add_foreign_key_argsStandardSchemeFactory implements SchemeFactory { + public add_foreign_key_argsStandardScheme getScheme() { + return new add_foreign_key_argsStandardScheme(); + } + } + + private static class add_foreign_key_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_args 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: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new AddForeignKeyRequest(); + struct.req.read(iprot); + struct.setReqIsSet(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, add_foreign_key_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_foreign_key_argsTupleSchemeFactory implements SchemeFactory { + public add_foreign_key_argsTupleScheme getScheme() { + return new add_foreign_key_argsTupleScheme(); + } + } + + private static class add_foreign_key_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetReq()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.req = new AddForeignKeyRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_foreign_key_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_foreign_key_result"); + + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_foreign_key_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_foreign_key_resultTupleSchemeFactory()); + } + + private NoSuchObjectException o1; // required + private MetaException o2; // 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 { + O1((short)1, "o1"), + O2((short)2, "o2"); + + private static final Map byName = new HashMap(); + + 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: // O1 + return O1; + case 2: // O2 + return O2; + 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.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_foreign_key_result.class, metaDataMap); + } + + public add_foreign_key_result() { + } + + public add_foreign_key_result( + NoSuchObjectException o1, + MetaException o2) + { + this(); + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public add_foreign_key_result(add_foreign_key_result other) { + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public add_foreign_key_result deepCopy() { + return new add_foreign_key_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o2 = null; + } + + public NoSuchObjectException getO1() { + return this.o1; + } + + public void setO1(NoSuchObjectException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public MetaException getO2() { + return this.o2; + } + + public void setO2(MetaException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchObjectException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O2: + return getO2(); + + } + 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 O1: + return isSetO1(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_foreign_key_result) + return this.equals((add_foreign_key_result)that); + return false; + } + + public boolean equals(add_foreign_key_result that) { + if (that == null) + return false; + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + return list.hashCode(); + } + + @Override + public int compareTo(add_foreign_key_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + 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("add_foreign_key_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // 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 add_foreign_key_resultStandardSchemeFactory implements SchemeFactory { + public add_foreign_key_resultStandardScheme getScheme() { + return new add_foreign_key_resultStandardScheme(); + } + } + + private static class add_foreign_key_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_result 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: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(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, add_foreign_key_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_foreign_key_resultTupleSchemeFactory implements SchemeFactory { + public add_foreign_key_resultTupleScheme getScheme() { + return new add_foreign_key_resultTupleScheme(); + } + } + + private static class add_foreign_key_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_unique_constraint_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_unique_constraint_args"); + + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_unique_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_unique_constraint_argsTupleSchemeFactory()); + } + + private AddUniqueConstraintRequest req; // 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 { + REQ((short)1, "req"); + + private static final Map byName = new HashMap(); + + 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: // REQ + return REQ; + 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddUniqueConstraintRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_unique_constraint_args.class, metaDataMap); + } + + public add_unique_constraint_args() { + } + + public add_unique_constraint_args( + AddUniqueConstraintRequest req) + { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public add_unique_constraint_args(add_unique_constraint_args other) { + if (other.isSetReq()) { + this.req = new AddUniqueConstraintRequest(other.req); + } + } + + public add_unique_constraint_args deepCopy() { + return new add_unique_constraint_args(this); + } + + @Override + public void clear() { + this.req = null; + } + + public AddUniqueConstraintRequest getReq() { + return this.req; + } + + public void setReq(AddUniqueConstraintRequest req) { + this.req = req; + } + + public void unsetReq() { + this.req = null; + } + + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean value) { + if (!value) { + this.req = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQ: + if (value == null) { + unsetReq(); + } else { + setReq((AddUniqueConstraintRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQ: + return getReq(); + + } + 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 REQ: + return isSetReq(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_unique_constraint_args) + return this.equals((add_unique_constraint_args)that); + return false; + } + + public boolean equals(add_unique_constraint_args that) { + if (that == null) + return false; + + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) + return false; + if (!this.req.equals(that.req)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); + + return list.hashCode(); + } + + @Override + public int compareTo(add_unique_constraint_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + 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("add_unique_constraint_args("); + boolean first = true; + + sb.append("req:"); + if (this.req == null) { + sb.append("null"); + } else { + sb.append(this.req); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (req != null) { + req.validate(); + } + } + + 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 add_unique_constraint_argsStandardSchemeFactory implements SchemeFactory { + public add_unique_constraint_argsStandardScheme getScheme() { + return new add_unique_constraint_argsStandardScheme(); + } + } + + private static class add_unique_constraint_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constraint_args 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: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new AddUniqueConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(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, add_unique_constraint_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_unique_constraint_argsTupleSchemeFactory implements SchemeFactory { + public add_unique_constraint_argsTupleScheme getScheme() { + return new add_unique_constraint_argsTupleScheme(); + } + } + + private static class add_unique_constraint_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetReq()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.req = new AddUniqueConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_unique_constraint_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_unique_constraint_result"); + + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_unique_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_unique_constraint_resultTupleSchemeFactory()); + } + + private NoSuchObjectException o1; // required + private MetaException o2; // 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 { + O1((short)1, "o1"), + O2((short)2, "o2"); + + private static final Map byName = new HashMap(); + + 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: // O1 + return O1; + case 2: // O2 + return O2; + 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.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_unique_constraint_result.class, metaDataMap); + } + + public add_unique_constraint_result() { + } + + public add_unique_constraint_result( + NoSuchObjectException o1, + MetaException o2) + { + this(); + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public add_unique_constraint_result(add_unique_constraint_result other) { + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public add_unique_constraint_result deepCopy() { + return new add_unique_constraint_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o2 = null; + } + + public NoSuchObjectException getO1() { + return this.o1; + } + + public void setO1(NoSuchObjectException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public MetaException getO2() { + return this.o2; + } + + public void setO2(MetaException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchObjectException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O2: + return getO2(); + + } + 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 O1: + return isSetO1(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_unique_constraint_result) + return this.equals((add_unique_constraint_result)that); + return false; + } + + public boolean equals(add_unique_constraint_result that) { + if (that == null) + return false; + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + return list.hashCode(); + } + + @Override + public int compareTo(add_unique_constraint_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + 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("add_unique_constraint_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // 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 add_unique_constraint_resultStandardSchemeFactory implements SchemeFactory { + public add_unique_constraint_resultStandardScheme getScheme() { + return new add_unique_constraint_resultStandardScheme(); + } + } + + private static class add_unique_constraint_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constraint_result 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: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(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, add_unique_constraint_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_unique_constraint_resultTupleSchemeFactory implements SchemeFactory { + public add_unique_constraint_resultTupleScheme getScheme() { + return new add_unique_constraint_resultTupleScheme(); + } + } + + private static class add_unique_constraint_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_not_null_constraint_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_not_null_constraint_args"); + + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_not_null_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_not_null_constraint_argsTupleSchemeFactory()); + } + + private AddNotNullConstraintRequest req; // 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 { + REQ((short)1, "req"); + + private static final Map byName = new HashMap(); + + 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: // REQ + return REQ; + 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddNotNullConstraintRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_not_null_constraint_args.class, metaDataMap); + } + + public add_not_null_constraint_args() { + } + + public add_not_null_constraint_args( + AddNotNullConstraintRequest req) + { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public add_not_null_constraint_args(add_not_null_constraint_args other) { + if (other.isSetReq()) { + this.req = new AddNotNullConstraintRequest(other.req); + } + } + + public add_not_null_constraint_args deepCopy() { + return new add_not_null_constraint_args(this); + } + + @Override + public void clear() { + this.req = null; + } + + public AddNotNullConstraintRequest getReq() { + return this.req; + } + + public void setReq(AddNotNullConstraintRequest req) { + this.req = req; + } + + public void unsetReq() { + this.req = null; + } + + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean value) { + if (!value) { + this.req = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQ: + if (value == null) { + unsetReq(); + } else { + setReq((AddNotNullConstraintRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQ: + return getReq(); + + } + 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 REQ: + return isSetReq(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_not_null_constraint_args) + return this.equals((add_not_null_constraint_args)that); + return false; + } + + public boolean equals(add_not_null_constraint_args that) { + if (that == null) + return false; + + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) + return false; + if (!this.req.equals(that.req)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); + + return list.hashCode(); + } + + @Override + public int compareTo(add_not_null_constraint_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + 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("add_not_null_constraint_args("); + boolean first = true; + + sb.append("req:"); + if (this.req == null) { + sb.append("null"); + } else { + sb.append(this.req); + } + first = false; + sb.append(")"); + return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (req != null) { + req.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -63622,15 +69535,456 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_constraint_resultStandardSchemeFactory implements SchemeFactory { - public drop_constraint_resultStandardScheme getScheme() { - return new drop_constraint_resultStandardScheme(); + private static class add_not_null_constraint_argsStandardSchemeFactory implements SchemeFactory { + public add_not_null_constraint_argsStandardScheme getScheme() { + return new add_not_null_constraint_argsStandardScheme(); } } - private static class drop_constraint_resultStandardScheme extends StandardScheme { + private static class add_not_null_constraint_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constraint_args 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: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new AddNotNullConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(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, add_not_null_constraint_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_not_null_constraint_argsTupleSchemeFactory implements SchemeFactory { + public add_not_null_constraint_argsTupleScheme getScheme() { + return new add_not_null_constraint_argsTupleScheme(); + } + } + + private static class add_not_null_constraint_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetReq()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.req = new AddNotNullConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_not_null_constraint_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_not_null_constraint_result"); + + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_not_null_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_not_null_constraint_resultTupleSchemeFactory()); + } + + private NoSuchObjectException o1; // required + private MetaException o2; // 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 { + O1((short)1, "o1"), + O2((short)2, "o2"); + + private static final Map byName = new HashMap(); + + 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: // O1 + return O1; + case 2: // O2 + return O2; + 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.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_not_null_constraint_result.class, metaDataMap); + } + + public add_not_null_constraint_result() { + } + + public add_not_null_constraint_result( + NoSuchObjectException o1, + MetaException o2) + { + this(); + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public add_not_null_constraint_result(add_not_null_constraint_result other) { + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public add_not_null_constraint_result deepCopy() { + return new add_not_null_constraint_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o2 = null; + } + + public NoSuchObjectException getO1() { + return this.o1; + } + + public void setO1(NoSuchObjectException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public MetaException getO2() { + return this.o2; + } + + public void setO2(MetaException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchObjectException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O2: + return getO2(); + + } + 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 O1: + return isSetO1(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_not_null_constraint_result) + return this.equals((add_not_null_constraint_result)that); + return false; + } + + public boolean equals(add_not_null_constraint_result that) { + if (that == null) + return false; + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + return list.hashCode(); + } + + @Override + public int compareTo(add_not_null_constraint_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + 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("add_not_null_constraint_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // 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 add_not_null_constraint_resultStandardSchemeFactory implements SchemeFactory { + public add_not_null_constraint_resultStandardScheme getScheme() { + return new add_not_null_constraint_resultStandardScheme(); + } + } + + private static class add_not_null_constraint_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -63649,11 +70003,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_res org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O3 + case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -63667,7 +70021,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -63676,9 +70030,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_re struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -63687,35 +70041,35 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_re } - private static class drop_constraint_resultTupleSchemeFactory implements SchemeFactory { - public drop_constraint_resultTupleScheme getScheme() { - return new drop_constraint_resultTupleScheme(); + private static class add_not_null_constraint_resultTupleSchemeFactory implements SchemeFactory { + public add_not_null_constraint_resultTupleScheme getScheme() { + return new add_not_null_constraint_resultTupleScheme(); } } - private static class drop_constraint_resultTupleScheme extends TupleScheme { + private static class add_not_null_constraint_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO3()) { + if (struct.isSetO2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); + if (struct.isSetO2()) { + struct.o2.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -63724,27 +70078,27 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_resu struct.setO1IsSet(true); } if (incoming.get(1)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_primary_key_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_primary_key_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_default_constraint_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_default_constraint_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_primary_key_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_primary_key_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_default_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_default_constraint_argsTupleSchemeFactory()); } - private AddPrimaryKeyRequest req; // required + private AddDefaultConstraintRequest req; // 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 { @@ -63809,16 +70163,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPrimaryKeyRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddDefaultConstraintRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_primary_key_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_default_constraint_args.class, metaDataMap); } - public add_primary_key_args() { + public add_default_constraint_args() { } - public add_primary_key_args( - AddPrimaryKeyRequest req) + public add_default_constraint_args( + AddDefaultConstraintRequest req) { this(); this.req = req; @@ -63827,14 +70181,14 @@ public add_primary_key_args( /** * Performs a deep copy on other. */ - public add_primary_key_args(add_primary_key_args other) { + public add_default_constraint_args(add_default_constraint_args other) { if (other.isSetReq()) { - this.req = new AddPrimaryKeyRequest(other.req); + this.req = new AddDefaultConstraintRequest(other.req); } } - public add_primary_key_args deepCopy() { - return new add_primary_key_args(this); + public add_default_constraint_args deepCopy() { + return new add_default_constraint_args(this); } @Override @@ -63842,11 +70196,11 @@ public void clear() { this.req = null; } - public AddPrimaryKeyRequest getReq() { + public AddDefaultConstraintRequest getReq() { return this.req; } - public void setReq(AddPrimaryKeyRequest req) { + public void setReq(AddDefaultConstraintRequest req) { this.req = req; } @@ -63871,7 +70225,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((AddPrimaryKeyRequest)value); + setReq((AddDefaultConstraintRequest)value); } break; @@ -63904,12 +70258,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_primary_key_args) - return this.equals((add_primary_key_args)that); + if (that instanceof add_default_constraint_args) + return this.equals((add_default_constraint_args)that); return false; } - public boolean equals(add_primary_key_args that) { + public boolean equals(add_default_constraint_args that) { if (that == null) return false; @@ -63938,7 +70292,7 @@ public int hashCode() { } @Override - public int compareTo(add_primary_key_args other) { + public int compareTo(add_default_constraint_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -63972,7 +70326,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_primary_key_args("); + StringBuilder sb = new StringBuilder("add_default_constraint_args("); boolean first = true; sb.append("req:"); @@ -64010,15 +70364,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_primary_key_argsStandardSchemeFactory implements SchemeFactory { - public add_primary_key_argsStandardScheme getScheme() { - return new add_primary_key_argsStandardScheme(); + private static class add_default_constraint_argsStandardSchemeFactory implements SchemeFactory { + public add_default_constraint_argsStandardScheme getScheme() { + return new add_default_constraint_argsStandardScheme(); } } - private static class add_primary_key_argsStandardScheme extends StandardScheme { + private static class add_default_constraint_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constraint_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -64030,7 +70384,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_arg switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new AddPrimaryKeyRequest(); + struct.req = new AddDefaultConstraintRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -64046,7 +70400,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_primary_key_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_default_constraint_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -64061,16 +70415,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_primary_key_ar } - private static class add_primary_key_argsTupleSchemeFactory implements SchemeFactory { - public add_primary_key_argsTupleScheme getScheme() { - return new add_primary_key_argsTupleScheme(); + private static class add_default_constraint_argsTupleSchemeFactory implements SchemeFactory { + public add_default_constraint_argsTupleScheme getScheme() { + return new add_default_constraint_argsTupleScheme(); } } - private static class add_primary_key_argsTupleScheme extends TupleScheme { + private static class add_default_constraint_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -64083,11 +70437,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_arg } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new AddPrimaryKeyRequest(); + struct.req = new AddDefaultConstraintRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -64096,16 +70450,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_args } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_primary_key_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_primary_key_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_default_constraint_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_default_constraint_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_primary_key_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_primary_key_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_default_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_default_constraint_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required @@ -64181,13 +70535,13 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_primary_key_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_default_constraint_result.class, metaDataMap); } - public add_primary_key_result() { + public add_default_constraint_result() { } - public add_primary_key_result( + public add_default_constraint_result( NoSuchObjectException o1, MetaException o2) { @@ -64199,7 +70553,7 @@ public add_primary_key_result( /** * Performs a deep copy on other. */ - public add_primary_key_result(add_primary_key_result other) { + public add_default_constraint_result(add_default_constraint_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -64208,8 +70562,8 @@ public add_primary_key_result(add_primary_key_result other) { } } - public add_primary_key_result deepCopy() { - return new add_primary_key_result(this); + public add_default_constraint_result deepCopy() { + return new add_default_constraint_result(this); } @Override @@ -64316,12 +70670,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_primary_key_result) - return this.equals((add_primary_key_result)that); + if (that instanceof add_default_constraint_result) + return this.equals((add_default_constraint_result)that); return false; } - public boolean equals(add_primary_key_result that) { + public boolean equals(add_default_constraint_result that) { if (that == null) return false; @@ -64364,7 +70718,7 @@ public int hashCode() { } @Override - public int compareTo(add_primary_key_result other) { + public int compareTo(add_default_constraint_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -64408,7 +70762,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_primary_key_result("); + StringBuilder sb = new StringBuilder("add_default_constraint_result("); boolean first = true; sb.append("o1:"); @@ -64451,15 +70805,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_primary_key_resultStandardSchemeFactory implements SchemeFactory { - public add_primary_key_resultStandardScheme getScheme() { - return new add_primary_key_resultStandardScheme(); + private static class add_default_constraint_resultStandardSchemeFactory implements SchemeFactory { + public add_default_constraint_resultStandardScheme getScheme() { + return new add_default_constraint_resultStandardScheme(); } } - private static class add_primary_key_resultStandardScheme extends StandardScheme { + private static class add_default_constraint_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constraint_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -64496,7 +70850,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_primary_key_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_default_constraint_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -64516,16 +70870,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_primary_key_re } - private static class add_primary_key_resultTupleSchemeFactory implements SchemeFactory { - public add_primary_key_resultTupleScheme getScheme() { - return new add_primary_key_resultTupleScheme(); + private static class add_default_constraint_resultTupleSchemeFactory implements SchemeFactory { + public add_default_constraint_resultTupleScheme getScheme() { + return new add_default_constraint_resultTupleScheme(); } } - private static class add_primary_key_resultTupleScheme extends TupleScheme { + private static class add_default_constraint_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -64544,7 +70898,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_res } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -64562,18 +70916,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_resu } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_foreign_key_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_foreign_key_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_check_constraint_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_check_constraint_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_foreign_key_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_foreign_key_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_check_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_check_constraint_argsTupleSchemeFactory()); } - private AddForeignKeyRequest req; // required + private AddCheckConstraintRequest req; // 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 { @@ -64638,16 +70992,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddForeignKeyRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddCheckConstraintRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_foreign_key_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_check_constraint_args.class, metaDataMap); } - public add_foreign_key_args() { + public add_check_constraint_args() { } - public add_foreign_key_args( - AddForeignKeyRequest req) + public add_check_constraint_args( + AddCheckConstraintRequest req) { this(); this.req = req; @@ -64656,14 +71010,14 @@ public add_foreign_key_args( /** * Performs a deep copy on other. */ - public add_foreign_key_args(add_foreign_key_args other) { + public add_check_constraint_args(add_check_constraint_args other) { if (other.isSetReq()) { - this.req = new AddForeignKeyRequest(other.req); + this.req = new AddCheckConstraintRequest(other.req); } } - public add_foreign_key_args deepCopy() { - return new add_foreign_key_args(this); + public add_check_constraint_args deepCopy() { + return new add_check_constraint_args(this); } @Override @@ -64671,11 +71025,11 @@ public void clear() { this.req = null; } - public AddForeignKeyRequest getReq() { + public AddCheckConstraintRequest getReq() { return this.req; } - public void setReq(AddForeignKeyRequest req) { + public void setReq(AddCheckConstraintRequest req) { this.req = req; } @@ -64700,7 +71054,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((AddForeignKeyRequest)value); + setReq((AddCheckConstraintRequest)value); } break; @@ -64733,12 +71087,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_foreign_key_args) - return this.equals((add_foreign_key_args)that); + if (that instanceof add_check_constraint_args) + return this.equals((add_check_constraint_args)that); return false; } - public boolean equals(add_foreign_key_args that) { + public boolean equals(add_check_constraint_args that) { if (that == null) return false; @@ -64767,7 +71121,7 @@ public int hashCode() { } @Override - public int compareTo(add_foreign_key_args other) { + public int compareTo(add_check_constraint_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -64801,7 +71155,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_foreign_key_args("); + StringBuilder sb = new StringBuilder("add_check_constraint_args("); boolean first = true; sb.append("req:"); @@ -64839,15 +71193,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_foreign_key_argsStandardSchemeFactory implements SchemeFactory { - public add_foreign_key_argsStandardScheme getScheme() { - return new add_foreign_key_argsStandardScheme(); + private static class add_check_constraint_argsStandardSchemeFactory implements SchemeFactory { + public add_check_constraint_argsStandardScheme getScheme() { + return new add_check_constraint_argsStandardScheme(); } } - private static class add_foreign_key_argsStandardScheme extends StandardScheme { + private static class add_check_constraint_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_check_constraint_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -64859,7 +71213,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_arg switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new AddForeignKeyRequest(); + struct.req = new AddCheckConstraintRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -64875,7 +71229,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_foreign_key_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_check_constraint_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -64890,16 +71244,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_foreign_key_ar } - private static class add_foreign_key_argsTupleSchemeFactory implements SchemeFactory { - public add_foreign_key_argsTupleScheme getScheme() { - return new add_foreign_key_argsTupleScheme(); + private static class add_check_constraint_argsTupleSchemeFactory implements SchemeFactory { + public add_check_constraint_argsTupleScheme getScheme() { + return new add_check_constraint_argsTupleScheme(); } } - private static class add_foreign_key_argsTupleScheme extends TupleScheme { + private static class add_check_constraint_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_check_constraint_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -64912,11 +71266,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_arg } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_check_constraint_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new AddForeignKeyRequest(); + struct.req = new AddCheckConstraintRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -64925,16 +71279,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_args } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_foreign_key_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_foreign_key_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_check_constraint_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_check_constraint_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_foreign_key_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_foreign_key_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_check_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_check_constraint_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required @@ -65010,13 +71364,13 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_foreign_key_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_check_constraint_result.class, metaDataMap); } - public add_foreign_key_result() { + public add_check_constraint_result() { } - public add_foreign_key_result( + public add_check_constraint_result( NoSuchObjectException o1, MetaException o2) { @@ -65028,7 +71382,7 @@ public add_foreign_key_result( /** * Performs a deep copy on other. */ - public add_foreign_key_result(add_foreign_key_result other) { + public add_check_constraint_result(add_check_constraint_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -65037,8 +71391,8 @@ public add_foreign_key_result(add_foreign_key_result other) { } } - public add_foreign_key_result deepCopy() { - return new add_foreign_key_result(this); + public add_check_constraint_result deepCopy() { + return new add_check_constraint_result(this); } @Override @@ -65145,12 +71499,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_foreign_key_result) - return this.equals((add_foreign_key_result)that); + if (that instanceof add_check_constraint_result) + return this.equals((add_check_constraint_result)that); return false; } - public boolean equals(add_foreign_key_result that) { + public boolean equals(add_check_constraint_result that) { if (that == null) return false; @@ -65193,7 +71547,7 @@ public int hashCode() { } @Override - public int compareTo(add_foreign_key_result other) { + public int compareTo(add_check_constraint_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -65237,7 +71591,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_foreign_key_result("); + StringBuilder sb = new StringBuilder("add_check_constraint_result("); boolean first = true; sb.append("o1:"); @@ -65280,15 +71634,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_foreign_key_resultStandardSchemeFactory implements SchemeFactory { - public add_foreign_key_resultStandardScheme getScheme() { - return new add_foreign_key_resultStandardScheme(); + private static class add_check_constraint_resultStandardSchemeFactory implements SchemeFactory { + public add_check_constraint_resultStandardScheme getScheme() { + return new add_check_constraint_resultStandardScheme(); } } - private static class add_foreign_key_resultStandardScheme extends StandardScheme { + private static class add_check_constraint_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_check_constraint_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -65325,7 +71679,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_foreign_key_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_check_constraint_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -65345,16 +71699,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_foreign_key_re } - private static class add_foreign_key_resultTupleSchemeFactory implements SchemeFactory { - public add_foreign_key_resultTupleScheme getScheme() { - return new add_foreign_key_resultTupleScheme(); + private static class add_check_constraint_resultTupleSchemeFactory implements SchemeFactory { + public add_check_constraint_resultTupleScheme getScheme() { + return new add_check_constraint_resultTupleScheme(); } } - private static class add_foreign_key_resultTupleScheme extends TupleScheme { + private static class add_check_constraint_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_check_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -65373,7 +71727,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_res } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_check_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -65391,22 +71745,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_resu } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_unique_constraint_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_unique_constraint_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (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)1); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_unique_constraint_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_unique_constraint_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_argsTupleSchemeFactory()); } - private AddUniqueConstraintRequest req; // required + private String dbname; // required + private String name; // required + private boolean deleteData; // 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 { - REQ((short)1, "req"); + DBNAME((short)1, "dbname"), + NAME((short)2, "name"), + DELETE_DATA((short)3, "deleteData"); private static final Map byName = new HashMap(); @@ -65421,8 +71781,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_resu */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DBNAME + return DBNAME; + case 2: // NAME + return NAME; + case 3: // DELETE_DATA + return DELETE_DATA; default: return null; } @@ -65463,73 +71827,153 @@ public String getFieldName() { } // isset id assignments + private static final int __DELETEDATA_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddUniqueConstraintRequest.class))); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_unique_constraint_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_args.class, metaDataMap); } - public add_unique_constraint_args() { + public drop_table_args() { } - public add_unique_constraint_args( - AddUniqueConstraintRequest req) + public drop_table_args( + String dbname, + String name, + boolean deleteData) { this(); - this.req = req; + this.dbname = dbname; + this.name = name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); } /** * Performs a deep copy on other. */ - public add_unique_constraint_args(add_unique_constraint_args other) { - if (other.isSetReq()) { - this.req = new AddUniqueConstraintRequest(other.req); + public drop_table_args(drop_table_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetName()) { + this.name = other.name; } + this.deleteData = other.deleteData; } - public add_unique_constraint_args deepCopy() { - return new add_unique_constraint_args(this); + public drop_table_args deepCopy() { + return new drop_table_args(this); } @Override public void clear() { - this.req = null; + this.dbname = null; + this.name = null; + setDeleteDataIsSet(false); + this.deleteData = false; } - public AddUniqueConstraintRequest getReq() { - return this.req; + public String getDbname() { + return this.dbname; } - public void setReq(AddUniqueConstraintRequest req) { - this.req = req; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetReq() { - this.req = null; + public void unsetDbname() { + this.dbname = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != 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 setReqIsSet(boolean value) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.req = null; + this.dbname = null; + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public void unsetName() { + this.name = null; + } + + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; + } + + public void setNameIsSet(boolean value) { + if (!value) { + this.name = null; } } + public boolean isDeleteData() { + return this.deleteData; + } + + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); + } + + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ + public boolean isSetDeleteData() { + return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case DBNAME: if (value == null) { - unsetReq(); + unsetDbname(); } else { - setReq((AddUniqueConstraintRequest)value); + setDbname((String)value); + } + break; + + case NAME: + if (value == null) { + unsetName(); + } else { + setName((String)value); + } + break; + + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); } break; @@ -65538,8 +71982,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DBNAME: + return getDbname(); + + case NAME: + return getName(); + + case DELETE_DATA: + return isDeleteData(); } throw new IllegalStateException(); @@ -65552,8 +72002,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DBNAME: + return isSetDbname(); + case NAME: + return isSetName(); + case DELETE_DATA: + return isSetDeleteData(); } throw new IllegalStateException(); } @@ -65562,21 +72016,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_unique_constraint_args) - return this.equals((add_unique_constraint_args)that); + if (that instanceof drop_table_args) + return this.equals((drop_table_args)that); return false; } - public boolean equals(add_unique_constraint_args that) { + public boolean equals(drop_table_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + 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.req.equals(that.req)) + if (!this.dbname.equals(that.dbname)) + return false; + } + + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) + return false; + if (!this.name.equals(that.name)) + return false; + } + + boolean this_present_deleteData = true; + boolean that_present_deleteData = true; + if (this_present_deleteData || that_present_deleteData) { + if (!(this_present_deleteData && that_present_deleteData)) + return false; + if (this.deleteData != that.deleteData) return false; } @@ -65587,28 +72059,58 @@ public boolean equals(add_unique_constraint_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_name = true && (isSetName()); + list.add(present_name); + if (present_name) + list.add(name); + + boolean present_deleteData = true; + list.add(present_deleteData); + if (present_deleteData) + list.add(deleteData); return list.hashCode(); } @Override - public int compareTo(add_unique_constraint_args other) { + public int compareTo(drop_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -65630,16 +72132,28 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_unique_constraint_args("); + StringBuilder sb = new StringBuilder("drop_table_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.dbname); } first = false; + if (!first) sb.append(", "); + sb.append("name:"); + if (this.name == null) { + sb.append("null"); + } else { + sb.append(this.name); + } + first = false; + if (!first) sb.append(", "); + sb.append("deleteData:"); + sb.append(this.deleteData); + first = false; sb.append(")"); return sb.toString(); } @@ -65647,9 +72161,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -65662,21 +72173,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class add_unique_constraint_argsStandardSchemeFactory implements SchemeFactory { - public add_unique_constraint_argsStandardScheme getScheme() { - return new add_unique_constraint_argsStandardScheme(); + private static class drop_table_argsStandardSchemeFactory implements SchemeFactory { + public drop_table_argsStandardScheme getScheme() { + return new drop_table_argsStandardScheme(); } } - private static class add_unique_constraint_argsStandardScheme extends StandardScheme { + private static class drop_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -65686,11 +72199,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constrai break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new AddUniqueConstraintRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + case 1: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // DELETE_DATA + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -65704,75 +72232,102 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constrai struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_unique_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); oprot.writeFieldEnd(); } + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_unique_constraint_argsTupleSchemeFactory implements SchemeFactory { - public add_unique_constraint_argsTupleScheme getScheme() { - return new add_unique_constraint_argsTupleScheme(); + private static class drop_table_argsTupleSchemeFactory implements SchemeFactory { + public drop_table_argsTupleScheme getScheme() { + return new drop_table_argsTupleScheme(); } } - private static class add_unique_constraint_argsTupleScheme extends TupleScheme { + private static class drop_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDbname()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetName()) { + optionals.set(1); + } + if (struct.isSetDeleteData()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetName()) { + oprot.writeString(struct.name); + } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.req = new AddUniqueConstraintRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(1)) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(2)) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_unique_constraint_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_unique_constraint_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_unique_constraint_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_unique_constraint_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required - private MetaException o2; // required + private MetaException o3; // 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 { O1((short)1, "o1"), - O2((short)2, "o2"); + O3((short)2, "o3"); private static final Map byName = new HashMap(); @@ -65789,8 +72344,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // O1 return O1; - case 2: // O2 - return O2; + case 2: // O3 + return O3; default: return null; } @@ -65836,44 +72391,44 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_unique_constraint_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_result.class, metaDataMap); } - public add_unique_constraint_result() { + public drop_table_result() { } - public add_unique_constraint_result( + public drop_table_result( NoSuchObjectException o1, - MetaException o2) + MetaException o3) { this(); this.o1 = o1; - this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public add_unique_constraint_result(add_unique_constraint_result other) { + public drop_table_result(drop_table_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } - if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); } } - public add_unique_constraint_result deepCopy() { - return new add_unique_constraint_result(this); + public drop_table_result deepCopy() { + return new drop_table_result(this); } @Override public void clear() { this.o1 = null; - this.o2 = null; + this.o3 = null; } public NoSuchObjectException getO1() { @@ -65899,26 +72454,26 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { - return this.o2; + public MetaException getO3() { + return this.o3; } - public void setO2(MetaException o2) { - this.o2 = o2; + public void setO3(MetaException o3) { + this.o3 = o3; } - public void unsetO2() { - this.o2 = null; + public void unsetO3() { + this.o3 = null; } - /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ - public boolean isSetO2() { - return this.o2 != null; + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; } - public void setO2IsSet(boolean value) { + public void setO3IsSet(boolean value) { if (!value) { - this.o2 = null; + this.o3 = null; } } @@ -65932,11 +72487,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O2: + case O3: if (value == null) { - unsetO2(); + unsetO3(); } else { - setO2((MetaException)value); + setO3((MetaException)value); } break; @@ -65948,8 +72503,8 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O2: - return getO2(); + case O3: + return getO3(); } throw new IllegalStateException(); @@ -65964,8 +72519,8 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); - case O2: - return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -65974,12 +72529,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_unique_constraint_result) - return this.equals((add_unique_constraint_result)that); + if (that instanceof drop_table_result) + return this.equals((drop_table_result)that); return false; } - public boolean equals(add_unique_constraint_result that) { + public boolean equals(drop_table_result that) { if (that == null) return false; @@ -65992,12 +72547,12 @@ public boolean equals(add_unique_constraint_result that) { return false; } - boolean this_present_o2 = true && this.isSetO2(); - boolean that_present_o2 = true && that.isSetO2(); - if (this_present_o2 || that_present_o2) { - if (!(this_present_o2 && that_present_o2)) + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) return false; - if (!this.o2.equals(that.o2)) + if (!this.o3.equals(that.o3)) return false; } @@ -66013,16 +72568,16 @@ public int hashCode() { if (present_o1) list.add(o1); - boolean present_o2 = true && (isSetO2()); - list.add(present_o2); - if (present_o2) - list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); return list.hashCode(); } @Override - public int compareTo(add_unique_constraint_result other) { + public int compareTo(drop_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -66039,12 +72594,12 @@ public int compareTo(add_unique_constraint_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); if (lastComparison != 0) { return lastComparison; } - if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); if (lastComparison != 0) { return lastComparison; } @@ -66066,7 +72621,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_unique_constraint_result("); + StringBuilder sb = new StringBuilder("drop_table_result("); boolean first = true; sb.append("o1:"); @@ -66077,11 +72632,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("o2:"); - if (this.o2 == null) { + sb.append("o3:"); + if (this.o3 == null) { sb.append("null"); } else { - sb.append(this.o2); + sb.append(this.o3); } first = false; sb.append(")"); @@ -66109,15 +72664,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_unique_constraint_resultStandardSchemeFactory implements SchemeFactory { - public add_unique_constraint_resultStandardScheme getScheme() { - return new add_unique_constraint_resultStandardScheme(); + private static class drop_table_resultStandardSchemeFactory implements SchemeFactory { + public drop_table_resultStandardScheme getScheme() { + return new drop_table_resultStandardScheme(); } } - private static class add_unique_constraint_resultStandardScheme extends StandardScheme { + private static class drop_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -66136,11 +72691,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constrai org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O2 + case 2: // O3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -66154,7 +72709,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_unique_constrai struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_unique_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -66163,9 +72718,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_unique_constra struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -66174,35 +72729,35 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_unique_constra } - private static class add_unique_constraint_resultTupleSchemeFactory implements SchemeFactory { - public add_unique_constraint_resultTupleScheme getScheme() { - return new add_unique_constraint_resultTupleScheme(); + private static class drop_table_resultTupleSchemeFactory implements SchemeFactory { + public drop_table_resultTupleScheme getScheme() { + return new drop_table_resultTupleScheme(); } } - private static class add_unique_constraint_resultTupleScheme extends TupleScheme { + private static class drop_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO3()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO2()) { - struct.o2.write(oprot); + if (struct.isSetO3()) { + struct.o3.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_unique_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -66211,31 +72766,40 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_unique_constrain struct.setO1IsSet(true); } if (incoming.get(1)) { - struct.o2 = new MetaException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_not_null_constraint_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_not_null_constraint_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_with_environment_context_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (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)1); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)3); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_not_null_constraint_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_not_null_constraint_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_with_environment_context_argsTupleSchemeFactory()); } - private AddNotNullConstraintRequest req; // required + private String dbname; // required + private String name; // required + private boolean deleteData; // required + private EnvironmentContext environment_context; // 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 { - REQ((short)1, "req"); + DBNAME((short)1, "dbname"), + NAME((short)2, "name"), + DELETE_DATA((short)3, "deleteData"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -66250,8 +72814,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_unique_constrain */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DBNAME + return DBNAME; + case 2: // NAME + return NAME; + case 3: // DELETE_DATA + return DELETE_DATA; + case 4: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -66274,91 +72844,210 @@ public static _Fields findByName(String name) { return byName.get(name); } - private final short _thriftId; - private final String _fieldName; + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __DELETEDATA_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_args.class, metaDataMap); + } + + public drop_table_with_environment_context_args() { + } + + public drop_table_with_environment_context_args( + String dbname, + String name, + boolean deleteData, + EnvironmentContext environment_context) + { + this(); + this.dbname = dbname; + this.name = name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); + this.environment_context = environment_context; + } + + /** + * Performs a deep copy on other. + */ + public drop_table_with_environment_context_args(drop_table_with_environment_context_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetName()) { + this.name = other.name; + } + this.deleteData = other.deleteData; + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); + } + } + + public drop_table_with_environment_context_args deepCopy() { + return new drop_table_with_environment_context_args(this); + } + + @Override + public void clear() { + this.dbname = null; + this.name = null; + setDeleteDataIsSet(false); + this.deleteData = false; + this.environment_context = null; + } + + public String getDbname() { + return this.dbname; + } + + public void setDbname(String dbname) { + this.dbname = dbname; + } - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } + public void unsetDbname() { + this.dbname = null; + } - public short getThriftFieldId() { - return _thriftId; - } + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ + public boolean isSetDbname() { + return this.dbname != null; + } - public String getFieldName() { - return _fieldName; + public void setDbnameIsSet(boolean value) { + if (!value) { + this.dbname = null; } } - // 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddNotNullConstraintRequest.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_not_null_constraint_args.class, metaDataMap); + public String getName() { + return this.name; } - public add_not_null_constraint_args() { + public void setName(String name) { + this.name = name; } - public add_not_null_constraint_args( - AddNotNullConstraintRequest req) - { - this(); - this.req = req; + public void unsetName() { + this.name = null; } - /** - * Performs a deep copy on other. - */ - public add_not_null_constraint_args(add_not_null_constraint_args other) { - if (other.isSetReq()) { - this.req = new AddNotNullConstraintRequest(other.req); + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; + } + + public void setNameIsSet(boolean value) { + if (!value) { + this.name = null; } } - public add_not_null_constraint_args deepCopy() { - return new add_not_null_constraint_args(this); + public boolean isDeleteData() { + return this.deleteData; } - @Override - public void clear() { - this.req = null; + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); } - public AddNotNullConstraintRequest getReq() { - return this.req; + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); } - public void setReq(AddNotNullConstraintRequest req) { - this.req = req; + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ + public boolean isSetDeleteData() { + return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); } - public void unsetReq() { - this.req = null; + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + public EnvironmentContext getEnvironment_context() { + return this.environment_context; } - public void setReqIsSet(boolean value) { + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { if (!value) { - this.req = null; + this.environment_context = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case DBNAME: if (value == null) { - unsetReq(); + unsetDbname(); } else { - setReq((AddNotNullConstraintRequest)value); + setDbname((String)value); + } + break; + + case NAME: + if (value == null) { + unsetName(); + } else { + setName((String)value); + } + break; + + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -66367,8 +73056,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DBNAME: + return getDbname(); + + case NAME: + return getName(); + + case DELETE_DATA: + return isDeleteData(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -66381,8 +73079,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DBNAME: + return isSetDbname(); + case NAME: + return isSetName(); + case DELETE_DATA: + return isSetDeleteData(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -66391,21 +73095,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_not_null_constraint_args) - return this.equals((add_not_null_constraint_args)that); + if (that instanceof drop_table_with_environment_context_args) + return this.equals((drop_table_with_environment_context_args)that); return false; } - public boolean equals(add_not_null_constraint_args that) { + public boolean equals(drop_table_with_environment_context_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + 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.req.equals(that.req)) + if (!this.dbname.equals(that.dbname)) + return false; + } + + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) + return false; + if (!this.name.equals(that.name)) + return false; + } + + boolean this_present_deleteData = true; + boolean that_present_deleteData = true; + if (this_present_deleteData || that_present_deleteData) { + if (!(this_present_deleteData && that_present_deleteData)) + return false; + if (this.deleteData != that.deleteData) + return false; + } + + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) return false; } @@ -66416,28 +73147,73 @@ public boolean equals(add_not_null_constraint_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_name = true && (isSetName()); + list.add(present_name); + if (present_name) + list.add(name); + + boolean present_deleteData = true; + list.add(present_deleteData); + if (present_deleteData) + list.add(deleteData); + + boolean present_environment_context = true && (isSetEnvironment_context()); + list.add(present_environment_context); + if (present_environment_context) + list.add(environment_context); return list.hashCode(); } @Override - public int compareTo(add_not_null_constraint_args other) { + public int compareTo(drop_table_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -66459,14 +73235,34 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_not_null_constraint_args("); + StringBuilder sb = new StringBuilder("drop_table_with_environment_context_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.dbname); + } + first = false; + if (!first) sb.append(", "); + sb.append("name:"); + if (this.name == null) { + sb.append("null"); + } else { + sb.append(this.name); + } + first = false; + if (!first) sb.append(", "); + sb.append("deleteData:"); + sb.append(this.deleteData); + first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); } first = false; sb.append(")"); @@ -66476,8 +73272,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); + if (environment_context != null) { + environment_context.validate(); } } @@ -66491,21 +73287,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class add_not_null_constraint_argsStandardSchemeFactory implements SchemeFactory { - public add_not_null_constraint_argsStandardScheme getScheme() { - return new add_not_null_constraint_argsStandardScheme(); + private static class drop_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_argsStandardScheme getScheme() { + return new drop_table_with_environment_context_argsStandardScheme(); } } - private static class add_not_null_constraint_argsStandardScheme extends StandardScheme { + private static class drop_table_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -66515,11 +73313,35 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constr break; } switch (schemeField.id) { - case 1: // REQ + case 1: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // DELETE_DATA + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // ENVIRONMENT_CONTEXT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new AddNotNullConstraintRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -66533,13 +73355,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constr struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -66548,60 +73383,90 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_not_null_const } - private static class add_not_null_constraint_argsTupleSchemeFactory implements SchemeFactory { - public add_not_null_constraint_argsTupleScheme getScheme() { - return new add_not_null_constraint_argsTupleScheme(); + private static class drop_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_argsTupleScheme getScheme() { + return new drop_table_with_environment_context_argsTupleScheme(); } } - private static class add_not_null_constraint_argsTupleScheme extends TupleScheme { + private static class drop_table_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDbname()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetName()) { + optionals.set(1); + } + if (struct.isSetDeleteData()) { + optionals.set(2); + } + if (struct.isSetEnvironment_context()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetName()) { + oprot.writeString(struct.name); + } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); + } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.req = new AddNotNullConstraintRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(1)) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(2)) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } + if (incoming.get(3)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_not_null_constraint_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_not_null_constraint_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_with_environment_context_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_not_null_constraint_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_not_null_constraint_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_with_environment_context_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required - private MetaException o2; // required + private MetaException o3; // 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 { O1((short)1, "o1"), - O2((short)2, "o2"); + O3((short)2, "o3"); private static final Map byName = new HashMap(); @@ -66618,8 +73483,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // O1 return O1; - case 2: // O2 - return O2; + case 2: // O3 + return O3; default: return null; } @@ -66665,44 +73530,44 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_not_null_constraint_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_result.class, metaDataMap); } - public add_not_null_constraint_result() { + public drop_table_with_environment_context_result() { } - public add_not_null_constraint_result( + public drop_table_with_environment_context_result( NoSuchObjectException o1, - MetaException o2) + MetaException o3) { this(); this.o1 = o1; - this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public add_not_null_constraint_result(add_not_null_constraint_result other) { + public drop_table_with_environment_context_result(drop_table_with_environment_context_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } - if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); } } - public add_not_null_constraint_result deepCopy() { - return new add_not_null_constraint_result(this); + public drop_table_with_environment_context_result deepCopy() { + return new drop_table_with_environment_context_result(this); } @Override public void clear() { this.o1 = null; - this.o2 = null; + this.o3 = null; } public NoSuchObjectException getO1() { @@ -66728,26 +73593,26 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { - return this.o2; + public MetaException getO3() { + return this.o3; } - public void setO2(MetaException o2) { - this.o2 = o2; + public void setO3(MetaException o3) { + this.o3 = o3; } - public void unsetO2() { - this.o2 = null; + public void unsetO3() { + this.o3 = null; } - /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ - public boolean isSetO2() { - return this.o2 != null; + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; } - public void setO2IsSet(boolean value) { + public void setO3IsSet(boolean value) { if (!value) { - this.o2 = null; + this.o3 = null; } } @@ -66761,11 +73626,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O2: + case O3: if (value == null) { - unsetO2(); + unsetO3(); } else { - setO2((MetaException)value); + setO3((MetaException)value); } break; @@ -66777,8 +73642,8 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O2: - return getO2(); + case O3: + return getO3(); } throw new IllegalStateException(); @@ -66793,8 +73658,8 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); - case O2: - return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -66803,12 +73668,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_not_null_constraint_result) - return this.equals((add_not_null_constraint_result)that); + if (that instanceof drop_table_with_environment_context_result) + return this.equals((drop_table_with_environment_context_result)that); return false; } - public boolean equals(add_not_null_constraint_result that) { + public boolean equals(drop_table_with_environment_context_result that) { if (that == null) return false; @@ -66821,12 +73686,12 @@ public boolean equals(add_not_null_constraint_result that) { return false; } - boolean this_present_o2 = true && this.isSetO2(); - boolean that_present_o2 = true && that.isSetO2(); - if (this_present_o2 || that_present_o2) { - if (!(this_present_o2 && that_present_o2)) + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) return false; - if (!this.o2.equals(that.o2)) + if (!this.o3.equals(that.o3)) return false; } @@ -66842,16 +73707,16 @@ public int hashCode() { if (present_o1) list.add(o1); - boolean present_o2 = true && (isSetO2()); - list.add(present_o2); - if (present_o2) - list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); return list.hashCode(); } @Override - public int compareTo(add_not_null_constraint_result other) { + public int compareTo(drop_table_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -66868,12 +73733,12 @@ public int compareTo(add_not_null_constraint_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); if (lastComparison != 0) { return lastComparison; } - if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); if (lastComparison != 0) { return lastComparison; } @@ -66895,7 +73760,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_not_null_constraint_result("); + StringBuilder sb = new StringBuilder("drop_table_with_environment_context_result("); boolean first = true; sb.append("o1:"); @@ -66906,11 +73771,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("o2:"); - if (this.o2 == null) { + sb.append("o3:"); + if (this.o3 == null) { sb.append("null"); } else { - sb.append(this.o2); + sb.append(this.o3); } first = false; sb.append(")"); @@ -66938,15 +73803,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_not_null_constraint_resultStandardSchemeFactory implements SchemeFactory { - public add_not_null_constraint_resultStandardScheme getScheme() { - return new add_not_null_constraint_resultStandardScheme(); + private static class drop_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_resultStandardScheme getScheme() { + return new drop_table_with_environment_context_resultStandardScheme(); } } - private static class add_not_null_constraint_resultStandardScheme extends StandardScheme { + private static class drop_table_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -66965,11 +73830,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constr org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O2 + case 2: // O3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -66983,7 +73848,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_not_null_constr struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -66992,9 +73857,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_not_null_const struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -67003,35 +73868,35 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_not_null_const } - private static class add_not_null_constraint_resultTupleSchemeFactory implements SchemeFactory { - public add_not_null_constraint_resultTupleScheme getScheme() { - return new add_not_null_constraint_resultTupleScheme(); + private static class drop_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_resultTupleScheme getScheme() { + return new drop_table_with_environment_context_resultTupleScheme(); } } - private static class add_not_null_constraint_resultTupleScheme extends TupleScheme { + private static class drop_table_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO3()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO2()) { - struct.o2.write(oprot); + if (struct.isSetO3()) { + struct.o3.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -67040,31 +73905,37 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constra struct.setO1IsSet(true); } if (incoming.get(1)) { - struct.o2 = new MetaException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_default_constraint_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_default_constraint_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class truncate_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("truncate_table_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (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)1); + 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)2); + private static final org.apache.thrift.protocol.TField PART_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("partNames", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_default_constraint_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_default_constraint_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new truncate_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new truncate_table_argsTupleSchemeFactory()); } - private AddDefaultConstraintRequest req; // required + private String dbName; // required + private String tableName; // required + private List partNames; // 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 { - REQ((short)1, "req"); + DB_NAME((short)1, "dbName"), + TABLE_NAME((short)2, "tableName"), + PART_NAMES((short)3, "partNames"); private static final Map byName = new HashMap(); @@ -67079,8 +73950,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constra */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DB_NAME + return DB_NAME; + case 2: // TABLE_NAME + return TABLE_NAME; + case 3: // PART_NAMES + return PART_NAMES; default: return null; } @@ -67124,70 +73999,165 @@ public String getFieldName() { 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddDefaultConstraintRequest.class))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_NAMES, new org.apache.thrift.meta_data.FieldMetaData("partNames", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_default_constraint_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_args.class, metaDataMap); } - public add_default_constraint_args() { + public truncate_table_args() { } - public add_default_constraint_args( - AddDefaultConstraintRequest req) + public truncate_table_args( + String dbName, + String tableName, + List partNames) { this(); - this.req = req; + this.dbName = dbName; + this.tableName = tableName; + this.partNames = partNames; } /** * Performs a deep copy on other. */ - public add_default_constraint_args(add_default_constraint_args other) { - if (other.isSetReq()) { - this.req = new AddDefaultConstraintRequest(other.req); + public truncate_table_args(truncate_table_args other) { + if (other.isSetDbName()) { + this.dbName = other.dbName; + } + if (other.isSetTableName()) { + this.tableName = other.tableName; + } + if (other.isSetPartNames()) { + List __this__partNames = new ArrayList(other.partNames); + this.partNames = __this__partNames; } } - public add_default_constraint_args deepCopy() { - return new add_default_constraint_args(this); + public truncate_table_args deepCopy() { + return new truncate_table_args(this); } @Override public void clear() { - this.req = null; + this.dbName = null; + this.tableName = null; + this.partNames = null; } - public AddDefaultConstraintRequest getReq() { - return this.req; + public String getDbName() { + return this.dbName; } - public void setReq(AddDefaultConstraintRequest req) { - this.req = req; + public void setDbName(String dbName) { + this.dbName = dbName; } - public void unsetReq() { - this.req = null; + public void unsetDbName() { + this.dbName = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != 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 setReqIsSet(boolean value) { + public void setDbNameIsSet(boolean value) { if (!value) { - this.req = null; + this.dbName = null; + } + } + + public String getTableName() { + return this.tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public void unsetTableName() { + this.tableName = null; + } + + /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ + public boolean isSetTableName() { + return this.tableName != null; + } + + public void setTableNameIsSet(boolean value) { + if (!value) { + this.tableName = null; + } + } + + public int getPartNamesSize() { + return (this.partNames == null) ? 0 : this.partNames.size(); + } + + public java.util.Iterator getPartNamesIterator() { + return (this.partNames == null) ? null : this.partNames.iterator(); + } + + public void addToPartNames(String elem) { + if (this.partNames == null) { + this.partNames = new ArrayList(); + } + this.partNames.add(elem); + } + + public List getPartNames() { + return this.partNames; + } + + public void setPartNames(List partNames) { + this.partNames = partNames; + } + + public void unsetPartNames() { + this.partNames = null; + } + + /** Returns true if field partNames is set (has been assigned a value) and false otherwise */ + public boolean isSetPartNames() { + return this.partNames != null; + } + + public void setPartNamesIsSet(boolean value) { + if (!value) { + this.partNames = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case DB_NAME: if (value == null) { - unsetReq(); + unsetDbName(); } else { - setReq((AddDefaultConstraintRequest)value); + setDbName((String)value); + } + break; + + case TABLE_NAME: + if (value == null) { + unsetTableName(); + } else { + setTableName((String)value); + } + break; + + case PART_NAMES: + if (value == null) { + unsetPartNames(); + } else { + setPartNames((List)value); } break; @@ -67196,8 +74166,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DB_NAME: + return getDbName(); + + case TABLE_NAME: + return getTableName(); + + case PART_NAMES: + return getPartNames(); } throw new IllegalStateException(); @@ -67210,8 +74186,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DB_NAME: + return isSetDbName(); + case TABLE_NAME: + return isSetTableName(); + case PART_NAMES: + return isSetPartNames(); } throw new IllegalStateException(); } @@ -67220,21 +74200,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_default_constraint_args) - return this.equals((add_default_constraint_args)that); + if (that instanceof truncate_table_args) + return this.equals((truncate_table_args)that); return false; } - public boolean equals(add_default_constraint_args that) { + public boolean equals(truncate_table_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + 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.req.equals(that.req)) + if (!this.dbName.equals(that.dbName)) + return false; + } + + boolean this_present_tableName = true && this.isSetTableName(); + boolean that_present_tableName = true && that.isSetTableName(); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!this.tableName.equals(that.tableName)) + return false; + } + + boolean this_present_partNames = true && this.isSetPartNames(); + boolean that_present_partNames = true && that.isSetPartNames(); + if (this_present_partNames || that_present_partNames) { + if (!(this_present_partNames && that_present_partNames)) + return false; + if (!this.partNames.equals(that.partNames)) return false; } @@ -67245,28 +74243,58 @@ public boolean equals(add_default_constraint_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + 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); + + boolean present_partNames = true && (isSetPartNames()); + list.add(present_partNames); + if (present_partNames) + list.add(partNames); return list.hashCode(); } @Override - public int compareTo(add_default_constraint_args other) { + public int compareTo(truncate_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + 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; + } + } + lastComparison = Boolean.valueOf(isSetPartNames()).compareTo(other.isSetPartNames()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartNames()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partNames, other.partNames); if (lastComparison != 0) { return lastComparison; } @@ -67288,14 +74316,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_default_constraint_args("); + StringBuilder sb = new StringBuilder("truncate_table_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("dbName:"); + if (this.dbName == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.dbName); + } + first = false; + if (!first) sb.append(", "); + sb.append("tableName:"); + if (this.tableName == null) { + sb.append("null"); + } else { + sb.append(this.tableName); + } + first = false; + if (!first) sb.append(", "); + sb.append("partNames:"); + if (this.partNames == null) { + sb.append("null"); + } else { + sb.append(this.partNames); } first = false; sb.append(")"); @@ -67305,9 +74349,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -67326,15 +74367,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_default_constraint_argsStandardSchemeFactory implements SchemeFactory { - public add_default_constraint_argsStandardScheme getScheme() { - return new add_default_constraint_argsStandardScheme(); + private static class truncate_table_argsStandardSchemeFactory implements SchemeFactory { + public truncate_table_argsStandardScheme getScheme() { + return new truncate_table_argsStandardScheme(); } } - private static class add_default_constraint_argsStandardScheme extends StandardScheme { + private static class truncate_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -67344,11 +74385,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constra break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new AddDefaultConstraintRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + case 1: // 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 2: // 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; + case 3: // PART_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1386 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list1386.size); + String _elem1387; + for (int _i1388 = 0; _i1388 < _list1386.size; ++_i1388) + { + _elem1387 = iprot.readString(); + struct.partNames.add(_elem1387); + } + iprot.readListEnd(); + } + struct.setPartNamesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -67362,13 +74428,30 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constra struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_default_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + 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(); + } + if (struct.partNames != null) { + oprot.writeFieldBegin(PART_NAMES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partNames.size())); + for (String _iter1389 : struct.partNames) + { + oprot.writeString(_iter1389); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -67377,60 +74460,91 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_default_constr } - private static class add_default_constraint_argsTupleSchemeFactory implements SchemeFactory { - public add_default_constraint_argsTupleScheme getScheme() { - return new add_default_constraint_argsTupleScheme(); + private static class truncate_table_argsTupleSchemeFactory implements SchemeFactory { + public truncate_table_argsTupleScheme getScheme() { + return new truncate_table_argsTupleScheme(); } } - private static class add_default_constraint_argsTupleScheme extends TupleScheme { + private static class truncate_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDbName()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetTableName()) { + optionals.set(1); + } + if (struct.isSetPartNames()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetDbName()) { + oprot.writeString(struct.dbName); + } + if (struct.isSetTableName()) { + oprot.writeString(struct.tableName); + } + if (struct.isSetPartNames()) { + { + oprot.writeI32(struct.partNames.size()); + for (String _iter1390 : struct.partNames) + { + oprot.writeString(_iter1390); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.req = new AddDefaultConstraintRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + } + if (incoming.get(1)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list1391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list1391.size); + String _elem1392; + for (int _i1393 = 0; _i1393 < _list1391.size; ++_i1393) + { + _elem1392 = iprot.readString(); + struct.partNames.add(_elem1392); + } + } + struct.setPartNamesIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_default_constraint_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_default_constraint_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class truncate_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("truncate_table_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_default_constraint_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_default_constraint_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new truncate_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new truncate_table_resultTupleSchemeFactory()); } - private NoSuchObjectException o1; // required - private MetaException o2; // required + private MetaException o1; // 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 { - O1((short)1, "o1"), - O2((short)2, "o2"); + O1((short)1, "o1"); private static final Map byName = new HashMap(); @@ -67447,8 +74561,6 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // O1 return O1; - case 2: // O2 - return O2; default: return null; } @@ -67494,51 +74606,43 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_default_constraint_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_result.class, metaDataMap); } - public add_default_constraint_result() { + public truncate_table_result() { } - public add_default_constraint_result( - NoSuchObjectException o1, - MetaException o2) + public truncate_table_result( + MetaException o1) { this(); this.o1 = o1; - this.o2 = o2; } /** * Performs a deep copy on other. */ - public add_default_constraint_result(add_default_constraint_result other) { + public truncate_table_result(truncate_table_result other) { if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); - } - if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o1 = new MetaException(other.o1); } } - public add_default_constraint_result deepCopy() { - return new add_default_constraint_result(this); + public truncate_table_result deepCopy() { + return new truncate_table_result(this); } @Override public void clear() { this.o1 = null; - this.o2 = null; } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -67557,44 +74661,13 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { - return this.o2; - } - - public void setO2(MetaException o2) { - this.o2 = o2; - } - - public void unsetO2() { - this.o2 = null; - } - - /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ - public boolean isSetO2() { - return this.o2 != null; - } - - public void setO2IsSet(boolean value) { - if (!value) { - this.o2 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case O1: if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); - } - break; - - case O2: - if (value == null) { - unsetO2(); - } else { - setO2((MetaException)value); + setO1((MetaException)value); } break; @@ -67606,9 +74679,6 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O2: - return getO2(); - } throw new IllegalStateException(); } @@ -67622,8 +74692,6 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); - case O2: - return isSetO2(); } throw new IllegalStateException(); } @@ -67632,12 +74700,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_default_constraint_result) - return this.equals((add_default_constraint_result)that); + if (that instanceof truncate_table_result) + return this.equals((truncate_table_result)that); return false; } - public boolean equals(add_default_constraint_result that) { + public boolean equals(truncate_table_result that) { if (that == null) return false; @@ -67650,15 +74718,6 @@ public boolean equals(add_default_constraint_result that) { return false; } - boolean this_present_o2 = true && this.isSetO2(); - boolean that_present_o2 = true && that.isSetO2(); - if (this_present_o2 || that_present_o2) { - if (!(this_present_o2 && that_present_o2)) - return false; - if (!this.o2.equals(that.o2)) - return false; - } - return true; } @@ -67671,16 +74730,11 @@ public int hashCode() { if (present_o1) list.add(o1); - boolean present_o2 = true && (isSetO2()); - list.add(present_o2); - if (present_o2) - list.add(o2); - return list.hashCode(); } @Override - public int compareTo(add_default_constraint_result other) { + public int compareTo(truncate_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -67697,16 +74751,6 @@ public int compareTo(add_default_constraint_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -67724,7 +74768,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_default_constraint_result("); + StringBuilder sb = new StringBuilder("truncate_table_result("); boolean first = true; sb.append("o1:"); @@ -67734,14 +74778,6 @@ public String toString() { sb.append(this.o1); } first = false; - if (!first) sb.append(", "); - sb.append("o2:"); - if (this.o2 == null) { - sb.append("null"); - } else { - sb.append(this.o2); - } - first = false; sb.append(")"); return sb.toString(); } @@ -67767,15 +74803,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_default_constraint_resultStandardSchemeFactory implements SchemeFactory { - public add_default_constraint_resultStandardScheme getScheme() { - return new add_default_constraint_resultStandardScheme(); + private static class truncate_table_resultStandardSchemeFactory implements SchemeFactory { + public truncate_table_resultStandardScheme getScheme() { + return new truncate_table_resultStandardScheme(); } } - private static class add_default_constraint_resultStandardScheme extends StandardScheme { + private static class truncate_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -67787,22 +74823,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constra switch (schemeField.id) { case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O2 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -67812,7 +74839,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constra struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_default_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -67821,75 +74848,59 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_default_constr struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_default_constraint_resultTupleSchemeFactory implements SchemeFactory { - public add_default_constraint_resultTupleScheme getScheme() { - return new add_default_constraint_resultTupleScheme(); + private static class truncate_table_resultTupleSchemeFactory implements SchemeFactory { + public truncate_table_resultTupleScheme getScheme() { + return new truncate_table_resultTupleScheme(); } } - private static class add_default_constraint_resultTupleScheme extends TupleScheme { + private static class truncate_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO2()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 1); if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO2()) { - struct.o2.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new MetaException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_check_constraint_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_check_constraint_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class truncate_table_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("truncate_table_req_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_check_constraint_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_check_constraint_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new truncate_table_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new truncate_table_req_argsTupleSchemeFactory()); } - private AddCheckConstraintRequest req; // required + private TruncateTableRequest req; // 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 { @@ -67954,16 +74965,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddCheckConstraintRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TruncateTableRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_check_constraint_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_req_args.class, metaDataMap); } - public add_check_constraint_args() { + public truncate_table_req_args() { } - public add_check_constraint_args( - AddCheckConstraintRequest req) + public truncate_table_req_args( + TruncateTableRequest req) { this(); this.req = req; @@ -67972,14 +74983,14 @@ public add_check_constraint_args( /** * Performs a deep copy on other. */ - public add_check_constraint_args(add_check_constraint_args other) { + public truncate_table_req_args(truncate_table_req_args other) { if (other.isSetReq()) { - this.req = new AddCheckConstraintRequest(other.req); + this.req = new TruncateTableRequest(other.req); } } - public add_check_constraint_args deepCopy() { - return new add_check_constraint_args(this); + public truncate_table_req_args deepCopy() { + return new truncate_table_req_args(this); } @Override @@ -67987,11 +74998,11 @@ public void clear() { this.req = null; } - public AddCheckConstraintRequest getReq() { + public TruncateTableRequest getReq() { return this.req; } - public void setReq(AddCheckConstraintRequest req) { + public void setReq(TruncateTableRequest req) { this.req = req; } @@ -68016,7 +75027,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((AddCheckConstraintRequest)value); + setReq((TruncateTableRequest)value); } break; @@ -68049,12 +75060,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_check_constraint_args) - return this.equals((add_check_constraint_args)that); + if (that instanceof truncate_table_req_args) + return this.equals((truncate_table_req_args)that); return false; } - public boolean equals(add_check_constraint_args that) { + public boolean equals(truncate_table_req_args that) { if (that == null) return false; @@ -68083,7 +75094,7 @@ public int hashCode() { } @Override - public int compareTo(add_check_constraint_args other) { + public int compareTo(truncate_table_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -68117,7 +75128,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_check_constraint_args("); + StringBuilder sb = new StringBuilder("truncate_table_req_args("); boolean first = true; sb.append("req:"); @@ -68155,15 +75166,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_check_constraint_argsStandardSchemeFactory implements SchemeFactory { - public add_check_constraint_argsStandardScheme getScheme() { - return new add_check_constraint_argsStandardScheme(); + private static class truncate_table_req_argsStandardSchemeFactory implements SchemeFactory { + public truncate_table_req_argsStandardScheme getScheme() { + return new truncate_table_req_argsStandardScheme(); } } - private static class add_check_constraint_argsStandardScheme extends StandardScheme { + private static class truncate_table_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_check_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -68175,7 +75186,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_check_constrain switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new AddCheckConstraintRequest(); + struct.req = new TruncateTableRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -68191,7 +75202,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_check_constrain struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_check_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -68206,16 +75217,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_check_constrai } - private static class add_check_constraint_argsTupleSchemeFactory implements SchemeFactory { - public add_check_constraint_argsTupleScheme getScheme() { - return new add_check_constraint_argsTupleScheme(); + private static class truncate_table_req_argsTupleSchemeFactory implements SchemeFactory { + public truncate_table_req_argsTupleScheme getScheme() { + return new truncate_table_req_argsTupleScheme(); } } - private static class add_check_constraint_argsTupleScheme extends TupleScheme { + private static class truncate_table_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_check_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -68228,11 +75239,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_check_constrain } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_check_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new AddCheckConstraintRequest(); + struct.req = new TruncateTableRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -68241,25 +75252,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_check_constraint } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_check_constraint_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_check_constraint_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class truncate_table_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("truncate_table_req_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_check_constraint_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_check_constraint_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new truncate_table_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new truncate_table_req_resultTupleSchemeFactory()); } - private NoSuchObjectException o1; // required - private MetaException o2; // required + private TruncateTableResponse success; // required + private MetaException o1; // 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 { - O1((short)1, "o1"), - O2((short)2, "o2"); + SUCCESS((short)0, "success"), + O1((short)1, "o1"); private static final Map byName = new HashMap(); @@ -68274,10 +75285,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_check_constraint */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; - case 2: // O2 - return O2; default: return null; } @@ -68321,109 +75332,109 @@ public String getFieldName() { 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TruncateTableResponse.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_check_constraint_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_req_result.class, metaDataMap); } - public add_check_constraint_result() { + public truncate_table_req_result() { } - public add_check_constraint_result( - NoSuchObjectException o1, - MetaException o2) + public truncate_table_req_result( + TruncateTableResponse success, + MetaException o1) { this(); + this.success = success; this.o1 = o1; - this.o2 = o2; } /** * Performs a deep copy on other. */ - public add_check_constraint_result(add_check_constraint_result other) { - if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + public truncate_table_req_result(truncate_table_req_result other) { + if (other.isSetSuccess()) { + this.success = new TruncateTableResponse(other.success); } - if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); } } - - public add_check_constraint_result deepCopy() { - return new add_check_constraint_result(this); + + public truncate_table_req_result deepCopy() { + return new truncate_table_req_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; - this.o2 = null; } - public NoSuchObjectException getO1() { - return this.o1; + public TruncateTableResponse getSuccess() { + return this.success; } - public void setO1(NoSuchObjectException o1) { - this.o1 = o1; + public void setSuccess(TruncateTableResponse success) { + this.success = success; } - public void unsetO1() { - this.o1 = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; } - public void setO1IsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.o1 = null; + this.success = null; } } - public MetaException getO2() { - return this.o2; + public MetaException getO1() { + return this.o1; } - public void setO2(MetaException o2) { - this.o2 = o2; + public void setO1(MetaException o1) { + this.o1 = o1; } - public void unsetO2() { - this.o2 = null; + public void unsetO1() { + this.o1 = null; } - /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ - public boolean isSetO2() { - return this.o2 != null; + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; } - public void setO2IsSet(boolean value) { + public void setO1IsSet(boolean value) { if (!value) { - this.o2 = null; + this.o1 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case O1: + case SUCCESS: if (value == null) { - unsetO1(); + unsetSuccess(); } else { - setO1((NoSuchObjectException)value); + setSuccess((TruncateTableResponse)value); } break; - case O2: + case O1: if (value == null) { - unsetO2(); + unsetO1(); } else { - setO2((MetaException)value); + setO1((MetaException)value); } break; @@ -68432,12 +75443,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); - case O2: - return getO2(); - } throw new IllegalStateException(); } @@ -68449,10 +75460,10 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); - case O2: - return isSetO2(); } throw new IllegalStateException(); } @@ -68461,15 +75472,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_check_constraint_result) - return this.equals((add_check_constraint_result)that); + if (that instanceof truncate_table_req_result) + return this.equals((truncate_table_req_result)that); return false; } - public boolean equals(add_check_constraint_result that) { + public boolean equals(truncate_table_req_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -68479,15 +75499,6 @@ public boolean equals(add_check_constraint_result that) { return false; } - boolean this_present_o2 = true && this.isSetO2(); - boolean that_present_o2 = true && that.isSetO2(); - if (this_present_o2 || that_present_o2) { - if (!(this_present_o2 && that_present_o2)) - return false; - if (!this.o2.equals(that.o2)) - return false; - } - return true; } @@ -68495,43 +75506,43 @@ public boolean equals(add_check_constraint_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) list.add(o1); - boolean present_o2 = true && (isSetO2()); - list.add(present_o2); - if (present_o2) - list.add(o2); - return list.hashCode(); } @Override - public int compareTo(add_check_constraint_result other) { + public int compareTo(truncate_table_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; } - if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); if (lastComparison != 0) { return lastComparison; } @@ -68553,22 +75564,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_check_constraint_result("); + StringBuilder sb = new StringBuilder("truncate_table_req_result("); boolean first = true; - sb.append("o1:"); - if (this.o1 == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.o1); + sb.append(this.success); } first = false; if (!first) sb.append(", "); - sb.append("o2:"); - if (this.o2 == null) { + sb.append("o1:"); + if (this.o1 == null) { sb.append("null"); } else { - sb.append(this.o2); + sb.append(this.o1); } first = false; sb.append(")"); @@ -68578,6 +75589,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -68596,15 +75610,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_check_constraint_resultStandardSchemeFactory implements SchemeFactory { - public add_check_constraint_resultStandardScheme getScheme() { - return new add_check_constraint_resultStandardScheme(); + private static class truncate_table_req_resultStandardSchemeFactory implements SchemeFactory { + public truncate_table_req_resultStandardScheme getScheme() { + return new truncate_table_req_resultStandardScheme(); } } - private static class add_check_constraint_resultStandardScheme extends StandardScheme { + private static class truncate_table_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_check_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -68614,20 +75628,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_check_constrain break; } switch (schemeField.id) { - case 1: // O1 + case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + struct.success = new TruncateTableResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O2 + case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -68641,94 +75655,91 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_check_constrain struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_check_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_check_constraint_resultTupleSchemeFactory implements SchemeFactory { - public add_check_constraint_resultTupleScheme getScheme() { - return new add_check_constraint_resultTupleScheme(); + private static class truncate_table_req_resultTupleSchemeFactory implements SchemeFactory { + public truncate_table_req_resultTupleScheme getScheme() { + return new truncate_table_req_resultTupleScheme(); } } - private static class add_check_constraint_resultTupleScheme extends TupleScheme { + private static class truncate_table_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_check_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO2()) { - struct.o2.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_check_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + struct.success = new TruncateTableResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o2 = new MetaException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_args"); - 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)1); - private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)3); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_argsTupleSchemeFactory()); } - private String dbname; // required - private String name; // required - private boolean deleteData; // required + private String db_name; // required + private String pattern; // 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 { - DBNAME((short)1, "dbname"), - NAME((short)2, "name"), - DELETE_DATA((short)3, "deleteData"); + DB_NAME((short)1, "db_name"), + PATTERN((short)2, "pattern"); private static final Map byName = new HashMap(); @@ -68743,12 +75754,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_check_constraint */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // NAME - return NAME; - case 3: // DELETE_DATA - return DELETE_DATA; + case 1: // DB_NAME + return DB_NAME; + case 2: // PATTERN + return PATTERN; default: return null; } @@ -68789,153 +75798,112 @@ public String getFieldName() { } // isset id assignments - private static final int __DELETEDATA_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_args.class, metaDataMap); } - public drop_table_args() { + public get_tables_args() { } - public drop_table_args( - String dbname, - String name, - boolean deleteData) + public get_tables_args( + String db_name, + String pattern) { this(); - this.dbname = dbname; - this.name = name; - this.deleteData = deleteData; - setDeleteDataIsSet(true); + this.db_name = db_name; + this.pattern = pattern; } /** * Performs a deep copy on other. */ - public drop_table_args(drop_table_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDbname()) { - this.dbname = other.dbname; + public get_tables_args(get_tables_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } - if (other.isSetName()) { - this.name = other.name; + if (other.isSetPattern()) { + this.pattern = other.pattern; } - this.deleteData = other.deleteData; } - public drop_table_args deepCopy() { - return new drop_table_args(this); + public get_tables_args deepCopy() { + return new get_tables_args(this); } @Override public void clear() { - this.dbname = null; - this.name = null; - setDeleteDataIsSet(false); - this.deleteData = false; + this.db_name = null; + this.pattern = null; } - public String getDbname() { - return this.dbname; + public String getDb_name() { + return this.db_name; } - public void setDbname(String dbname) { - this.dbname = dbname; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetDbname() { - this.dbname = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ - public boolean isSetDbname() { - return this.dbname != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setDbnameIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.dbname = null; + this.db_name = null; } } - public String getName() { - return this.name; + public String getPattern() { + return this.pattern; } - public void setName(String name) { - this.name = name; + public void setPattern(String pattern) { + this.pattern = pattern; } - public void unsetName() { - this.name = null; + public void unsetPattern() { + this.pattern = null; } - /** Returns true if field name is set (has been assigned a value) and false otherwise */ - public boolean isSetName() { - return this.name != null; + /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ + public boolean isSetPattern() { + return this.pattern != null; } - public void setNameIsSet(boolean value) { + public void setPatternIsSet(boolean value) { if (!value) { - this.name = null; + this.pattern = null; } } - public boolean isDeleteData() { - return this.deleteData; - } - - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); - } - - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ - public boolean isSetDeleteData() { - return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case NAME: + case DB_NAME: if (value == null) { - unsetName(); + unsetDb_name(); } else { - setName((String)value); + setDb_name((String)value); } break; - case DELETE_DATA: + case PATTERN: if (value == null) { - unsetDeleteData(); + unsetPattern(); } else { - setDeleteData((Boolean)value); + setPattern((String)value); } break; @@ -68944,14 +75912,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case NAME: - return getName(); + case DB_NAME: + return getDb_name(); - case DELETE_DATA: - return isDeleteData(); + case PATTERN: + return getPattern(); } throw new IllegalStateException(); @@ -68964,12 +75929,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case NAME: - return isSetName(); - case DELETE_DATA: - return isSetDeleteData(); + case DB_NAME: + return isSetDb_name(); + case PATTERN: + return isSetPattern(); } throw new IllegalStateException(); } @@ -68978,39 +75941,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_table_args) - return this.equals((drop_table_args)that); + if (that instanceof get_tables_args) + return this.equals((get_tables_args)that); return false; } - public boolean equals(drop_table_args that) { + public boolean equals(get_tables_args that) { if (that == null) 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_name = true && this.isSetName(); - boolean that_present_name = true && that.isSetName(); - if (this_present_name || that_present_name) { - if (!(this_present_name && that_present_name)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.name.equals(that.name)) + if (!this.db_name.equals(that.db_name)) return false; } - boolean this_present_deleteData = true; - boolean that_present_deleteData = true; - if (this_present_deleteData || that_present_deleteData) { - if (!(this_present_deleteData && that_present_deleteData)) + boolean this_present_pattern = true && this.isSetPattern(); + boolean that_present_pattern = true && that.isSetPattern(); + if (this_present_pattern || that_present_pattern) { + if (!(this_present_pattern && that_present_pattern)) return false; - if (this.deleteData != that.deleteData) + if (!this.pattern.equals(that.pattern)) return false; } @@ -69021,58 +75975,43 @@ public boolean equals(drop_table_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); - - boolean present_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); + boolean present_pattern = true && (isSetPattern()); + list.add(present_pattern); + if (present_pattern) + list.add(pattern); return list.hashCode(); } @Override - public int compareTo(drop_table_args other) { + public int compareTo(get_tables_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - 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(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); if (lastComparison != 0) { return lastComparison; } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (isSetPattern()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); if (lastComparison != 0) { return lastComparison; } @@ -69094,28 +76033,24 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_table_args("); + StringBuilder sb = new StringBuilder("get_tables_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.dbname); + sb.append(this.db_name); } first = false; if (!first) sb.append(", "); - sb.append("name:"); - if (this.name == null) { + sb.append("pattern:"); + if (this.pattern == null) { sb.append("null"); } else { - sb.append(this.name); + sb.append(this.pattern); } first = false; - if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); - first = false; sb.append(")"); return sb.toString(); } @@ -69135,23 +76070,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_table_argsStandardSchemeFactory implements SchemeFactory { - public drop_table_argsStandardScheme getScheme() { - return new drop_table_argsStandardScheme(); + private static class get_tables_argsStandardSchemeFactory implements SchemeFactory { + public get_tables_argsStandardScheme getScheme() { + return new get_tables_argsStandardScheme(); } } - private static class drop_table_argsStandardScheme extends StandardScheme { + private static class get_tables_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -69161,26 +76094,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_args str break; } switch (schemeField.id) { - case 1: // DBNAME + case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // NAME + case 2: // PATTERN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // DELETE_DATA - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -69194,102 +76119,89 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } - if (struct.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); + if (struct.pattern != null) { + oprot.writeFieldBegin(PATTERN_FIELD_DESC); + oprot.writeString(struct.pattern); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_table_argsTupleSchemeFactory implements SchemeFactory { - public drop_table_argsTupleScheme getScheme() { - return new drop_table_argsTupleScheme(); + private static class get_tables_argsTupleSchemeFactory implements SchemeFactory { + public get_tables_argsTupleScheme getScheme() { + return new get_tables_argsTupleScheme(); } } - private static class drop_table_argsTupleScheme extends TupleScheme { + private static class get_tables_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetName()) { + if (struct.isSetPattern()) { optionals.set(1); } - if (struct.isSetDeleteData()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetName()) { - oprot.writeString(struct.name); + oprot.writeBitSet(optionals, 2); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); + if (struct.isSetPattern()) { + oprot.writeString(struct.pattern); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } if (incoming.get(1)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } - if (incoming.get(2)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_resultTupleSchemeFactory()); } - private NoSuchObjectException o1; // required - private MetaException o3; // required + private List success; // required + private MetaException o1; // 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 { - O1((short)1, "o1"), - O3((short)2, "o3"); + SUCCESS((short)0, "success"), + O1((short)1, "o1"); private static final Map byName = new HashMap(); @@ -69304,10 +76216,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_args stru */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; - case 2: // O3 - return O3; default: return null; } @@ -69351,109 +76263,126 @@ public String getFieldName() { 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_result.class, metaDataMap); } - public drop_table_result() { + public get_tables_result() { } - public drop_table_result( - NoSuchObjectException o1, - MetaException o3) + public get_tables_result( + List success, + MetaException o1) { this(); + this.success = success; this.o1 = o1; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public drop_table_result(drop_table_result other) { - if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + public get_tables_result(get_tables_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success); + this.success = __this__success; } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); } } - public drop_table_result deepCopy() { - return new drop_table_result(this); + public get_tables_result deepCopy() { + return new get_tables_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; - this.o3 = null; } - public NoSuchObjectException getO1() { - return this.o1; + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - public void setO1(NoSuchObjectException o1) { - this.o1 = o1; + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); } - public void unsetO1() { - this.o1 = null; + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); } - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; + public List getSuccess() { + return this.success; } - public void setO1IsSet(boolean value) { + public void setSuccess(List success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { if (!value) { - this.o1 = null; + this.success = null; } } - public MetaException getO3() { - return this.o3; + public MetaException getO1() { + return this.o1; } - public void setO3(MetaException o3) { - this.o3 = o3; + public void setO1(MetaException o1) { + this.o1 = o1; } - public void unsetO3() { - this.o3 = null; + public void unsetO1() { + this.o1 = null; } - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; } - public void setO3IsSet(boolean value) { + public void setO1IsSet(boolean value) { if (!value) { - this.o3 = null; + this.o1 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case O1: + case SUCCESS: if (value == null) { - unsetO1(); + unsetSuccess(); } else { - setO1((NoSuchObjectException)value); + setSuccess((List)value); } break; - case O3: + case O1: if (value == null) { - unsetO3(); + unsetO1(); } else { - setO3((MetaException)value); + setO1((MetaException)value); } break; @@ -69462,12 +76391,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -69479,10 +76408,10 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -69491,15 +76420,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_table_result) - return this.equals((drop_table_result)that); + if (that instanceof get_tables_result) + return this.equals((get_tables_result)that); return false; } - public boolean equals(drop_table_result that) { + public boolean equals(get_tables_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -69509,15 +76447,6 @@ public boolean equals(drop_table_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @@ -69525,43 +76454,43 @@ public boolean equals(drop_table_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) list.add(o1); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(drop_table_result other) { + public int compareTo(get_tables_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); if (lastComparison != 0) { return lastComparison; } @@ -69583,22 +76512,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_table_result("); + StringBuilder sb = new StringBuilder("get_tables_result("); boolean first = true; - sb.append("o1:"); - if (this.o1 == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.o1); + sb.append(this.success); } first = false; if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { + sb.append("o1:"); + if (this.o1 == null) { sb.append("null"); } else { - sb.append(this.o3); + sb.append(this.o1); } first = false; sb.append(")"); @@ -69626,15 +76555,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_table_resultStandardSchemeFactory implements SchemeFactory { - public drop_table_resultStandardScheme getScheme() { - return new drop_table_resultStandardScheme(); + private static class get_tables_resultStandardSchemeFactory implements SchemeFactory { + public get_tables_resultStandardScheme getScheme() { + return new get_tables_resultStandardScheme(); } } - private static class drop_table_resultStandardScheme extends StandardScheme { + private static class get_tables_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -69644,20 +76573,29 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_result s break; } switch (schemeField.id) { - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1394 = iprot.readListBegin(); + struct.success = new ArrayList(_list1394.size); + String _elem1395; + for (int _i1396 = 0; _i1396 < _list1394.size; ++_i1396) + { + _elem1395 = iprot.readString(); + struct.success.add(_elem1395); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O3 + case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -69671,97 +76609,115 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1397 : struct.success) + { + oprot.writeString(_iter1397); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_table_resultTupleSchemeFactory implements SchemeFactory { - public drop_table_resultTupleScheme getScheme() { - return new drop_table_resultTupleScheme(); + private static class get_tables_resultTupleSchemeFactory implements SchemeFactory { + public get_tables_resultTupleScheme getScheme() { + return new get_tables_resultTupleScheme(); } } - private static class drop_table_resultTupleScheme extends TupleScheme { + private static class get_tables_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO3()) { + if (struct.isSetO1()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (String _iter1398 : struct.success) + { + oprot.writeString(_iter1398); + } + } + } if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + { + org.apache.thrift.protocol.TList _list1399 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1399.size); + String _elem1400; + for (int _i1401 = 0; _i1401 < _list1399.size; ++_i1401) + { + _elem1400 = iprot.readString(); + struct.success.add(_elem1400); + } + } + struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_with_environment_context_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_by_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_by_type_args"); - 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)1); - private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)3); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TABLE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tableType", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_table_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_by_type_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_by_type_argsTupleSchemeFactory()); } - private String dbname; // required - private String name; // required - private boolean deleteData; // required - private EnvironmentContext environment_context; // required + private String db_name; // required + private String pattern; // required + private String tableType; // 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 { - DBNAME((short)1, "dbname"), - NAME((short)2, "name"), - DELETE_DATA((short)3, "deleteData"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + DB_NAME((short)1, "db_name"), + PATTERN((short)2, "pattern"), + TABLE_TYPE((short)3, "tableType"); private static final Map byName = new HashMap(); @@ -69776,14 +76732,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result st */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // NAME - return NAME; - case 3: // DELETE_DATA - return DELETE_DATA; - case 4: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 1: // DB_NAME + return DB_NAME; + case 2: // PATTERN + return PATTERN; + case 3: // TABLE_TYPE + return TABLE_TYPE; default: return null; } @@ -69824,192 +76778,151 @@ public String getFieldName() { } // isset id assignments - private static final int __DELETEDATA_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("tableType", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_by_type_args.class, metaDataMap); } - public drop_table_with_environment_context_args() { + public get_tables_by_type_args() { } - public drop_table_with_environment_context_args( - String dbname, - String name, - boolean deleteData, - EnvironmentContext environment_context) + public get_tables_by_type_args( + String db_name, + String pattern, + String tableType) { this(); - this.dbname = dbname; - this.name = name; - this.deleteData = deleteData; - setDeleteDataIsSet(true); - this.environment_context = environment_context; + this.db_name = db_name; + this.pattern = pattern; + this.tableType = tableType; } /** * Performs a deep copy on other. */ - public drop_table_with_environment_context_args(drop_table_with_environment_context_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDbname()) { - this.dbname = other.dbname; + public get_tables_by_type_args(get_tables_by_type_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } - if (other.isSetName()) { - this.name = other.name; + if (other.isSetPattern()) { + this.pattern = other.pattern; } - this.deleteData = other.deleteData; - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + if (other.isSetTableType()) { + this.tableType = other.tableType; } } - public drop_table_with_environment_context_args deepCopy() { - return new drop_table_with_environment_context_args(this); + public get_tables_by_type_args deepCopy() { + return new get_tables_by_type_args(this); } @Override public void clear() { - this.dbname = null; - this.name = null; - setDeleteDataIsSet(false); - this.deleteData = false; - this.environment_context = 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 getName() { - return this.name; + this.db_name = null; + this.pattern = null; + this.tableType = null; } - public void setName(String name) { - this.name = name; + public String getDb_name() { + return this.db_name; } - public void unsetName() { - this.name = null; + public void setDb_name(String db_name) { + this.db_name = db_name; } - /** Returns true if field name is set (has been assigned a value) and false otherwise */ - public boolean isSetName() { - return this.name != null; + public void unsetDb_name() { + this.db_name = null; } - public void setNameIsSet(boolean value) { + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; + } + + public void setDb_nameIsSet(boolean value) { if (!value) { - this.name = null; + this.db_name = null; } } - public boolean isDeleteData() { - return this.deleteData; + public String getPattern() { + return this.pattern; } - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); + public void setPattern(String pattern) { + this.pattern = pattern; } - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + public void unsetPattern() { + this.pattern = null; } - /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ - public boolean isSetDeleteData() { - return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ + public boolean isSetPattern() { + return this.pattern != null; } - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + public void setPatternIsSet(boolean value) { + if (!value) { + this.pattern = null; + } } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public String getTableType() { + return this.tableType; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setTableType(String tableType) { + this.tableType = tableType; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetTableType() { + this.tableType = null; } - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; + /** Returns true if field tableType is set (has been assigned a value) and false otherwise */ + public boolean isSetTableType() { + return this.tableType != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setTableTypeIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.tableType = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case NAME: + case DB_NAME: if (value == null) { - unsetName(); + unsetDb_name(); } else { - setName((String)value); + setDb_name((String)value); } break; - case DELETE_DATA: + case PATTERN: if (value == null) { - unsetDeleteData(); + unsetPattern(); } else { - setDeleteData((Boolean)value); + setPattern((String)value); } break; - case ENVIRONMENT_CONTEXT: + case TABLE_TYPE: if (value == null) { - unsetEnvironment_context(); + unsetTableType(); } else { - setEnvironment_context((EnvironmentContext)value); + setTableType((String)value); } break; @@ -70018,17 +76931,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case NAME: - return getName(); + case DB_NAME: + return getDb_name(); - case DELETE_DATA: - return isDeleteData(); + case PATTERN: + return getPattern(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case TABLE_TYPE: + return getTableType(); } throw new IllegalStateException(); @@ -70041,14 +76951,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case NAME: - return isSetName(); - case DELETE_DATA: - return isSetDeleteData(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case DB_NAME: + return isSetDb_name(); + case PATTERN: + return isSetPattern(); + case TABLE_TYPE: + return isSetTableType(); } throw new IllegalStateException(); } @@ -70057,48 +76965,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_table_with_environment_context_args) - return this.equals((drop_table_with_environment_context_args)that); + if (that instanceof get_tables_by_type_args) + return this.equals((get_tables_by_type_args)that); return false; } - public boolean equals(drop_table_with_environment_context_args that) { + public boolean equals(get_tables_by_type_args that) { if (that == null) 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_name = true && this.isSetName(); - boolean that_present_name = true && that.isSetName(); - if (this_present_name || that_present_name) { - if (!(this_present_name && that_present_name)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.name.equals(that.name)) + if (!this.db_name.equals(that.db_name)) return false; } - boolean this_present_deleteData = true; - boolean that_present_deleteData = true; - if (this_present_deleteData || that_present_deleteData) { - if (!(this_present_deleteData && that_present_deleteData)) + boolean this_present_pattern = true && this.isSetPattern(); + boolean that_present_pattern = true && that.isSetPattern(); + if (this_present_pattern || that_present_pattern) { + if (!(this_present_pattern && that_present_pattern)) return false; - if (this.deleteData != that.deleteData) + if (!this.pattern.equals(that.pattern)) return false; } - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) + boolean this_present_tableType = true && this.isSetTableType(); + boolean that_present_tableType = true && that.isSetTableType(); + if (this_present_tableType || that_present_tableType) { + if (!(this_present_tableType && that_present_tableType)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (!this.tableType.equals(that.tableType)) return false; } @@ -70109,73 +77008,58 @@ public boolean equals(drop_table_with_environment_context_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); - - boolean present_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); + boolean present_pattern = true && (isSetPattern()); + list.add(present_pattern); + if (present_pattern) + list.add(pattern); - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_tableType = true && (isSetTableType()); + list.add(present_tableType); + if (present_tableType) + list.add(tableType); return list.hashCode(); } @Override - public int compareTo(drop_table_with_environment_context_args other) { + public int compareTo(get_tables_by_type_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - 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(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); if (lastComparison != 0) { return lastComparison; } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (isSetPattern()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetTableType()).compareTo(other.isSetTableType()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetTableType()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, other.tableType); if (lastComparison != 0) { return lastComparison; } @@ -70197,34 +77081,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_table_with_environment_context_args("); + StringBuilder sb = new StringBuilder("get_tables_by_type_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.dbname); + sb.append(this.db_name); } first = false; if (!first) sb.append(", "); - sb.append("name:"); - if (this.name == null) { + sb.append("pattern:"); + if (this.pattern == null) { sb.append("null"); } else { - sb.append(this.name); + sb.append(this.pattern); } first = false; if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); - first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("tableType:"); + if (this.tableType == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.tableType); } first = false; sb.append(")"); @@ -70234,9 +77114,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -70249,23 +77126,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_argsStandardScheme getScheme() { - return new drop_table_with_environment_context_argsStandardScheme(); + private static class get_tables_by_type_argsStandardSchemeFactory implements SchemeFactory { + public get_tables_by_type_argsStandardScheme getScheme() { + return new get_tables_by_type_argsStandardScheme(); } } - private static class drop_table_with_environment_context_argsStandardScheme extends StandardScheme { + private static class get_tables_by_type_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -70275,35 +77150,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env break; } switch (schemeField.id) { - case 1: // DBNAME + case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // NAME + case 2: // PATTERN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // DELETE_DATA - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + case 3: // TABLE_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableType = iprot.readString(); + struct.setTableTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -70317,26 +77183,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } - if (struct.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); + if (struct.pattern != null) { + oprot.writeFieldBegin(PATTERN_FIELD_DESC); + oprot.writeString(struct.pattern); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); - oprot.writeFieldEnd(); - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.tableType != null) { + oprot.writeFieldBegin(TABLE_TYPE_FIELD_DESC); + oprot.writeString(struct.tableType); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -70345,90 +77208,79 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_en } - private static class drop_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_argsTupleScheme getScheme() { - return new drop_table_with_environment_context_argsTupleScheme(); + private static class get_tables_by_type_argsTupleSchemeFactory implements SchemeFactory { + public get_tables_by_type_argsTupleScheme getScheme() { + return new get_tables_by_type_argsTupleScheme(); } } - private static class drop_table_with_environment_context_argsTupleScheme extends TupleScheme { + private static class get_tables_by_type_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetName()) { + if (struct.isSetPattern()) { optionals.set(1); } - if (struct.isSetDeleteData()) { + if (struct.isSetTableType()) { optionals.set(2); } - if (struct.isSetEnvironment_context()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetName()) { - oprot.writeString(struct.name); + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); + if (struct.isSetPattern()) { + oprot.writeString(struct.pattern); } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + if (struct.isSetTableType()) { + oprot.writeString(struct.tableType); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } if (incoming.get(1)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); } if (incoming.get(2)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); - } - if (incoming.get(3)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.tableType = iprot.readString(); + struct.setTableTypeIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_with_environment_context_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_by_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_by_type_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_table_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_by_type_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_by_type_resultTupleSchemeFactory()); } - private NoSuchObjectException o1; // required - private MetaException o3; // required + private List success; // required + private MetaException o1; // 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 { - O1((short)1, "o1"), - O3((short)2, "o3"); + SUCCESS((short)0, "success"), + O1((short)1, "o1"); private static final Map byName = new HashMap(); @@ -70443,10 +77295,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; - case 2: // O3 - return O3; default: return null; } @@ -70490,109 +77342,126 @@ public String getFieldName() { 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_by_type_result.class, metaDataMap); } - public drop_table_with_environment_context_result() { + public get_tables_by_type_result() { } - public drop_table_with_environment_context_result( - NoSuchObjectException o1, - MetaException o3) + public get_tables_by_type_result( + List success, + MetaException o1) { this(); + this.success = success; this.o1 = o1; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public drop_table_with_environment_context_result(drop_table_with_environment_context_result other) { - if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + public get_tables_by_type_result(get_tables_by_type_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success); + this.success = __this__success; } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); } } - public drop_table_with_environment_context_result deepCopy() { - return new drop_table_with_environment_context_result(this); + public get_tables_by_type_result deepCopy() { + return new get_tables_by_type_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; - this.o3 = null; } - public NoSuchObjectException getO1() { - return this.o1; + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - public void setO1(NoSuchObjectException o1) { - this.o1 = o1; + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); } - public void unsetO1() { - this.o1 = null; + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); } - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; + public List getSuccess() { + return this.success; } - public void setO1IsSet(boolean value) { + public void setSuccess(List success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { if (!value) { - this.o1 = null; + this.success = null; } } - public MetaException getO3() { - return this.o3; + public MetaException getO1() { + return this.o1; } - public void setO3(MetaException o3) { - this.o3 = o3; + public void setO1(MetaException o1) { + this.o1 = o1; } - public void unsetO3() { - this.o3 = null; + public void unsetO1() { + this.o1 = null; } - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; } - public void setO3IsSet(boolean value) { + public void setO1IsSet(boolean value) { if (!value) { - this.o3 = null; + this.o1 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case O1: + case SUCCESS: if (value == null) { - unsetO1(); + unsetSuccess(); } else { - setO1((NoSuchObjectException)value); + setSuccess((List)value); } break; - case O3: + case O1: if (value == null) { - unsetO3(); + unsetO1(); } else { - setO3((MetaException)value); + setO1((MetaException)value); } break; @@ -70601,12 +77470,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -70618,10 +77487,10 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -70630,15 +77499,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_table_with_environment_context_result) - return this.equals((drop_table_with_environment_context_result)that); + if (that instanceof get_tables_by_type_result) + return this.equals((get_tables_by_type_result)that); return false; } - public boolean equals(drop_table_with_environment_context_result that) { + public boolean equals(get_tables_by_type_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -70648,15 +77526,6 @@ public boolean equals(drop_table_with_environment_context_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @@ -70664,43 +77533,43 @@ public boolean equals(drop_table_with_environment_context_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) list.add(o1); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(drop_table_with_environment_context_result other) { + public int compareTo(get_tables_by_type_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); if (lastComparison != 0) { return lastComparison; } @@ -70722,22 +77591,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_table_with_environment_context_result("); + StringBuilder sb = new StringBuilder("get_tables_by_type_result("); boolean first = true; - sb.append("o1:"); - if (this.o1 == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.o1); + sb.append(this.success); } first = false; if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { + sb.append("o1:"); + if (this.o1 == null) { sb.append("null"); } else { - sb.append(this.o3); + sb.append(this.o1); } first = false; sb.append(")"); @@ -70765,15 +77634,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_resultStandardScheme getScheme() { - return new drop_table_with_environment_context_resultStandardScheme(); + private static class get_tables_by_type_resultStandardSchemeFactory implements SchemeFactory { + public get_tables_by_type_resultStandardScheme getScheme() { + return new get_tables_by_type_resultStandardScheme(); } } - private static class drop_table_with_environment_context_resultStandardScheme extends StandardScheme { + private static class get_tables_by_type_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -70783,20 +77652,29 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env break; } switch (schemeField.id) { - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1402 = iprot.readListBegin(); + struct.success = new ArrayList(_list1402.size); + String _elem1403; + for (int _i1404 = 0; _i1404 < _list1402.size; ++_i1404) + { + _elem1403 = iprot.readString(); + struct.success.add(_elem1403); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O3 + case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -70810,94 +77688,107 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1405 : struct.success) + { + oprot.writeString(_iter1405); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_resultTupleScheme getScheme() { - return new drop_table_with_environment_context_resultTupleScheme(); + private static class get_tables_by_type_resultTupleSchemeFactory implements SchemeFactory { + public get_tables_by_type_resultTupleScheme getScheme() { + return new get_tables_by_type_resultTupleScheme(); } } - private static class drop_table_with_environment_context_resultTupleScheme extends TupleScheme { + private static class get_tables_by_type_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO3()) { + if (struct.isSetO1()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (String _iter1406 : struct.success) + { + oprot.writeString(_iter1406); + } + } + } if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + { + org.apache.thrift.protocol.TList _list1407 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1407.size); + String _elem1408; + for (int _i1409 = 0; _i1409 < _list1407.size; ++_i1409) + { + _elem1408 = iprot.readString(); + struct.success.add(_elem1408); + } + } + struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class truncate_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("truncate_table_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_materialized_view_objects_for_rewriting_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_materialized_view_objects_for_rewriting_args"); - 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)1); - 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)2); - private static final org.apache.thrift.protocol.TField PART_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("partNames", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new truncate_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new truncate_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_all_materialized_view_objects_for_rewriting_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_materialized_view_objects_for_rewriting_argsTupleSchemeFactory()); } - private String dbName; // required - private String tableName; // required - private List partNames; // 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 { - DB_NAME((short)1, "dbName"), - TABLE_NAME((short)2, "tableName"), - PART_NAMES((short)3, "partNames"); +; private static final Map byName = new HashMap(); @@ -70912,12 +77803,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TABLE_NAME - return TABLE_NAME; - case 3: // PART_NAMES - return PART_NAMES; default: return null; } @@ -70956,187 +77841,37 @@ 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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_NAMES, new org.apache.thrift.meta_data.FieldMetaData("partNames", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_args.class, metaDataMap); - } - - public truncate_table_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_materialized_view_objects_for_rewriting_args.class, metaDataMap); } - public truncate_table_args( - String dbName, - String tableName, - List partNames) - { - this(); - this.dbName = dbName; - this.tableName = tableName; - this.partNames = partNames; + public get_all_materialized_view_objects_for_rewriting_args() { } /** * Performs a deep copy on other. */ - public truncate_table_args(truncate_table_args other) { - if (other.isSetDbName()) { - this.dbName = other.dbName; - } - if (other.isSetTableName()) { - this.tableName = other.tableName; - } - if (other.isSetPartNames()) { - List __this__partNames = new ArrayList(other.partNames); - this.partNames = __this__partNames; - } + public get_all_materialized_view_objects_for_rewriting_args(get_all_materialized_view_objects_for_rewriting_args other) { } - public truncate_table_args deepCopy() { - return new truncate_table_args(this); + public get_all_materialized_view_objects_for_rewriting_args deepCopy() { + return new get_all_materialized_view_objects_for_rewriting_args(this); } @Override public void clear() { - this.dbName = null; - this.tableName = null; - this.partNames = 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 int getPartNamesSize() { - return (this.partNames == null) ? 0 : this.partNames.size(); - } - - public java.util.Iterator getPartNamesIterator() { - return (this.partNames == null) ? null : this.partNames.iterator(); - } - - public void addToPartNames(String elem) { - if (this.partNames == null) { - this.partNames = new ArrayList(); - } - this.partNames.add(elem); - } - - public List getPartNames() { - return this.partNames; - } - - public void setPartNames(List partNames) { - this.partNames = partNames; - } - - public void unsetPartNames() { - this.partNames = null; - } - - /** Returns true if field partNames is set (has been assigned a value) and false otherwise */ - public boolean isSetPartNames() { - return this.partNames != null; - } - - public void setPartNamesIsSet(boolean value) { - if (!value) { - this.partNames = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: - if (value == null) { - unsetDbName(); - } else { - setDbName((String)value); - } - break; - - case TABLE_NAME: - if (value == null) { - unsetTableName(); - } else { - setTableName((String)value); - } - break; - - case PART_NAMES: - if (value == null) { - unsetPartNames(); - } else { - setPartNames((List)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDbName(); - - case TABLE_NAME: - return getTableName(); - - case PART_NAMES: - return getPartNames(); - } throw new IllegalStateException(); } @@ -71148,12 +77883,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDbName(); - case TABLE_NAME: - return isSetTableName(); - case PART_NAMES: - return isSetPartNames(); } throw new IllegalStateException(); } @@ -71162,42 +77891,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof truncate_table_args) - return this.equals((truncate_table_args)that); + if (that instanceof get_all_materialized_view_objects_for_rewriting_args) + return this.equals((get_all_materialized_view_objects_for_rewriting_args)that); return false; } - public boolean equals(truncate_table_args that) { + public boolean equals(get_all_materialized_view_objects_for_rewriting_args that) { if (that == null) return false; - boolean this_present_dbName = true && this.isSetDbName(); - boolean that_present_dbName = true && that.isSetDbName(); - if (this_present_dbName || that_present_dbName) { - if (!(this_present_dbName && that_present_dbName)) - return false; - if (!this.dbName.equals(that.dbName)) - return false; - } - - boolean this_present_tableName = true && this.isSetTableName(); - boolean that_present_tableName = true && that.isSetTableName(); - if (this_present_tableName || that_present_tableName) { - if (!(this_present_tableName && that_present_tableName)) - return false; - if (!this.tableName.equals(that.tableName)) - return false; - } - - boolean this_present_partNames = true && this.isSetPartNames(); - boolean that_present_partNames = true && that.isSetPartNames(); - if (this_present_partNames || that_present_partNames) { - if (!(this_present_partNames && that_present_partNames)) - return false; - if (!this.partNames.equals(that.partNames)) - return false; - } - return true; } @@ -71205,62 +77907,17 @@ public boolean equals(truncate_table_args that) { public int hashCode() { List list = new ArrayList(); - 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); - - boolean present_partNames = true && (isSetPartNames()); - list.add(present_partNames); - if (present_partNames) - list.add(partNames); - return list.hashCode(); } @Override - public int compareTo(truncate_table_args other) { + public int compareTo(get_all_materialized_view_objects_for_rewriting_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - 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; - } - } - lastComparison = Boolean.valueOf(isSetPartNames()).compareTo(other.isSetPartNames()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPartNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partNames, other.partNames); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -71278,32 +77935,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("truncate_table_args("); + StringBuilder sb = new StringBuilder("get_all_materialized_view_objects_for_rewriting_args("); boolean first = true; - sb.append("dbName:"); - if (this.dbName == null) { - sb.append("null"); - } else { - sb.append(this.dbName); - } - first = false; - if (!first) sb.append(", "); - sb.append("tableName:"); - if (this.tableName == null) { - sb.append("null"); - } else { - sb.append(this.tableName); - } - first = false; - if (!first) sb.append(", "); - sb.append("partNames:"); - if (this.partNames == null) { - sb.append("null"); - } else { - sb.append(this.partNames); - } - first = false; sb.append(")"); return sb.toString(); } @@ -71329,15 +77963,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class truncate_table_argsStandardSchemeFactory implements SchemeFactory { - public truncate_table_argsStandardScheme getScheme() { - return new truncate_table_argsStandardScheme(); + private static class get_all_materialized_view_objects_for_rewriting_argsStandardSchemeFactory implements SchemeFactory { + public get_all_materialized_view_objects_for_rewriting_argsStandardScheme getScheme() { + return new get_all_materialized_view_objects_for_rewriting_argsStandardScheme(); } } - private static class truncate_table_argsStandardScheme extends StandardScheme { + private static class get_all_materialized_view_objects_for_rewriting_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialized_view_objects_for_rewriting_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -71347,40 +77981,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_args break; } switch (schemeField.id) { - case 1: // 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 2: // 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; - case 3: // PART_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1314 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list1314.size); - String _elem1315; - for (int _i1316 = 0; _i1316 < _list1314.size; ++_i1316) - { - _elem1315 = iprot.readString(); - struct.partNames.add(_elem1315); - } - iprot.readListEnd(); - } - struct.setPartNamesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -71390,122 +77990,55 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_materialized_view_objects_for_rewriting_args struct) throws org.apache.thrift.TException { struct.validate(); - oprot.writeStructBegin(STRUCT_DESC); - 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(); - } - if (struct.partNames != null) { - oprot.writeFieldBegin(PART_NAMES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partNames.size())); - for (String _iter1317 : struct.partNames) - { - oprot.writeString(_iter1317); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } + oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class truncate_table_argsTupleSchemeFactory implements SchemeFactory { - public truncate_table_argsTupleScheme getScheme() { - return new truncate_table_argsTupleScheme(); + private static class get_all_materialized_view_objects_for_rewriting_argsTupleSchemeFactory implements SchemeFactory { + public get_all_materialized_view_objects_for_rewriting_argsTupleScheme getScheme() { + return new get_all_materialized_view_objects_for_rewriting_argsTupleScheme(); } } - private static class truncate_table_argsTupleScheme extends TupleScheme { + private static class get_all_materialized_view_objects_for_rewriting_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_all_materialized_view_objects_for_rewriting_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetDbName()) { - optionals.set(0); - } - if (struct.isSetTableName()) { - optionals.set(1); - } - if (struct.isSetPartNames()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDbName()) { - oprot.writeString(struct.dbName); - } - if (struct.isSetTableName()) { - oprot.writeString(struct.tableName); - } - if (struct.isSetPartNames()) { - { - oprot.writeI32(struct.partNames.size()); - for (String _iter1318 : struct.partNames) - { - oprot.writeString(_iter1318); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_all_materialized_view_objects_for_rewriting_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.dbName = iprot.readString(); - struct.setDbNameIsSet(true); - } - if (incoming.get(1)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list1319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list1319.size); - String _elem1320; - for (int _i1321 = 0; _i1321 < _list1319.size; ++_i1321) - { - _elem1320 = iprot.readString(); - struct.partNames.add(_elem1320); - } - } - struct.setPartNamesIsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class truncate_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("truncate_table_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_materialized_view_objects_for_rewriting_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_materialized_view_objects_for_rewriting_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new truncate_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new truncate_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_all_materialized_view_objects_for_rewriting_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_materialized_view_objects_for_rewriting_resultTupleSchemeFactory()); } + private List success; // required private MetaException o1; // 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 { + SUCCESS((short)0, "success"), O1((short)1, "o1"); private static final Map byName = new HashMap(); @@ -71521,6 +78054,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; default: @@ -71566,40 +78101,91 @@ public String getFieldName() { 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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, Table.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_materialized_view_objects_for_rewriting_result.class, metaDataMap); } - public truncate_table_result() { + public get_all_materialized_view_objects_for_rewriting_result() { } - public truncate_table_result( + public get_all_materialized_view_objects_for_rewriting_result( + List
success, MetaException o1) { this(); + this.success = success; this.o1 = o1; } /** * Performs a deep copy on other. */ - public truncate_table_result(truncate_table_result other) { + public get_all_materialized_view_objects_for_rewriting_result(get_all_materialized_view_objects_for_rewriting_result other) { + if (other.isSetSuccess()) { + List
__this__success = new ArrayList
(other.success.size()); + for (Table other_element : other.success) { + __this__success.add(new Table(other_element)); + } + this.success = __this__success; + } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public truncate_table_result deepCopy() { - return new truncate_table_result(this); + public get_all_materialized_view_objects_for_rewriting_result deepCopy() { + return new get_all_materialized_view_objects_for_rewriting_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; } + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator
getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Table elem) { + if (this.success == null) { + this.success = new ArrayList
(); + } + this.success.add(elem); + } + + public List
getSuccess() { + return this.success; + } + + public void setSuccess(List
success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + public MetaException getO1() { return this.o1; } @@ -71625,6 +78211,14 @@ public void setO1IsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List
)value); + } + break; + case O1: if (value == null) { unsetO1(); @@ -71638,6 +78232,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); @@ -71652,6 +78249,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); } @@ -71662,15 +78261,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof truncate_table_result) - return this.equals((truncate_table_result)that); + if (that instanceof get_all_materialized_view_objects_for_rewriting_result) + return this.equals((get_all_materialized_view_objects_for_rewriting_result)that); return false; } - public boolean equals(truncate_table_result that) { + public boolean equals(get_all_materialized_view_objects_for_rewriting_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -71687,6 +78295,11 @@ public boolean equals(truncate_table_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -71696,13 +78309,23 @@ public int hashCode() { } @Override - public int compareTo(truncate_table_result other) { + public int compareTo(get_all_materialized_view_objects_for_rewriting_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -71730,9 +78353,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("truncate_table_result("); + StringBuilder sb = new StringBuilder("get_all_materialized_view_objects_for_rewriting_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -71765,15 +78396,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class truncate_table_resultStandardSchemeFactory implements SchemeFactory { - public truncate_table_resultStandardScheme getScheme() { - return new truncate_table_resultStandardScheme(); + private static class get_all_materialized_view_objects_for_rewriting_resultStandardSchemeFactory implements SchemeFactory { + public get_all_materialized_view_objects_for_rewriting_resultStandardScheme getScheme() { + return new get_all_materialized_view_objects_for_rewriting_resultStandardScheme(); } } - private static class truncate_table_resultStandardScheme extends StandardScheme { + private static class get_all_materialized_view_objects_for_rewriting_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialized_view_objects_for_rewriting_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -71783,6 +78414,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_resu break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1410 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1410.size); + Table _elem1411; + for (int _i1412 = 0; _i1412 < _list1410.size; ++_i1412) + { + _elem1411 = new Table(); + _elem1411.read(iprot); + struct.success.add(_elem1411); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o1 = new MetaException(); @@ -71801,10 +78451,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_materialized_view_objects_for_rewriting_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Table _iter1413 : struct.success) + { + _iter1413.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -71816,32 +78478,58 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_res } - private static class truncate_table_resultTupleSchemeFactory implements SchemeFactory { - public truncate_table_resultTupleScheme getScheme() { - return new truncate_table_resultTupleScheme(); + private static class get_all_materialized_view_objects_for_rewriting_resultTupleSchemeFactory implements SchemeFactory { + public get_all_materialized_view_objects_for_rewriting_resultTupleScheme getScheme() { + return new get_all_materialized_view_objects_for_rewriting_resultTupleScheme(); } } - private static class truncate_table_resultTupleScheme extends TupleScheme { + private static class get_all_materialized_view_objects_for_rewriting_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_all_materialized_view_objects_for_rewriting_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetO1()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Table _iter1414 : struct.success) + { + _iter1414.write(oprot); + } + } + } if (struct.isSetO1()) { struct.o1.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_all_materialized_view_objects_for_rewriting_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list1415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list1415.size); + Table _elem1416; + for (int _i1417 = 0; _i1417 < _list1415.size; ++_i1417) + { + _elem1416 = new Table(); + _elem1416.read(iprot); + struct.success.add(_elem1416); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); @@ -71851,22 +78539,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_resul } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class truncate_table_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("truncate_table_req_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialized_views_for_rewriting_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new truncate_table_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new truncate_table_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_materialized_views_for_rewriting_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_materialized_views_for_rewriting_argsTupleSchemeFactory()); } - private TruncateTableRequest req; // required + private String db_name; // 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 { - REQ((short)1, "req"); + DB_NAME((short)1, "db_name"); private static final Map byName = new HashMap(); @@ -71881,8 +78569,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_resul */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DB_NAME + return DB_NAME; default: return null; } @@ -71926,70 +78614,70 @@ public String getFieldName() { 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TruncateTableRequest.class))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialized_views_for_rewriting_args.class, metaDataMap); } - public truncate_table_req_args() { + public get_materialized_views_for_rewriting_args() { } - public truncate_table_req_args( - TruncateTableRequest req) + public get_materialized_views_for_rewriting_args( + String db_name) { this(); - this.req = req; + this.db_name = db_name; } /** * Performs a deep copy on other. */ - public truncate_table_req_args(truncate_table_req_args other) { - if (other.isSetReq()) { - this.req = new TruncateTableRequest(other.req); + public get_materialized_views_for_rewriting_args(get_materialized_views_for_rewriting_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } } - public truncate_table_req_args deepCopy() { - return new truncate_table_req_args(this); + public get_materialized_views_for_rewriting_args deepCopy() { + return new get_materialized_views_for_rewriting_args(this); } @Override public void clear() { - this.req = null; + this.db_name = null; } - public TruncateTableRequest getReq() { - return this.req; + public String getDb_name() { + return this.db_name; } - public void setReq(TruncateTableRequest req) { - this.req = req; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetReq() { - this.req = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setReqIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.req = null; + this.db_name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case DB_NAME: if (value == null) { - unsetReq(); + unsetDb_name(); } else { - setReq((TruncateTableRequest)value); + setDb_name((String)value); } break; @@ -71998,8 +78686,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DB_NAME: + return getDb_name(); } throw new IllegalStateException(); @@ -72012,8 +78700,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DB_NAME: + return isSetDb_name(); } throw new IllegalStateException(); } @@ -72022,21 +78710,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof truncate_table_req_args) - return this.equals((truncate_table_req_args)that); + if (that instanceof get_materialized_views_for_rewriting_args) + return this.equals((get_materialized_views_for_rewriting_args)that); return false; } - public boolean equals(truncate_table_req_args that) { + public boolean equals(get_materialized_views_for_rewriting_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.req.equals(that.req)) + if (!this.db_name.equals(that.db_name)) return false; } @@ -72047,28 +78735,28 @@ public boolean equals(truncate_table_req_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); return list.hashCode(); } @Override - public int compareTo(truncate_table_req_args other) { + public int compareTo(get_materialized_views_for_rewriting_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } @@ -72090,14 +78778,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("truncate_table_req_args("); + StringBuilder sb = new StringBuilder("get_materialized_views_for_rewriting_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.db_name); } first = false; sb.append(")"); @@ -72107,9 +78795,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -72128,15 +78813,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class truncate_table_req_argsStandardSchemeFactory implements SchemeFactory { - public truncate_table_req_argsStandardScheme getScheme() { - return new truncate_table_req_argsStandardScheme(); + private static class get_materialized_views_for_rewriting_argsStandardSchemeFactory implements SchemeFactory { + public get_materialized_views_for_rewriting_argsStandardScheme getScheme() { + return new get_materialized_views_for_rewriting_argsStandardScheme(); } } - private static class truncate_table_req_argsStandardScheme extends StandardScheme { + private static class get_materialized_views_for_rewriting_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -72146,11 +78831,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_req_ break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new TruncateTableRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -72164,13 +78848,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_req_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -72179,54 +78863,53 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_req } - private static class truncate_table_req_argsTupleSchemeFactory implements SchemeFactory { - public truncate_table_req_argsTupleScheme getScheme() { - return new truncate_table_req_argsTupleScheme(); + private static class get_materialized_views_for_rewriting_argsTupleSchemeFactory implements SchemeFactory { + public get_materialized_views_for_rewriting_argsTupleScheme getScheme() { + return new get_materialized_views_for_rewriting_argsTupleScheme(); } } - private static class truncate_table_req_argsTupleScheme extends TupleScheme { + private static class get_materialized_views_for_rewriting_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDb_name()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new TruncateTableRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class truncate_table_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("truncate_table_req_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialized_views_for_rewriting_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new truncate_table_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new truncate_table_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_materialized_views_for_rewriting_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_materialized_views_for_rewriting_resultTupleSchemeFactory()); } - private TruncateTableResponse success; // required + private List success; // required private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -72295,18 +78978,19 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TruncateTableResponse.class))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialized_views_for_rewriting_result.class, metaDataMap); } - public truncate_table_req_result() { + public get_materialized_views_for_rewriting_result() { } - public truncate_table_req_result( - TruncateTableResponse success, + public get_materialized_views_for_rewriting_result( + List success, MetaException o1) { this(); @@ -72317,17 +79001,18 @@ public truncate_table_req_result( /** * Performs a deep copy on other. */ - public truncate_table_req_result(truncate_table_req_result other) { + public get_materialized_views_for_rewriting_result(get_materialized_views_for_rewriting_result other) { if (other.isSetSuccess()) { - this.success = new TruncateTableResponse(other.success); + List __this__success = new ArrayList(other.success); + this.success = __this__success; } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public truncate_table_req_result deepCopy() { - return new truncate_table_req_result(this); + public get_materialized_views_for_rewriting_result deepCopy() { + return new get_materialized_views_for_rewriting_result(this); } @Override @@ -72336,11 +79021,26 @@ public void clear() { this.o1 = null; } - public TruncateTableResponse getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(TruncateTableResponse success) { + public void setSuccess(List success) { this.success = success; } @@ -72388,7 +79088,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((TruncateTableResponse)value); + setSuccess((List)value); } break; @@ -72434,12 +79134,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof truncate_table_req_result) - return this.equals((truncate_table_req_result)that); + if (that instanceof get_materialized_views_for_rewriting_result) + return this.equals((get_materialized_views_for_rewriting_result)that); return false; } - public boolean equals(truncate_table_req_result that) { + public boolean equals(get_materialized_views_for_rewriting_result that) { if (that == null) return false; @@ -72482,7 +79182,7 @@ public int hashCode() { } @Override - public int compareTo(truncate_table_req_result other) { + public int compareTo(get_materialized_views_for_rewriting_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -72526,7 +79226,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("truncate_table_req_result("); + StringBuilder sb = new StringBuilder("get_materialized_views_for_rewriting_result("); boolean first = true; sb.append("success:"); @@ -72551,9 +79251,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -72572,15 +79269,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class truncate_table_req_resultStandardSchemeFactory implements SchemeFactory { - public truncate_table_req_resultStandardScheme getScheme() { - return new truncate_table_req_resultStandardScheme(); + private static class get_materialized_views_for_rewriting_resultStandardSchemeFactory implements SchemeFactory { + public get_materialized_views_for_rewriting_resultStandardScheme getScheme() { + return new get_materialized_views_for_rewriting_resultStandardScheme(); } } - private static class truncate_table_req_resultStandardScheme extends StandardScheme { + private static class get_materialized_views_for_rewriting_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -72591,9 +79288,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_req_ } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TruncateTableResponse(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1418 = iprot.readListBegin(); + struct.success = new ArrayList(_list1418.size); + String _elem1419; + for (int _i1420 = 0; _i1420 < _list1418.size; ++_i1420) + { + _elem1419 = iprot.readString(); + struct.success.add(_elem1419); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -72617,13 +79323,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_req_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1421 : struct.success) + { + oprot.writeString(_iter1421); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -72637,16 +79350,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_req } - private static class truncate_table_req_resultTupleSchemeFactory implements SchemeFactory { - public truncate_table_req_resultTupleScheme getScheme() { - return new truncate_table_req_resultTupleScheme(); + private static class get_materialized_views_for_rewriting_resultTupleSchemeFactory implements SchemeFactory { + public get_materialized_views_for_rewriting_resultTupleScheme getScheme() { + return new get_materialized_views_for_rewriting_resultTupleScheme(); } } - private static class truncate_table_req_resultTupleScheme extends TupleScheme { + private static class get_materialized_views_for_rewriting_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -72657,7 +79370,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_req_ } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (String _iter1422 : struct.success) + { + oprot.writeString(_iter1422); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -72665,12 +79384,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_req_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new TruncateTableResponse(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list1423 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1423.size); + String _elem1424; + for (int _i1425 = 0; _i1425 < _list1423.size; ++_i1425) + { + _elem1424 = iprot.readString(); + struct.success.add(_elem1424); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -72683,25 +79410,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_req_r } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_meta_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DB_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("db_patterns", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_patterns", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TBL_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_types", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_tables_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_meta_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_meta_argsTupleSchemeFactory()); } - private String db_name; // required - private String pattern; // required + private String db_patterns; // required + private String tbl_patterns; // required + private List tbl_types; // 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 { - DB_NAME((short)1, "db_name"), - PATTERN((short)2, "pattern"); + DB_PATTERNS((short)1, "db_patterns"), + TBL_PATTERNS((short)2, "tbl_patterns"), + TBL_TYPES((short)3, "tbl_types"); private static final Map byName = new HashMap(); @@ -72716,10 +79446,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_req_r */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // PATTERN - return PATTERN; + case 1: // DB_PATTERNS + return DB_PATTERNS; + case 2: // TBL_PATTERNS + return TBL_PATTERNS; + case 3: // TBL_TYPES + return TBL_TYPES; default: return null; } @@ -72763,109 +79495,165 @@ public String getFieldName() { 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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DB_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("db_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TBL_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("tbl_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_TYPES, new org.apache.thrift.meta_data.FieldMetaData("tbl_types", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_args.class, metaDataMap); } - public get_tables_args() { + public get_table_meta_args() { } - public get_tables_args( - String db_name, - String pattern) + public get_table_meta_args( + String db_patterns, + String tbl_patterns, + List tbl_types) { this(); - this.db_name = db_name; - this.pattern = pattern; + this.db_patterns = db_patterns; + this.tbl_patterns = tbl_patterns; + this.tbl_types = tbl_types; } /** * Performs a deep copy on other. */ - public get_tables_args(get_tables_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public get_table_meta_args(get_table_meta_args other) { + if (other.isSetDb_patterns()) { + this.db_patterns = other.db_patterns; } - if (other.isSetPattern()) { - this.pattern = other.pattern; + if (other.isSetTbl_patterns()) { + this.tbl_patterns = other.tbl_patterns; + } + if (other.isSetTbl_types()) { + List __this__tbl_types = new ArrayList(other.tbl_types); + this.tbl_types = __this__tbl_types; } } - public get_tables_args deepCopy() { - return new get_tables_args(this); + public get_table_meta_args deepCopy() { + return new get_table_meta_args(this); } @Override public void clear() { - this.db_name = null; - this.pattern = null; + this.db_patterns = null; + this.tbl_patterns = null; + this.tbl_types = null; } - public String getDb_name() { - return this.db_name; + public String getDb_patterns() { + return this.db_patterns; } - public void setDb_name(String db_name) { - this.db_name = db_name; + public void setDb_patterns(String db_patterns) { + this.db_patterns = db_patterns; } - public void unsetDb_name() { - this.db_name = null; + public void unsetDb_patterns() { + this.db_patterns = null; } - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; + /** Returns true if field db_patterns is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_patterns() { + return this.db_patterns != null; } - public void setDb_nameIsSet(boolean value) { + public void setDb_patternsIsSet(boolean value) { if (!value) { - this.db_name = null; + this.db_patterns = null; } } - public String getPattern() { - return this.pattern; + public String getTbl_patterns() { + return this.tbl_patterns; } - public void setPattern(String pattern) { - this.pattern = pattern; + public void setTbl_patterns(String tbl_patterns) { + this.tbl_patterns = tbl_patterns; } - public void unsetPattern() { - this.pattern = null; + public void unsetTbl_patterns() { + this.tbl_patterns = null; } - /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ - public boolean isSetPattern() { - return this.pattern != null; + /** Returns true if field tbl_patterns is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_patterns() { + return this.tbl_patterns != null; } - public void setPatternIsSet(boolean value) { + public void setTbl_patternsIsSet(boolean value) { if (!value) { - this.pattern = null; + this.tbl_patterns = null; + } + } + + public int getTbl_typesSize() { + return (this.tbl_types == null) ? 0 : this.tbl_types.size(); + } + + public java.util.Iterator getTbl_typesIterator() { + return (this.tbl_types == null) ? null : this.tbl_types.iterator(); + } + + public void addToTbl_types(String elem) { + if (this.tbl_types == null) { + this.tbl_types = new ArrayList(); + } + this.tbl_types.add(elem); + } + + public List getTbl_types() { + return this.tbl_types; + } + + public void setTbl_types(List tbl_types) { + this.tbl_types = tbl_types; + } + + public void unsetTbl_types() { + this.tbl_types = null; + } + + /** Returns true if field tbl_types is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_types() { + return this.tbl_types != null; + } + + public void setTbl_typesIsSet(boolean value) { + if (!value) { + this.tbl_types = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case DB_PATTERNS: if (value == null) { - unsetDb_name(); + unsetDb_patterns(); } else { - setDb_name((String)value); + setDb_patterns((String)value); } break; - case PATTERN: + case TBL_PATTERNS: if (value == null) { - unsetPattern(); + unsetTbl_patterns(); } else { - setPattern((String)value); + setTbl_patterns((String)value); + } + break; + + case TBL_TYPES: + if (value == null) { + unsetTbl_types(); + } else { + setTbl_types((List)value); } break; @@ -72874,11 +79662,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case DB_PATTERNS: + return getDb_patterns(); - case PATTERN: - return getPattern(); + case TBL_PATTERNS: + return getTbl_patterns(); + + case TBL_TYPES: + return getTbl_types(); } throw new IllegalStateException(); @@ -72891,10 +79682,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case PATTERN: - return isSetPattern(); + case DB_PATTERNS: + return isSetDb_patterns(); + case TBL_PATTERNS: + return isSetTbl_patterns(); + case TBL_TYPES: + return isSetTbl_types(); } throw new IllegalStateException(); } @@ -72903,30 +79696,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_args) - return this.equals((get_tables_args)that); + if (that instanceof get_table_meta_args) + return this.equals((get_table_meta_args)that); return false; } - public boolean equals(get_tables_args that) { + public boolean equals(get_table_meta_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) + boolean this_present_db_patterns = true && this.isSetDb_patterns(); + boolean that_present_db_patterns = true && that.isSetDb_patterns(); + if (this_present_db_patterns || that_present_db_patterns) { + if (!(this_present_db_patterns && that_present_db_patterns)) return false; - if (!this.db_name.equals(that.db_name)) + if (!this.db_patterns.equals(that.db_patterns)) return false; } - boolean this_present_pattern = true && this.isSetPattern(); - boolean that_present_pattern = true && that.isSetPattern(); - if (this_present_pattern || that_present_pattern) { - if (!(this_present_pattern && that_present_pattern)) + boolean this_present_tbl_patterns = true && this.isSetTbl_patterns(); + boolean that_present_tbl_patterns = true && that.isSetTbl_patterns(); + if (this_present_tbl_patterns || that_present_tbl_patterns) { + if (!(this_present_tbl_patterns && that_present_tbl_patterns)) return false; - if (!this.pattern.equals(that.pattern)) + if (!this.tbl_patterns.equals(that.tbl_patterns)) + return false; + } + + boolean this_present_tbl_types = true && this.isSetTbl_types(); + boolean that_present_tbl_types = true && that.isSetTbl_types(); + if (this_present_tbl_types || that_present_tbl_types) { + if (!(this_present_tbl_types && that_present_tbl_types)) + return false; + if (!this.tbl_types.equals(that.tbl_types)) return false; } @@ -72937,43 +79739,58 @@ public boolean equals(get_tables_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); + boolean present_db_patterns = true && (isSetDb_patterns()); + list.add(present_db_patterns); + if (present_db_patterns) + list.add(db_patterns); - boolean present_pattern = true && (isSetPattern()); - list.add(present_pattern); - if (present_pattern) - list.add(pattern); + boolean present_tbl_patterns = true && (isSetTbl_patterns()); + list.add(present_tbl_patterns); + if (present_tbl_patterns) + list.add(tbl_patterns); + + boolean present_tbl_types = true && (isSetTbl_types()); + list.add(present_tbl_types); + if (present_tbl_types) + list.add(tbl_types); return list.hashCode(); } @Override - public int compareTo(get_tables_args other) { + public int compareTo(get_table_meta_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_patterns()).compareTo(other.isSetDb_patterns()); if (lastComparison != 0) { return lastComparison; } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (isSetDb_patterns()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_patterns, other.db_patterns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); + lastComparison = Boolean.valueOf(isSetTbl_patterns()).compareTo(other.isSetTbl_patterns()); if (lastComparison != 0) { return lastComparison; } - if (isSetPattern()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); + if (isSetTbl_patterns()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_patterns, other.tbl_patterns); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_types()).compareTo(other.isSetTbl_types()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_types()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_types, other.tbl_types); if (lastComparison != 0) { return lastComparison; } @@ -72995,22 +79812,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_args("); + StringBuilder sb = new StringBuilder("get_table_meta_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { + sb.append("db_patterns:"); + if (this.db_patterns == null) { sb.append("null"); } else { - sb.append(this.db_name); + sb.append(this.db_patterns); } first = false; if (!first) sb.append(", "); - sb.append("pattern:"); - if (this.pattern == null) { + sb.append("tbl_patterns:"); + if (this.tbl_patterns == null) { sb.append("null"); } else { - sb.append(this.pattern); + sb.append(this.tbl_patterns); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_types:"); + if (this.tbl_types == null) { + sb.append("null"); + } else { + sb.append(this.tbl_types); } first = false; sb.append(")"); @@ -73038,15 +79863,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_argsStandardSchemeFactory implements SchemeFactory { - public get_tables_argsStandardScheme getScheme() { - return new get_tables_argsStandardScheme(); + private static class get_table_meta_argsStandardSchemeFactory implements SchemeFactory { + public get_table_meta_argsStandardScheme getScheme() { + return new get_table_meta_argsStandardScheme(); } } - private static class get_tables_argsStandardScheme extends StandardScheme { + private static class get_table_meta_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -73056,18 +79881,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args str break; } switch (schemeField.id) { - case 1: // DB_NAME + case 1: // DB_PATTERNS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.db_patterns = iprot.readString(); + struct.setDb_patternsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // PATTERN + case 2: // TBL_PATTERNS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); + struct.tbl_patterns = iprot.readString(); + struct.setTbl_patternsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TBL_TYPES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1426 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list1426.size); + String _elem1427; + for (int _i1428 = 0; _i1428 < _list1426.size; ++_i1428) + { + _elem1427 = iprot.readString(); + struct.tbl_types.add(_elem1427); + } + iprot.readListEnd(); + } + struct.setTbl_typesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -73081,18 +79924,30 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); + if (struct.db_patterns != null) { + oprot.writeFieldBegin(DB_PATTERNS_FIELD_DESC); + oprot.writeString(struct.db_patterns); oprot.writeFieldEnd(); } - if (struct.pattern != null) { - oprot.writeFieldBegin(PATTERN_FIELD_DESC); - oprot.writeString(struct.pattern); + if (struct.tbl_patterns != null) { + oprot.writeFieldBegin(TBL_PATTERNS_FIELD_DESC); + oprot.writeString(struct.tbl_patterns); + oprot.writeFieldEnd(); + } + if (struct.tbl_types != null) { + oprot.writeFieldBegin(TBL_TYPES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_types.size())); + for (String _iter1429 : struct.tbl_types) + { + oprot.writeString(_iter1429); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -73101,63 +79956,88 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_args st } - private static class get_tables_argsTupleSchemeFactory implements SchemeFactory { - public get_tables_argsTupleScheme getScheme() { - return new get_tables_argsTupleScheme(); + private static class get_table_meta_argsTupleSchemeFactory implements SchemeFactory { + public get_table_meta_argsTupleScheme getScheme() { + return new get_table_meta_argsTupleScheme(); } } - private static class get_tables_argsTupleScheme extends TupleScheme { + private static class get_table_meta_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetDb_patterns()) { optionals.set(0); } - if (struct.isSetPattern()) { + if (struct.isSetTbl_patterns()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetTbl_types()) { + optionals.set(2); } - if (struct.isSetPattern()) { - oprot.writeString(struct.pattern); + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_patterns()) { + oprot.writeString(struct.db_patterns); + } + if (struct.isSetTbl_patterns()) { + oprot.writeString(struct.tbl_patterns); + } + if (struct.isSetTbl_types()) { + { + oprot.writeI32(struct.tbl_types.size()); + for (String _iter1430 : struct.tbl_types) + { + oprot.writeString(_iter1430); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.db_patterns = iprot.readString(); + struct.setDb_patternsIsSet(true); } if (incoming.get(1)) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); + struct.tbl_patterns = iprot.readString(); + struct.setTbl_patternsIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list1431 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list1431.size); + String _elem1432; + for (int _i1433 = 0; _i1433 < _list1431.size; ++_i1433) + { + _elem1432 = iprot.readString(); + struct.tbl_types.add(_elem1432); + } + } + struct.setTbl_typesIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_meta_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_tables_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_meta_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_meta_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -73227,18 +80107,18 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TableMeta.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_result.class, metaDataMap); } - public get_tables_result() { + public get_table_meta_result() { } - public get_tables_result( - List success, + public get_table_meta_result( + List success, MetaException o1) { this(); @@ -73249,9 +80129,12 @@ public get_tables_result( /** * Performs a deep copy on other. */ - public get_tables_result(get_tables_result other) { + public get_table_meta_result(get_table_meta_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(other.success.size()); + for (TableMeta other_element : other.success) { + __this__success.add(new TableMeta(other_element)); + } this.success = __this__success; } if (other.isSetO1()) { @@ -73259,8 +80142,8 @@ public get_tables_result(get_tables_result other) { } } - public get_tables_result deepCopy() { - return new get_tables_result(this); + public get_table_meta_result deepCopy() { + return new get_table_meta_result(this); } @Override @@ -73273,22 +80156,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(String elem) { + public void addToSuccess(TableMeta elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -73336,7 +80219,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -73382,12 +80265,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_result) - return this.equals((get_tables_result)that); + if (that instanceof get_table_meta_result) + return this.equals((get_table_meta_result)that); return false; } - public boolean equals(get_tables_result that) { + public boolean equals(get_table_meta_result that) { if (that == null) return false; @@ -73430,7 +80313,7 @@ public int hashCode() { } @Override - public int compareTo(get_tables_result other) { + public int compareTo(get_table_meta_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -73474,7 +80357,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_result("); + StringBuilder sb = new StringBuilder("get_table_meta_result("); boolean first = true; sb.append("success:"); @@ -73517,15 +80400,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_resultStandardSchemeFactory implements SchemeFactory { - public get_tables_resultStandardScheme getScheme() { - return new get_tables_resultStandardScheme(); + private static class get_table_meta_resultStandardSchemeFactory implements SchemeFactory { + public get_table_meta_resultStandardScheme getScheme() { + return new get_table_meta_resultStandardScheme(); } } - private static class get_tables_resultStandardScheme extends StandardScheme { + private static class get_table_meta_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -73538,13 +80421,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1322 = iprot.readListBegin(); - struct.success = new ArrayList(_list1322.size); - String _elem1323; - for (int _i1324 = 0; _i1324 < _list1322.size; ++_i1324) + org.apache.thrift.protocol.TList _list1434 = iprot.readListBegin(); + struct.success = new ArrayList(_list1434.size); + TableMeta _elem1435; + for (int _i1436 = 0; _i1436 < _list1434.size; ++_i1436) { - _elem1323 = iprot.readString(); - struct.success.add(_elem1323); + _elem1435 = new TableMeta(); + _elem1435.read(iprot); + struct.success.add(_elem1435); } iprot.readListEnd(); } @@ -73571,17 +80455,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1325 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (TableMeta _iter1437 : struct.success) { - oprot.writeString(_iter1325); + _iter1437.write(oprot); } oprot.writeListEnd(); } @@ -73598,16 +80482,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result } - private static class get_tables_resultTupleSchemeFactory implements SchemeFactory { - public get_tables_resultTupleScheme getScheme() { - return new get_tables_resultTupleScheme(); + private static class get_table_meta_resultTupleSchemeFactory implements SchemeFactory { + public get_table_meta_resultTupleScheme getScheme() { + return new get_table_meta_resultTupleScheme(); } } - private static class get_tables_resultTupleScheme extends TupleScheme { + private static class get_table_meta_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -73620,9 +80504,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1326 : struct.success) + for (TableMeta _iter1438 : struct.success) { - oprot.writeString(_iter1326); + _iter1438.write(oprot); } } } @@ -73632,18 +80516,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1327.size); - String _elem1328; - for (int _i1329 = 0; _i1329 < _list1327.size; ++_i1329) + org.apache.thrift.protocol.TList _list1439 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1439.size); + TableMeta _elem1440; + for (int _i1441 = 0; _i1441 < _list1439.size; ++_i1441) { - _elem1328 = iprot.readString(); - struct.success.add(_elem1328); + _elem1440 = new TableMeta(); + _elem1440.read(iprot); + struct.success.add(_elem1440); } } struct.setSuccessIsSet(true); @@ -73658,28 +80543,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_by_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_by_type_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_tables_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField TABLE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tableType", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_tables_by_type_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_by_type_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_all_tables_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_tables_argsTupleSchemeFactory()); } private String db_name; // required - private String pattern; // required - private String tableType; // 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 { - DB_NAME((short)1, "db_name"), - PATTERN((short)2, "pattern"), - TABLE_TYPE((short)3, "tableType"); + DB_NAME((short)1, "db_name"); private static final Map byName = new HashMap(); @@ -73696,10 +80575,6 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // DB_NAME return DB_NAME; - case 2: // PATTERN - return PATTERN; - case 3: // TABLE_TYPE - return TABLE_TYPE; default: return null; } @@ -73745,52 +80620,36 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TABLE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("tableType", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_by_type_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_args.class, metaDataMap); } - public get_tables_by_type_args() { + public get_all_tables_args() { } - public get_tables_by_type_args( - String db_name, - String pattern, - String tableType) + public get_all_tables_args( + String db_name) { this(); this.db_name = db_name; - this.pattern = pattern; - this.tableType = tableType; } /** * Performs a deep copy on other. */ - public get_tables_by_type_args(get_tables_by_type_args other) { + public get_all_tables_args(get_all_tables_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } - if (other.isSetPattern()) { - this.pattern = other.pattern; - } - if (other.isSetTableType()) { - this.tableType = other.tableType; - } } - public get_tables_by_type_args deepCopy() { - return new get_tables_by_type_args(this); + public get_all_tables_args deepCopy() { + return new get_all_tables_args(this); } @Override public void clear() { this.db_name = null; - this.pattern = null; - this.tableType = null; } public String getDb_name() { @@ -73816,52 +80675,6 @@ public void setDb_nameIsSet(boolean value) { } } - public String getPattern() { - return this.pattern; - } - - public void setPattern(String pattern) { - this.pattern = pattern; - } - - public void unsetPattern() { - this.pattern = null; - } - - /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ - public boolean isSetPattern() { - return this.pattern != null; - } - - public void setPatternIsSet(boolean value) { - if (!value) { - this.pattern = null; - } - } - - public String getTableType() { - return this.tableType; - } - - public void setTableType(String tableType) { - this.tableType = tableType; - } - - public void unsetTableType() { - this.tableType = null; - } - - /** Returns true if field tableType is set (has been assigned a value) and false otherwise */ - public boolean isSetTableType() { - return this.tableType != null; - } - - public void setTableTypeIsSet(boolean value) { - if (!value) { - this.tableType = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -73872,22 +80685,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PATTERN: - if (value == null) { - unsetPattern(); - } else { - setPattern((String)value); - } - break; - - case TABLE_TYPE: - if (value == null) { - unsetTableType(); - } else { - setTableType((String)value); - } - break; - } } @@ -73896,12 +80693,6 @@ public Object getFieldValue(_Fields field) { case DB_NAME: return getDb_name(); - case PATTERN: - return getPattern(); - - case TABLE_TYPE: - return getTableType(); - } throw new IllegalStateException(); } @@ -73915,10 +80706,6 @@ public boolean isSet(_Fields field) { switch (field) { case DB_NAME: return isSetDb_name(); - case PATTERN: - return isSetPattern(); - case TABLE_TYPE: - return isSetTableType(); } throw new IllegalStateException(); } @@ -73927,12 +80714,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_by_type_args) - return this.equals((get_tables_by_type_args)that); + if (that instanceof get_all_tables_args) + return this.equals((get_all_tables_args)that); return false; } - public boolean equals(get_tables_by_type_args that) { + public boolean equals(get_all_tables_args that) { if (that == null) return false; @@ -73945,24 +80732,6 @@ public boolean equals(get_tables_by_type_args that) { return false; } - boolean this_present_pattern = true && this.isSetPattern(); - boolean that_present_pattern = true && that.isSetPattern(); - if (this_present_pattern || that_present_pattern) { - if (!(this_present_pattern && that_present_pattern)) - return false; - if (!this.pattern.equals(that.pattern)) - return false; - } - - boolean this_present_tableType = true && this.isSetTableType(); - boolean that_present_tableType = true && that.isSetTableType(); - if (this_present_tableType || that_present_tableType) { - if (!(this_present_tableType && that_present_tableType)) - return false; - if (!this.tableType.equals(that.tableType)) - return false; - } - return true; } @@ -73975,21 +80744,11 @@ public int hashCode() { if (present_db_name) list.add(db_name); - boolean present_pattern = true && (isSetPattern()); - list.add(present_pattern); - if (present_pattern) - list.add(pattern); - - boolean present_tableType = true && (isSetTableType()); - list.add(present_tableType); - if (present_tableType) - list.add(tableType); - return list.hashCode(); } @Override - public int compareTo(get_tables_by_type_args other) { + public int compareTo(get_all_tables_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -74006,26 +80765,6 @@ public int compareTo(get_tables_by_type_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPattern()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTableType()).compareTo(other.isSetTableType()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTableType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, other.tableType); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -74043,7 +80782,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_by_type_args("); + StringBuilder sb = new StringBuilder("get_all_tables_args("); boolean first = true; sb.append("db_name:"); @@ -74053,22 +80792,6 @@ public String toString() { sb.append(this.db_name); } first = false; - if (!first) sb.append(", "); - sb.append("pattern:"); - if (this.pattern == null) { - sb.append("null"); - } else { - sb.append(this.pattern); - } - first = false; - if (!first) sb.append(", "); - sb.append("tableType:"); - if (this.tableType == null) { - sb.append("null"); - } else { - sb.append(this.tableType); - } - first = false; sb.append(")"); return sb.toString(); } @@ -74094,15 +80817,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_by_type_argsStandardSchemeFactory implements SchemeFactory { - public get_tables_by_type_argsStandardScheme getScheme() { - return new get_tables_by_type_argsStandardScheme(); + private static class get_all_tables_argsStandardSchemeFactory implements SchemeFactory { + public get_all_tables_argsStandardScheme getScheme() { + return new get_all_tables_argsStandardScheme(); } } - private static class get_tables_by_type_argsStandardScheme extends StandardScheme { + private static class get_all_tables_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -74120,22 +80843,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // PATTERN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLE_TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableType = iprot.readString(); - struct.setTableTypeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -74145,7 +80852,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -74154,86 +80861,56 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } - if (struct.pattern != null) { - oprot.writeFieldBegin(PATTERN_FIELD_DESC); - oprot.writeString(struct.pattern); - oprot.writeFieldEnd(); - } - if (struct.tableType != null) { - oprot.writeFieldBegin(TABLE_TYPE_FIELD_DESC); - oprot.writeString(struct.tableType); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_tables_by_type_argsTupleSchemeFactory implements SchemeFactory { - public get_tables_by_type_argsTupleScheme getScheme() { - return new get_tables_by_type_argsTupleScheme(); + private static class get_all_tables_argsTupleSchemeFactory implements SchemeFactory { + public get_all_tables_argsTupleScheme getScheme() { + return new get_all_tables_argsTupleScheme(); } } - private static class get_tables_by_type_argsTupleScheme extends TupleScheme { + private static class get_all_tables_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetPattern()) { - optionals.set(1); - } - if (struct.isSetTableType()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 1); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } - if (struct.isSetPattern()) { - oprot.writeString(struct.pattern); - } - if (struct.isSetTableType()) { - oprot.writeString(struct.tableType); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); } - if (incoming.get(1)) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); - } - if (incoming.get(2)) { - struct.tableType = iprot.readString(); - struct.setTableTypeIsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_by_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_by_type_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_tables_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_tables_by_type_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_by_type_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_all_tables_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_tables_resultTupleSchemeFactory()); } private List success; // required @@ -74310,13 +80987,13 @@ public String getFieldName() { tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_by_type_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_result.class, metaDataMap); } - public get_tables_by_type_result() { + public get_all_tables_result() { } - public get_tables_by_type_result( + public get_all_tables_result( List success, MetaException o1) { @@ -74328,7 +81005,7 @@ public get_tables_by_type_result( /** * Performs a deep copy on other. */ - public get_tables_by_type_result(get_tables_by_type_result other) { + public get_all_tables_result(get_all_tables_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success); this.success = __this__success; @@ -74338,8 +81015,8 @@ public get_tables_by_type_result(get_tables_by_type_result other) { } } - public get_tables_by_type_result deepCopy() { - return new get_tables_by_type_result(this); + public get_all_tables_result deepCopy() { + return new get_all_tables_result(this); } @Override @@ -74461,12 +81138,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_by_type_result) - return this.equals((get_tables_by_type_result)that); + if (that instanceof get_all_tables_result) + return this.equals((get_all_tables_result)that); return false; } - public boolean equals(get_tables_by_type_result that) { + public boolean equals(get_all_tables_result that) { if (that == null) return false; @@ -74509,7 +81186,7 @@ public int hashCode() { } @Override - public int compareTo(get_tables_by_type_result other) { + public int compareTo(get_all_tables_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -74553,7 +81230,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_by_type_result("); + StringBuilder sb = new StringBuilder("get_all_tables_result("); boolean first = true; sb.append("success:"); @@ -74596,15 +81273,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_by_type_resultStandardSchemeFactory implements SchemeFactory { - public get_tables_by_type_resultStandardScheme getScheme() { - return new get_tables_by_type_resultStandardScheme(); + private static class get_all_tables_resultStandardSchemeFactory implements SchemeFactory { + public get_all_tables_resultStandardScheme getScheme() { + return new get_all_tables_resultStandardScheme(); } } - private static class get_tables_by_type_resultStandardScheme extends StandardScheme { + private static class get_all_tables_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -74617,13 +81294,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1330 = iprot.readListBegin(); - struct.success = new ArrayList(_list1330.size); - String _elem1331; - for (int _i1332 = 0; _i1332 < _list1330.size; ++_i1332) + org.apache.thrift.protocol.TList _list1442 = iprot.readListBegin(); + struct.success = new ArrayList(_list1442.size); + String _elem1443; + for (int _i1444 = 0; _i1444 < _list1442.size; ++_i1444) { - _elem1331 = iprot.readString(); - struct.success.add(_elem1331); + _elem1443 = iprot.readString(); + struct.success.add(_elem1443); } iprot.readListEnd(); } @@ -74650,7 +81327,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -74658,9 +81335,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1333 : struct.success) + for (String _iter1445 : struct.success) { - oprot.writeString(_iter1333); + oprot.writeString(_iter1445); } oprot.writeListEnd(); } @@ -74677,16 +81354,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type } - private static class get_tables_by_type_resultTupleSchemeFactory implements SchemeFactory { - public get_tables_by_type_resultTupleScheme getScheme() { - return new get_tables_by_type_resultTupleScheme(); + private static class get_all_tables_resultTupleSchemeFactory implements SchemeFactory { + public get_all_tables_resultTupleScheme getScheme() { + return new get_all_tables_resultTupleScheme(); } } - private static class get_tables_by_type_resultTupleScheme extends TupleScheme { + private static class get_all_tables_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -74699,9 +81376,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1334 : struct.success) + for (String _iter1446 : struct.success) { - oprot.writeString(_iter1334); + oprot.writeString(_iter1446); } } } @@ -74711,18 +81388,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1335.size); - String _elem1336; - for (int _i1337 = 0; _i1337 < _list1335.size; ++_i1337) + org.apache.thrift.protocol.TList _list1447 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1447.size); + String _elem1448; + for (int _i1449 = 0; _i1449 < _list1447.size; ++_i1449) { - _elem1336 = iprot.readString(); - struct.success.add(_elem1336); + _elem1448 = iprot.readString(); + struct.success.add(_elem1448); } } struct.setSuccessIsSet(true); @@ -74737,20 +81414,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_materialized_view_objects_for_rewriting_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_materialized_view_objects_for_rewriting_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_args"); + 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)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_all_materialized_view_objects_for_rewriting_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_all_materialized_view_objects_for_rewriting_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_argsTupleSchemeFactory()); } + private String dbname; // required + private String tbl_name; // 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 { -; + DBNAME((short)1, "dbname"), + TBL_NAME((short)2, "tbl_name"); private static final Map byName = new HashMap(); @@ -74765,6 +81447,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // DBNAME + return DBNAME; + case 2: // TBL_NAME + return TBL_NAME; default: return null; } @@ -74803,37 +81489,128 @@ 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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_materialized_view_objects_for_rewriting_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_args.class, metaDataMap); } - public get_all_materialized_view_objects_for_rewriting_args() { + public get_table_args() { + } + + public get_table_args( + String dbname, + String tbl_name) + { + this(); + this.dbname = dbname; + this.tbl_name = tbl_name; } /** * Performs a deep copy on other. */ - public get_all_materialized_view_objects_for_rewriting_args(get_all_materialized_view_objects_for_rewriting_args other) { + public get_table_args(get_table_args other) { + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } } - public get_all_materialized_view_objects_for_rewriting_args deepCopy() { - return new get_all_materialized_view_objects_for_rewriting_args(this); + public get_table_args deepCopy() { + return new get_table_args(this); } @Override public void clear() { + this.dbname = null; + this.tbl_name = 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 getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case DBNAME: + if (value == null) { + unsetDbname(); + } else { + setDbname((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case DBNAME: + return getDbname(); + + case TBL_NAME: + return getTbl_name(); + } throw new IllegalStateException(); } @@ -74845,6 +81622,10 @@ public boolean isSet(_Fields field) { } switch (field) { + case DBNAME: + return isSetDbname(); + case TBL_NAME: + return isSetTbl_name(); } throw new IllegalStateException(); } @@ -74853,15 +81634,33 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_all_materialized_view_objects_for_rewriting_args) - return this.equals((get_all_materialized_view_objects_for_rewriting_args)that); + if (that instanceof get_table_args) + return this.equals((get_table_args)that); return false; } - public boolean equals(get_all_materialized_view_objects_for_rewriting_args that) { + public boolean equals(get_table_args that) { if (that == null) 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_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + return true; } @@ -74869,17 +81668,47 @@ public boolean equals(get_all_materialized_view_objects_for_rewriting_args that) public int hashCode() { List list = new ArrayList(); + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + return list.hashCode(); } @Override - public int compareTo(get_all_materialized_view_objects_for_rewriting_args other) { + public int compareTo(get_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + 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(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -74897,9 +81726,24 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_all_materialized_view_objects_for_rewriting_args("); + StringBuilder sb = new StringBuilder("get_table_args("); boolean first = true; + sb.append("dbname:"); + if (this.dbname == null) { + sb.append("null"); + } else { + sb.append(this.dbname); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; sb.append(")"); return sb.toString(); } @@ -74925,15 +81769,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_all_materialized_view_objects_for_rewriting_argsStandardSchemeFactory implements SchemeFactory { - public get_all_materialized_view_objects_for_rewriting_argsStandardScheme getScheme() { - return new get_all_materialized_view_objects_for_rewriting_argsStandardScheme(); + private static class get_table_argsStandardSchemeFactory implements SchemeFactory { + public get_table_argsStandardScheme getScheme() { + return new get_table_argsStandardScheme(); } } - private static class get_all_materialized_view_objects_for_rewriting_argsStandardScheme extends StandardScheme { + private static class get_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialized_view_objects_for_rewriting_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -74943,6 +81787,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialize break; } switch (schemeField.id) { + case 1: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -74952,56 +81812,92 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialize struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_materialized_view_objects_for_rewriting_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_all_materialized_view_objects_for_rewriting_argsTupleSchemeFactory implements SchemeFactory { - public get_all_materialized_view_objects_for_rewriting_argsTupleScheme getScheme() { - return new get_all_materialized_view_objects_for_rewriting_argsTupleScheme(); + private static class get_table_argsTupleSchemeFactory implements SchemeFactory { + public get_table_argsTupleScheme getScheme() { + return new get_table_argsTupleScheme(); } } - private static class get_all_materialized_view_objects_for_rewriting_argsTupleScheme extends TupleScheme { + private static class get_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_all_materialized_view_objects_for_rewriting_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetDbname()) { + optionals.set(0); + } + if (struct.isSetTbl_name()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_all_materialized_view_objects_for_rewriting_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_materialized_view_objects_for_rewriting_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_materialized_view_objects_for_rewriting_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_all_materialized_view_objects_for_rewriting_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_all_materialized_view_objects_for_rewriting_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_resultTupleSchemeFactory()); } - private List
success; // required + private Table success; // required private MetaException o1; // required + private NoSuchObjectException o2; // 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 { SUCCESS((short)0, "success"), - O1((short)1, "o1"); + O1((short)1, "o1"), + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -75020,6 +81916,8 @@ public static _Fields findByThriftId(int fieldId) { return SUCCESS; case 1: // O1 return O1; + case 2: // O2 + return O2; default: return null; } @@ -75064,72 +81962,60 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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, Table.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_materialized_view_objects_for_rewriting_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_result.class, metaDataMap); } - public get_all_materialized_view_objects_for_rewriting_result() { + public get_table_result() { } - public get_all_materialized_view_objects_for_rewriting_result( - List
success, - MetaException o1) + public get_table_result( + Table success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; this.o1 = o1; + this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_all_materialized_view_objects_for_rewriting_result(get_all_materialized_view_objects_for_rewriting_result other) { + public get_table_result(get_table_result other) { if (other.isSetSuccess()) { - List
__this__success = new ArrayList
(other.success.size()); - for (Table other_element : other.success) { - __this__success.add(new Table(other_element)); - } - this.success = __this__success; + this.success = new Table(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } + if (other.isSetO2()) { + this.o2 = new NoSuchObjectException(other.o2); + } } - public get_all_materialized_view_objects_for_rewriting_result deepCopy() { - return new get_all_materialized_view_objects_for_rewriting_result(this); + public get_table_result deepCopy() { + return new get_table_result(this); } @Override public void clear() { this.success = null; this.o1 = null; + this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator
getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(Table elem) { - if (this.success == null) { - this.success = new ArrayList
(); - } - this.success.add(elem); - } - - public List
getSuccess() { + public Table getSuccess() { return this.success; } - public void setSuccess(List
success) { + public void setSuccess(Table success) { this.success = success; } @@ -75171,13 +82057,36 @@ public void setO1IsSet(boolean value) { } } + public NoSuchObjectException getO2() { + return this.o2; + } + + public void setO2(NoSuchObjectException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List
)value); + setSuccess((Table)value); } break; @@ -75189,6 +82098,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((NoSuchObjectException)value); + } + break; + } } @@ -75200,6 +82117,9 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); + case O2: + return getO2(); + } throw new IllegalStateException(); } @@ -75215,6 +82135,8 @@ public boolean isSet(_Fields field) { return isSetSuccess(); case O1: return isSetO1(); + case O2: + return isSetO2(); } throw new IllegalStateException(); } @@ -75223,12 +82145,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_all_materialized_view_objects_for_rewriting_result) - return this.equals((get_all_materialized_view_objects_for_rewriting_result)that); + if (that instanceof get_table_result) + return this.equals((get_table_result)that); return false; } - public boolean equals(get_all_materialized_view_objects_for_rewriting_result that) { + public boolean equals(get_table_result that) { if (that == null) return false; @@ -75250,6 +82172,15 @@ public boolean equals(get_all_materialized_view_objects_for_rewriting_result tha return false; } + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + return true; } @@ -75267,11 +82198,16 @@ public int hashCode() { if (present_o1) list.add(o1); + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + return list.hashCode(); } @Override - public int compareTo(get_all_materialized_view_objects_for_rewriting_result other) { + public int compareTo(get_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -75298,6 +82234,16 @@ public int compareTo(get_all_materialized_view_objects_for_rewriting_result othe return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -75315,7 +82261,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_all_materialized_view_objects_for_rewriting_result("); + StringBuilder sb = new StringBuilder("get_table_result("); boolean first = true; sb.append("success:"); @@ -75333,6 +82279,14 @@ public String toString() { sb.append(this.o1); } first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; sb.append(")"); return sb.toString(); } @@ -75340,6 +82294,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -75358,15 +82315,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_all_materialized_view_objects_for_rewriting_resultStandardSchemeFactory implements SchemeFactory { - public get_all_materialized_view_objects_for_rewriting_resultStandardScheme getScheme() { - return new get_all_materialized_view_objects_for_rewriting_resultStandardScheme(); + private static class get_table_resultStandardSchemeFactory implements SchemeFactory { + public get_table_resultStandardScheme getScheme() { + return new get_table_resultStandardScheme(); } } - private static class get_all_materialized_view_objects_for_rewriting_resultStandardScheme extends StandardScheme { + private static class get_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialized_view_objects_for_rewriting_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -75377,19 +82334,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialize } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1338 = iprot.readListBegin(); - struct.success = new ArrayList
(_list1338.size); - Table _elem1339; - for (int _i1340 = 0; _i1340 < _list1338.size; ++_i1340) - { - _elem1339 = new Table(); - _elem1339.read(iprot); - struct.success.add(_elem1339); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Table(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -75404,6 +82351,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialize org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new NoSuchObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -75413,20 +82369,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialize struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_materialized_view_objects_for_rewriting_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter1341 : struct.success) - { - _iter1341.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -75434,22 +82383,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_materializ struct.o1.write(oprot); oprot.writeFieldEnd(); } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_all_materialized_view_objects_for_rewriting_resultTupleSchemeFactory implements SchemeFactory { - public get_all_materialized_view_objects_for_rewriting_resultTupleScheme getScheme() { - return new get_all_materialized_view_objects_for_rewriting_resultTupleScheme(); + private static class get_table_resultTupleSchemeFactory implements SchemeFactory { + public get_table_resultTupleScheme getScheme() { + return new get_table_resultTupleScheme(); } } - private static class get_all_materialized_view_objects_for_rewriting_resultTupleScheme extends TupleScheme { + private static class get_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_all_materialized_view_objects_for_rewriting_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -75458,37 +82412,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_materialize if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Table _iter1342 : struct.success) - { - _iter1342.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_all_materialized_view_objects_for_rewriting_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1343.size); - Table _elem1344; - for (int _i1345 = 0; _i1345 < _list1343.size; ++_i1345) - { - _elem1344 = new Table(); - _elem1344.read(iprot); - struct.success.add(_elem1344); - } - } + struct.success = new Table(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -75496,27 +82441,35 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_materialized struct.o1.read(iprot); struct.setO1IsSet(true); } + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialized_views_for_rewriting_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (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)1); + private static final org.apache.thrift.protocol.TField TBL_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_names", org.apache.thrift.protocol.TType.LIST, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_materialized_views_for_rewriting_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_materialized_views_for_rewriting_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_objects_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_argsTupleSchemeFactory()); } - private String db_name; // required + private String dbname; // required + private List tbl_names; // 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 { - DB_NAME((short)1, "db_name"); + DBNAME((short)1, "dbname"), + TBL_NAMES((short)2, "tbl_names"); private static final Map byName = new HashMap(); @@ -75531,8 +82484,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_materialized */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; + case 1: // DBNAME + return DBNAME; + case 2: // TBL_NAMES + return TBL_NAMES; default: return null; } @@ -75576,70 +82531,126 @@ public String getFieldName() { 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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAMES, new org.apache.thrift.meta_data.FieldMetaData("tbl_names", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialized_views_for_rewriting_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_args.class, metaDataMap); } - public get_materialized_views_for_rewriting_args() { + public get_table_objects_by_name_args() { } - public get_materialized_views_for_rewriting_args( - String db_name) + public get_table_objects_by_name_args( + String dbname, + List tbl_names) { this(); - this.db_name = db_name; + this.dbname = dbname; + this.tbl_names = tbl_names; } /** * Performs a deep copy on other. */ - public get_materialized_views_for_rewriting_args(get_materialized_views_for_rewriting_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public get_table_objects_by_name_args(get_table_objects_by_name_args other) { + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetTbl_names()) { + List __this__tbl_names = new ArrayList(other.tbl_names); + this.tbl_names = __this__tbl_names; } } - public get_materialized_views_for_rewriting_args deepCopy() { - return new get_materialized_views_for_rewriting_args(this); + public get_table_objects_by_name_args deepCopy() { + return new get_table_objects_by_name_args(this); } @Override public void clear() { - this.db_name = null; + this.dbname = null; + this.tbl_names = null; } - public String getDb_name() { - return this.db_name; + public String getDbname() { + return this.dbname; } - public void setDb_name(String db_name) { - this.db_name = db_name; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetDb_name() { - this.db_name = null; + public void unsetDbname() { + this.dbname = null; } - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != 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 setDb_nameIsSet(boolean value) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.db_name = null; + this.dbname = null; + } + } + + public int getTbl_namesSize() { + return (this.tbl_names == null) ? 0 : this.tbl_names.size(); + } + + public java.util.Iterator getTbl_namesIterator() { + return (this.tbl_names == null) ? null : this.tbl_names.iterator(); + } + + public void addToTbl_names(String elem) { + if (this.tbl_names == null) { + this.tbl_names = new ArrayList(); + } + this.tbl_names.add(elem); + } + + public List getTbl_names() { + return this.tbl_names; + } + + public void setTbl_names(List tbl_names) { + this.tbl_names = tbl_names; + } + + public void unsetTbl_names() { + this.tbl_names = null; + } + + /** Returns true if field tbl_names is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_names() { + return this.tbl_names != null; + } + + public void setTbl_namesIsSet(boolean value) { + if (!value) { + this.tbl_names = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case DBNAME: if (value == null) { - unsetDb_name(); + unsetDbname(); } else { - setDb_name((String)value); + setDbname((String)value); + } + break; + + case TBL_NAMES: + if (value == null) { + unsetTbl_names(); + } else { + setTbl_names((List)value); } break; @@ -75648,8 +82659,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case DBNAME: + return getDbname(); + + case TBL_NAMES: + return getTbl_names(); } throw new IllegalStateException(); @@ -75662,8 +82676,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); + case DBNAME: + return isSetDbname(); + case TBL_NAMES: + return isSetTbl_names(); } throw new IllegalStateException(); } @@ -75672,21 +82688,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_materialized_views_for_rewriting_args) - return this.equals((get_materialized_views_for_rewriting_args)that); + if (that instanceof get_table_objects_by_name_args) + return this.equals((get_table_objects_by_name_args)that); return false; } - public boolean equals(get_materialized_views_for_rewriting_args that) { + public boolean equals(get_table_objects_by_name_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) + 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.db_name.equals(that.db_name)) + if (!this.dbname.equals(that.dbname)) + return false; + } + + boolean this_present_tbl_names = true && this.isSetTbl_names(); + boolean that_present_tbl_names = true && that.isSetTbl_names(); + if (this_present_tbl_names || that_present_tbl_names) { + if (!(this_present_tbl_names && that_present_tbl_names)) + return false; + if (!this.tbl_names.equals(that.tbl_names)) return false; } @@ -75697,28 +82722,43 @@ public boolean equals(get_materialized_views_for_rewriting_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_tbl_names = true && (isSetTbl_names()); + list.add(present_tbl_names); + if (present_tbl_names) + list.add(tbl_names); return list.hashCode(); } @Override - public int compareTo(get_materialized_views_for_rewriting_args other) { + public int compareTo(get_table_objects_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_names()).compareTo(other.isSetTbl_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_names, other.tbl_names); if (lastComparison != 0) { return lastComparison; } @@ -75740,14 +82780,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_materialized_views_for_rewriting_args("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.db_name); + sb.append(this.dbname); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_names:"); + if (this.tbl_names == null) { + sb.append("null"); + } else { + sb.append(this.tbl_names); } first = false; sb.append(")"); @@ -75775,15 +82823,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_materialized_views_for_rewriting_argsStandardSchemeFactory implements SchemeFactory { - public get_materialized_views_for_rewriting_argsStandardScheme getScheme() { - return new get_materialized_views_for_rewriting_argsStandardScheme(); + private static class get_table_objects_by_name_argsStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_argsStandardScheme getScheme() { + return new get_table_objects_by_name_argsStandardScheme(); } } - private static class get_materialized_views_for_rewriting_argsStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -75793,10 +82841,28 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi break; } switch (schemeField.id) { - case 1: // DB_NAME + case 1: // DBNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1450 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1450.size); + String _elem1451; + for (int _i1452 = 0; _i1452 < _list1450.size; ++_i1452) + { + _elem1451 = iprot.readString(); + struct.tbl_names.add(_elem1451); + } + iprot.readListEnd(); + } + struct.setTbl_namesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -75810,13 +82876,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.tbl_names != null) { + oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); + for (String _iter1453 : struct.tbl_names) + { + oprot.writeString(_iter1453); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -75825,59 +82903,81 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_v } - private static class get_materialized_views_for_rewriting_argsTupleSchemeFactory implements SchemeFactory { - public get_materialized_views_for_rewriting_argsTupleScheme getScheme() { - return new get_materialized_views_for_rewriting_argsTupleScheme(); + private static class get_table_objects_by_name_argsTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_argsTupleScheme getScheme() { + return new get_table_objects_by_name_argsTupleScheme(); } } - private static class get_materialized_views_for_rewriting_argsTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetDbname()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetTbl_names()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetTbl_names()) { + { + oprot.writeI32(struct.tbl_names.size()); + for (String _iter1454 : struct.tbl_names) + { + oprot.writeString(_iter1454); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(1)) { + { + org.apache.thrift.protocol.TList _list1455 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1455.size); + String _elem1456; + for (int _i1457 = 0; _i1457 < _list1455.size; ++_i1457) + { + _elem1456 = iprot.readString(); + struct.tbl_names.add(_elem1456); + } + } + struct.setTbl_namesIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialized_views_for_rewriting_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); - private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_materialized_views_for_rewriting_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_materialized_views_for_rewriting_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_objects_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_resultTupleSchemeFactory()); } - private List success; // required - private MetaException o1; // required + private List
success; // 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 { - SUCCESS((short)0, "success"), - O1((short)1, "o1"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -75894,8 +82994,6 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O1 - return O1; default: return null; } @@ -75941,68 +83039,63 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialized_views_for_rewriting_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_result.class, metaDataMap); } - public get_materialized_views_for_rewriting_result() { + public get_table_objects_by_name_result() { } - public get_materialized_views_for_rewriting_result( - List success, - MetaException o1) + public get_table_objects_by_name_result( + List
success) { this(); this.success = success; - this.o1 = o1; } /** * Performs a deep copy on other. */ - public get_materialized_views_for_rewriting_result(get_materialized_views_for_rewriting_result other) { + public get_table_objects_by_name_result(get_table_objects_by_name_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List
__this__success = new ArrayList
(other.success.size()); + for (Table other_element : other.success) { + __this__success.add(new Table(other_element)); + } this.success = __this__success; } - if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); - } } - public get_materialized_views_for_rewriting_result deepCopy() { - return new get_materialized_views_for_rewriting_result(this); + public get_table_objects_by_name_result deepCopy() { + return new get_table_objects_by_name_result(this); } @Override public void clear() { this.success = null; - this.o1 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator
getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(String elem) { + public void addToSuccess(Table elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList
(); } this.success.add(elem); } - public List getSuccess() { + public List
getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List
success) { this.success = success; } @@ -76021,44 +83114,13 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { - return this.o1; - } - - public void setO1(MetaException o1) { - this.o1 = o1; - } - - public void unsetO1() { - this.o1 = null; - } - - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; - } - - public void setO1IsSet(boolean value) { - if (!value) { - this.o1 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((MetaException)value); + setSuccess((List
)value); } break; @@ -76070,9 +83132,6 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); - case O1: - return getO1(); - } throw new IllegalStateException(); } @@ -76086,8 +83145,6 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); - case O1: - return isSetO1(); } throw new IllegalStateException(); } @@ -76096,12 +83153,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_materialized_views_for_rewriting_result) - return this.equals((get_materialized_views_for_rewriting_result)that); + if (that instanceof get_table_objects_by_name_result) + return this.equals((get_table_objects_by_name_result)that); return false; } - public boolean equals(get_materialized_views_for_rewriting_result that) { + public boolean equals(get_table_objects_by_name_result that) { if (that == null) return false; @@ -76114,15 +83171,6 @@ public boolean equals(get_materialized_views_for_rewriting_result that) { return false; } - boolean this_present_o1 = true && this.isSetO1(); - boolean that_present_o1 = true && that.isSetO1(); - if (this_present_o1 || that_present_o1) { - if (!(this_present_o1 && that_present_o1)) - return false; - if (!this.o1.equals(that.o1)) - return false; - } - return true; } @@ -76135,16 +83183,11 @@ public int hashCode() { if (present_success) list.add(success); - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); - return list.hashCode(); } @Override - public int compareTo(get_materialized_views_for_rewriting_result other) { + public int compareTo(get_table_objects_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -76161,16 +83204,6 @@ public int compareTo(get_materialized_views_for_rewriting_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -76188,7 +83221,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_materialized_views_for_rewriting_result("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_result("); boolean first = true; sb.append("success:"); @@ -76198,14 +83231,6 @@ public String toString() { sb.append(this.success); } first = false; - if (!first) sb.append(", "); - sb.append("o1:"); - if (this.o1 == null) { - sb.append("null"); - } else { - sb.append(this.o1); - } - first = false; sb.append(")"); return sb.toString(); } @@ -76231,15 +83256,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_materialized_views_for_rewriting_resultStandardSchemeFactory implements SchemeFactory { - public get_materialized_views_for_rewriting_resultStandardScheme getScheme() { - return new get_materialized_views_for_rewriting_resultStandardScheme(); + private static class get_table_objects_by_name_resultStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_resultStandardScheme getScheme() { + return new get_table_objects_by_name_resultStandardScheme(); } } - private static class get_materialized_views_for_rewriting_resultStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -76252,13 +83277,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1346 = iprot.readListBegin(); - struct.success = new ArrayList(_list1346.size); - String _elem1347; - for (int _i1348 = 0; _i1348 < _list1346.size; ++_i1348) + org.apache.thrift.protocol.TList _list1458 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1458.size); + Table _elem1459; + for (int _i1460 = 0; _i1460 < _list1458.size; ++_i1460) { - _elem1347 = iprot.readString(); - struct.success.add(_elem1347); + _elem1459 = new Table(); + _elem1459.read(iprot); + struct.success.add(_elem1459); } iprot.readListEnd(); } @@ -76267,15 +83293,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -76285,115 +83302,94 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1349 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Table _iter1461 : struct.success) { - oprot.writeString(_iter1349); + _iter1461.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } - if (struct.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_materialized_views_for_rewriting_resultTupleSchemeFactory implements SchemeFactory { - public get_materialized_views_for_rewriting_resultTupleScheme getScheme() { - return new get_materialized_views_for_rewriting_resultTupleScheme(); + private static class get_table_objects_by_name_resultTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_resultTupleScheme getScheme() { + return new get_table_objects_by_name_resultTupleScheme(); } } - private static class get_materialized_views_for_rewriting_resultTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO1()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1350 : struct.success) + for (Table _iter1462 : struct.success) { - oprot.writeString(_iter1350); + _iter1462.write(oprot); } } } - if (struct.isSetO1()) { - struct.o1.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1351.size); - String _elem1352; - for (int _i1353 = 0; _i1353 < _list1351.size; ++_i1353) + org.apache.thrift.protocol.TList _list1463 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list1463.size); + Table _elem1464; + for (int _i1465 = 0; _i1465 < _list1463.size; ++_i1465) { - _elem1352 = iprot.readString(); - struct.success.add(_elem1352); + _elem1464 = new Table(); + _elem1464.read(iprot); + struct.success.add(_elem1464); } } struct.setSuccessIsSet(true); } - if (incoming.get(1)) { - struct.o1 = new MetaException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_meta_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_ext_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_ext_args"); - private static final org.apache.thrift.protocol.TField DB_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("db_patterns", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_patterns", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField TBL_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_types", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_meta_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_meta_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_ext_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_ext_argsTupleSchemeFactory()); } - private String db_patterns; // required - private String tbl_patterns; // required - private List tbl_types; // required + private GetTablesExtRequest req; // 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 { - DB_PATTERNS((short)1, "db_patterns"), - TBL_PATTERNS((short)2, "tbl_patterns"), - TBL_TYPES((short)3, "tbl_types"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -76408,12 +83404,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_vie */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_PATTERNS - return DB_PATTERNS; - case 2: // TBL_PATTERNS - return TBL_PATTERNS; - case 3: // TBL_TYPES - return TBL_TYPES; + case 1: // REQ + return REQ; default: return null; } @@ -76457,165 +83449,70 @@ public String getFieldName() { 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.DB_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("db_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("tbl_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_TYPES, new org.apache.thrift.meta_data.FieldMetaData("tbl_types", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesExtRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_ext_args.class, metaDataMap); } - public get_table_meta_args() { + public get_tables_ext_args() { } - public get_table_meta_args( - String db_patterns, - String tbl_patterns, - List tbl_types) + public get_tables_ext_args( + GetTablesExtRequest req) { this(); - this.db_patterns = db_patterns; - this.tbl_patterns = tbl_patterns; - this.tbl_types = tbl_types; + this.req = req; } /** * Performs a deep copy on other. */ - public get_table_meta_args(get_table_meta_args other) { - if (other.isSetDb_patterns()) { - this.db_patterns = other.db_patterns; - } - if (other.isSetTbl_patterns()) { - this.tbl_patterns = other.tbl_patterns; - } - if (other.isSetTbl_types()) { - List __this__tbl_types = new ArrayList(other.tbl_types); - this.tbl_types = __this__tbl_types; + public get_tables_ext_args(get_tables_ext_args other) { + if (other.isSetReq()) { + this.req = new GetTablesExtRequest(other.req); } } - public get_table_meta_args deepCopy() { - return new get_table_meta_args(this); + public get_tables_ext_args deepCopy() { + return new get_tables_ext_args(this); } @Override public void clear() { - this.db_patterns = null; - this.tbl_patterns = null; - this.tbl_types = null; - } - - public String getDb_patterns() { - return this.db_patterns; - } - - public void setDb_patterns(String db_patterns) { - this.db_patterns = db_patterns; - } - - public void unsetDb_patterns() { - this.db_patterns = null; - } - - /** Returns true if field db_patterns is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_patterns() { - return this.db_patterns != null; - } - - public void setDb_patternsIsSet(boolean value) { - if (!value) { - this.db_patterns = null; - } - } - - public String getTbl_patterns() { - return this.tbl_patterns; - } - - public void setTbl_patterns(String tbl_patterns) { - this.tbl_patterns = tbl_patterns; - } - - public void unsetTbl_patterns() { - this.tbl_patterns = null; - } - - /** Returns true if field tbl_patterns is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_patterns() { - return this.tbl_patterns != null; - } - - public void setTbl_patternsIsSet(boolean value) { - if (!value) { - this.tbl_patterns = null; - } - } - - public int getTbl_typesSize() { - return (this.tbl_types == null) ? 0 : this.tbl_types.size(); - } - - public java.util.Iterator getTbl_typesIterator() { - return (this.tbl_types == null) ? null : this.tbl_types.iterator(); - } - - public void addToTbl_types(String elem) { - if (this.tbl_types == null) { - this.tbl_types = new ArrayList(); - } - this.tbl_types.add(elem); + this.req = null; } - public List getTbl_types() { - return this.tbl_types; + public GetTablesExtRequest getReq() { + return this.req; } - public void setTbl_types(List tbl_types) { - this.tbl_types = tbl_types; + public void setReq(GetTablesExtRequest req) { + this.req = req; } - public void unsetTbl_types() { - this.tbl_types = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field tbl_types is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_types() { - return this.tbl_types != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setTbl_typesIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.tbl_types = null; + this.req = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_PATTERNS: - if (value == null) { - unsetDb_patterns(); - } else { - setDb_patterns((String)value); - } - break; - - case TBL_PATTERNS: - if (value == null) { - unsetTbl_patterns(); - } else { - setTbl_patterns((String)value); - } - break; - - case TBL_TYPES: + case REQ: if (value == null) { - unsetTbl_types(); + unsetReq(); } else { - setTbl_types((List)value); + setReq((GetTablesExtRequest)value); } break; @@ -76624,14 +83521,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_PATTERNS: - return getDb_patterns(); - - case TBL_PATTERNS: - return getTbl_patterns(); - - case TBL_TYPES: - return getTbl_types(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -76644,12 +83535,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_PATTERNS: - return isSetDb_patterns(); - case TBL_PATTERNS: - return isSetTbl_patterns(); - case TBL_TYPES: - return isSetTbl_types(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -76658,39 +83545,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_meta_args) - return this.equals((get_table_meta_args)that); + if (that instanceof get_tables_ext_args) + return this.equals((get_tables_ext_args)that); return false; } - public boolean equals(get_table_meta_args that) { + public boolean equals(get_tables_ext_args that) { if (that == null) return false; - boolean this_present_db_patterns = true && this.isSetDb_patterns(); - boolean that_present_db_patterns = true && that.isSetDb_patterns(); - if (this_present_db_patterns || that_present_db_patterns) { - if (!(this_present_db_patterns && that_present_db_patterns)) - return false; - if (!this.db_patterns.equals(that.db_patterns)) - return false; - } - - boolean this_present_tbl_patterns = true && this.isSetTbl_patterns(); - boolean that_present_tbl_patterns = true && that.isSetTbl_patterns(); - if (this_present_tbl_patterns || that_present_tbl_patterns) { - if (!(this_present_tbl_patterns && that_present_tbl_patterns)) - return false; - if (!this.tbl_patterns.equals(that.tbl_patterns)) - return false; - } - - boolean this_present_tbl_types = true && this.isSetTbl_types(); - boolean that_present_tbl_types = true && that.isSetTbl_types(); - if (this_present_tbl_types || that_present_tbl_types) { - if (!(this_present_tbl_types && that_present_tbl_types)) + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (!this.tbl_types.equals(that.tbl_types)) + if (!this.req.equals(that.req)) return false; } @@ -76701,58 +83570,28 @@ public boolean equals(get_table_meta_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_patterns = true && (isSetDb_patterns()); - list.add(present_db_patterns); - if (present_db_patterns) - list.add(db_patterns); - - boolean present_tbl_patterns = true && (isSetTbl_patterns()); - list.add(present_tbl_patterns); - if (present_tbl_patterns) - list.add(tbl_patterns); - - boolean present_tbl_types = true && (isSetTbl_types()); - list.add(present_tbl_types); - if (present_tbl_types) - list.add(tbl_types); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(get_table_meta_args other) { + public int compareTo(get_tables_ext_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_patterns()).compareTo(other.isSetDb_patterns()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_patterns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_patterns, other.db_patterns); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_patterns()).compareTo(other.isSetTbl_patterns()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_patterns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_patterns, other.tbl_patterns); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_types()).compareTo(other.isSetTbl_types()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_types()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_types, other.tbl_types); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -76774,30 +83613,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_meta_args("); + StringBuilder sb = new StringBuilder("get_tables_ext_args("); boolean first = true; - sb.append("db_patterns:"); - if (this.db_patterns == null) { - sb.append("null"); - } else { - sb.append(this.db_patterns); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_patterns:"); - if (this.tbl_patterns == null) { - sb.append("null"); - } else { - sb.append(this.tbl_patterns); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_types:"); - if (this.tbl_types == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.tbl_types); + sb.append(this.req); } first = false; sb.append(")"); @@ -76807,6 +83630,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (req != null) { + req.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -76825,15 +83651,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_meta_argsStandardSchemeFactory implements SchemeFactory { - public get_table_meta_argsStandardScheme getScheme() { - return new get_table_meta_argsStandardScheme(); + private static class get_tables_ext_argsStandardSchemeFactory implements SchemeFactory { + public get_tables_ext_argsStandardScheme getScheme() { + return new get_tables_ext_argsStandardScheme(); } } - private static class get_table_meta_argsStandardScheme extends StandardScheme { + private static class get_tables_ext_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_ext_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -76843,36 +83669,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args break; } switch (schemeField.id) { - case 1: // DB_PATTERNS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_patterns = iprot.readString(); - struct.setDb_patternsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_PATTERNS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_patterns = iprot.readString(); - struct.setTbl_patternsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TBL_TYPES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1354 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list1354.size); - String _elem1355; - for (int _i1356 = 0; _i1356 < _list1354.size; ++_i1356) - { - _elem1355 = iprot.readString(); - struct.tbl_types.add(_elem1355); - } - iprot.readListEnd(); - } - struct.setTbl_typesIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new GetTablesExtRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -76886,30 +83687,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_ext_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_patterns != null) { - oprot.writeFieldBegin(DB_PATTERNS_FIELD_DESC); - oprot.writeString(struct.db_patterns); - oprot.writeFieldEnd(); - } - if (struct.tbl_patterns != null) { - oprot.writeFieldBegin(TBL_PATTERNS_FIELD_DESC); - oprot.writeString(struct.tbl_patterns); - oprot.writeFieldEnd(); - } - if (struct.tbl_types != null) { - oprot.writeFieldBegin(TBL_TYPES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_types.size())); - for (String _iter1357 : struct.tbl_types) - { - oprot.writeString(_iter1357); - } - oprot.writeListEnd(); - } + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -76918,88 +83702,54 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_arg } - private static class get_table_meta_argsTupleSchemeFactory implements SchemeFactory { - public get_table_meta_argsTupleScheme getScheme() { - return new get_table_meta_argsTupleScheme(); + private static class get_tables_ext_argsTupleSchemeFactory implements SchemeFactory { + public get_tables_ext_argsTupleScheme getScheme() { + return new get_tables_ext_argsTupleScheme(); } } - private static class get_table_meta_argsTupleScheme extends TupleScheme { + private static class get_tables_ext_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_patterns()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetTbl_patterns()) { - optionals.set(1); - } - if (struct.isSetTbl_types()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_patterns()) { - oprot.writeString(struct.db_patterns); - } - if (struct.isSetTbl_patterns()) { - oprot.writeString(struct.tbl_patterns); - } - if (struct.isSetTbl_types()) { - { - oprot.writeI32(struct.tbl_types.size()); - for (String _iter1358 : struct.tbl_types) - { - oprot.writeString(_iter1358); - } - } + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_patterns = iprot.readString(); - struct.setDb_patternsIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_patterns = iprot.readString(); - struct.setTbl_patternsIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list1359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list1359.size); - String _elem1360; - for (int _i1361 = 0; _i1361 < _list1359.size; ++_i1361) - { - _elem1360 = iprot.readString(); - struct.tbl_types.add(_elem1360); - } - } - struct.setTbl_typesIsSet(true); + struct.req = new GetTablesExtRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_meta_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_ext_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_ext_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_meta_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_meta_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_ext_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_ext_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -77069,18 +83819,18 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 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, TableMeta.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ExtendedTableInfo.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_ext_result.class, metaDataMap); } - public get_table_meta_result() { + public get_tables_ext_result() { } - public get_table_meta_result( - List success, + public get_tables_ext_result( + List success, MetaException o1) { this(); @@ -77091,11 +83841,11 @@ public get_table_meta_result( /** * Performs a deep copy on other. */ - public get_table_meta_result(get_table_meta_result other) { + public get_tables_ext_result(get_tables_ext_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (TableMeta other_element : other.success) { - __this__success.add(new TableMeta(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (ExtendedTableInfo other_element : other.success) { + __this__success.add(new ExtendedTableInfo(other_element)); } this.success = __this__success; } @@ -77104,8 +83854,8 @@ public get_table_meta_result(get_table_meta_result other) { } } - public get_table_meta_result deepCopy() { - return new get_table_meta_result(this); + public get_tables_ext_result deepCopy() { + return new get_tables_ext_result(this); } @Override @@ -77118,22 +83868,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(TableMeta elem) { + public void addToSuccess(ExtendedTableInfo elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -77181,7 +83931,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -77227,12 +83977,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_meta_result) - return this.equals((get_table_meta_result)that); + if (that instanceof get_tables_ext_result) + return this.equals((get_tables_ext_result)that); return false; } - public boolean equals(get_table_meta_result that) { + public boolean equals(get_tables_ext_result that) { if (that == null) return false; @@ -77275,7 +84025,7 @@ public int hashCode() { } @Override - public int compareTo(get_table_meta_result other) { + public int compareTo(get_tables_ext_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -77319,7 +84069,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_meta_result("); + StringBuilder sb = new StringBuilder("get_tables_ext_result("); boolean first = true; sb.append("success:"); @@ -77362,15 +84112,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_meta_resultStandardSchemeFactory implements SchemeFactory { - public get_table_meta_resultStandardScheme getScheme() { - return new get_table_meta_resultStandardScheme(); + private static class get_tables_ext_resultStandardSchemeFactory implements SchemeFactory { + public get_tables_ext_resultStandardScheme getScheme() { + return new get_tables_ext_resultStandardScheme(); } } - private static class get_table_meta_resultStandardScheme extends StandardScheme { + private static class get_tables_ext_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_ext_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -77383,14 +84133,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1362 = iprot.readListBegin(); - struct.success = new ArrayList(_list1362.size); - TableMeta _elem1363; - for (int _i1364 = 0; _i1364 < _list1362.size; ++_i1364) + org.apache.thrift.protocol.TList _list1466 = iprot.readListBegin(); + struct.success = new ArrayList(_list1466.size); + ExtendedTableInfo _elem1467; + for (int _i1468 = 0; _i1468 < _list1466.size; ++_i1468) { - _elem1363 = new TableMeta(); - _elem1363.read(iprot); - struct.success.add(_elem1363); + _elem1467 = new ExtendedTableInfo(); + _elem1467.read(iprot); + struct.success.add(_elem1467); } iprot.readListEnd(); } @@ -77417,7 +84167,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_ext_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -77425,9 +84175,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TableMeta _iter1365 : struct.success) + for (ExtendedTableInfo _iter1469 : struct.success) { - _iter1365.write(oprot); + _iter1469.write(oprot); } oprot.writeListEnd(); } @@ -77444,16 +84194,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_res } - private static class get_table_meta_resultTupleSchemeFactory implements SchemeFactory { - public get_table_meta_resultTupleScheme getScheme() { - return new get_table_meta_resultTupleScheme(); + private static class get_tables_ext_resultTupleSchemeFactory implements SchemeFactory { + public get_tables_ext_resultTupleScheme getScheme() { + return new get_tables_ext_resultTupleScheme(); } } - private static class get_table_meta_resultTupleScheme extends TupleScheme { + private static class get_tables_ext_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -77466,9 +84216,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter1366 : struct.success) + for (ExtendedTableInfo _iter1470 : struct.success) { - _iter1366.write(oprot); + _iter1470.write(oprot); } } } @@ -77478,19 +84228,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1367.size); - TableMeta _elem1368; - for (int _i1369 = 0; _i1369 < _list1367.size; ++_i1369) + org.apache.thrift.protocol.TList _list1471 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1471.size); + ExtendedTableInfo _elem1472; + for (int _i1473 = 0; _i1473 < _list1471.size; ++_i1473) { - _elem1368 = new TableMeta(); - _elem1368.read(iprot); - struct.success.add(_elem1368); + _elem1472 = new ExtendedTableInfo(); + _elem1472.read(iprot); + struct.success.add(_elem1472); } } struct.setSuccessIsSet(true); @@ -77505,22 +84255,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_tables_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_req_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_all_tables_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_all_tables_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_req_argsTupleSchemeFactory()); } - private String db_name; // required + private GetTableRequest req; // 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 { - DB_NAME((short)1, "db_name"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -77535,8 +84285,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; + case 1: // REQ + return REQ; default: return null; } @@ -77580,70 +84330,70 @@ public String getFieldName() { 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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTableRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_req_args.class, metaDataMap); } - public get_all_tables_args() { + public get_table_req_args() { } - public get_all_tables_args( - String db_name) + public get_table_req_args( + GetTableRequest req) { this(); - this.db_name = db_name; + this.req = req; } /** * Performs a deep copy on other. */ - public get_all_tables_args(get_all_tables_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public get_table_req_args(get_table_req_args other) { + if (other.isSetReq()) { + this.req = new GetTableRequest(other.req); } } - public get_all_tables_args deepCopy() { - return new get_all_tables_args(this); + public get_table_req_args deepCopy() { + return new get_table_req_args(this); } @Override public void clear() { - this.db_name = null; + this.req = null; } - public String getDb_name() { - return this.db_name; + public GetTableRequest getReq() { + return this.req; } - public void setDb_name(String db_name) { - this.db_name = db_name; + public void setReq(GetTableRequest req) { + this.req = req; } - public void unsetDb_name() { - this.db_name = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setDb_nameIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.db_name = null; + this.req = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case REQ: if (value == null) { - unsetDb_name(); + unsetReq(); } else { - setDb_name((String)value); + setReq((GetTableRequest)value); } break; @@ -77652,8 +84402,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -77666,8 +84416,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -77676,21 +84426,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_all_tables_args) - return this.equals((get_all_tables_args)that); + if (that instanceof get_table_req_args) + return this.equals((get_table_req_args)that); return false; } - public boolean equals(get_all_tables_args that) { + public boolean equals(get_table_req_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (!this.db_name.equals(that.db_name)) + if (!this.req.equals(that.req)) return false; } @@ -77701,28 +84451,28 @@ public boolean equals(get_all_tables_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(get_all_tables_args other) { + public int compareTo(get_table_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -77744,14 +84494,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_all_tables_args("); + StringBuilder sb = new StringBuilder("get_table_req_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.db_name); + sb.append(this.req); } first = false; sb.append(")"); @@ -77761,6 +84511,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (req != null) { + req.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -77779,15 +84532,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_all_tables_argsStandardSchemeFactory implements SchemeFactory { - public get_all_tables_argsStandardScheme getScheme() { - return new get_all_tables_argsStandardScheme(); + private static class get_table_req_argsStandardSchemeFactory implements SchemeFactory { + public get_table_req_argsStandardScheme getScheme() { + return new get_table_req_argsStandardScheme(); } } - private static class get_all_tables_argsStandardScheme extends StandardScheme { + private static class get_table_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -77797,10 +84550,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new GetTableRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -77814,13 +84568,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -77829,59 +84583,63 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_arg } - private static class get_all_tables_argsTupleSchemeFactory implements SchemeFactory { - public get_all_tables_argsTupleScheme getScheme() { - return new get_all_tables_argsTupleScheme(); + private static class get_table_req_argsTupleSchemeFactory implements SchemeFactory { + public get_table_req_argsTupleScheme getScheme() { + return new get_table_req_argsTupleScheme(); } } - private static class get_all_tables_argsTupleScheme extends TupleScheme { + private static class get_table_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetReq()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.req = new GetTableRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_tables_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_req_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_all_tables_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_all_tables_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_req_resultTupleSchemeFactory()); } - private List success; // required + private GetTableResult success; // required private MetaException o1; // required + private NoSuchObjectException o2; // 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 { SUCCESS((short)0, "success"), - O1((short)1, "o1"); + O1((short)1, "o1"), + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -77900,6 +84658,8 @@ public static _Fields findByThriftId(int fieldId) { return SUCCESS; case 1: // O1 return O1; + case 2: // O2 + return O2; default: return null; } @@ -77944,69 +84704,60 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTableResult.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_req_result.class, metaDataMap); } - public get_all_tables_result() { + public get_table_req_result() { } - public get_all_tables_result( - List success, - MetaException o1) + public get_table_req_result( + GetTableResult success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; this.o1 = o1; + this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_all_tables_result(get_all_tables_result other) { + public get_table_req_result(get_table_req_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); - this.success = __this__success; + this.success = new GetTableResult(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } + if (other.isSetO2()) { + this.o2 = new NoSuchObjectException(other.o2); + } } - public get_all_tables_result deepCopy() { - return new get_all_tables_result(this); + public get_table_req_result deepCopy() { + return new get_table_req_result(this); } @Override public void clear() { this.success = null; this.o1 = null; + this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(String elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public GetTableResult getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(GetTableResult success) { this.success = success; } @@ -78048,13 +84799,36 @@ public void setO1IsSet(boolean value) { } } + public NoSuchObjectException getO2() { + return this.o2; + } + + public void setO2(NoSuchObjectException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((GetTableResult)value); } break; @@ -78066,6 +84840,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((NoSuchObjectException)value); + } + break; + } } @@ -78077,6 +84859,9 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); + case O2: + return getO2(); + } throw new IllegalStateException(); } @@ -78092,6 +84877,8 @@ public boolean isSet(_Fields field) { return isSetSuccess(); case O1: return isSetO1(); + case O2: + return isSetO2(); } throw new IllegalStateException(); } @@ -78100,12 +84887,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_all_tables_result) - return this.equals((get_all_tables_result)that); + if (that instanceof get_table_req_result) + return this.equals((get_table_req_result)that); return false; } - public boolean equals(get_all_tables_result that) { + public boolean equals(get_table_req_result that) { if (that == null) return false; @@ -78127,6 +84914,15 @@ public boolean equals(get_all_tables_result that) { return false; } + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + return true; } @@ -78144,11 +84940,16 @@ public int hashCode() { if (present_o1) list.add(o1); + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + return list.hashCode(); } @Override - public int compareTo(get_all_tables_result other) { + public int compareTo(get_table_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -78175,6 +84976,16 @@ public int compareTo(get_all_tables_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -78192,7 +85003,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_all_tables_result("); + StringBuilder sb = new StringBuilder("get_table_req_result("); boolean first = true; sb.append("success:"); @@ -78210,6 +85021,14 @@ public String toString() { sb.append(this.o1); } first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; sb.append(")"); return sb.toString(); } @@ -78217,6 +85036,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -78235,15 +85057,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_all_tables_resultStandardSchemeFactory implements SchemeFactory { - public get_all_tables_resultStandardScheme getScheme() { - return new get_all_tables_resultStandardScheme(); + private static class get_table_req_resultStandardSchemeFactory implements SchemeFactory { + public get_table_req_resultStandardScheme getScheme() { + return new get_table_req_resultStandardScheme(); } } - private static class get_all_tables_resultStandardScheme extends StandardScheme { + private static class get_table_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -78254,18 +85076,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1370 = iprot.readListBegin(); - struct.success = new ArrayList(_list1370.size); - String _elem1371; - for (int _i1372 = 0; _i1372 < _list1370.size; ++_i1372) - { - _elem1371 = iprot.readString(); - struct.success.add(_elem1371); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new GetTableResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -78280,6 +85093,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new NoSuchObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -78289,20 +85111,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1373 : struct.success) - { - oprot.writeString(_iter1373); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -78310,22 +85125,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_res struct.o1.write(oprot); oprot.writeFieldEnd(); } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_all_tables_resultTupleSchemeFactory implements SchemeFactory { - public get_all_tables_resultTupleScheme getScheme() { - return new get_all_tables_resultTupleScheme(); + private static class get_table_req_resultTupleSchemeFactory implements SchemeFactory { + public get_table_req_resultTupleScheme getScheme() { + return new get_table_req_resultTupleScheme(); } } - private static class get_all_tables_resultTupleScheme extends TupleScheme { + private static class get_table_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -78334,36 +85154,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (String _iter1374 : struct.success) - { - oprot.writeString(_iter1374); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1375.size); - String _elem1376; - for (int _i1377 = 0; _i1377 < _list1375.size; ++_i1377) - { - _elem1376 = iprot.readString(); - struct.success.add(_elem1376); - } - } + struct.success = new GetTableResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -78371,30 +85183,32 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul struct.o1.read(iprot); struct.setO1IsSet(true); } + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_req_args"); - 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)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_objects_by_name_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_req_argsTupleSchemeFactory()); } - private String dbname; // required - private String tbl_name; // required + private GetTablesRequest req; // 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 { - DBNAME((short)1, "dbname"), - TBL_NAME((short)2, "tbl_name"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -78409,10 +85223,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // TBL_NAME - return TBL_NAME; + case 1: // REQ + return REQ; default: return null; } @@ -78456,109 +85268,70 @@ public String getFieldName() { 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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_args.class, metaDataMap); } - public get_table_args() { + public get_table_objects_by_name_req_args() { } - public get_table_args( - String dbname, - String tbl_name) + public get_table_objects_by_name_req_args( + GetTablesRequest req) { this(); - this.dbname = dbname; - this.tbl_name = tbl_name; + this.req = req; } /** * Performs a deep copy on other. */ - public get_table_args(get_table_args other) { - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + public get_table_objects_by_name_req_args(get_table_objects_by_name_req_args other) { + if (other.isSetReq()) { + this.req = new GetTablesRequest(other.req); } } - public get_table_args deepCopy() { - return new get_table_args(this); + public get_table_objects_by_name_req_args deepCopy() { + return new get_table_objects_by_name_req_args(this); } @Override public void clear() { - this.dbname = null; - this.tbl_name = 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; - } + this.req = null; } - public String getTbl_name() { - return this.tbl_name; + public GetTablesRequest getReq() { + return this.req; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setReq(GetTablesRequest req) { + this.req = req; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setTbl_nameIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.tbl_name = null; + this.req = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case TBL_NAME: + case REQ: if (value == null) { - unsetTbl_name(); + unsetReq(); } else { - setTbl_name((String)value); + setReq((GetTablesRequest)value); } break; @@ -78567,11 +85340,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case TBL_NAME: - return getTbl_name(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -78584,10 +85354,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case TBL_NAME: - return isSetTbl_name(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -78596,30 +85364,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_args) - return this.equals((get_table_args)that); + if (that instanceof get_table_objects_by_name_req_args) + return this.equals((get_table_objects_by_name_req_args)that); return false; } - public boolean equals(get_table_args that) { + public boolean equals(get_table_objects_by_name_req_args that) { if (that == null) 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_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (!this.tbl_name.equals(that.tbl_name)) + if (!this.req.equals(that.req)) return false; } @@ -78630,43 +85389,28 @@ public boolean equals(get_table_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(get_table_args other) { + public int compareTo(get_table_objects_by_name_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - 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(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -78688,22 +85432,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_args("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { - sb.append("null"); - } else { - sb.append(this.dbname); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.req); } first = false; sb.append(")"); @@ -78713,6 +85449,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (req != null) { + req.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -78731,15 +85470,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_argsStandardSchemeFactory implements SchemeFactory { - public get_table_argsStandardScheme getScheme() { - return new get_table_argsStandardScheme(); + private static class get_table_objects_by_name_req_argsStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_argsStandardScheme getScheme() { + return new get_table_objects_by_name_req_argsStandardScheme(); } } - private static class get_table_argsStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -78749,18 +85488,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args stru break; } switch (schemeField.id) { - case 1: // DBNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new GetTablesRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -78774,18 +85506,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args stru struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -78794,72 +85521,66 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_args str } - private static class get_table_argsTupleSchemeFactory implements SchemeFactory { - public get_table_argsTupleScheme getScheme() { - return new get_table_argsTupleScheme(); + private static class get_table_objects_by_name_req_argsTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_argsTupleScheme getScheme() { + return new get_table_objects_by_name_req_argsTupleScheme(); } } - private static class get_table_argsTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.req = new GetTablesRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_objects_by_name_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_req_resultTupleSchemeFactory()); } - private Table success; // required + private GetTablesResult success; // required private MetaException o1; // required - private NoSuchObjectException o2; // required + private InvalidOperationException o2; // required + private UnknownDBException o3; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -78880,6 +85601,8 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -78924,46 +85647,53 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesResult.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_result.class, metaDataMap); } - public get_table_result() { + public get_table_objects_by_name_req_result() { } - public get_table_result( - Table success, + public get_table_objects_by_name_req_result( + GetTablesResult success, MetaException o1, - NoSuchObjectException o2) + InvalidOperationException o2, + UnknownDBException o3) { this(); this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_table_result(get_table_result other) { + public get_table_objects_by_name_req_result(get_table_objects_by_name_req_result other) { if (other.isSetSuccess()) { - this.success = new Table(other.success); + this.success = new GetTablesResult(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new InvalidOperationException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new UnknownDBException(other.o3); } } - public get_table_result deepCopy() { - return new get_table_result(this); + public get_table_objects_by_name_req_result deepCopy() { + return new get_table_objects_by_name_req_result(this); } @Override @@ -78971,13 +85701,14 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; } - public Table getSuccess() { + public GetTablesResult getSuccess() { return this.success; } - public void setSuccess(Table success) { + public void setSuccess(GetTablesResult success) { this.success = success; } @@ -79019,11 +85750,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public InvalidOperationException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(InvalidOperationException o2) { this.o2 = o2; } @@ -79042,13 +85773,36 @@ public void setO2IsSet(boolean value) { } } + public UnknownDBException getO3() { + return this.o3; + } + + public void setO3(UnknownDBException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Table)value); + setSuccess((GetTablesResult)value); } break; @@ -79064,7 +85818,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((InvalidOperationException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((UnknownDBException)value); } break; @@ -79082,6 +85844,9 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -79099,6 +85864,8 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -79107,12 +85874,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_result) - return this.equals((get_table_result)that); + if (that instanceof get_table_objects_by_name_req_result) + return this.equals((get_table_objects_by_name_req_result)that); return false; } - public boolean equals(get_table_result that) { + public boolean equals(get_table_objects_by_name_req_result that) { if (that == null) return false; @@ -79143,6 +85910,15 @@ public boolean equals(get_table_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + return true; } @@ -79165,11 +85941,16 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(get_table_result other) { + public int compareTo(get_table_objects_by_name_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -79206,6 +85987,16 @@ public int compareTo(get_table_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -79223,7 +86014,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_result("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_result("); boolean first = true; sb.append("success:"); @@ -79249,6 +86040,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -79277,15 +86076,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_resultStandardSchemeFactory implements SchemeFactory { - public get_table_resultStandardScheme getScheme() { - return new get_table_resultStandardScheme(); + private static class get_table_objects_by_name_req_resultStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_resultStandardScheme getScheme() { + return new get_table_objects_by_name_req_resultStandardScheme(); } } - private static class get_table_resultStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -79297,7 +86096,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result st switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Table(); + struct.success = new GetTablesResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -79315,13 +86114,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result st break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -79331,7 +86139,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -79350,22 +86158,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_result s struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_resultTupleSchemeFactory implements SchemeFactory { - public get_table_resultTupleScheme getScheme() { - return new get_table_resultTupleScheme(); + private static class get_table_objects_by_name_req_resultTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_resultTupleScheme getScheme() { + return new get_table_objects_by_name_req_resultTupleScheme(); } } - private static class get_table_resultTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -79377,7 +86190,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result st if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { struct.success.write(oprot); } @@ -79387,14 +86203,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result st if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new Table(); + struct.success = new GetTablesResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -79404,34 +86223,39 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result str struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialization_invalidation_info_args"); - 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)1); - private static final org.apache.thrift.protocol.TField TBL_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_names", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField CREATION_METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("creation_metadata", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField VALID_TXN_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validTxnList", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_materialization_invalidation_info_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_materialization_invalidation_info_argsTupleSchemeFactory()); } - private String dbname; // required - private List tbl_names; // required + private CreationMetadata creation_metadata; // required + private String validTxnList; // 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 { - DBNAME((short)1, "dbname"), - TBL_NAMES((short)2, "tbl_names"); + CREATION_METADATA((short)1, "creation_metadata"), + VALID_TXN_LIST((short)2, "validTxnList"); private static final Map byName = new HashMap(); @@ -79446,10 +86270,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result str */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // TBL_NAMES - return TBL_NAMES; + case 1: // CREATION_METADATA + return CREATION_METADATA; + case 2: // VALID_TXN_LIST + return VALID_TXN_LIST; default: return null; } @@ -79493,126 +86317,109 @@ public String getFieldName() { 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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.CREATION_METADATA, new org.apache.thrift.meta_data.FieldMetaData("creation_metadata", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreationMetadata.class))); + tmpMap.put(_Fields.VALID_TXN_LIST, new org.apache.thrift.meta_data.FieldMetaData("validTxnList", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAMES, new org.apache.thrift.meta_data.FieldMetaData("tbl_names", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialization_invalidation_info_args.class, metaDataMap); } - public get_table_objects_by_name_args() { + public get_materialization_invalidation_info_args() { } - public get_table_objects_by_name_args( - String dbname, - List tbl_names) + public get_materialization_invalidation_info_args( + CreationMetadata creation_metadata, + String validTxnList) { this(); - this.dbname = dbname; - this.tbl_names = tbl_names; + this.creation_metadata = creation_metadata; + this.validTxnList = validTxnList; } /** * Performs a deep copy on other. */ - public get_table_objects_by_name_args(get_table_objects_by_name_args other) { - if (other.isSetDbname()) { - this.dbname = other.dbname; + public get_materialization_invalidation_info_args(get_materialization_invalidation_info_args other) { + if (other.isSetCreation_metadata()) { + this.creation_metadata = new CreationMetadata(other.creation_metadata); } - if (other.isSetTbl_names()) { - List __this__tbl_names = new ArrayList(other.tbl_names); - this.tbl_names = __this__tbl_names; + if (other.isSetValidTxnList()) { + this.validTxnList = other.validTxnList; } } - public get_table_objects_by_name_args deepCopy() { - return new get_table_objects_by_name_args(this); + public get_materialization_invalidation_info_args deepCopy() { + return new get_materialization_invalidation_info_args(this); } @Override public void clear() { - this.dbname = null; - this.tbl_names = null; + this.creation_metadata = null; + this.validTxnList = null; } - public String getDbname() { - return this.dbname; + public CreationMetadata getCreation_metadata() { + return this.creation_metadata; } - public void setDbname(String dbname) { - this.dbname = dbname; + public void setCreation_metadata(CreationMetadata creation_metadata) { + this.creation_metadata = creation_metadata; } - public void unsetDbname() { - this.dbname = null; + public void unsetCreation_metadata() { + this.creation_metadata = null; } - /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ - public boolean isSetDbname() { - return this.dbname != null; + /** Returns true if field creation_metadata is set (has been assigned a value) and false otherwise */ + public boolean isSetCreation_metadata() { + return this.creation_metadata != null; } - public void setDbnameIsSet(boolean value) { + public void setCreation_metadataIsSet(boolean value) { if (!value) { - this.dbname = null; - } - } - - public int getTbl_namesSize() { - return (this.tbl_names == null) ? 0 : this.tbl_names.size(); - } - - public java.util.Iterator getTbl_namesIterator() { - return (this.tbl_names == null) ? null : this.tbl_names.iterator(); - } - - public void addToTbl_names(String elem) { - if (this.tbl_names == null) { - this.tbl_names = new ArrayList(); + this.creation_metadata = null; } - this.tbl_names.add(elem); } - public List getTbl_names() { - return this.tbl_names; + public String getValidTxnList() { + return this.validTxnList; } - public void setTbl_names(List tbl_names) { - this.tbl_names = tbl_names; + public void setValidTxnList(String validTxnList) { + this.validTxnList = validTxnList; } - public void unsetTbl_names() { - this.tbl_names = null; + public void unsetValidTxnList() { + this.validTxnList = null; } - /** Returns true if field tbl_names is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_names() { - return this.tbl_names != null; + /** Returns true if field validTxnList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidTxnList() { + return this.validTxnList != null; } - public void setTbl_namesIsSet(boolean value) { + public void setValidTxnListIsSet(boolean value) { if (!value) { - this.tbl_names = null; + this.validTxnList = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: + case CREATION_METADATA: if (value == null) { - unsetDbname(); + unsetCreation_metadata(); } else { - setDbname((String)value); + setCreation_metadata((CreationMetadata)value); } break; - case TBL_NAMES: + case VALID_TXN_LIST: if (value == null) { - unsetTbl_names(); + unsetValidTxnList(); } else { - setTbl_names((List)value); + setValidTxnList((String)value); } break; @@ -79621,11 +86428,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); + case CREATION_METADATA: + return getCreation_metadata(); - case TBL_NAMES: - return getTbl_names(); + case VALID_TXN_LIST: + return getValidTxnList(); } throw new IllegalStateException(); @@ -79638,10 +86445,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case TBL_NAMES: - return isSetTbl_names(); + case CREATION_METADATA: + return isSetCreation_metadata(); + case VALID_TXN_LIST: + return isSetValidTxnList(); } throw new IllegalStateException(); } @@ -79650,30 +86457,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_objects_by_name_args) - return this.equals((get_table_objects_by_name_args)that); + if (that instanceof get_materialization_invalidation_info_args) + return this.equals((get_materialization_invalidation_info_args)that); return false; } - public boolean equals(get_table_objects_by_name_args that) { + public boolean equals(get_materialization_invalidation_info_args that) { if (that == null) 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)) + boolean this_present_creation_metadata = true && this.isSetCreation_metadata(); + boolean that_present_creation_metadata = true && that.isSetCreation_metadata(); + if (this_present_creation_metadata || that_present_creation_metadata) { + if (!(this_present_creation_metadata && that_present_creation_metadata)) return false; - if (!this.dbname.equals(that.dbname)) + if (!this.creation_metadata.equals(that.creation_metadata)) return false; } - boolean this_present_tbl_names = true && this.isSetTbl_names(); - boolean that_present_tbl_names = true && that.isSetTbl_names(); - if (this_present_tbl_names || that_present_tbl_names) { - if (!(this_present_tbl_names && that_present_tbl_names)) + boolean this_present_validTxnList = true && this.isSetValidTxnList(); + boolean that_present_validTxnList = true && that.isSetValidTxnList(); + if (this_present_validTxnList || that_present_validTxnList) { + if (!(this_present_validTxnList && that_present_validTxnList)) return false; - if (!this.tbl_names.equals(that.tbl_names)) + if (!this.validTxnList.equals(that.validTxnList)) return false; } @@ -79684,43 +86491,43 @@ public boolean equals(get_table_objects_by_name_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); + boolean present_creation_metadata = true && (isSetCreation_metadata()); + list.add(present_creation_metadata); + if (present_creation_metadata) + list.add(creation_metadata); - boolean present_tbl_names = true && (isSetTbl_names()); - list.add(present_tbl_names); - if (present_tbl_names) - list.add(tbl_names); + boolean present_validTxnList = true && (isSetValidTxnList()); + list.add(present_validTxnList); + if (present_validTxnList) + list.add(validTxnList); return list.hashCode(); } @Override - public int compareTo(get_table_objects_by_name_args other) { + public int compareTo(get_materialization_invalidation_info_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetCreation_metadata()).compareTo(other.isSetCreation_metadata()); if (lastComparison != 0) { return lastComparison; } - if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (isSetCreation_metadata()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creation_metadata, other.creation_metadata); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_names()).compareTo(other.isSetTbl_names()); + lastComparison = Boolean.valueOf(isSetValidTxnList()).compareTo(other.isSetValidTxnList()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_names, other.tbl_names); + if (isSetValidTxnList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validTxnList, other.validTxnList); if (lastComparison != 0) { return lastComparison; } @@ -79742,22 +86549,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_objects_by_name_args("); + StringBuilder sb = new StringBuilder("get_materialization_invalidation_info_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { + sb.append("creation_metadata:"); + if (this.creation_metadata == null) { sb.append("null"); } else { - sb.append(this.dbname); + sb.append(this.creation_metadata); } first = false; if (!first) sb.append(", "); - sb.append("tbl_names:"); - if (this.tbl_names == null) { + sb.append("validTxnList:"); + if (this.validTxnList == null) { sb.append("null"); } else { - sb.append(this.tbl_names); + sb.append(this.validTxnList); } first = false; sb.append(")"); @@ -79767,6 +86574,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (creation_metadata != null) { + creation_metadata.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -79785,15 +86595,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_objects_by_name_argsStandardSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_argsStandardScheme getScheme() { - return new get_table_objects_by_name_argsStandardScheme(); + private static class get_materialization_invalidation_info_argsStandardSchemeFactory implements SchemeFactory { + public get_materialization_invalidation_info_argsStandardScheme getScheme() { + return new get_materialization_invalidation_info_argsStandardScheme(); } } - private static class get_table_objects_by_name_argsStandardScheme extends StandardScheme { + private static class get_materialization_invalidation_info_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -79803,28 +86613,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b break; } switch (schemeField.id) { - case 1: // DBNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + case 1: // CREATION_METADATA + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.creation_metadata = new CreationMetadata(); + struct.creation_metadata.read(iprot); + struct.setCreation_metadataIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TBL_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1378 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1378.size); - String _elem1379; - for (int _i1380 = 0; _i1380 < _list1378.size; ++_i1380) - { - _elem1379 = iprot.readString(); - struct.tbl_names.add(_elem1379); - } - iprot.readListEnd(); - } - struct.setTbl_namesIsSet(true); + case 2: // VALID_TXN_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validTxnList = iprot.readString(); + struct.setValidTxnListIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -79838,25 +86639,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); + if (struct.creation_metadata != null) { + oprot.writeFieldBegin(CREATION_METADATA_FIELD_DESC); + struct.creation_metadata.write(oprot); oprot.writeFieldEnd(); } - if (struct.tbl_names != null) { - oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); - for (String _iter1381 : struct.tbl_names) - { - oprot.writeString(_iter1381); - } - oprot.writeListEnd(); - } + if (struct.validTxnList != null) { + oprot.writeFieldBegin(VALID_TXN_LIST_FIELD_DESC); + oprot.writeString(struct.validTxnList); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -79865,81 +86659,76 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ } - private static class get_table_objects_by_name_argsTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_argsTupleScheme getScheme() { - return new get_table_objects_by_name_argsTupleScheme(); + private static class get_materialization_invalidation_info_argsTupleSchemeFactory implements SchemeFactory { + public get_materialization_invalidation_info_argsTupleScheme getScheme() { + return new get_materialization_invalidation_info_argsTupleScheme(); } } - private static class get_table_objects_by_name_argsTupleScheme extends TupleScheme { + private static class get_materialization_invalidation_info_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetCreation_metadata()) { optionals.set(0); } - if (struct.isSetTbl_names()) { + if (struct.isSetValidTxnList()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); + if (struct.isSetCreation_metadata()) { + struct.creation_metadata.write(oprot); } - if (struct.isSetTbl_names()) { - { - oprot.writeI32(struct.tbl_names.size()); - for (String _iter1382 : struct.tbl_names) - { - oprot.writeString(_iter1382); - } - } + if (struct.isSetValidTxnList()) { + oprot.writeString(struct.validTxnList); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.creation_metadata = new CreationMetadata(); + struct.creation_metadata.read(iprot); + struct.setCreation_metadataIsSet(true); } if (incoming.get(1)) { - { - org.apache.thrift.protocol.TList _list1383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list1383.size); - String _elem1384; - for (int _i1385 = 0; _i1385 < _list1383.size; ++_i1385) - { - _elem1384 = iprot.readString(); - struct.tbl_names.add(_elem1384); - } - } - struct.setTbl_namesIsSet(true); + struct.validTxnList = iprot.readString(); + struct.setValidTxnListIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialization_invalidation_info_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_materialization_invalidation_info_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_materialization_invalidation_info_resultTupleSchemeFactory()); } - private List
success; // required + private Materialization success; // required + private MetaException o1; // required + private InvalidOperationException o2; // required + private UnknownDBException o3; // 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 { - SUCCESS((short)0, "success"); + SUCCESS((short)0, "success"), + O1((short)1, "o1"), + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -79956,6 +86745,12 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; + case 1: // O1 + return O1; + case 2: // O2 + return O2; + case 3: // O3 + return O3; default: return null; } @@ -80000,64 +86795,68 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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, Table.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Materialization.class))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialization_invalidation_info_result.class, metaDataMap); } - public get_table_objects_by_name_result() { + public get_materialization_invalidation_info_result() { } - public get_table_objects_by_name_result( - List
success) + public get_materialization_invalidation_info_result( + Materialization success, + MetaException o1, + InvalidOperationException o2, + UnknownDBException o3) { this(); this.success = success; + this.o1 = o1; + this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_table_objects_by_name_result(get_table_objects_by_name_result other) { + public get_materialization_invalidation_info_result(get_materialization_invalidation_info_result other) { if (other.isSetSuccess()) { - List
__this__success = new ArrayList
(other.success.size()); - for (Table other_element : other.success) { - __this__success.add(new Table(other_element)); - } - this.success = __this__success; + this.success = new Materialization(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new InvalidOperationException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new UnknownDBException(other.o3); } } - public get_table_objects_by_name_result deepCopy() { - return new get_table_objects_by_name_result(this); + public get_materialization_invalidation_info_result deepCopy() { + return new get_materialization_invalidation_info_result(this); } @Override public void clear() { this.success = null; + this.o1 = null; + this.o2 = null; + this.o3 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator
getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(Table elem) { - if (this.success == null) { - this.success = new ArrayList
(); - } - this.success.add(elem); - } - - public List
getSuccess() { + public Materialization getSuccess() { return this.success; } - public void setSuccess(List
success) { + public void setSuccess(Materialization success) { this.success = success; } @@ -80076,13 +86875,106 @@ public void setSuccessIsSet(boolean value) { } } + public MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public InvalidOperationException getO2() { + return this.o2; + } + + public void setO2(InvalidOperationException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public UnknownDBException getO3() { + return this.o3; + } + + public void setO3(UnknownDBException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List
)value); + setSuccess((Materialization)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((InvalidOperationException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((UnknownDBException)value); } break; @@ -80094,6 +86986,15 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); + case O1: + return getO1(); + + case O2: + return getO2(); + + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -80107,6 +87008,12 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); + case O1: + return isSetO1(); + case O2: + return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -80115,12 +87022,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_objects_by_name_result) - return this.equals((get_table_objects_by_name_result)that); + if (that instanceof get_materialization_invalidation_info_result) + return this.equals((get_materialization_invalidation_info_result)that); return false; } - public boolean equals(get_table_objects_by_name_result that) { + public boolean equals(get_materialization_invalidation_info_result that) { if (that == null) return false; @@ -80133,6 +87040,33 @@ public boolean equals(get_table_objects_by_name_result that) { return false; } + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + return true; } @@ -80145,11 +87079,26 @@ public int hashCode() { if (present_success) list.add(success); + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(get_table_objects_by_name_result other) { + public int compareTo(get_materialization_invalidation_info_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -80166,6 +87115,36 @@ public int compareTo(get_table_objects_by_name_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -80183,7 +87162,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_objects_by_name_result("); + StringBuilder sb = new StringBuilder("get_materialization_invalidation_info_result("); boolean first = true; sb.append("success:"); @@ -80193,6 +87172,30 @@ public String toString() { sb.append(this.success); } first = false; + if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -80200,6 +87203,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -80218,15 +87224,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_objects_by_name_resultStandardSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_resultStandardScheme getScheme() { - return new get_table_objects_by_name_resultStandardScheme(); + private static class get_materialization_invalidation_info_resultStandardSchemeFactory implements SchemeFactory { + public get_materialization_invalidation_info_resultStandardScheme getScheme() { + return new get_materialization_invalidation_info_resultStandardScheme(); } } - private static class get_table_objects_by_name_resultStandardScheme extends StandardScheme { + private static class get_materialization_invalidation_info_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -80237,24 +87243,41 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1386 = iprot.readListBegin(); - struct.success = new ArrayList
(_list1386.size); - Table _elem1387; - for (int _i1388 = 0; _i1388 < _list1386.size; ++_i1388) - { - _elem1387 = new Table(); - _elem1387.read(iprot); - struct.success.add(_elem1387); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Materialization(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new InvalidOperationException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -80264,20 +87287,28 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter1389 : struct.success) - { - _iter1389.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -80286,72 +87317,99 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ } - private static class get_table_objects_by_name_resultTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_resultTupleScheme getScheme() { - return new get_table_objects_by_name_resultTupleScheme(); + private static class get_materialization_invalidation_info_resultTupleSchemeFactory implements SchemeFactory { + public get_materialization_invalidation_info_resultTupleScheme getScheme() { + return new get_materialization_invalidation_info_resultTupleScheme(); } } - private static class get_table_objects_by_name_resultTupleScheme extends TupleScheme { + private static class get_materialization_invalidation_info_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetO1()) { + optionals.set(1); + } + if (struct.isSetO2()) { + optionals.set(2); + } + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Table _iter1390 : struct.success) - { - _iter1390.write(oprot); - } - } + struct.success.write(oprot); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + if (struct.isSetO3()) { + struct.o3.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1391.size); - Table _elem1392; - for (int _i1393 = 0; _i1393 < _list1391.size; ++_i1393) - { - _elem1392 = new Table(); - _elem1392.read(iprot); - struct.success.add(_elem1392); - } - } + struct.success = new Materialization(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { + struct.o2 = new InvalidOperationException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + if (incoming.get(3)) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_ext_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_ext_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_creation_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_creation_metadata_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (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 TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField CREATION_METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("creation_metadata", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_tables_ext_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_ext_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new update_creation_metadata_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new update_creation_metadata_argsTupleSchemeFactory()); } - private GetTablesExtRequest req; // required + private String catName; // required + private String dbname; // required + private String tbl_name; // required + private CreationMetadata creation_metadata; // 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 { - REQ((short)1, "req"); + CAT_NAME((short)1, "catName"), + DBNAME((short)2, "dbname"), + TBL_NAME((short)3, "tbl_name"), + CREATION_METADATA((short)4, "creation_metadata"); private static final Map byName = new HashMap(); @@ -80366,8 +87424,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // CAT_NAME + return CAT_NAME; + case 2: // DBNAME + return DBNAME; + case 3: // TBL_NAME + return TBL_NAME; + case 4: // CREATION_METADATA + return CREATION_METADATA; default: return null; } @@ -80411,70 +87475,187 @@ public String getFieldName() { 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesExtRequest.class))); + tmpMap.put(_Fields.CAT_NAME, new org.apache.thrift.meta_data.FieldMetaData("catName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.CREATION_METADATA, new org.apache.thrift.meta_data.FieldMetaData("creation_metadata", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreationMetadata.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_ext_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_creation_metadata_args.class, metaDataMap); } - public get_tables_ext_args() { + public update_creation_metadata_args() { } - public get_tables_ext_args( - GetTablesExtRequest req) + public update_creation_metadata_args( + String catName, + String dbname, + String tbl_name, + CreationMetadata creation_metadata) { this(); - this.req = req; + this.catName = catName; + this.dbname = dbname; + this.tbl_name = tbl_name; + this.creation_metadata = creation_metadata; } /** * Performs a deep copy on other. */ - public get_tables_ext_args(get_tables_ext_args other) { - if (other.isSetReq()) { - this.req = new GetTablesExtRequest(other.req); + public update_creation_metadata_args(update_creation_metadata_args other) { + if (other.isSetCatName()) { + this.catName = other.catName; + } + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetCreation_metadata()) { + this.creation_metadata = new CreationMetadata(other.creation_metadata); } } - public get_tables_ext_args deepCopy() { - return new get_tables_ext_args(this); + public update_creation_metadata_args deepCopy() { + return new update_creation_metadata_args(this); } @Override public void clear() { - this.req = null; + this.catName = null; + this.dbname = null; + this.tbl_name = null; + this.creation_metadata = null; } - public GetTablesExtRequest getReq() { - return this.req; + public String getCatName() { + return this.catName; } - public void setReq(GetTablesExtRequest req) { - this.req = req; + public void setCatName(String catName) { + this.catName = catName; } - public void unsetReq() { - this.req = null; + public void unsetCatName() { + this.catName = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + /** Returns true if field catName is set (has been assigned a value) and false otherwise */ + public boolean isSetCatName() { + return this.catName != null; } - public void setReqIsSet(boolean value) { + public void setCatNameIsSet(boolean value) { if (!value) { - this.req = null; + this.catName = 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 getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } + } + + public CreationMetadata getCreation_metadata() { + return this.creation_metadata; + } + + public void setCreation_metadata(CreationMetadata creation_metadata) { + this.creation_metadata = creation_metadata; + } + + public void unsetCreation_metadata() { + this.creation_metadata = null; + } + + /** Returns true if field creation_metadata is set (has been assigned a value) and false otherwise */ + public boolean isSetCreation_metadata() { + return this.creation_metadata != null; + } + + public void setCreation_metadataIsSet(boolean value) { + if (!value) { + this.creation_metadata = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case CAT_NAME: if (value == null) { - unsetReq(); + unsetCatName(); } else { - setReq((GetTablesExtRequest)value); + setCatName((String)value); + } + break; + + case DBNAME: + if (value == null) { + unsetDbname(); + } else { + setDbname((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case CREATION_METADATA: + if (value == null) { + unsetCreation_metadata(); + } else { + setCreation_metadata((CreationMetadata)value); } break; @@ -80483,8 +87664,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case CAT_NAME: + return getCatName(); + + case DBNAME: + return getDbname(); + + case TBL_NAME: + return getTbl_name(); + + case CREATION_METADATA: + return getCreation_metadata(); } throw new IllegalStateException(); @@ -80497,8 +87687,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case CAT_NAME: + return isSetCatName(); + case DBNAME: + return isSetDbname(); + case TBL_NAME: + return isSetTbl_name(); + case CREATION_METADATA: + return isSetCreation_metadata(); } throw new IllegalStateException(); } @@ -80507,21 +87703,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_ext_args) - return this.equals((get_tables_ext_args)that); + if (that instanceof update_creation_metadata_args) + return this.equals((update_creation_metadata_args)that); return false; } - public boolean equals(get_tables_ext_args that) { + public boolean equals(update_creation_metadata_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + boolean this_present_catName = true && this.isSetCatName(); + boolean that_present_catName = true && that.isSetCatName(); + if (this_present_catName || that_present_catName) { + if (!(this_present_catName && that_present_catName)) return false; - if (!this.req.equals(that.req)) + if (!this.catName.equals(that.catName)) + 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_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_creation_metadata = true && this.isSetCreation_metadata(); + boolean that_present_creation_metadata = true && that.isSetCreation_metadata(); + if (this_present_creation_metadata || that_present_creation_metadata) { + if (!(this_present_creation_metadata && that_present_creation_metadata)) + return false; + if (!this.creation_metadata.equals(that.creation_metadata)) return false; } @@ -80532,28 +87755,73 @@ public boolean equals(get_tables_ext_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_catName = true && (isSetCatName()); + list.add(present_catName); + if (present_catName) + list.add(catName); + + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_creation_metadata = true && (isSetCreation_metadata()); + list.add(present_creation_metadata); + if (present_creation_metadata) + list.add(creation_metadata); return list.hashCode(); } @Override - public int compareTo(get_tables_ext_args other) { + public int compareTo(update_creation_metadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetCatName()).compareTo(other.isSetCatName()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetCatName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catName, other.catName); + 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(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCreation_metadata()).compareTo(other.isSetCreation_metadata()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCreation_metadata()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creation_metadata, other.creation_metadata); if (lastComparison != 0) { return lastComparison; } @@ -80575,14 +87843,38 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_ext_args("); + StringBuilder sb = new StringBuilder("update_creation_metadata_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("catName:"); + if (this.catName == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.catName); + } + 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("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("creation_metadata:"); + if (this.creation_metadata == null) { + sb.append("null"); + } else { + sb.append(this.creation_metadata); } first = false; sb.append(")"); @@ -80592,8 +87884,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); + if (creation_metadata != null) { + creation_metadata.validate(); } } @@ -80613,15 +87905,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_ext_argsStandardSchemeFactory implements SchemeFactory { - public get_tables_ext_argsStandardScheme getScheme() { - return new get_tables_ext_argsStandardScheme(); + private static class update_creation_metadata_argsStandardSchemeFactory implements SchemeFactory { + public update_creation_metadata_argsStandardScheme getScheme() { + return new update_creation_metadata_argsStandardScheme(); } } - private static class get_tables_ext_argsStandardScheme extends StandardScheme { + private static class update_creation_metadata_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_ext_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_metadata_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -80631,11 +87923,35 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_ext_args break; } switch (schemeField.id) { - case 1: // REQ + case 1: // CAT_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.catName = iprot.readString(); + struct.setCatNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // CREATION_METADATA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetTablesExtRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.creation_metadata = new CreationMetadata(); + struct.creation_metadata.read(iprot); + struct.setCreation_metadataIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -80649,13 +87965,28 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_ext_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_ext_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, update_creation_metadata_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.catName != null) { + oprot.writeFieldBegin(CAT_NAME_FIELD_DESC); + oprot.writeString(struct.catName); + oprot.writeFieldEnd(); + } + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.creation_metadata != null) { + oprot.writeFieldBegin(CREATION_METADATA_FIELD_DESC); + struct.creation_metadata.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -80664,60 +87995,93 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_ext_arg } - private static class get_tables_ext_argsTupleSchemeFactory implements SchemeFactory { - public get_tables_ext_argsTupleScheme getScheme() { - return new get_tables_ext_argsTupleScheme(); + private static class update_creation_metadata_argsTupleSchemeFactory implements SchemeFactory { + public update_creation_metadata_argsTupleScheme getScheme() { + return new update_creation_metadata_argsTupleScheme(); } } - private static class get_tables_ext_argsTupleScheme extends TupleScheme { + private static class update_creation_metadata_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetCatName()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetDbname()) { + optionals.set(1); + } + if (struct.isSetTbl_name()) { + optionals.set(2); + } + if (struct.isSetCreation_metadata()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetCatName()) { + oprot.writeString(struct.catName); + } + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetCreation_metadata()) { + struct.creation_metadata.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.req = new GetTablesExtRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.catName = iprot.readString(); + struct.setCatNameIsSet(true); + } + if (incoming.get(1)) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(2)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(3)) { + struct.creation_metadata = new CreationMetadata(); + struct.creation_metadata.read(iprot); + struct.setCreation_metadataIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_ext_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_ext_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_creation_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_creation_metadata_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_tables_ext_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_ext_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new update_creation_metadata_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new update_creation_metadata_resultTupleSchemeFactory()); } - private List success; // required private MetaException o1; // required + private InvalidOperationException o2; // required + private UnknownDBException o3; // 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 { - SUCCESS((short)0, "success"), - O1((short)1, "o1"); + O1((short)1, "o1"), + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -80732,10 +88096,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_args */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; + case 2: // O2 + return O2; + case 3: // O3 + return O3; default: return null; } @@ -80779,129 +88145,148 @@ public String getFieldName() { 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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, ExtendedTableInfo.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_ext_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_creation_metadata_result.class, metaDataMap); } - public get_tables_ext_result() { + public update_creation_metadata_result() { } - public get_tables_ext_result( - List success, - MetaException o1) + public update_creation_metadata_result( + MetaException o1, + InvalidOperationException o2, + UnknownDBException o3) { this(); - this.success = success; this.o1 = o1; + this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_tables_ext_result(get_tables_ext_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (ExtendedTableInfo other_element : other.success) { - __this__success.add(new ExtendedTableInfo(other_element)); - } - this.success = __this__success; - } + public update_creation_metadata_result(update_creation_metadata_result other) { if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } + if (other.isSetO2()) { + this.o2 = new InvalidOperationException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new UnknownDBException(other.o3); + } } - public get_tables_ext_result deepCopy() { - return new get_tables_ext_result(this); + public update_creation_metadata_result deepCopy() { + return new update_creation_metadata_result(this); } @Override public void clear() { - this.success = null; this.o1 = null; + this.o2 = null; + this.o3 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); + public MetaException getO1() { + return this.o1; } - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); + public void setO1(MetaException o1) { + this.o1 = o1; } - public void addToSuccess(ExtendedTableInfo elem) { - if (this.success == null) { - this.success = new ArrayList(); + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; } - this.success.add(elem); } - public List getSuccess() { - return this.success; + public InvalidOperationException getO2() { + return this.o2; } - public void setSuccess(List success) { - this.success = success; + public void setO2(InvalidOperationException o2) { + this.o2 = o2; } - public void unsetSuccess() { - this.success = null; + public void unsetO2() { + this.o2 = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; } - public void setSuccessIsSet(boolean value) { + public void setO2IsSet(boolean value) { if (!value) { - this.success = null; + this.o2 = null; } } - public MetaException getO1() { - return this.o1; + public UnknownDBException getO3() { + return this.o3; } - public void setO1(MetaException o1) { - this.o1 = o1; + public void setO3(UnknownDBException o3) { + this.o3 = o3; } - public void unsetO1() { - this.o1 = null; + public void unsetO3() { + this.o3 = null; } - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; } - public void setO1IsSet(boolean value) { + public void setO3IsSet(boolean value) { if (!value) { - this.o1 = null; + this.o3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case O1: if (value == null) { - unsetSuccess(); + unsetO1(); } else { - setSuccess((List)value); + setO1((MetaException)value); } break; - case O1: + case O2: if (value == null) { - unsetO1(); + unsetO2(); } else { - setO1((MetaException)value); + setO2((InvalidOperationException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((UnknownDBException)value); } break; @@ -80910,12 +88295,15 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); + case O2: + return getO2(); + + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -80927,10 +88315,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); + case O2: + return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -80939,24 +88329,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_ext_result) - return this.equals((get_tables_ext_result)that); + if (that instanceof update_creation_metadata_result) + return this.equals((update_creation_metadata_result)that); return false; } - public boolean equals(get_tables_ext_result that) { + public boolean equals(update_creation_metadata_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -80966,6 +88347,24 @@ public boolean equals(get_tables_ext_result that) { return false; } + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + return true; } @@ -80973,43 +88372,58 @@ public boolean equals(get_tables_ext_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) list.add(o1); + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(get_tables_ext_result other) { + public int compareTo(update_creation_metadata_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); if (lastComparison != 0) { return lastComparison; } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); if (lastComparison != 0) { return lastComparison; } @@ -81031,22 +88445,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_ext_result("); + StringBuilder sb = new StringBuilder("update_creation_metadata_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { + sb.append("o1:"); + if (this.o1 == null) { sb.append("null"); } else { - sb.append(this.success); + sb.append(this.o1); } first = false; if (!first) sb.append(", "); - sb.append("o1:"); - if (this.o1 == null) { + sb.append("o2:"); + if (this.o2 == null) { sb.append("null"); } else { - sb.append(this.o1); + sb.append(this.o2); + } + first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); } first = false; sb.append(")"); @@ -81074,43 +88496,24 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_ext_resultStandardSchemeFactory implements SchemeFactory { - public get_tables_ext_resultStandardScheme getScheme() { - return new get_tables_ext_resultStandardScheme(); + private static class update_creation_metadata_resultStandardSchemeFactory implements SchemeFactory { + public update_creation_metadata_resultStandardScheme getScheme() { + return new update_creation_metadata_resultStandardScheme(); } } - private static class get_tables_ext_resultStandardScheme extends StandardScheme { + private static class update_creation_metadata_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_ext_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_metadata_result 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 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1394 = iprot.readListBegin(); - struct.success = new ArrayList(_list1394.size); - ExtendedTableInfo _elem1395; - for (int _i1396 = 0; _i1396 < _list1394.size; ++_i1396) - { - _elem1395 = new ExtendedTableInfo(); - _elem1395.read(iprot); - struct.success.add(_elem1395); - } - iprot.readListEnd(); - } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o1 = new MetaException(); @@ -81120,6 +88523,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_ext_resu org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new InvalidOperationException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -81129,110 +88550,110 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_ext_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_ext_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, update_creation_metadata_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (ExtendedTableInfo _iter1397 : struct.success) - { - _iter1397.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); oprot.writeFieldEnd(); } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_tables_ext_resultTupleSchemeFactory implements SchemeFactory { - public get_tables_ext_resultTupleScheme getScheme() { - return new get_tables_ext_resultTupleScheme(); + private static class update_creation_metadata_resultTupleSchemeFactory implements SchemeFactory { + public update_creation_metadata_resultTupleScheme getScheme() { + return new update_creation_metadata_resultTupleScheme(); } } - private static class get_tables_ext_resultTupleScheme extends TupleScheme { + private static class update_creation_metadata_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO1()) { + if (struct.isSetO2()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (ExtendedTableInfo _iter1398 : struct.success) - { - _iter1398.write(oprot); - } - } + if (struct.isSetO3()) { + optionals.set(2); } + oprot.writeBitSet(optionals, 3); if (struct.isSetO1()) { struct.o1.write(oprot); } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1399 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1399.size); - ExtendedTableInfo _elem1400; - for (int _i1401 = 0; _i1401 < _list1399.size; ++_i1401) - { - _elem1400 = new ExtendedTableInfo(); - _elem1400.read(iprot); - struct.success.add(_elem1400); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } + if (incoming.get(1)) { + struct.o2 = new InvalidOperationException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + if (incoming.get(2)) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_req_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_names_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_names_by_filter_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (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)1); + private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField MAX_TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_tables", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_names_by_filter_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_names_by_filter_argsTupleSchemeFactory()); } - private GetTableRequest req; // required + private String dbname; // required + private String filter; // required + private short max_tables; // 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 { - REQ((short)1, "req"); + DBNAME((short)1, "dbname"), + FILTER((short)2, "filter"), + MAX_TABLES((short)3, "max_tables"); private static final Map byName = new HashMap(); @@ -81247,8 +88668,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_resul */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DBNAME + return DBNAME; + case 2: // FILTER + return FILTER; + case 3: // MAX_TABLES + return MAX_TABLES; default: return null; } @@ -81289,73 +88714,155 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_TABLES_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTableRequest.class))); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_TABLES, new org.apache.thrift.meta_data.FieldMetaData("max_tables", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_args.class, metaDataMap); } - public get_table_req_args() { + public get_table_names_by_filter_args() { + this.max_tables = (short)-1; + } - public get_table_req_args( - GetTableRequest req) + public get_table_names_by_filter_args( + String dbname, + String filter, + short max_tables) { this(); - this.req = req; + this.dbname = dbname; + this.filter = filter; + this.max_tables = max_tables; + setMax_tablesIsSet(true); } /** * Performs a deep copy on other. */ - public get_table_req_args(get_table_req_args other) { - if (other.isSetReq()) { - this.req = new GetTableRequest(other.req); + public get_table_names_by_filter_args(get_table_names_by_filter_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetFilter()) { + this.filter = other.filter; } + this.max_tables = other.max_tables; } - public get_table_req_args deepCopy() { - return new get_table_req_args(this); + public get_table_names_by_filter_args deepCopy() { + return new get_table_names_by_filter_args(this); } @Override public void clear() { - this.req = null; + this.dbname = null; + this.filter = null; + this.max_tables = (short)-1; + } - public GetTableRequest getReq() { - return this.req; + public String getDbname() { + return this.dbname; } - public void setReq(GetTableRequest req) { - this.req = req; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetReq() { - this.req = null; + public void unsetDbname() { + this.dbname = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != 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 setReqIsSet(boolean value) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.req = null; + this.dbname = null; + } + } + + public String getFilter() { + return this.filter; + } + + public void setFilter(String filter) { + this.filter = filter; + } + + public void unsetFilter() { + this.filter = null; + } + + /** Returns true if field filter is set (has been assigned a value) and false otherwise */ + public boolean isSetFilter() { + return this.filter != null; + } + + public void setFilterIsSet(boolean value) { + if (!value) { + this.filter = null; } } + public short getMax_tables() { + return this.max_tables; + } + + public void setMax_tables(short max_tables) { + this.max_tables = max_tables; + setMax_tablesIsSet(true); + } + + public void unsetMax_tables() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); + } + + /** Returns true if field max_tables is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_tables() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); + } + + public void setMax_tablesIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_TABLES_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case DBNAME: if (value == null) { - unsetReq(); + unsetDbname(); } else { - setReq((GetTableRequest)value); + setDbname((String)value); + } + break; + + case FILTER: + if (value == null) { + unsetFilter(); + } else { + setFilter((String)value); + } + break; + + case MAX_TABLES: + if (value == null) { + unsetMax_tables(); + } else { + setMax_tables((Short)value); } break; @@ -81364,8 +88871,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DBNAME: + return getDbname(); + + case FILTER: + return getFilter(); + + case MAX_TABLES: + return getMax_tables(); } throw new IllegalStateException(); @@ -81378,8 +88891,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DBNAME: + return isSetDbname(); + case FILTER: + return isSetFilter(); + case MAX_TABLES: + return isSetMax_tables(); } throw new IllegalStateException(); } @@ -81388,21 +88905,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_req_args) - return this.equals((get_table_req_args)that); + if (that instanceof get_table_names_by_filter_args) + return this.equals((get_table_names_by_filter_args)that); return false; } - public boolean equals(get_table_req_args that) { + public boolean equals(get_table_names_by_filter_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + 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.req.equals(that.req)) + if (!this.dbname.equals(that.dbname)) + return false; + } + + boolean this_present_filter = true && this.isSetFilter(); + boolean that_present_filter = true && that.isSetFilter(); + if (this_present_filter || that_present_filter) { + if (!(this_present_filter && that_present_filter)) + return false; + if (!this.filter.equals(that.filter)) + return false; + } + + boolean this_present_max_tables = true; + boolean that_present_max_tables = true; + if (this_present_max_tables || that_present_max_tables) { + if (!(this_present_max_tables && that_present_max_tables)) + return false; + if (this.max_tables != that.max_tables) return false; } @@ -81413,28 +88948,58 @@ public boolean equals(get_table_req_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_filter = true && (isSetFilter()); + list.add(present_filter); + if (present_filter) + list.add(filter); + + boolean present_max_tables = true; + list.add(present_max_tables); + if (present_max_tables) + list.add(max_tables); return list.hashCode(); } @Override - public int compareTo(get_table_req_args other) { + public int compareTo(get_table_names_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFilter()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMax_tables()).compareTo(other.isSetMax_tables()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMax_tables()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_tables, other.max_tables); if (lastComparison != 0) { return lastComparison; } @@ -81456,16 +89021,28 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_req_args("); + StringBuilder sb = new StringBuilder("get_table_names_by_filter_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.dbname); + } + first = false; + if (!first) sb.append(", "); + sb.append("filter:"); + if (this.filter == null) { + sb.append("null"); + } else { + sb.append(this.filter); } first = false; + if (!first) sb.append(", "); + sb.append("max_tables:"); + sb.append(this.max_tables); + first = false; sb.append(")"); return sb.toString(); } @@ -81473,9 +89050,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -81488,21 +89062,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_table_req_argsStandardSchemeFactory implements SchemeFactory { - public get_table_req_argsStandardScheme getScheme() { - return new get_table_req_argsStandardScheme(); + private static class get_table_names_by_filter_argsStandardSchemeFactory implements SchemeFactory { + public get_table_names_by_filter_argsStandardScheme getScheme() { + return new get_table_names_by_filter_argsStandardScheme(); } } - private static class get_table_req_argsStandardScheme extends StandardScheme { + private static class get_table_names_by_filter_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -81512,11 +89088,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetTableRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + case 1: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // FILTER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // MAX_TABLES + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_tables = iprot.readI16(); + struct.setMax_tablesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -81530,78 +89121,108 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.filter != null) { + oprot.writeFieldBegin(FILTER_FIELD_DESC); + oprot.writeString(struct.filter); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(MAX_TABLES_FIELD_DESC); + oprot.writeI16(struct.max_tables); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_req_argsTupleSchemeFactory implements SchemeFactory { - public get_table_req_argsTupleScheme getScheme() { - return new get_table_req_argsTupleScheme(); + private static class get_table_names_by_filter_argsTupleSchemeFactory implements SchemeFactory { + public get_table_names_by_filter_argsTupleScheme getScheme() { + return new get_table_names_by_filter_argsTupleScheme(); } } - private static class get_table_req_argsTupleScheme extends TupleScheme { + private static class get_table_names_by_filter_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDbname()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetFilter()) { + optionals.set(1); + } + if (struct.isSetMax_tables()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetFilter()) { + oprot.writeString(struct.filter); + } + if (struct.isSetMax_tables()) { + oprot.writeI16(struct.max_tables); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.req = new GetTableRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(1)) { + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); + } + if (incoming.get(2)) { + struct.max_tables = iprot.readI16(); + struct.setMax_tablesIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_req_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_names_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_names_by_filter_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_names_by_filter_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_names_by_filter_resultTupleSchemeFactory()); } - private GetTableResult success; // required + private List success; // required private MetaException o1; // required - private NoSuchObjectException o2; // required + private InvalidOperationException o2; // required + private UnknownDBException o3; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -81622,6 +89243,8 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -81666,46 +89289,55 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTableResult.class))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_result.class, metaDataMap); } - public get_table_req_result() { + public get_table_names_by_filter_result() { } - public get_table_req_result( - GetTableResult success, + public get_table_names_by_filter_result( + List success, MetaException o1, - NoSuchObjectException o2) + InvalidOperationException o2, + UnknownDBException o3) { this(); this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_table_req_result(get_table_req_result other) { + public get_table_names_by_filter_result(get_table_names_by_filter_result other) { if (other.isSetSuccess()) { - this.success = new GetTableResult(other.success); + List __this__success = new ArrayList(other.success); + this.success = __this__success; } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new InvalidOperationException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new UnknownDBException(other.o3); } } - public get_table_req_result deepCopy() { - return new get_table_req_result(this); + public get_table_names_by_filter_result deepCopy() { + return new get_table_names_by_filter_result(this); } @Override @@ -81713,13 +89345,29 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; } - public GetTableResult getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(GetTableResult success) { + public void setSuccess(List success) { this.success = success; } @@ -81761,11 +89409,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public InvalidOperationException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(InvalidOperationException o2) { this.o2 = o2; } @@ -81784,13 +89432,36 @@ public void setO2IsSet(boolean value) { } } + public UnknownDBException getO3() { + return this.o3; + } + + public void setO3(UnknownDBException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((GetTableResult)value); + setSuccess((List)value); } break; @@ -81806,7 +89477,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((InvalidOperationException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((UnknownDBException)value); } break; @@ -81824,6 +89503,9 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -81841,6 +89523,8 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -81849,12 +89533,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_req_result) - return this.equals((get_table_req_result)that); + if (that instanceof get_table_names_by_filter_result) + return this.equals((get_table_names_by_filter_result)that); return false; } - public boolean equals(get_table_req_result that) { + public boolean equals(get_table_names_by_filter_result that) { if (that == null) return false; @@ -81885,6 +89569,15 @@ public boolean equals(get_table_req_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + return true; } @@ -81907,11 +89600,16 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(get_table_req_result other) { + public int compareTo(get_table_names_by_filter_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -81948,6 +89646,16 @@ public int compareTo(get_table_req_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -81965,7 +89673,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_req_result("); + StringBuilder sb = new StringBuilder("get_table_names_by_filter_result("); boolean first = true; sb.append("success:"); @@ -81991,6 +89699,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -81998,9 +89714,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -82019,15 +89732,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_req_resultStandardSchemeFactory implements SchemeFactory { - public get_table_req_resultStandardScheme getScheme() { - return new get_table_req_resultStandardScheme(); + private static class get_table_names_by_filter_resultStandardSchemeFactory implements SchemeFactory { + public get_table_names_by_filter_resultStandardScheme getScheme() { + return new get_table_names_by_filter_resultStandardScheme(); } } - private static class get_table_req_resultStandardScheme extends StandardScheme { + private static class get_table_names_by_filter_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -82038,9 +89751,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_resul } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GetTableResult(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1474 = iprot.readListBegin(); + struct.success = new ArrayList(_list1474.size); + String _elem1475; + for (int _i1476 = 0; _i1476 < _list1474.size; ++_i1476) + { + _elem1475 = iprot.readString(); + struct.success.add(_elem1475); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -82057,13 +89779,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_resul break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -82073,13 +89804,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_resul struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1477 : struct.success) + { + oprot.writeString(_iter1477); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -82092,22 +89830,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_resu struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_req_resultTupleSchemeFactory implements SchemeFactory { - public get_table_req_resultTupleScheme getScheme() { - return new get_table_req_resultTupleScheme(); + private static class get_table_names_by_filter_resultTupleSchemeFactory implements SchemeFactory { + public get_table_names_by_filter_resultTupleScheme getScheme() { + return new get_table_names_by_filter_resultTupleScheme(); } } - private static class get_table_req_resultTupleScheme extends TupleScheme { + private static class get_table_names_by_filter_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -82119,9 +89862,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_resul if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (String _iter1478 : struct.success) + { + oprot.writeString(_iter1478); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -82129,15 +89881,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_resul if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new GetTableResult(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list1479 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1479.size); + String _elem1480; + for (int _i1481 = 0; _i1481 < _list1479.size; ++_i1481) + { + _elem1480 = iprot.readString(); + struct.success.add(_elem1480); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -82146,31 +89909,42 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_req_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (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)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_argsTupleSchemeFactory()); } - private GetTablesRequest req; // required + private String dbname; // required + private String tbl_name; // required + private Table new_tbl; // 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 { - REQ((short)1, "req"); + DBNAME((short)1, "dbname"), + TBL_NAME((short)2, "tbl_name"), + NEW_TBL((short)3, "new_tbl"); private static final Map byName = new HashMap(); @@ -82185,8 +89959,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DBNAME + return DBNAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // NEW_TBL + return NEW_TBL; default: return null; } @@ -82230,70 +90008,148 @@ public String getFieldName() { 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesRequest.class))); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_args.class, metaDataMap); } - public get_table_objects_by_name_req_args() { + public alter_table_args() { } - public get_table_objects_by_name_req_args( - GetTablesRequest req) + public alter_table_args( + String dbname, + String tbl_name, + Table new_tbl) { this(); - this.req = req; + this.dbname = dbname; + this.tbl_name = tbl_name; + this.new_tbl = new_tbl; } /** * Performs a deep copy on other. */ - public get_table_objects_by_name_req_args(get_table_objects_by_name_req_args other) { - if (other.isSetReq()) { - this.req = new GetTablesRequest(other.req); + public alter_table_args(alter_table_args other) { + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetNew_tbl()) { + this.new_tbl = new Table(other.new_tbl); } } - public get_table_objects_by_name_req_args deepCopy() { - return new get_table_objects_by_name_req_args(this); + public alter_table_args deepCopy() { + return new alter_table_args(this); } @Override public void clear() { - this.req = null; + this.dbname = null; + this.tbl_name = null; + this.new_tbl = null; } - public GetTablesRequest getReq() { - return this.req; + public String getDbname() { + return this.dbname; } - public void setReq(GetTablesRequest req) { - this.req = req; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetReq() { - this.req = null; + public void unsetDbname() { + this.dbname = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != 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 setReqIsSet(boolean value) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.req = null; + this.dbname = null; + } + } + + public String getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } + } + + public Table getNew_tbl() { + return this.new_tbl; + } + + public void setNew_tbl(Table new_tbl) { + this.new_tbl = new_tbl; + } + + public void unsetNew_tbl() { + this.new_tbl = null; + } + + /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_tbl() { + return this.new_tbl != null; + } + + public void setNew_tblIsSet(boolean value) { + if (!value) { + this.new_tbl = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case DBNAME: if (value == null) { - unsetReq(); + unsetDbname(); } else { - setReq((GetTablesRequest)value); + setDbname((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case NEW_TBL: + if (value == null) { + unsetNew_tbl(); + } else { + setNew_tbl((Table)value); } break; @@ -82302,8 +90158,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DBNAME: + return getDbname(); + + case TBL_NAME: + return getTbl_name(); + + case NEW_TBL: + return getNew_tbl(); } throw new IllegalStateException(); @@ -82316,8 +90178,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DBNAME: + return isSetDbname(); + case TBL_NAME: + return isSetTbl_name(); + case NEW_TBL: + return isSetNew_tbl(); } throw new IllegalStateException(); } @@ -82326,21 +90192,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_objects_by_name_req_args) - return this.equals((get_table_objects_by_name_req_args)that); + if (that instanceof alter_table_args) + return this.equals((alter_table_args)that); return false; } - public boolean equals(get_table_objects_by_name_req_args that) { + public boolean equals(alter_table_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + 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.req.equals(that.req)) + if (!this.dbname.equals(that.dbname)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_new_tbl = true && this.isSetNew_tbl(); + boolean that_present_new_tbl = true && that.isSetNew_tbl(); + if (this_present_new_tbl || that_present_new_tbl) { + if (!(this_present_new_tbl && that_present_new_tbl)) + return false; + if (!this.new_tbl.equals(that.new_tbl)) return false; } @@ -82351,28 +90235,58 @@ public boolean equals(get_table_objects_by_name_req_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_new_tbl = true && (isSetNew_tbl()); + list.add(present_new_tbl); + if (present_new_tbl) + list.add(new_tbl); return list.hashCode(); } @Override - public int compareTo(get_table_objects_by_name_req_args other) { + public int compareTo(alter_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNew_tbl()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); if (lastComparison != 0) { return lastComparison; } @@ -82394,14 +90308,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_args("); + StringBuilder sb = new StringBuilder("alter_table_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.dbname); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("new_tbl:"); + if (this.new_tbl == null) { + sb.append("null"); + } else { + sb.append(this.new_tbl); } first = false; sb.append(")"); @@ -82411,8 +90341,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); + if (new_tbl != null) { + new_tbl.validate(); } } @@ -82432,15 +90362,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_objects_by_name_req_argsStandardSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_argsStandardScheme getScheme() { - return new get_table_objects_by_name_req_argsStandardScheme(); + private static class alter_table_argsStandardSchemeFactory implements SchemeFactory { + public alter_table_argsStandardScheme getScheme() { + return new alter_table_argsStandardScheme(); } } - private static class get_table_objects_by_name_req_argsStandardScheme extends StandardScheme { + private static class alter_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -82450,11 +90380,27 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b break; } switch (schemeField.id) { - case 1: // REQ + case 1: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NEW_TBL if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetTablesRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.new_tbl = new Table(); + struct.new_tbl.read(iprot); + struct.setNew_tblIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -82468,13 +90414,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.new_tbl != null) { + oprot.writeFieldBegin(NEW_TBL_FIELD_DESC); + struct.new_tbl.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -82483,66 +90439,80 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ } - private static class get_table_objects_by_name_req_argsTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_argsTupleScheme getScheme() { - return new get_table_objects_by_name_req_argsTupleScheme(); + private static class alter_table_argsTupleSchemeFactory implements SchemeFactory { + public alter_table_argsTupleScheme getScheme() { + return new alter_table_argsTupleScheme(); } } - private static class get_table_objects_by_name_req_argsTupleScheme extends TupleScheme { + private static class alter_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDbname()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetNew_tbl()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetNew_tbl()) { + struct.new_tbl.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.req = new GetTablesRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + struct.new_tbl = new Table(); + struct.new_tbl.read(iprot); + struct.setNew_tblIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_req_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_resultTupleSchemeFactory()); } - private GetTablesResult success; // required - private MetaException o1; // required - private InvalidOperationException o2; // required - private UnknownDBException o3; // required + private InvalidOperationException o1; // required + private MetaException o2; // 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 { - SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -82557,14 +90527,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -82608,92 +90574,53 @@ public String getFieldName() { 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesResult.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_result.class, metaDataMap); } - public get_table_objects_by_name_req_result() { + public alter_table_result() { } - public get_table_objects_by_name_req_result( - GetTablesResult success, - MetaException o1, - InvalidOperationException o2, - UnknownDBException o3) + public alter_table_result( + InvalidOperationException o1, + MetaException o2) { this(); - this.success = success; this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_table_objects_by_name_req_result(get_table_objects_by_name_req_result other) { - if (other.isSetSuccess()) { - this.success = new GetTablesResult(other.success); - } + public alter_table_result(alter_table_result other) { if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new InvalidOperationException(other.o1); } if (other.isSetO2()) { - this.o2 = new InvalidOperationException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new UnknownDBException(other.o3); + this.o2 = new MetaException(other.o2); } } - public get_table_objects_by_name_req_result deepCopy() { - return new get_table_objects_by_name_req_result(this); + public alter_table_result deepCopy() { + return new alter_table_result(this); } @Override public void clear() { - this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; - } - - public GetTablesResult getSuccess() { - return this.success; - } - - public void setSuccess(GetTablesResult success) { - this.success = success; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } } - public MetaException getO1() { + public InvalidOperationException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(InvalidOperationException o1) { this.o1 = o1; } @@ -82712,11 +90639,11 @@ public void setO1IsSet(boolean value) { } } - public InvalidOperationException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(InvalidOperationException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -82735,44 +90662,13 @@ public void setO2IsSet(boolean value) { } } - public UnknownDBException getO3() { - return this.o3; - } - - public void setO3(UnknownDBException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((GetTablesResult)value); - } - break; - case O1: if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((InvalidOperationException)value); } break; @@ -82780,15 +90676,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((InvalidOperationException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((UnknownDBException)value); + setO2((MetaException)value); } break; @@ -82797,18 +90685,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -82820,14 +90702,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -82836,24 +90714,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_objects_by_name_req_result) - return this.equals((get_table_objects_by_name_req_result)that); + if (that instanceof alter_table_result) + return this.equals((alter_table_result)that); return false; } - public boolean equals(get_table_objects_by_name_req_result that) { + public boolean equals(alter_table_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -82872,15 +90741,6 @@ public boolean equals(get_table_objects_by_name_req_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @@ -82888,11 +90748,6 @@ public boolean equals(get_table_objects_by_name_req_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -82903,32 +90758,17 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(get_table_objects_by_name_req_result other) { + public int compareTo(alter_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -82949,16 +90789,6 @@ public int compareTo(get_table_objects_by_name_req_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -82976,17 +90806,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_result("); + StringBuilder sb = new StringBuilder("alter_table_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -83002,14 +90824,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -83017,9 +90831,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -83038,15 +90849,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_objects_by_name_req_resultStandardSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_resultStandardScheme getScheme() { - return new get_table_objects_by_name_req_resultStandardScheme(); + private static class alter_table_resultStandardSchemeFactory implements SchemeFactory { + public alter_table_resultStandardScheme getScheme() { + return new alter_table_resultStandardScheme(); } } - private static class get_table_objects_by_name_req_resultStandardScheme extends StandardScheme { + private static class alter_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -83056,18 +90867,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GetTablesResult(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -83076,22 +90878,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new InvalidOperationException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -83101,15 +90894,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -83120,104 +90908,83 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_objects_by_name_req_resultTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_resultTupleScheme getScheme() { - return new get_table_objects_by_name_req_resultTupleScheme(); + private static class alter_table_resultTupleSchemeFactory implements SchemeFactory { + public alter_table_resultTupleScheme getScheme() { + return new alter_table_resultTupleScheme(); } } - private static class get_table_objects_by_name_req_resultTupleScheme extends TupleScheme { + private static class alter_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } if (struct.isSetO1()) { - optionals.set(1); + optionals.set(0); } if (struct.isSetO2()) { - optionals.set(2); - } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetSuccess()) { - struct.success.write(oprot); + optionals.set(1); } + oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new GetTablesResult(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(2)) { - struct.o2 = new InvalidOperationException(); + if (incoming.get(1)) { + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialization_invalidation_info_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_environment_context_args"); - private static final org.apache.thrift.protocol.TField CREATION_METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("creation_metadata", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField VALID_TXN_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validTxnList", org.apache.thrift.protocol.TType.STRING, (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)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_materialization_invalidation_info_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_materialization_invalidation_info_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_with_environment_context_argsTupleSchemeFactory()); } - private CreationMetadata creation_metadata; // required - private String validTxnList; // required + private String dbname; // required + private String tbl_name; // required + private Table new_tbl; // required + private EnvironmentContext environment_context; // 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 { - CREATION_METADATA((short)1, "creation_metadata"), - VALID_TXN_LIST((short)2, "validTxnList"); + DBNAME((short)1, "dbname"), + TBL_NAME((short)2, "tbl_name"), + NEW_TBL((short)3, "new_tbl"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -83232,10 +90999,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // CREATION_METADATA - return CREATION_METADATA; - case 2: // VALID_TXN_LIST - return VALID_TXN_LIST; + case 1: // DBNAME + return DBNAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // NEW_TBL + return NEW_TBL; + case 4: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -83279,109 +91050,187 @@ public String getFieldName() { 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.CREATION_METADATA, new org.apache.thrift.meta_data.FieldMetaData("creation_metadata", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreationMetadata.class))); - tmpMap.put(_Fields.VALID_TXN_LIST, new org.apache.thrift.meta_data.FieldMetaData("validTxnList", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialization_invalidation_info_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_environment_context_args.class, metaDataMap); } - public get_materialization_invalidation_info_args() { + public alter_table_with_environment_context_args() { } - public get_materialization_invalidation_info_args( - CreationMetadata creation_metadata, - String validTxnList) + public alter_table_with_environment_context_args( + String dbname, + String tbl_name, + Table new_tbl, + EnvironmentContext environment_context) { this(); - this.creation_metadata = creation_metadata; - this.validTxnList = validTxnList; + this.dbname = dbname; + this.tbl_name = tbl_name; + this.new_tbl = new_tbl; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public get_materialization_invalidation_info_args(get_materialization_invalidation_info_args other) { - if (other.isSetCreation_metadata()) { - this.creation_metadata = new CreationMetadata(other.creation_metadata); + public alter_table_with_environment_context_args(alter_table_with_environment_context_args other) { + if (other.isSetDbname()) { + this.dbname = other.dbname; } - if (other.isSetValidTxnList()) { - this.validTxnList = other.validTxnList; + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetNew_tbl()) { + this.new_tbl = new Table(other.new_tbl); + } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } } - public get_materialization_invalidation_info_args deepCopy() { - return new get_materialization_invalidation_info_args(this); + public alter_table_with_environment_context_args deepCopy() { + return new alter_table_with_environment_context_args(this); } @Override public void clear() { - this.creation_metadata = null; - this.validTxnList = null; + this.dbname = null; + this.tbl_name = null; + this.new_tbl = null; + this.environment_context = null; } - public CreationMetadata getCreation_metadata() { - return this.creation_metadata; + public String getDbname() { + return this.dbname; } - public void setCreation_metadata(CreationMetadata creation_metadata) { - this.creation_metadata = creation_metadata; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetCreation_metadata() { - this.creation_metadata = null; + public void unsetDbname() { + this.dbname = null; } - /** Returns true if field creation_metadata is set (has been assigned a value) and false otherwise */ - public boolean isSetCreation_metadata() { - return this.creation_metadata != 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 setCreation_metadataIsSet(boolean value) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.creation_metadata = null; + this.dbname = null; } } - public String getValidTxnList() { - return this.validTxnList; + public String getTbl_name() { + return this.tbl_name; } - public void setValidTxnList(String validTxnList) { - this.validTxnList = validTxnList; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetValidTxnList() { - this.validTxnList = null; + public void unsetTbl_name() { + this.tbl_name = null; } - /** Returns true if field validTxnList is set (has been assigned a value) and false otherwise */ - public boolean isSetValidTxnList() { - return this.validTxnList != null; + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; } - public void setValidTxnListIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.validTxnList = null; + this.tbl_name = null; + } + } + + public Table getNew_tbl() { + return this.new_tbl; + } + + public void setNew_tbl(Table new_tbl) { + this.new_tbl = new_tbl; + } + + public void unsetNew_tbl() { + this.new_tbl = null; + } + + /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_tbl() { + return this.new_tbl != null; + } + + public void setNew_tblIsSet(boolean value) { + if (!value) { + this.new_tbl = null; + } + } + + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case CREATION_METADATA: + case DBNAME: if (value == null) { - unsetCreation_metadata(); + unsetDbname(); } else { - setCreation_metadata((CreationMetadata)value); + setDbname((String)value); } break; - case VALID_TXN_LIST: + case TBL_NAME: if (value == null) { - unsetValidTxnList(); + unsetTbl_name(); } else { - setValidTxnList((String)value); + setTbl_name((String)value); + } + break; + + case NEW_TBL: + if (value == null) { + unsetNew_tbl(); + } else { + setNew_tbl((Table)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -83390,11 +91239,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case CREATION_METADATA: - return getCreation_metadata(); + case DBNAME: + return getDbname(); - case VALID_TXN_LIST: - return getValidTxnList(); + case TBL_NAME: + return getTbl_name(); + + case NEW_TBL: + return getNew_tbl(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -83407,10 +91262,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case CREATION_METADATA: - return isSetCreation_metadata(); - case VALID_TXN_LIST: - return isSetValidTxnList(); + case DBNAME: + return isSetDbname(); + case TBL_NAME: + return isSetTbl_name(); + case NEW_TBL: + return isSetNew_tbl(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -83419,30 +91278,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_materialization_invalidation_info_args) - return this.equals((get_materialization_invalidation_info_args)that); + if (that instanceof alter_table_with_environment_context_args) + return this.equals((alter_table_with_environment_context_args)that); return false; } - public boolean equals(get_materialization_invalidation_info_args that) { + public boolean equals(alter_table_with_environment_context_args that) { if (that == null) return false; - boolean this_present_creation_metadata = true && this.isSetCreation_metadata(); - boolean that_present_creation_metadata = true && that.isSetCreation_metadata(); - if (this_present_creation_metadata || that_present_creation_metadata) { - if (!(this_present_creation_metadata && that_present_creation_metadata)) + 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.creation_metadata.equals(that.creation_metadata)) + if (!this.dbname.equals(that.dbname)) return false; } - boolean this_present_validTxnList = true && this.isSetValidTxnList(); - boolean that_present_validTxnList = true && that.isSetValidTxnList(); - if (this_present_validTxnList || that_present_validTxnList) { - if (!(this_present_validTxnList && that_present_validTxnList)) + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) return false; - if (!this.validTxnList.equals(that.validTxnList)) + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_new_tbl = true && this.isSetNew_tbl(); + boolean that_present_new_tbl = true && that.isSetNew_tbl(); + if (this_present_new_tbl || that_present_new_tbl) { + if (!(this_present_new_tbl && that_present_new_tbl)) + return false; + if (!this.new_tbl.equals(that.new_tbl)) + return false; + } + + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) return false; } @@ -83453,43 +91330,73 @@ public boolean equals(get_materialization_invalidation_info_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_creation_metadata = true && (isSetCreation_metadata()); - list.add(present_creation_metadata); - if (present_creation_metadata) - list.add(creation_metadata); + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); - boolean present_validTxnList = true && (isSetValidTxnList()); - list.add(present_validTxnList); - if (present_validTxnList) - list.add(validTxnList); + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_new_tbl = true && (isSetNew_tbl()); + list.add(present_new_tbl); + if (present_new_tbl) + list.add(new_tbl); + + boolean present_environment_context = true && (isSetEnvironment_context()); + list.add(present_environment_context); + if (present_environment_context) + list.add(environment_context); return list.hashCode(); } @Override - public int compareTo(get_materialization_invalidation_info_args other) { + public int compareTo(alter_table_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetCreation_metadata()).compareTo(other.isSetCreation_metadata()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetCreation_metadata()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creation_metadata, other.creation_metadata); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValidTxnList()).compareTo(other.isSetValidTxnList()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetValidTxnList()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validTxnList, other.validTxnList); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNew_tbl()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -83511,22 +91418,38 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_materialization_invalidation_info_args("); + StringBuilder sb = new StringBuilder("alter_table_with_environment_context_args("); boolean first = true; - sb.append("creation_metadata:"); - if (this.creation_metadata == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.creation_metadata); + sb.append(this.dbname); } first = false; if (!first) sb.append(", "); - sb.append("validTxnList:"); - if (this.validTxnList == null) { + sb.append("tbl_name:"); + if (this.tbl_name == null) { sb.append("null"); } else { - sb.append(this.validTxnList); + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("new_tbl:"); + if (this.new_tbl == null) { + sb.append("null"); + } else { + sb.append(this.new_tbl); + } + first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); } first = false; sb.append(")"); @@ -83536,8 +91459,11 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (creation_metadata != null) { - creation_metadata.validate(); + if (new_tbl != null) { + new_tbl.validate(); + } + if (environment_context != null) { + environment_context.validate(); } } @@ -83557,15 +91483,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_materialization_invalidation_info_argsStandardSchemeFactory implements SchemeFactory { - public get_materialization_invalidation_info_argsStandardScheme getScheme() { - return new get_materialization_invalidation_info_argsStandardScheme(); + private static class alter_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public alter_table_with_environment_context_argsStandardScheme getScheme() { + return new alter_table_with_environment_context_argsStandardScheme(); } } - private static class get_materialization_invalidation_info_argsStandardScheme extends StandardScheme { + private static class alter_table_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -83575,19 +91501,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization break; } switch (schemeField.id) { - case 1: // CREATION_METADATA - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.creation_metadata = new CreationMetadata(); - struct.creation_metadata.read(iprot); - struct.setCreation_metadataIsSet(true); + case 1: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // VALID_TXN_LIST + case 2: // TBL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.validTxnList = iprot.readString(); - struct.setValidTxnListIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NEW_TBL + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.new_tbl = new Table(); + struct.new_tbl.read(iprot); + struct.setNew_tblIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -83601,18 +91544,28 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.creation_metadata != null) { - oprot.writeFieldBegin(CREATION_METADATA_FIELD_DESC); - struct.creation_metadata.write(oprot); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); oprot.writeFieldEnd(); } - if (struct.validTxnList != null) { - oprot.writeFieldBegin(VALID_TXN_LIST_FIELD_DESC); - oprot.writeString(struct.validTxnList); + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.new_tbl != null) { + oprot.writeFieldBegin(NEW_TBL_FIELD_DESC); + struct.new_tbl.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -83621,76 +91574,91 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materializatio } - private static class get_materialization_invalidation_info_argsTupleSchemeFactory implements SchemeFactory { - public get_materialization_invalidation_info_argsTupleScheme getScheme() { - return new get_materialization_invalidation_info_argsTupleScheme(); + private static class alter_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public alter_table_with_environment_context_argsTupleScheme getScheme() { + return new alter_table_with_environment_context_argsTupleScheme(); } } - private static class get_materialization_invalidation_info_argsTupleScheme extends TupleScheme { + private static class alter_table_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetCreation_metadata()) { + if (struct.isSetDbname()) { optionals.set(0); } - if (struct.isSetValidTxnList()) { + if (struct.isSetTbl_name()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetCreation_metadata()) { - struct.creation_metadata.write(oprot); + if (struct.isSetNew_tbl()) { + optionals.set(2); } - if (struct.isSetValidTxnList()) { - oprot.writeString(struct.validTxnList); + if (struct.isSetEnvironment_context()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetNew_tbl()) { + struct.new_tbl.write(oprot); + } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.creation_metadata = new CreationMetadata(); - struct.creation_metadata.read(iprot); - struct.setCreation_metadataIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); } if (incoming.get(1)) { - struct.validTxnList = iprot.readString(); - struct.setValidTxnListIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + struct.new_tbl = new Table(); + struct.new_tbl.read(iprot); + struct.setNew_tblIsSet(true); + } + if (incoming.get(3)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialization_invalidation_info_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_environment_context_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_materialization_invalidation_info_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_materialization_invalidation_info_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_with_environment_context_resultTupleSchemeFactory()); } - private Materialization success; // required - private MetaException o1; // required - private InvalidOperationException o2; // required - private UnknownDBException o3; // required + private InvalidOperationException o1; // required + private MetaException o2; // 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 { - SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -83705,14 +91673,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -83756,92 +91720,53 @@ public String getFieldName() { 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Materialization.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialization_invalidation_info_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_environment_context_result.class, metaDataMap); } - public get_materialization_invalidation_info_result() { + public alter_table_with_environment_context_result() { } - public get_materialization_invalidation_info_result( - Materialization success, - MetaException o1, - InvalidOperationException o2, - UnknownDBException o3) + public alter_table_with_environment_context_result( + InvalidOperationException o1, + MetaException o2) { this(); - this.success = success; this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_materialization_invalidation_info_result(get_materialization_invalidation_info_result other) { - if (other.isSetSuccess()) { - this.success = new Materialization(other.success); - } + public alter_table_with_environment_context_result(alter_table_with_environment_context_result other) { if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new InvalidOperationException(other.o1); } if (other.isSetO2()) { - this.o2 = new InvalidOperationException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new UnknownDBException(other.o3); + this.o2 = new MetaException(other.o2); } } - public get_materialization_invalidation_info_result deepCopy() { - return new get_materialization_invalidation_info_result(this); + public alter_table_with_environment_context_result deepCopy() { + return new alter_table_with_environment_context_result(this); } @Override public void clear() { - this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; - } - - public Materialization getSuccess() { - return this.success; - } - - public void setSuccess(Materialization success) { - this.success = success; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } } - public MetaException getO1() { + public InvalidOperationException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(InvalidOperationException o1) { this.o1 = o1; } @@ -83860,67 +91785,36 @@ public void setO1IsSet(boolean value) { } } - public InvalidOperationException getO2() { + public MetaException getO2() { return this.o2; } - - public void setO2(InvalidOperationException o2) { - this.o2 = o2; - } - - public void unsetO2() { - this.o2 = null; - } - - /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ - public boolean isSetO2() { - return this.o2 != null; - } - - public void setO2IsSet(boolean value) { - if (!value) { - this.o2 = null; - } - } - - public UnknownDBException getO3() { - return this.o3; - } - - public void setO3(UnknownDBException o3) { - this.o3 = o3; + + public void setO2(MetaException o2) { + this.o2 = o2; } - public void unsetO3() { - this.o3 = null; + public void unsetO2() { + this.o2 = null; } - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; } - public void setO3IsSet(boolean value) { + public void setO2IsSet(boolean value) { if (!value) { - this.o3 = null; + this.o2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Materialization)value); - } - break; - case O1: if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((InvalidOperationException)value); } break; @@ -83928,15 +91822,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((InvalidOperationException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((UnknownDBException)value); + setO2((MetaException)value); } break; @@ -83945,18 +91831,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -83968,14 +91848,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -83984,24 +91860,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_materialization_invalidation_info_result) - return this.equals((get_materialization_invalidation_info_result)that); + if (that instanceof alter_table_with_environment_context_result) + return this.equals((alter_table_with_environment_context_result)that); return false; } - public boolean equals(get_materialization_invalidation_info_result that) { + public boolean equals(alter_table_with_environment_context_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -84020,15 +91887,6 @@ public boolean equals(get_materialization_invalidation_info_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @@ -84036,11 +91894,6 @@ public boolean equals(get_materialization_invalidation_info_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -84051,32 +91904,17 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(get_materialization_invalidation_info_result other) { + public int compareTo(alter_table_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -84097,16 +91935,6 @@ public int compareTo(get_materialization_invalidation_info_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -84124,17 +91952,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_materialization_invalidation_info_result("); + StringBuilder sb = new StringBuilder("alter_table_with_environment_context_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -84150,14 +91970,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -84165,9 +91977,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -84186,15 +91995,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_materialization_invalidation_info_resultStandardSchemeFactory implements SchemeFactory { - public get_materialization_invalidation_info_resultStandardScheme getScheme() { - return new get_materialization_invalidation_info_resultStandardScheme(); + private static class alter_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public alter_table_with_environment_context_resultStandardScheme getScheme() { + return new alter_table_with_environment_context_resultStandardScheme(); } } - private static class get_materialization_invalidation_info_resultStandardScheme extends StandardScheme { + private static class alter_table_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -84204,18 +92013,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Materialization(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -84224,22 +92024,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new InvalidOperationException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -84249,15 +92040,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -84268,110 +92054,83 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materializatio struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_materialization_invalidation_info_resultTupleSchemeFactory implements SchemeFactory { - public get_materialization_invalidation_info_resultTupleScheme getScheme() { - return new get_materialization_invalidation_info_resultTupleScheme(); + private static class alter_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public alter_table_with_environment_context_resultTupleScheme getScheme() { + return new alter_table_with_environment_context_resultTupleScheme(); } } - private static class get_materialization_invalidation_info_resultTupleScheme extends TupleScheme { + private static class alter_table_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } if (struct.isSetO1()) { - optionals.set(1); + optionals.set(0); } if (struct.isSetO2()) { - optionals.set(2); - } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetSuccess()) { - struct.success.write(oprot); + optionals.set(1); } + oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new Materialization(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(2)) { - struct.o2 = new InvalidOperationException(); + if (incoming.get(1)) { + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_creation_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_creation_metadata_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_with_cascade_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_cascade_args"); - private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (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 TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField CREATION_METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("creation_metadata", org.apache.thrift.protocol.TType.STRUCT, (short)4); + 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)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField CASCADE_FIELD_DESC = new org.apache.thrift.protocol.TField("cascade", org.apache.thrift.protocol.TType.BOOL, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new update_creation_metadata_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new update_creation_metadata_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_with_cascade_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_with_cascade_argsTupleSchemeFactory()); } - private String catName; // required private String dbname; // required private String tbl_name; // required - private CreationMetadata creation_metadata; // required + private Table new_tbl; // required + private boolean cascade; // 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 { - CAT_NAME((short)1, "catName"), - DBNAME((short)2, "dbname"), - TBL_NAME((short)3, "tbl_name"), - CREATION_METADATA((short)4, "creation_metadata"); + DBNAME((short)1, "dbname"), + TBL_NAME((short)2, "tbl_name"), + NEW_TBL((short)3, "new_tbl"), + CASCADE((short)4, "cascade"); private static final Map byName = new HashMap(); @@ -84386,14 +92145,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // CAT_NAME - return CAT_NAME; - case 2: // DBNAME + case 1: // DBNAME return DBNAME; - case 3: // TBL_NAME + case 2: // TBL_NAME return TBL_NAME; - case 4: // CREATION_METADATA - return CREATION_METADATA; + case 3: // NEW_TBL + return NEW_TBL; + case 4: // CASCADE + return CASCADE; default: return null; } @@ -84434,88 +92193,68 @@ public String getFieldName() { } // isset id assignments + private static final int __CASCADE_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.CAT_NAME, new org.apache.thrift.meta_data.FieldMetaData("catName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.CREATION_METADATA, new org.apache.thrift.meta_data.FieldMetaData("creation_metadata", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreationMetadata.class))); + tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.CASCADE, new org.apache.thrift.meta_data.FieldMetaData("cascade", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_creation_metadata_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_cascade_args.class, metaDataMap); } - public update_creation_metadata_args() { + public alter_table_with_cascade_args() { } - public update_creation_metadata_args( - String catName, + public alter_table_with_cascade_args( String dbname, String tbl_name, - CreationMetadata creation_metadata) + Table new_tbl, + boolean cascade) { this(); - this.catName = catName; this.dbname = dbname; this.tbl_name = tbl_name; - this.creation_metadata = creation_metadata; + this.new_tbl = new_tbl; + this.cascade = cascade; + setCascadeIsSet(true); } /** * Performs a deep copy on other. */ - public update_creation_metadata_args(update_creation_metadata_args other) { - if (other.isSetCatName()) { - this.catName = other.catName; - } + public alter_table_with_cascade_args(alter_table_with_cascade_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDbname()) { this.dbname = other.dbname; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetCreation_metadata()) { - this.creation_metadata = new CreationMetadata(other.creation_metadata); + if (other.isSetNew_tbl()) { + this.new_tbl = new Table(other.new_tbl); } + this.cascade = other.cascade; } - public update_creation_metadata_args deepCopy() { - return new update_creation_metadata_args(this); + public alter_table_with_cascade_args deepCopy() { + return new alter_table_with_cascade_args(this); } @Override public void clear() { - this.catName = null; this.dbname = null; this.tbl_name = null; - this.creation_metadata = null; - } - - public String getCatName() { - return this.catName; - } - - public void setCatName(String catName) { - this.catName = catName; - } - - public void unsetCatName() { - this.catName = null; - } - - /** Returns true if field catName is set (has been assigned a value) and false otherwise */ - public boolean isSetCatName() { - return this.catName != null; - } - - public void setCatNameIsSet(boolean value) { - if (!value) { - this.catName = null; - } + this.new_tbl = null; + setCascadeIsSet(false); + this.cascade = false; } public String getDbname() { @@ -84564,39 +92303,53 @@ public void setTbl_nameIsSet(boolean value) { } } - public CreationMetadata getCreation_metadata() { - return this.creation_metadata; + public Table getNew_tbl() { + return this.new_tbl; } - public void setCreation_metadata(CreationMetadata creation_metadata) { - this.creation_metadata = creation_metadata; + public void setNew_tbl(Table new_tbl) { + this.new_tbl = new_tbl; } - public void unsetCreation_metadata() { - this.creation_metadata = null; + public void unsetNew_tbl() { + this.new_tbl = null; } - /** Returns true if field creation_metadata is set (has been assigned a value) and false otherwise */ - public boolean isSetCreation_metadata() { - return this.creation_metadata != null; + /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_tbl() { + return this.new_tbl != null; } - public void setCreation_metadataIsSet(boolean value) { + public void setNew_tblIsSet(boolean value) { if (!value) { - this.creation_metadata = null; + this.new_tbl = null; } } + public boolean isCascade() { + return this.cascade; + } + + public void setCascade(boolean cascade) { + this.cascade = cascade; + setCascadeIsSet(true); + } + + public void unsetCascade() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CASCADE_ISSET_ID); + } + + /** Returns true if field cascade is set (has been assigned a value) and false otherwise */ + public boolean isSetCascade() { + return EncodingUtils.testBit(__isset_bitfield, __CASCADE_ISSET_ID); + } + + public void setCascadeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CASCADE_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case CAT_NAME: - if (value == null) { - unsetCatName(); - } else { - setCatName((String)value); - } - break; - case DBNAME: if (value == null) { unsetDbname(); @@ -84613,11 +92366,19 @@ public void setFieldValue(_Fields field, Object value) { } break; - case CREATION_METADATA: + case NEW_TBL: if (value == null) { - unsetCreation_metadata(); + unsetNew_tbl(); } else { - setCreation_metadata((CreationMetadata)value); + setNew_tbl((Table)value); + } + break; + + case CASCADE: + if (value == null) { + unsetCascade(); + } else { + setCascade((Boolean)value); } break; @@ -84626,17 +92387,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case CAT_NAME: - return getCatName(); - case DBNAME: return getDbname(); case TBL_NAME: return getTbl_name(); - case CREATION_METADATA: - return getCreation_metadata(); + case NEW_TBL: + return getNew_tbl(); + + case CASCADE: + return isCascade(); } throw new IllegalStateException(); @@ -84649,14 +92410,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case CAT_NAME: - return isSetCatName(); case DBNAME: return isSetDbname(); case TBL_NAME: return isSetTbl_name(); - case CREATION_METADATA: - return isSetCreation_metadata(); + case NEW_TBL: + return isSetNew_tbl(); + case CASCADE: + return isSetCascade(); } throw new IllegalStateException(); } @@ -84665,24 +92426,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof update_creation_metadata_args) - return this.equals((update_creation_metadata_args)that); + if (that instanceof alter_table_with_cascade_args) + return this.equals((alter_table_with_cascade_args)that); return false; } - public boolean equals(update_creation_metadata_args that) { + public boolean equals(alter_table_with_cascade_args that) { if (that == null) return false; - boolean this_present_catName = true && this.isSetCatName(); - boolean that_present_catName = true && that.isSetCatName(); - if (this_present_catName || that_present_catName) { - if (!(this_present_catName && that_present_catName)) - return false; - if (!this.catName.equals(that.catName)) - return false; - } - boolean this_present_dbname = true && this.isSetDbname(); boolean that_present_dbname = true && that.isSetDbname(); if (this_present_dbname || that_present_dbname) { @@ -84701,12 +92453,21 @@ public boolean equals(update_creation_metadata_args that) { return false; } - boolean this_present_creation_metadata = true && this.isSetCreation_metadata(); - boolean that_present_creation_metadata = true && that.isSetCreation_metadata(); - if (this_present_creation_metadata || that_present_creation_metadata) { - if (!(this_present_creation_metadata && that_present_creation_metadata)) + boolean this_present_new_tbl = true && this.isSetNew_tbl(); + boolean that_present_new_tbl = true && that.isSetNew_tbl(); + if (this_present_new_tbl || that_present_new_tbl) { + if (!(this_present_new_tbl && that_present_new_tbl)) return false; - if (!this.creation_metadata.equals(that.creation_metadata)) + if (!this.new_tbl.equals(that.new_tbl)) + return false; + } + + boolean this_present_cascade = true; + boolean that_present_cascade = true; + if (this_present_cascade || that_present_cascade) { + if (!(this_present_cascade && that_present_cascade)) + return false; + if (this.cascade != that.cascade) return false; } @@ -84717,11 +92478,6 @@ public boolean equals(update_creation_metadata_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_catName = true && (isSetCatName()); - list.add(present_catName); - if (present_catName) - list.add(catName); - boolean present_dbname = true && (isSetDbname()); list.add(present_dbname); if (present_dbname) @@ -84732,58 +92488,63 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_creation_metadata = true && (isSetCreation_metadata()); - list.add(present_creation_metadata); - if (present_creation_metadata) - list.add(creation_metadata); + boolean present_new_tbl = true && (isSetNew_tbl()); + list.add(present_new_tbl); + if (present_new_tbl) + list.add(new_tbl); + + boolean present_cascade = true; + list.add(present_cascade); + if (present_cascade) + list.add(cascade); return list.hashCode(); } @Override - public int compareTo(update_creation_metadata_args other) { + public int compareTo(alter_table_with_cascade_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetCatName()).compareTo(other.isSetCatName()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetCatName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catName, other.catName); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (isSetNew_tbl()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreation_metadata()).compareTo(other.isSetCreation_metadata()); + lastComparison = Boolean.valueOf(isSetCascade()).compareTo(other.isSetCascade()); if (lastComparison != 0) { return lastComparison; } - if (isSetCreation_metadata()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creation_metadata, other.creation_metadata); + if (isSetCascade()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, other.cascade); if (lastComparison != 0) { return lastComparison; } @@ -84805,17 +92566,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("update_creation_metadata_args("); + StringBuilder sb = new StringBuilder("alter_table_with_cascade_args("); boolean first = true; - sb.append("catName:"); - if (this.catName == null) { - sb.append("null"); - } else { - sb.append(this.catName); - } - first = false; - if (!first) sb.append(", "); sb.append("dbname:"); if (this.dbname == null) { sb.append("null"); @@ -84832,13 +92585,17 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("creation_metadata:"); - if (this.creation_metadata == null) { + sb.append("new_tbl:"); + if (this.new_tbl == null) { sb.append("null"); } else { - sb.append(this.creation_metadata); + sb.append(this.new_tbl); } first = false; + if (!first) sb.append(", "); + sb.append("cascade:"); + sb.append(this.cascade); + first = false; sb.append(")"); return sb.toString(); } @@ -84846,8 +92603,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (creation_metadata != null) { - creation_metadata.validate(); + if (new_tbl != null) { + new_tbl.validate(); } } @@ -84861,21 +92618,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class update_creation_metadata_argsStandardSchemeFactory implements SchemeFactory { - public update_creation_metadata_argsStandardScheme getScheme() { - return new update_creation_metadata_argsStandardScheme(); + private static class alter_table_with_cascade_argsStandardSchemeFactory implements SchemeFactory { + public alter_table_with_cascade_argsStandardScheme getScheme() { + return new alter_table_with_cascade_argsStandardScheme(); } } - private static class update_creation_metadata_argsStandardScheme extends StandardScheme { + private static class alter_table_with_cascade_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_metadata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -84885,15 +92644,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_met break; } switch (schemeField.id) { - case 1: // CAT_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.catName = iprot.readString(); - struct.setCatNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // DBNAME + case 1: // DBNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.dbname = iprot.readString(); struct.setDbnameIsSet(true); @@ -84901,7 +92652,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_met org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // TBL_NAME + case 2: // TBL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tbl_name = iprot.readString(); struct.setTbl_nameIsSet(true); @@ -84909,11 +92660,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_met org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // CREATION_METADATA + case 3: // NEW_TBL if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.creation_metadata = new CreationMetadata(); - struct.creation_metadata.read(iprot); - struct.setCreation_metadataIsSet(true); + struct.new_tbl = new Table(); + struct.new_tbl.read(iprot); + struct.setNew_tblIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // CASCADE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.cascade = iprot.readBool(); + struct.setCascadeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -84927,15 +92686,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_met struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, update_creation_metadata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.catName != null) { - oprot.writeFieldBegin(CAT_NAME_FIELD_DESC); - oprot.writeString(struct.catName); - oprot.writeFieldEnd(); - } if (struct.dbname != null) { oprot.writeFieldBegin(DBNAME_FIELD_DESC); oprot.writeString(struct.dbname); @@ -84946,104 +92700,104 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, update_creation_me oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.creation_metadata != null) { - oprot.writeFieldBegin(CREATION_METADATA_FIELD_DESC); - struct.creation_metadata.write(oprot); + if (struct.new_tbl != null) { + oprot.writeFieldBegin(NEW_TBL_FIELD_DESC); + struct.new_tbl.write(oprot); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(CASCADE_FIELD_DESC); + oprot.writeBool(struct.cascade); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class update_creation_metadata_argsTupleSchemeFactory implements SchemeFactory { - public update_creation_metadata_argsTupleScheme getScheme() { - return new update_creation_metadata_argsTupleScheme(); + private static class alter_table_with_cascade_argsTupleSchemeFactory implements SchemeFactory { + public alter_table_with_cascade_argsTupleScheme getScheme() { + return new alter_table_with_cascade_argsTupleScheme(); } } - private static class update_creation_metadata_argsTupleScheme extends TupleScheme { + private static class alter_table_with_cascade_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetCatName()) { + if (struct.isSetDbname()) { optionals.set(0); } - if (struct.isSetDbname()) { + if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetTbl_name()) { + if (struct.isSetNew_tbl()) { optionals.set(2); } - if (struct.isSetCreation_metadata()) { + if (struct.isSetCascade()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); - if (struct.isSetCatName()) { - oprot.writeString(struct.catName); - } if (struct.isSetDbname()) { oprot.writeString(struct.dbname); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetCreation_metadata()) { - struct.creation_metadata.write(oprot); + if (struct.isSetNew_tbl()) { + struct.new_tbl.write(oprot); + } + if (struct.isSetCascade()) { + oprot.writeBool(struct.cascade); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.catName = iprot.readString(); - struct.setCatNameIsSet(true); - } - if (incoming.get(1)) { struct.dbname = iprot.readString(); struct.setDbnameIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(1)) { struct.tbl_name = iprot.readString(); struct.setTbl_nameIsSet(true); } + if (incoming.get(2)) { + struct.new_tbl = new Table(); + struct.new_tbl.read(iprot); + struct.setNew_tblIsSet(true); + } if (incoming.get(3)) { - struct.creation_metadata = new CreationMetadata(); - struct.creation_metadata.read(iprot); - struct.setCreation_metadataIsSet(true); + struct.cascade = iprot.readBool(); + struct.setCascadeIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_creation_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_creation_metadata_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_with_cascade_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_cascade_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new update_creation_metadata_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new update_creation_metadata_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_with_cascade_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_with_cascade_resultTupleSchemeFactory()); } - private MetaException o1; // required - private InvalidOperationException o2; // required - private UnknownDBException o3; // required + private InvalidOperationException o1; // required + private MetaException o2; // 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 { O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -85062,8 +92816,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -85111,57 +92863,49 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_creation_metadata_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_cascade_result.class, metaDataMap); } - public update_creation_metadata_result() { + public alter_table_with_cascade_result() { } - public update_creation_metadata_result( - MetaException o1, - InvalidOperationException o2, - UnknownDBException o3) + public alter_table_with_cascade_result( + InvalidOperationException o1, + MetaException o2) { this(); this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public update_creation_metadata_result(update_creation_metadata_result other) { + public alter_table_with_cascade_result(alter_table_with_cascade_result other) { if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new InvalidOperationException(other.o1); } if (other.isSetO2()) { - this.o2 = new InvalidOperationException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new UnknownDBException(other.o3); + this.o2 = new MetaException(other.o2); } } - public update_creation_metadata_result deepCopy() { - return new update_creation_metadata_result(this); + public alter_table_with_cascade_result deepCopy() { + return new alter_table_with_cascade_result(this); } @Override public void clear() { this.o1 = null; this.o2 = null; - this.o3 = null; } - public MetaException getO1() { + public InvalidOperationException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(InvalidOperationException o1) { this.o1 = o1; } @@ -85180,11 +92924,11 @@ public void setO1IsSet(boolean value) { } } - public InvalidOperationException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(InvalidOperationException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -85203,36 +92947,13 @@ public void setO2IsSet(boolean value) { } } - public UnknownDBException getO3() { - return this.o3; - } - - public void setO3(UnknownDBException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case O1: if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((InvalidOperationException)value); } break; @@ -85240,15 +92961,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((InvalidOperationException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((UnknownDBException)value); + setO2((MetaException)value); } break; @@ -85263,9 +92976,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -85281,8 +92991,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -85291,12 +92999,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof update_creation_metadata_result) - return this.equals((update_creation_metadata_result)that); + if (that instanceof alter_table_with_cascade_result) + return this.equals((alter_table_with_cascade_result)that); return false; } - public boolean equals(update_creation_metadata_result that) { + public boolean equals(alter_table_with_cascade_result that) { if (that == null) return false; @@ -85318,15 +93026,6 @@ public boolean equals(update_creation_metadata_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @@ -85344,16 +93043,11 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(update_creation_metadata_result other) { + public int compareTo(alter_table_with_cascade_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -85380,16 +93074,6 @@ public int compareTo(update_creation_metadata_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -85407,7 +93091,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("update_creation_metadata_result("); + StringBuilder sb = new StringBuilder("alter_table_with_cascade_result("); boolean first = true; sb.append("o1:"); @@ -85425,14 +93109,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -85458,15 +93134,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class update_creation_metadata_resultStandardSchemeFactory implements SchemeFactory { - public update_creation_metadata_resultStandardScheme getScheme() { - return new update_creation_metadata_resultStandardScheme(); + private static class alter_table_with_cascade_resultStandardSchemeFactory implements SchemeFactory { + public alter_table_with_cascade_resultStandardScheme getScheme() { + return new alter_table_with_cascade_resultStandardScheme(); } } - private static class update_creation_metadata_resultStandardScheme extends StandardScheme { + private static class alter_table_with_cascade_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_metadata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -85478,7 +93154,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_met switch (schemeField.id) { case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -85487,22 +93163,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_met break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new InvalidOperationException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -85512,7 +93179,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_met struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, update_creation_metadata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -85526,27 +93193,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, update_creation_me struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class update_creation_metadata_resultTupleSchemeFactory implements SchemeFactory { - public update_creation_metadata_resultTupleScheme getScheme() { - return new update_creation_metadata_resultTupleScheme(); + private static class alter_table_with_cascade_resultTupleSchemeFactory implements SchemeFactory { + public alter_table_with_cascade_resultTupleScheme getScheme() { + return new alter_table_with_cascade_resultTupleScheme(); } } - private static class update_creation_metadata_resultTupleScheme extends TupleScheme { + private static class alter_table_with_cascade_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -85555,67 +93217,50 @@ public void write(org.apache.thrift.protocol.TProtocol prot, update_creation_met if (struct.isSetO2()) { optionals.set(1); } - if (struct.isSetO3()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.o1 = new MetaException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(1)) { - struct.o2 = new InvalidOperationException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(2)) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_names_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_names_by_filter_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_req_args"); - 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)1); - private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_tables", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_names_by_filter_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_names_by_filter_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_req_argsTupleSchemeFactory()); } - private String dbname; // required - private String filter; // required - private short max_tables; // required + private AlterTableRequest req; // 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 { - DBNAME((short)1, "dbname"), - FILTER((short)2, "filter"), - MAX_TABLES((short)3, "max_tables"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -85630,12 +93275,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, update_creation_meta */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // FILTER - return FILTER; - case 3: // MAX_TABLES - return MAX_TABLES; + case 1: // REQ + return REQ; default: return null; } @@ -85676,155 +93317,73 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_TABLES_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAX_TABLES, new org.apache.thrift.meta_data.FieldMetaData("max_tables", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AlterTableRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_req_args.class, metaDataMap); } - public get_table_names_by_filter_args() { - this.max_tables = (short)-1; - + public alter_table_req_args() { } - public get_table_names_by_filter_args( - String dbname, - String filter, - short max_tables) + public alter_table_req_args( + AlterTableRequest req) { this(); - this.dbname = dbname; - this.filter = filter; - this.max_tables = max_tables; - setMax_tablesIsSet(true); + this.req = req; } /** * Performs a deep copy on other. */ - public get_table_names_by_filter_args(get_table_names_by_filter_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetFilter()) { - this.filter = other.filter; + public alter_table_req_args(alter_table_req_args other) { + if (other.isSetReq()) { + this.req = new AlterTableRequest(other.req); } - this.max_tables = other.max_tables; } - public get_table_names_by_filter_args deepCopy() { - return new get_table_names_by_filter_args(this); + public alter_table_req_args deepCopy() { + return new alter_table_req_args(this); } @Override public void clear() { - this.dbname = null; - this.filter = null; - this.max_tables = (short)-1; - - } - - 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; - } + this.req = null; } - public String getFilter() { - return this.filter; + public AlterTableRequest getReq() { + return this.req; } - public void setFilter(String filter) { - this.filter = filter; + public void setReq(AlterTableRequest req) { + this.req = req; } - public void unsetFilter() { - this.filter = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field filter is set (has been assigned a value) and false otherwise */ - public boolean isSetFilter() { - return this.filter != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setFilterIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.filter = null; + this.req = null; } } - public short getMax_tables() { - return this.max_tables; - } - - public void setMax_tables(short max_tables) { - this.max_tables = max_tables; - setMax_tablesIsSet(true); - } - - public void unsetMax_tables() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); - } - - /** Returns true if field max_tables is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_tables() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); - } - - public void setMax_tablesIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_TABLES_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case FILTER: - if (value == null) { - unsetFilter(); - } else { - setFilter((String)value); - } - break; - - case MAX_TABLES: + case REQ: if (value == null) { - unsetMax_tables(); + unsetReq(); } else { - setMax_tables((Short)value); + setReq((AlterTableRequest)value); } break; @@ -85833,14 +93392,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case FILTER: - return getFilter(); - - case MAX_TABLES: - return getMax_tables(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -85853,53 +93406,31 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case FILTER: - return isSetFilter(); - case MAX_TABLES: - return isSetMax_tables(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof get_table_names_by_filter_args) - return this.equals((get_table_names_by_filter_args)that); - return false; - } - - public boolean equals(get_table_names_by_filter_args that) { - if (that == null) - 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_filter = true && this.isSetFilter(); - boolean that_present_filter = true && that.isSetFilter(); - if (this_present_filter || that_present_filter) { - if (!(this_present_filter && that_present_filter)) - return false; - if (!this.filter.equals(that.filter)) - return false; + case REQ: + return isSetReq(); } + throw new IllegalStateException(); + } - boolean this_present_max_tables = true; - boolean that_present_max_tables = true; - if (this_present_max_tables || that_present_max_tables) { - if (!(this_present_max_tables && that_present_max_tables)) + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof alter_table_req_args) + return this.equals((alter_table_req_args)that); + return false; + } + + public boolean equals(alter_table_req_args that) { + if (that == null) + return false; + + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (this.max_tables != that.max_tables) + if (!this.req.equals(that.req)) return false; } @@ -85910,58 +93441,28 @@ public boolean equals(get_table_names_by_filter_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); - - boolean present_filter = true && (isSetFilter()); - list.add(present_filter); - if (present_filter) - list.add(filter); - - boolean present_max_tables = true; - list.add(present_max_tables); - if (present_max_tables) - list.add(max_tables); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(get_table_names_by_filter_args other) { + public int compareTo(alter_table_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - 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(isSetFilter()).compareTo(other.isSetFilter()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFilter()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMax_tables()).compareTo(other.isSetMax_tables()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_tables()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_tables, other.max_tables); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -85983,28 +93484,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_names_by_filter_args("); + StringBuilder sb = new StringBuilder("alter_table_req_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { - sb.append("null"); - } else { - sb.append(this.dbname); - } - first = false; - if (!first) sb.append(", "); - sb.append("filter:"); - if (this.filter == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.filter); + sb.append(this.req); } first = false; - if (!first) sb.append(", "); - sb.append("max_tables:"); - sb.append(this.max_tables); - first = false; sb.append(")"); return sb.toString(); } @@ -86012,6 +93501,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (req != null) { + req.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -86024,23 +93516,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_table_names_by_filter_argsStandardSchemeFactory implements SchemeFactory { - public get_table_names_by_filter_argsStandardScheme getScheme() { - return new get_table_names_by_filter_argsStandardScheme(); + private static class alter_table_req_argsStandardSchemeFactory implements SchemeFactory { + public alter_table_req_argsStandardScheme getScheme() { + return new alter_table_req_argsStandardScheme(); } } - private static class get_table_names_by_filter_argsStandardScheme extends StandardScheme { + private static class alter_table_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -86050,26 +93540,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ break; } switch (schemeField.id) { - case 1: // DBNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // FILTER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // MAX_TABLES - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_tables = iprot.readI16(); - struct.setMax_tablesIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new AlterTableRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -86083,108 +93558,78 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); - oprot.writeFieldEnd(); - } - if (struct.filter != null) { - oprot.writeFieldBegin(FILTER_FIELD_DESC); - oprot.writeString(struct.filter); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_TABLES_FIELD_DESC); - oprot.writeI16(struct.max_tables); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_names_by_filter_argsTupleSchemeFactory implements SchemeFactory { - public get_table_names_by_filter_argsTupleScheme getScheme() { - return new get_table_names_by_filter_argsTupleScheme(); + private static class alter_table_req_argsTupleSchemeFactory implements SchemeFactory { + public alter_table_req_argsTupleScheme getScheme() { + return new alter_table_req_argsTupleScheme(); } } - private static class get_table_names_by_filter_argsTupleScheme extends TupleScheme { + private static class alter_table_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetFilter()) { - optionals.set(1); - } - if (struct.isSetMax_tables()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetFilter()) { - oprot.writeString(struct.filter); - } - if (struct.isSetMax_tables()) { - oprot.writeI16(struct.max_tables); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } - if (incoming.get(1)) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); - } - if (incoming.get(2)) { - struct.max_tables = iprot.readI16(); - struct.setMax_tablesIsSet(true); + struct.req = new AlterTableRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_names_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_names_by_filter_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_req_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_names_by_filter_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_names_by_filter_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_req_resultTupleSchemeFactory()); } - private List success; // required - private MetaException o1; // required - private InvalidOperationException o2; // required - private UnknownDBException o3; // required + private AlterTableResponse success; // required + private InvalidOperationException o1; // required + private MetaException o2; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -86205,8 +93650,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -86251,55 +93694,46 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AlterTableResponse.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_req_result.class, metaDataMap); } - public get_table_names_by_filter_result() { + public alter_table_req_result() { } - public get_table_names_by_filter_result( - List success, - MetaException o1, - InvalidOperationException o2, - UnknownDBException o3) + public alter_table_req_result( + AlterTableResponse success, + InvalidOperationException o1, + MetaException o2) { this(); this.success = success; this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_table_names_by_filter_result(get_table_names_by_filter_result other) { + public alter_table_req_result(alter_table_req_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); - this.success = __this__success; + this.success = new AlterTableResponse(other.success); } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new InvalidOperationException(other.o1); } if (other.isSetO2()) { - this.o2 = new InvalidOperationException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new UnknownDBException(other.o3); + this.o2 = new MetaException(other.o2); } } - public get_table_names_by_filter_result deepCopy() { - return new get_table_names_by_filter_result(this); + public alter_table_req_result deepCopy() { + return new alter_table_req_result(this); } @Override @@ -86307,29 +93741,13 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(String elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); } - public List getSuccess() { + public AlterTableResponse getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(AlterTableResponse success) { this.success = success; } @@ -86348,11 +93766,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public InvalidOperationException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(InvalidOperationException o1) { this.o1 = o1; } @@ -86371,11 +93789,11 @@ public void setO1IsSet(boolean value) { } } - public InvalidOperationException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(InvalidOperationException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -86394,36 +93812,13 @@ public void setO2IsSet(boolean value) { } } - public UnknownDBException getO3() { - return this.o3; - } - - public void setO3(UnknownDBException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((AlterTableResponse)value); } break; @@ -86431,7 +93826,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((InvalidOperationException)value); } break; @@ -86439,15 +93834,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((InvalidOperationException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((UnknownDBException)value); + setO2((MetaException)value); } break; @@ -86465,9 +93852,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -86485,8 +93869,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -86495,12 +93877,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_names_by_filter_result) - return this.equals((get_table_names_by_filter_result)that); + if (that instanceof alter_table_req_result) + return this.equals((alter_table_req_result)that); return false; } - public boolean equals(get_table_names_by_filter_result that) { + public boolean equals(alter_table_req_result that) { if (that == null) return false; @@ -86531,15 +93913,6 @@ public boolean equals(get_table_names_by_filter_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @@ -86562,16 +93935,11 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(get_table_names_by_filter_result other) { + public int compareTo(alter_table_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -86608,16 +93976,6 @@ public int compareTo(get_table_names_by_filter_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -86635,7 +93993,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_names_by_filter_result("); + StringBuilder sb = new StringBuilder("alter_table_req_result("); boolean first = true; sb.append("success:"); @@ -86661,14 +94019,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -86676,6 +94026,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -86694,15 +94047,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_names_by_filter_resultStandardSchemeFactory implements SchemeFactory { - public get_table_names_by_filter_resultStandardScheme getScheme() { - return new get_table_names_by_filter_resultStandardScheme(); + private static class alter_table_req_resultStandardSchemeFactory implements SchemeFactory { + public alter_table_req_resultStandardScheme getScheme() { + return new alter_table_req_resultStandardScheme(); } } - private static class get_table_names_by_filter_resultStandardScheme extends StandardScheme { + private static class alter_table_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -86713,18 +94066,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1402 = iprot.readListBegin(); - struct.success = new ArrayList(_list1402.size); - String _elem1403; - for (int _i1404 = 0; _i1404 < _list1402.size; ++_i1404) - { - _elem1403 = iprot.readString(); - struct.success.add(_elem1403); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new AlterTableResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -86732,7 +94076,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -86741,22 +94085,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new InvalidOperationException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -86766,20 +94101,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1405 : struct.success) - { - oprot.writeString(_iter1405); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -86792,27 +94120,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_names_by_filter_resultTupleSchemeFactory implements SchemeFactory { - public get_table_names_by_filter_resultTupleScheme getScheme() { - return new get_table_names_by_filter_resultTupleScheme(); + private static class alter_table_req_resultTupleSchemeFactory implements SchemeFactory { + public alter_table_req_resultTupleScheme getScheme() { + return new alter_table_req_resultTupleScheme(); } } - private static class get_table_names_by_filter_resultTupleScheme extends TupleScheme { + private static class alter_table_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -86824,18 +94147,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (String _iter1406 : struct.success) - { - oprot.writeString(_iter1406); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -86843,70 +94157,48 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1407 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1407.size); - String _elem1408; - for (int _i1409 = 0; _i1409 < _list1407.size; ++_i1409) - { - _elem1408 = iprot.readString(); - struct.success.add(_elem1408); - } - } + struct.success = new AlterTableResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new InvalidOperationException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_args"); - 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)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partition_argsTupleSchemeFactory()); } - private String dbname; // required - private String tbl_name; // required - private Table new_tbl; // required + private Partition new_part; // 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 { - DBNAME((short)1, "dbname"), - TBL_NAME((short)2, "tbl_name"), - NEW_TBL((short)3, "new_tbl"); + NEW_PART((short)1, "new_part"); private static final Map byName = new HashMap(); @@ -86921,12 +94213,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // NEW_TBL - return NEW_TBL; + case 1: // NEW_PART + return NEW_PART; default: return null; } @@ -86970,148 +94258,70 @@ public String getFieldName() { 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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_args.class, metaDataMap); } - public alter_table_args() { + public add_partition_args() { } - public alter_table_args( - String dbname, - String tbl_name, - Table new_tbl) + public add_partition_args( + Partition new_part) { this(); - this.dbname = dbname; - this.tbl_name = tbl_name; - this.new_tbl = new_tbl; + this.new_part = new_part; } /** * Performs a deep copy on other. */ - public alter_table_args(alter_table_args other) { - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetNew_tbl()) { - this.new_tbl = new Table(other.new_tbl); + public add_partition_args(add_partition_args other) { + if (other.isSetNew_part()) { + this.new_part = new Partition(other.new_part); } } - public alter_table_args deepCopy() { - return new alter_table_args(this); + public add_partition_args deepCopy() { + return new add_partition_args(this); } @Override public void clear() { - this.dbname = null; - this.tbl_name = null; - this.new_tbl = 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 getTbl_name() { - return this.tbl_name; - } - - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; - } - - public void unsetTbl_name() { - this.tbl_name = null; - } - - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; - } - - public void setTbl_nameIsSet(boolean value) { - if (!value) { - this.tbl_name = null; - } + this.new_part = null; } - public Table getNew_tbl() { - return this.new_tbl; + public Partition getNew_part() { + return this.new_part; } - public void setNew_tbl(Table new_tbl) { - this.new_tbl = new_tbl; + public void setNew_part(Partition new_part) { + this.new_part = new_part; } - public void unsetNew_tbl() { - this.new_tbl = null; + public void unsetNew_part() { + this.new_part = null; } - /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_tbl() { - return this.new_tbl != null; + /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_part() { + return this.new_part != null; } - public void setNew_tblIsSet(boolean value) { + public void setNew_partIsSet(boolean value) { if (!value) { - this.new_tbl = null; + this.new_part = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case NEW_TBL: + case NEW_PART: if (value == null) { - unsetNew_tbl(); + unsetNew_part(); } else { - setNew_tbl((Table)value); + setNew_part((Partition)value); } break; @@ -87120,14 +94330,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case TBL_NAME: - return getTbl_name(); - - case NEW_TBL: - return getNew_tbl(); + case NEW_PART: + return getNew_part(); } throw new IllegalStateException(); @@ -87140,12 +94344,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case TBL_NAME: - return isSetTbl_name(); - case NEW_TBL: - return isSetNew_tbl(); + case NEW_PART: + return isSetNew_part(); } throw new IllegalStateException(); } @@ -87154,39 +94354,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_args) - return this.equals((alter_table_args)that); + if (that instanceof add_partition_args) + return this.equals((add_partition_args)that); return false; } - public boolean equals(alter_table_args that) { + public boolean equals(add_partition_args that) { if (that == null) 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_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_new_tbl = true && this.isSetNew_tbl(); - boolean that_present_new_tbl = true && that.isSetNew_tbl(); - if (this_present_new_tbl || that_present_new_tbl) { - if (!(this_present_new_tbl && that_present_new_tbl)) + boolean this_present_new_part = true && this.isSetNew_part(); + boolean that_present_new_part = true && that.isSetNew_part(); + if (this_present_new_part || that_present_new_part) { + if (!(this_present_new_part && that_present_new_part)) return false; - if (!this.new_tbl.equals(that.new_tbl)) + if (!this.new_part.equals(that.new_part)) return false; } @@ -87197,58 +94379,28 @@ public boolean equals(alter_table_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_new_tbl = true && (isSetNew_tbl()); - list.add(present_new_tbl); - if (present_new_tbl) - list.add(new_tbl); + boolean present_new_part = true && (isSetNew_part()); + list.add(present_new_part); + if (present_new_part) + list.add(new_part); return list.hashCode(); } @Override - public int compareTo(alter_table_args other) { + public int compareTo(add_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - 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(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_tbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); + if (isSetNew_part()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); if (lastComparison != 0) { return lastComparison; } @@ -87270,30 +94422,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_args("); + StringBuilder sb = new StringBuilder("add_partition_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { - sb.append("null"); - } else { - sb.append(this.dbname); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("new_tbl:"); - if (this.new_tbl == null) { + sb.append("new_part:"); + if (this.new_part == null) { sb.append("null"); } else { - sb.append(this.new_tbl); + sb.append(this.new_part); } first = false; sb.append(")"); @@ -87303,8 +94439,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_tbl != null) { - new_tbl.validate(); + if (new_part != null) { + new_part.validate(); } } @@ -87324,15 +94460,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_argsStandardSchemeFactory implements SchemeFactory { - public alter_table_argsStandardScheme getScheme() { - return new alter_table_argsStandardScheme(); + private static class add_partition_argsStandardSchemeFactory implements SchemeFactory { + public add_partition_argsStandardScheme getScheme() { + return new add_partition_argsStandardScheme(); } } - private static class alter_table_argsStandardScheme extends StandardScheme { + private static class add_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -87342,27 +94478,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_args st break; } switch (schemeField.id) { - case 1: // DBNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NEW_TBL + case 1: // NEW_PART if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_tbl = new Table(); - struct.new_tbl.read(iprot); - struct.setNew_tblIsSet(true); + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -87376,23 +94496,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_args st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.new_tbl != null) { - oprot.writeFieldBegin(NEW_TBL_FIELD_DESC); - struct.new_tbl.write(oprot); + if (struct.new_part != null) { + oprot.writeFieldBegin(NEW_PART_FIELD_DESC); + struct.new_part.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -87401,80 +94511,66 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_args s } - private static class alter_table_argsTupleSchemeFactory implements SchemeFactory { - public alter_table_argsTupleScheme getScheme() { - return new alter_table_argsTupleScheme(); + private static class add_partition_argsTupleSchemeFactory implements SchemeFactory { + public add_partition_argsTupleScheme getScheme() { + return new add_partition_argsTupleScheme(); } } - private static class alter_table_argsTupleScheme extends TupleScheme { + private static class add_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetNew_part()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetNew_tbl()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetNew_tbl()) { - struct.new_tbl.write(oprot); + oprot.writeBitSet(optionals, 1); + if (struct.isSetNew_part()) { + struct.new_part.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - struct.new_tbl = new Table(); - struct.new_tbl.read(iprot); - struct.setNew_tblIsSet(true); + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partition_resultTupleSchemeFactory()); } - private InvalidOperationException o1; // required - private MetaException o2; // required + private Partition success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // required + private MetaException o3; // 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 { + SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -87489,10 +94585,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_args str */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -87536,53 +94636,92 @@ public String getFieldName() { 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_result.class, metaDataMap); } - public alter_table_result() { + public add_partition_result() { } - public alter_table_result( - InvalidOperationException o1, - MetaException o2) + public add_partition_result( + Partition success, + InvalidObjectException o1, + AlreadyExistsException o2, + MetaException o3) { this(); + this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public alter_table_result(alter_table_result other) { + public add_partition_result(add_partition_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } if (other.isSetO1()) { - this.o1 = new InvalidOperationException(other.o1); + this.o1 = new InvalidObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new AlreadyExistsException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); } } - public alter_table_result deepCopy() { - return new alter_table_result(this); + public add_partition_result deepCopy() { + return new add_partition_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; } - public InvalidOperationException getO1() { + public Partition getSuccess() { + return this.success; + } + + public void setSuccess(Partition success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public InvalidObjectException getO1() { return this.o1; } - public void setO1(InvalidOperationException o1) { + public void setO1(InvalidObjectException o1) { this.o1 = o1; } @@ -87601,11 +94740,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public AlreadyExistsException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(AlreadyExistsException o2) { this.o2 = o2; } @@ -87624,13 +94763,44 @@ public void setO2IsSet(boolean value) { } } + public MetaException getO3() { + return this.o3; + } + + public void setO3(MetaException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Partition)value); + } + break; + case O1: if (value == null) { unsetO1(); } else { - setO1((InvalidOperationException)value); + setO1((InvalidObjectException)value); } break; @@ -87638,7 +94808,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((AlreadyExistsException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); } break; @@ -87647,12 +94825,18 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -87664,10 +94848,14 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -87676,15 +94864,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_result) - return this.equals((alter_table_result)that); + if (that instanceof add_partition_result) + return this.equals((add_partition_result)that); return false; } - public boolean equals(alter_table_result that) { + public boolean equals(add_partition_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -87699,7 +94896,16 @@ public boolean equals(alter_table_result that) { if (this_present_o2 || that_present_o2) { if (!(this_present_o2 && that_present_o2)) return false; - if (!this.o2.equals(that.o2)) + if (!this.o2.equals(that.o2)) + return false; + } + + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) return false; } @@ -87710,6 +94916,11 @@ public boolean equals(alter_table_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -87720,17 +94931,32 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(alter_table_result other) { + public int compareTo(add_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -87751,6 +94977,16 @@ public int compareTo(alter_table_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -87768,9 +95004,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_result("); + StringBuilder sb = new StringBuilder("add_partition_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -87786,6 +95030,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -87793,6 +95045,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -87811,15 +95066,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_resultStandardSchemeFactory implements SchemeFactory { - public alter_table_resultStandardScheme getScheme() { - return new alter_table_resultStandardScheme(); + private static class add_partition_resultStandardSchemeFactory implements SchemeFactory { + public add_partition_resultStandardScheme getScheme() { + return new add_partition_resultStandardScheme(); } } - private static class alter_table_resultStandardScheme extends StandardScheme { + private static class add_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -87829,9 +95084,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidOperationException(); + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -87840,13 +95104,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -87856,10 +95129,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -87870,83 +95148,104 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_result struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_resultTupleSchemeFactory implements SchemeFactory { - public alter_table_resultTupleScheme getScheme() { - return new alter_table_resultTupleScheme(); + private static class add_partition_resultTupleSchemeFactory implements SchemeFactory { + public add_partition_resultTupleScheme getScheme() { + return new add_partition_resultTupleScheme(); } } - private static class alter_table_resultTupleScheme extends TupleScheme { + private static class add_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetO1()) { struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.o1 = new InvalidOperationException(); + struct.success = new Partition(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new MetaException(); + if (incoming.get(2)) { + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_environment_context_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_with_environment_context_args"); - 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)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partition_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partition_with_environment_context_argsTupleSchemeFactory()); } - private String dbname; // required - private String tbl_name; // required - private Table new_tbl; // required + private Partition new_part; // required private EnvironmentContext environment_context; // 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 { - DBNAME((short)1, "dbname"), - TBL_NAME((short)2, "tbl_name"), - NEW_TBL((short)3, "new_tbl"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + NEW_PART((short)1, "new_part"), + ENVIRONMENT_CONTEXT((short)2, "environment_context"); private static final Map byName = new HashMap(); @@ -87961,13 +95260,9 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_result s */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // NEW_TBL - return NEW_TBL; - case 4: // ENVIRONMENT_CONTEXT + case 1: // NEW_PART + return NEW_PART; + case 2: // ENVIRONMENT_CONTEXT return ENVIRONMENT_CONTEXT; default: return null; @@ -88012,130 +95307,68 @@ public String getFieldName() { 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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_with_environment_context_args.class, metaDataMap); } - public alter_table_with_environment_context_args() { + public add_partition_with_environment_context_args() { } - public alter_table_with_environment_context_args( - String dbname, - String tbl_name, - Table new_tbl, + public add_partition_with_environment_context_args( + Partition new_part, EnvironmentContext environment_context) { this(); - this.dbname = dbname; - this.tbl_name = tbl_name; - this.new_tbl = new_tbl; + this.new_part = new_part; this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public alter_table_with_environment_context_args(alter_table_with_environment_context_args other) { - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetNew_tbl()) { - this.new_tbl = new Table(other.new_tbl); + public add_partition_with_environment_context_args(add_partition_with_environment_context_args other) { + if (other.isSetNew_part()) { + this.new_part = new Partition(other.new_part); } if (other.isSetEnvironment_context()) { this.environment_context = new EnvironmentContext(other.environment_context); } } - public alter_table_with_environment_context_args deepCopy() { - return new alter_table_with_environment_context_args(this); + public add_partition_with_environment_context_args deepCopy() { + return new add_partition_with_environment_context_args(this); } @Override public void clear() { - this.dbname = null; - this.tbl_name = null; - this.new_tbl = null; + this.new_part = null; this.environment_context = 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 getTbl_name() { - return this.tbl_name; - } - - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; - } - - public void unsetTbl_name() { - this.tbl_name = null; - } - - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; - } - - public void setTbl_nameIsSet(boolean value) { - if (!value) { - this.tbl_name = null; - } - } - - public Table getNew_tbl() { - return this.new_tbl; + public Partition getNew_part() { + return this.new_part; } - public void setNew_tbl(Table new_tbl) { - this.new_tbl = new_tbl; + public void setNew_part(Partition new_part) { + this.new_part = new_part; } - public void unsetNew_tbl() { - this.new_tbl = null; + public void unsetNew_part() { + this.new_part = null; } - /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_tbl() { - return this.new_tbl != null; + /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_part() { + return this.new_part != null; } - public void setNew_tblIsSet(boolean value) { + public void setNew_partIsSet(boolean value) { if (!value) { - this.new_tbl = null; + this.new_part = null; } } @@ -88164,27 +95397,11 @@ public void setEnvironment_contextIsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case NEW_TBL: + case NEW_PART: if (value == null) { - unsetNew_tbl(); + unsetNew_part(); } else { - setNew_tbl((Table)value); + setNew_part((Partition)value); } break; @@ -88201,14 +95418,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case TBL_NAME: - return getTbl_name(); - - case NEW_TBL: - return getNew_tbl(); + case NEW_PART: + return getNew_part(); case ENVIRONMENT_CONTEXT: return getEnvironment_context(); @@ -88224,12 +95435,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case TBL_NAME: - return isSetTbl_name(); - case NEW_TBL: - return isSetNew_tbl(); + case NEW_PART: + return isSetNew_part(); case ENVIRONMENT_CONTEXT: return isSetEnvironment_context(); } @@ -88240,39 +95447,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_with_environment_context_args) - return this.equals((alter_table_with_environment_context_args)that); + if (that instanceof add_partition_with_environment_context_args) + return this.equals((add_partition_with_environment_context_args)that); return false; } - public boolean equals(alter_table_with_environment_context_args that) { + public boolean equals(add_partition_with_environment_context_args that) { if (that == null) 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_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_new_tbl = true && this.isSetNew_tbl(); - boolean that_present_new_tbl = true && that.isSetNew_tbl(); - if (this_present_new_tbl || that_present_new_tbl) { - if (!(this_present_new_tbl && that_present_new_tbl)) + boolean this_present_new_part = true && this.isSetNew_part(); + boolean that_present_new_part = true && that.isSetNew_part(); + if (this_present_new_part || that_present_new_part) { + if (!(this_present_new_part && that_present_new_part)) return false; - if (!this.new_tbl.equals(that.new_tbl)) + if (!this.new_part.equals(that.new_part)) return false; } @@ -88292,20 +95481,10 @@ public boolean equals(alter_table_with_environment_context_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_new_tbl = true && (isSetNew_tbl()); - list.add(present_new_tbl); - if (present_new_tbl) - list.add(new_tbl); + boolean present_new_part = true && (isSetNew_part()); + list.add(present_new_part); + if (present_new_part) + list.add(new_part); boolean present_environment_context = true && (isSetEnvironment_context()); list.add(present_environment_context); @@ -88316,39 +95495,19 @@ public int hashCode() { } @Override - public int compareTo(alter_table_with_environment_context_args other) { + public int compareTo(add_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - 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(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_tbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); + if (isSetNew_part()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); if (lastComparison != 0) { return lastComparison; } @@ -88380,30 +95539,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_with_environment_context_args("); + StringBuilder sb = new StringBuilder("add_partition_with_environment_context_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { - sb.append("null"); - } else { - sb.append(this.dbname); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("new_tbl:"); - if (this.new_tbl == null) { + sb.append("new_part:"); + if (this.new_part == null) { sb.append("null"); } else { - sb.append(this.new_tbl); + sb.append(this.new_part); } first = false; if (!first) sb.append(", "); @@ -88421,8 +95564,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_tbl != null) { - new_tbl.validate(); + if (new_part != null) { + new_part.validate(); } if (environment_context != null) { environment_context.validate(); @@ -88445,15 +95588,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public alter_table_with_environment_context_argsStandardScheme getScheme() { - return new alter_table_with_environment_context_argsStandardScheme(); + private static class add_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public add_partition_with_environment_context_argsStandardScheme getScheme() { + return new add_partition_with_environment_context_argsStandardScheme(); } } - private static class alter_table_with_environment_context_argsStandardScheme extends StandardScheme { + private static class add_partition_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -88463,32 +95606,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en break; } switch (schemeField.id) { - case 1: // DBNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NEW_TBL + case 1: // NEW_PART if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_tbl = new Table(); - struct.new_tbl.read(iprot); - struct.setNew_tblIsSet(true); + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // ENVIRONMENT_CONTEXT + case 2: // ENVIRONMENT_CONTEXT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.environment_context = new EnvironmentContext(); struct.environment_context.read(iprot); @@ -88506,23 +95633,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.new_tbl != null) { - oprot.writeFieldBegin(NEW_TBL_FIELD_DESC); - struct.new_tbl.write(oprot); + if (struct.new_part != null) { + oprot.writeFieldBegin(NEW_PART_FIELD_DESC); + struct.new_part.write(oprot); oprot.writeFieldEnd(); } if (struct.environment_context != null) { @@ -88536,39 +95653,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_e } - private static class alter_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public alter_table_with_environment_context_argsTupleScheme getScheme() { - return new alter_table_with_environment_context_argsTupleScheme(); + private static class add_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public add_partition_with_environment_context_argsTupleScheme getScheme() { + return new add_partition_with_environment_context_argsTupleScheme(); } } - private static class alter_table_with_environment_context_argsTupleScheme extends TupleScheme { + private static class add_partition_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetNew_part()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetNew_tbl()) { - optionals.set(2); - } if (struct.isSetEnvironment_context()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); + optionals.set(1); } - if (struct.isSetNew_tbl()) { - struct.new_tbl.write(oprot); + oprot.writeBitSet(optionals, 2); + if (struct.isSetNew_part()) { + struct.new_part.write(oprot); } if (struct.isSetEnvironment_context()) { struct.environment_context.write(oprot); @@ -88576,23 +95681,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_en } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); } if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - struct.new_tbl = new Table(); - struct.new_tbl.read(iprot); - struct.setNew_tblIsSet(true); - } - if (incoming.get(3)) { struct.environment_context = new EnvironmentContext(); struct.environment_context.read(iprot); struct.setEnvironment_contextIsSet(true); @@ -88602,25 +95699,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_env } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_environment_context_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_with_environment_context_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partition_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partition_with_environment_context_resultTupleSchemeFactory()); } - private InvalidOperationException o1; // required - private MetaException o2; // required + private Partition success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // required + private MetaException o3; // 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 { + SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -88635,10 +95738,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_env */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -88682,53 +95789,92 @@ public String getFieldName() { 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_with_environment_context_result.class, metaDataMap); } - public alter_table_with_environment_context_result() { + public add_partition_with_environment_context_result() { } - public alter_table_with_environment_context_result( - InvalidOperationException o1, - MetaException o2) + public add_partition_with_environment_context_result( + Partition success, + InvalidObjectException o1, + AlreadyExistsException o2, + MetaException o3) { this(); + this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public alter_table_with_environment_context_result(alter_table_with_environment_context_result other) { + public add_partition_with_environment_context_result(add_partition_with_environment_context_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } if (other.isSetO1()) { - this.o1 = new InvalidOperationException(other.o1); + this.o1 = new InvalidObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new AlreadyExistsException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); } } - public alter_table_with_environment_context_result deepCopy() { - return new alter_table_with_environment_context_result(this); + public add_partition_with_environment_context_result deepCopy() { + return new add_partition_with_environment_context_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; } - public InvalidOperationException getO1() { + public Partition getSuccess() { + return this.success; + } + + public void setSuccess(Partition success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public InvalidObjectException getO1() { return this.o1; } - public void setO1(InvalidOperationException o1) { + public void setO1(InvalidObjectException o1) { this.o1 = o1; } @@ -88747,11 +95893,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public AlreadyExistsException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(AlreadyExistsException o2) { this.o2 = o2; } @@ -88770,13 +95916,44 @@ public void setO2IsSet(boolean value) { } } + public MetaException getO3() { + return this.o3; + } + + public void setO3(MetaException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Partition)value); + } + break; + case O1: if (value == null) { unsetO1(); } else { - setO1((InvalidOperationException)value); + setO1((InvalidObjectException)value); } break; @@ -88784,7 +95961,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((AlreadyExistsException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); } break; @@ -88793,12 +95978,18 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -88810,10 +96001,14 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -88822,15 +96017,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_with_environment_context_result) - return this.equals((alter_table_with_environment_context_result)that); + if (that instanceof add_partition_with_environment_context_result) + return this.equals((add_partition_with_environment_context_result)that); return false; } - public boolean equals(alter_table_with_environment_context_result that) { + public boolean equals(add_partition_with_environment_context_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -88849,6 +96053,15 @@ public boolean equals(alter_table_with_environment_context_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + return true; } @@ -88856,6 +96069,11 @@ public boolean equals(alter_table_with_environment_context_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -88866,17 +96084,32 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(alter_table_with_environment_context_result other) { + public int compareTo(add_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -88897,6 +96130,16 @@ public int compareTo(alter_table_with_environment_context_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -88914,9 +96157,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_with_environment_context_result("); + StringBuilder sb = new StringBuilder("add_partition_with_environment_context_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -88932,6 +96183,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -88939,6 +96198,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -88957,15 +96219,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public alter_table_with_environment_context_resultStandardScheme getScheme() { - return new alter_table_with_environment_context_resultStandardScheme(); + private static class add_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public add_partition_with_environment_context_resultStandardScheme getScheme() { + return new add_partition_with_environment_context_resultStandardScheme(); } } - private static class alter_table_with_environment_context_resultStandardScheme extends StandardScheme { + private static class add_partition_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -88975,9 +96237,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidOperationException(); + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -88986,13 +96257,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -89002,10 +96282,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -89016,83 +96301,101 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_e struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public alter_table_with_environment_context_resultTupleScheme getScheme() { - return new alter_table_with_environment_context_resultTupleScheme(); + private static class add_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public add_partition_with_environment_context_resultTupleScheme getScheme() { + return new add_partition_with_environment_context_resultTupleScheme(); } } - private static class alter_table_with_environment_context_resultTupleScheme extends TupleScheme { + private static class add_partition_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetO1()) { struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.o1 = new InvalidOperationException(); + struct.success = new Partition(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new MetaException(); + if (incoming.get(2)) { + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_with_cascade_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_cascade_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_args"); - 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)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField CASCADE_FIELD_DESC = new org.apache.thrift.protocol.TField("cascade", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_with_cascade_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_with_cascade_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_argsTupleSchemeFactory()); } - private String dbname; // required - private String tbl_name; // required - private Table new_tbl; // required - private boolean cascade; // required + private List new_parts; // 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 { - DBNAME((short)1, "dbname"), - TBL_NAME((short)2, "tbl_name"), - NEW_TBL((short)3, "new_tbl"), - CASCADE((short)4, "cascade"); + NEW_PARTS((short)1, "new_parts"); private static final Map byName = new HashMap(); @@ -89107,14 +96410,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_env */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // NEW_TBL - return NEW_TBL; - case 4: // CASCADE - return CASCADE; + case 1: // NEW_PARTS + return NEW_PARTS; default: return null; } @@ -89155,192 +96452,93 @@ public String getFieldName() { } // isset id assignments - private static final int __CASCADE_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); - tmpMap.put(_Fields.CASCADE, new org.apache.thrift.meta_data.FieldMetaData("cascade", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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, Partition.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_cascade_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_args.class, metaDataMap); } - public alter_table_with_cascade_args() { + public add_partitions_args() { } - public alter_table_with_cascade_args( - String dbname, - String tbl_name, - Table new_tbl, - boolean cascade) + public add_partitions_args( + List new_parts) { this(); - this.dbname = dbname; - this.tbl_name = tbl_name; - this.new_tbl = new_tbl; - this.cascade = cascade; - setCascadeIsSet(true); + this.new_parts = new_parts; } /** * Performs a deep copy on other. */ - public alter_table_with_cascade_args(alter_table_with_cascade_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetNew_tbl()) { - this.new_tbl = new Table(other.new_tbl); + public add_partitions_args(add_partitions_args other) { + if (other.isSetNew_parts()) { + List __this__new_parts = new ArrayList(other.new_parts.size()); + for (Partition other_element : other.new_parts) { + __this__new_parts.add(new Partition(other_element)); + } + this.new_parts = __this__new_parts; } - this.cascade = other.cascade; } - public alter_table_with_cascade_args deepCopy() { - return new alter_table_with_cascade_args(this); + public add_partitions_args deepCopy() { + return new add_partitions_args(this); } @Override public void clear() { - this.dbname = null; - this.tbl_name = null; - this.new_tbl = null; - setCascadeIsSet(false); - this.cascade = false; - } - - 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 getTbl_name() { - return this.tbl_name; - } - - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; - } - - public void unsetTbl_name() { - this.tbl_name = null; - } - - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; - } - - public void setTbl_nameIsSet(boolean value) { - if (!value) { - this.tbl_name = null; - } - } - - public Table getNew_tbl() { - return this.new_tbl; - } - - public void setNew_tbl(Table new_tbl) { - this.new_tbl = new_tbl; + this.new_parts = null; } - public void unsetNew_tbl() { - this.new_tbl = null; + public int getNew_partsSize() { + return (this.new_parts == null) ? 0 : this.new_parts.size(); } - /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_tbl() { - return this.new_tbl != null; + public java.util.Iterator getNew_partsIterator() { + return (this.new_parts == null) ? null : this.new_parts.iterator(); } - public void setNew_tblIsSet(boolean value) { - if (!value) { - this.new_tbl = null; + public void addToNew_parts(Partition elem) { + if (this.new_parts == null) { + this.new_parts = new ArrayList(); } + this.new_parts.add(elem); } - public boolean isCascade() { - return this.cascade; + public List getNew_parts() { + return this.new_parts; } - public void setCascade(boolean cascade) { - this.cascade = cascade; - setCascadeIsSet(true); + public void setNew_parts(List new_parts) { + this.new_parts = new_parts; } - public void unsetCascade() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CASCADE_ISSET_ID); + public void unsetNew_parts() { + this.new_parts = null; } - /** Returns true if field cascade is set (has been assigned a value) and false otherwise */ - public boolean isSetCascade() { - return EncodingUtils.testBit(__isset_bitfield, __CASCADE_ISSET_ID); + /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_parts() { + return this.new_parts != null; } - public void setCascadeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CASCADE_ISSET_ID, value); + public void setNew_partsIsSet(boolean value) { + if (!value) { + this.new_parts = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case NEW_TBL: - if (value == null) { - unsetNew_tbl(); - } else { - setNew_tbl((Table)value); - } - break; - - case CASCADE: + case NEW_PARTS: if (value == null) { - unsetCascade(); + unsetNew_parts(); } else { - setCascade((Boolean)value); + setNew_parts((List)value); } break; @@ -89349,17 +96547,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case TBL_NAME: - return getTbl_name(); - - case NEW_TBL: - return getNew_tbl(); - - case CASCADE: - return isCascade(); + case NEW_PARTS: + return getNew_parts(); } throw new IllegalStateException(); @@ -89372,14 +96561,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case TBL_NAME: - return isSetTbl_name(); - case NEW_TBL: - return isSetNew_tbl(); - case CASCADE: - return isSetCascade(); + case NEW_PARTS: + return isSetNew_parts(); } throw new IllegalStateException(); } @@ -89388,48 +96571,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_with_cascade_args) - return this.equals((alter_table_with_cascade_args)that); + if (that instanceof add_partitions_args) + return this.equals((add_partitions_args)that); return false; } - public boolean equals(alter_table_with_cascade_args that) { + public boolean equals(add_partitions_args that) { if (that == null) 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_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_new_tbl = true && this.isSetNew_tbl(); - boolean that_present_new_tbl = true && that.isSetNew_tbl(); - if (this_present_new_tbl || that_present_new_tbl) { - if (!(this_present_new_tbl && that_present_new_tbl)) - return false; - if (!this.new_tbl.equals(that.new_tbl)) - return false; - } - - boolean this_present_cascade = true; - boolean that_present_cascade = true; - if (this_present_cascade || that_present_cascade) { - if (!(this_present_cascade && that_present_cascade)) + boolean this_present_new_parts = true && this.isSetNew_parts(); + boolean that_present_new_parts = true && that.isSetNew_parts(); + if (this_present_new_parts || that_present_new_parts) { + if (!(this_present_new_parts && that_present_new_parts)) return false; - if (this.cascade != that.cascade) + if (!this.new_parts.equals(that.new_parts)) return false; } @@ -89440,73 +96596,28 @@ public boolean equals(alter_table_with_cascade_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_new_tbl = true && (isSetNew_tbl()); - list.add(present_new_tbl); - if (present_new_tbl) - list.add(new_tbl); - - boolean present_cascade = true; - list.add(present_cascade); - if (present_cascade) - list.add(cascade); + boolean present_new_parts = true && (isSetNew_parts()); + list.add(present_new_parts); + if (present_new_parts) + list.add(new_parts); return list.hashCode(); } @Override - public int compareTo(alter_table_with_cascade_args other) { + public int compareTo(add_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - 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(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNew_tbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetCascade()).compareTo(other.isSetCascade()); + lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); if (lastComparison != 0) { return lastComparison; } - if (isSetCascade()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, other.cascade); + if (isSetNew_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); if (lastComparison != 0) { return lastComparison; } @@ -89528,36 +96639,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_with_cascade_args("); + StringBuilder sb = new StringBuilder("add_partitions_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { - sb.append("null"); - } else { - sb.append(this.dbname); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("new_tbl:"); - if (this.new_tbl == null) { + sb.append("new_parts:"); + if (this.new_parts == null) { sb.append("null"); } else { - sb.append(this.new_tbl); + sb.append(this.new_parts); } first = false; - if (!first) sb.append(", "); - sb.append("cascade:"); - sb.append(this.cascade); - first = false; sb.append(")"); return sb.toString(); } @@ -89565,9 +96656,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_tbl != null) { - new_tbl.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -89580,23 +96668,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class alter_table_with_cascade_argsStandardSchemeFactory implements SchemeFactory { - public alter_table_with_cascade_argsStandardScheme getScheme() { - return new alter_table_with_cascade_argsStandardScheme(); + private static class add_partitions_argsStandardSchemeFactory implements SchemeFactory { + public add_partitions_argsStandardScheme getScheme() { + return new add_partitions_argsStandardScheme(); } } - private static class alter_table_with_cascade_argsStandardScheme extends StandardScheme { + private static class add_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -89606,35 +96692,21 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca break; } switch (schemeField.id) { - case 1: // DBNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NEW_TBL - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_tbl = new Table(); - struct.new_tbl.read(iprot); - struct.setNew_tblIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // CASCADE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.cascade = iprot.readBool(); - struct.setCascadeIsSet(true); + case 1: // NEW_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1482 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1482.size); + Partition _elem1483; + for (int _i1484 = 0; _i1484 < _list1482.size; ++_i1484) + { + _elem1483 = new Partition(); + _elem1483.read(iprot); + struct.new_parts.add(_elem1483); + } + iprot.readListEnd(); + } + struct.setNew_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -89648,118 +96720,103 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.new_tbl != null) { - oprot.writeFieldBegin(NEW_TBL_FIELD_DESC); - struct.new_tbl.write(oprot); + if (struct.new_parts != null) { + oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); + for (Partition _iter1485 : struct.new_parts) + { + _iter1485.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } - oprot.writeFieldBegin(CASCADE_FIELD_DESC); - oprot.writeBool(struct.cascade); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_with_cascade_argsTupleSchemeFactory implements SchemeFactory { - public alter_table_with_cascade_argsTupleScheme getScheme() { - return new alter_table_with_cascade_argsTupleScheme(); + private static class add_partitions_argsTupleSchemeFactory implements SchemeFactory { + public add_partitions_argsTupleScheme getScheme() { + return new add_partitions_argsTupleScheme(); } } - private static class alter_table_with_cascade_argsTupleScheme extends TupleScheme { + private static class add_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetNew_parts()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetNew_tbl()) { - optionals.set(2); - } - if (struct.isSetCascade()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetNew_tbl()) { - struct.new_tbl.write(oprot); - } - if (struct.isSetCascade()) { - oprot.writeBool(struct.cascade); + oprot.writeBitSet(optionals, 1); + if (struct.isSetNew_parts()) { + { + oprot.writeI32(struct.new_parts.size()); + for (Partition _iter1486 : struct.new_parts) + { + _iter1486.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - struct.new_tbl = new Table(); - struct.new_tbl.read(iprot); - struct.setNew_tblIsSet(true); - } - if (incoming.get(3)) { - struct.cascade = iprot.readBool(); - struct.setCascadeIsSet(true); + { + org.apache.thrift.protocol.TList _list1487 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1487.size); + Partition _elem1488; + for (int _i1489 = 0; _i1489 < _list1487.size; ++_i1489) + { + _elem1488 = new Partition(); + _elem1488.read(iprot); + struct.new_parts.add(_elem1488); + } + } + struct.setNew_partsIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_with_cascade_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_cascade_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_with_cascade_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_with_cascade_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_resultTupleSchemeFactory()); } - private InvalidOperationException o1; // required - private MetaException o2; // required + private int success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // required + private MetaException o3; // 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 { + SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -89774,10 +96831,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cas */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -89818,56 +96879,97 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_cascade_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_result.class, metaDataMap); } - public alter_table_with_cascade_result() { + public add_partitions_result() { } - public alter_table_with_cascade_result( - InvalidOperationException o1, - MetaException o2) + public add_partitions_result( + int success, + InvalidObjectException o1, + AlreadyExistsException o2, + MetaException o3) { this(); + this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public alter_table_with_cascade_result(alter_table_with_cascade_result other) { + public add_partitions_result(add_partitions_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { - this.o1 = new InvalidOperationException(other.o1); + this.o1 = new InvalidObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new AlreadyExistsException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); } } - public alter_table_with_cascade_result deepCopy() { - return new alter_table_with_cascade_result(this); + public add_partitions_result deepCopy() { + return new add_partitions_result(this); } @Override public void clear() { + setSuccessIsSet(false); + this.success = 0; this.o1 = null; this.o2 = null; + this.o3 = null; } - public InvalidOperationException getO1() { + public int getSuccess() { + return this.success; + } + + public void setSuccess(int success) { + this.success = success; + setSuccessIsSet(true); + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public InvalidObjectException getO1() { return this.o1; } - public void setO1(InvalidOperationException o1) { + public void setO1(InvalidObjectException o1) { this.o1 = o1; } @@ -89886,11 +96988,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public AlreadyExistsException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(AlreadyExistsException o2) { this.o2 = o2; } @@ -89909,13 +97011,44 @@ public void setO2IsSet(boolean value) { } } + public MetaException getO3() { + return this.o3; + } + + public void setO3(MetaException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Integer)value); + } + break; + case O1: if (value == null) { unsetO1(); } else { - setO1((InvalidOperationException)value); + setO1((InvalidObjectException)value); } break; @@ -89923,7 +97056,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((AlreadyExistsException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); } break; @@ -89932,12 +97073,18 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -89949,10 +97096,14 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -89961,15 +97112,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_with_cascade_result) - return this.equals((alter_table_with_cascade_result)that); + if (that instanceof add_partitions_result) + return this.equals((add_partitions_result)that); return false; } - public boolean equals(alter_table_with_cascade_result that) { + public boolean equals(add_partitions_result that) { if (that == null) return false; + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -89988,6 +97148,15 @@ public boolean equals(alter_table_with_cascade_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + return true; } @@ -89995,6 +97164,11 @@ public boolean equals(alter_table_with_cascade_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true; + list.add(present_success); + if (present_success) + list.add(success); + boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -90005,17 +97179,32 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(alter_table_with_cascade_result other) { + public int compareTo(add_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -90036,6 +97225,16 @@ public int compareTo(alter_table_with_cascade_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -90053,9 +97252,13 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_with_cascade_result("); + StringBuilder sb = new StringBuilder("add_partitions_result("); boolean first = true; + sb.append("success:"); + sb.append(this.success); + first = false; + if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -90071,6 +97274,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -90090,21 +97301,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class alter_table_with_cascade_resultStandardSchemeFactory implements SchemeFactory { - public alter_table_with_cascade_resultStandardScheme getScheme() { - return new alter_table_with_cascade_resultStandardScheme(); + private static class add_partitions_resultStandardSchemeFactory implements SchemeFactory { + public add_partitions_resultStandardScheme getScheme() { + return new add_partitions_resultStandardScheme(); } } - private static class alter_table_with_cascade_resultStandardScheme extends StandardScheme { + private static class add_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -90114,9 +97327,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.success = iprot.readI32(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidOperationException(); + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -90125,13 +97346,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -90141,10 +97371,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeI32(struct.success); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -90155,74 +97390,100 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_c struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_with_cascade_resultTupleSchemeFactory implements SchemeFactory { - public alter_table_with_cascade_resultTupleScheme getScheme() { - return new alter_table_with_cascade_resultTupleScheme(); + private static class add_partitions_resultTupleSchemeFactory implements SchemeFactory { + public add_partitions_resultTupleScheme getScheme() { + return new add_partitions_resultTupleScheme(); } } - private static class alter_table_with_cascade_resultTupleScheme extends TupleScheme { + private static class add_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + oprot.writeI32(struct.success); + } if (struct.isSetO1()) { struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.o1 = new InvalidOperationException(); + struct.success = iprot.readI32(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new MetaException(); + if (incoming.get(2)) { + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_req_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_pspec_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_pspec_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_pspec_argsTupleSchemeFactory()); } - private AlterTableRequest req; // required + private List new_parts; // 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 { - REQ((short)1, "req"); + NEW_PARTS((short)1, "new_parts"); private static final Map byName = new HashMap(); @@ -90237,8 +97498,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cas */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // NEW_PARTS + return NEW_PARTS; default: return null; } @@ -90282,70 +97543,90 @@ public String getFieldName() { 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AlterTableRequest.class))); + tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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, PartitionSpec.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_pspec_args.class, metaDataMap); } - public alter_table_req_args() { + public add_partitions_pspec_args() { } - public alter_table_req_args( - AlterTableRequest req) + public add_partitions_pspec_args( + List new_parts) { this(); - this.req = req; + this.new_parts = new_parts; } /** * Performs a deep copy on other. */ - public alter_table_req_args(alter_table_req_args other) { - if (other.isSetReq()) { - this.req = new AlterTableRequest(other.req); + public add_partitions_pspec_args(add_partitions_pspec_args other) { + if (other.isSetNew_parts()) { + List __this__new_parts = new ArrayList(other.new_parts.size()); + for (PartitionSpec other_element : other.new_parts) { + __this__new_parts.add(new PartitionSpec(other_element)); + } + this.new_parts = __this__new_parts; } } - public alter_table_req_args deepCopy() { - return new alter_table_req_args(this); + public add_partitions_pspec_args deepCopy() { + return new add_partitions_pspec_args(this); } @Override public void clear() { - this.req = null; + this.new_parts = null; } - public AlterTableRequest getReq() { - return this.req; + public int getNew_partsSize() { + return (this.new_parts == null) ? 0 : this.new_parts.size(); } - public void setReq(AlterTableRequest req) { - this.req = req; + public java.util.Iterator getNew_partsIterator() { + return (this.new_parts == null) ? null : this.new_parts.iterator(); } - public void unsetReq() { - this.req = null; + public void addToNew_parts(PartitionSpec elem) { + if (this.new_parts == null) { + this.new_parts = new ArrayList(); + } + this.new_parts.add(elem); } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + public List getNew_parts() { + return this.new_parts; } - public void setReqIsSet(boolean value) { + public void setNew_parts(List new_parts) { + this.new_parts = new_parts; + } + + public void unsetNew_parts() { + this.new_parts = null; + } + + /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_parts() { + return this.new_parts != null; + } + + public void setNew_partsIsSet(boolean value) { if (!value) { - this.req = null; + this.new_parts = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case NEW_PARTS: if (value == null) { - unsetReq(); + unsetNew_parts(); } else { - setReq((AlterTableRequest)value); + setNew_parts((List)value); } break; @@ -90354,8 +97635,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case NEW_PARTS: + return getNew_parts(); } throw new IllegalStateException(); @@ -90368,8 +97649,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case NEW_PARTS: + return isSetNew_parts(); } throw new IllegalStateException(); } @@ -90378,21 +97659,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_req_args) - return this.equals((alter_table_req_args)that); + if (that instanceof add_partitions_pspec_args) + return this.equals((add_partitions_pspec_args)that); return false; } - public boolean equals(alter_table_req_args that) { + public boolean equals(add_partitions_pspec_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + boolean this_present_new_parts = true && this.isSetNew_parts(); + boolean that_present_new_parts = true && that.isSetNew_parts(); + if (this_present_new_parts || that_present_new_parts) { + if (!(this_present_new_parts && that_present_new_parts)) return false; - if (!this.req.equals(that.req)) + if (!this.new_parts.equals(that.new_parts)) return false; } @@ -90403,28 +97684,28 @@ public boolean equals(alter_table_req_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_new_parts = true && (isSetNew_parts()); + list.add(present_new_parts); + if (present_new_parts) + list.add(new_parts); return list.hashCode(); } @Override - public int compareTo(alter_table_req_args other) { + public int compareTo(add_partitions_pspec_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetNew_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); if (lastComparison != 0) { return lastComparison; } @@ -90446,14 +97727,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_req_args("); + StringBuilder sb = new StringBuilder("add_partitions_pspec_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("new_parts:"); + if (this.new_parts == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.new_parts); } first = false; sb.append(")"); @@ -90463,9 +97744,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -90484,15 +97762,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_req_argsStandardSchemeFactory implements SchemeFactory { - public alter_table_req_argsStandardScheme getScheme() { - return new alter_table_req_argsStandardScheme(); + private static class add_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { + public add_partitions_pspec_argsStandardScheme getScheme() { + return new add_partitions_pspec_argsStandardScheme(); } } - private static class alter_table_req_argsStandardScheme extends StandardScheme { + private static class add_partitions_pspec_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -90502,11 +97780,21 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_req_arg break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new AlterTableRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + case 1: // NEW_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1490 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1490.size); + PartitionSpec _elem1491; + for (int _i1492 = 0; _i1492 < _list1490.size; ++_i1492) + { + _elem1491 = new PartitionSpec(); + _elem1491.read(iprot); + struct.new_parts.add(_elem1491); + } + iprot.readListEnd(); + } + struct.setNew_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -90520,13 +97808,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_req_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.new_parts != null) { + oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); + for (PartitionSpec _iter1493 : struct.new_parts) + { + _iter1493.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -90535,63 +97830,81 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_req_ar } - private static class alter_table_req_argsTupleSchemeFactory implements SchemeFactory { - public alter_table_req_argsTupleScheme getScheme() { - return new alter_table_req_argsTupleScheme(); + private static class add_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { + public add_partitions_pspec_argsTupleScheme getScheme() { + return new add_partitions_pspec_argsTupleScheme(); } } - private static class alter_table_req_argsTupleScheme extends TupleScheme { + private static class add_partitions_pspec_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetNew_parts()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetNew_parts()) { + { + oprot.writeI32(struct.new_parts.size()); + for (PartitionSpec _iter1494 : struct.new_parts) + { + _iter1494.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new AlterTableRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + { + org.apache.thrift.protocol.TList _list1495 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1495.size); + PartitionSpec _elem1496; + for (int _i1497 = 0; _i1497 < _list1495.size; ++_i1497) + { + _elem1496 = new PartitionSpec(); + _elem1496.read(iprot); + struct.new_parts.add(_elem1496); + } + } + struct.setNew_partsIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_table_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_req_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_pspec_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_pspec_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_pspec_resultTupleSchemeFactory()); } - private AlterTableResponse success; // required - private InvalidOperationException o1; // required - private MetaException o2; // required + private int success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // required + private MetaException o3; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -90612,6 +97925,8 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -90652,87 +97967,97 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AlterTableResponse.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_pspec_result.class, metaDataMap); } - public alter_table_req_result() { + public add_partitions_pspec_result() { } - public alter_table_req_result( - AlterTableResponse success, - InvalidOperationException o1, - MetaException o2) + public add_partitions_pspec_result( + int success, + InvalidObjectException o1, + AlreadyExistsException o2, + MetaException o3) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public alter_table_req_result(alter_table_req_result other) { - if (other.isSetSuccess()) { - this.success = new AlterTableResponse(other.success); - } + public add_partitions_pspec_result(add_partitions_pspec_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { - this.o1 = new InvalidOperationException(other.o1); + this.o1 = new InvalidObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new AlreadyExistsException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); } } - public alter_table_req_result deepCopy() { - return new alter_table_req_result(this); + public add_partitions_pspec_result deepCopy() { + return new add_partitions_pspec_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = 0; this.o1 = null; this.o2 = null; + this.o3 = null; } - public AlterTableResponse getSuccess() { + public int getSuccess() { return this.success; } - public void setSuccess(AlterTableResponse success) { + public void setSuccess(int success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public InvalidOperationException getO1() { + public InvalidObjectException getO1() { return this.o1; } - public void setO1(InvalidOperationException o1) { + public void setO1(InvalidObjectException o1) { this.o1 = o1; } @@ -90751,11 +98076,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public AlreadyExistsException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(AlreadyExistsException o2) { this.o2 = o2; } @@ -90774,13 +98099,36 @@ public void setO2IsSet(boolean value) { } } + public MetaException getO3() { + return this.o3; + } + + public void setO3(MetaException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((AlterTableResponse)value); + setSuccess((Integer)value); } break; @@ -90788,7 +98136,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((InvalidOperationException)value); + setO1((InvalidObjectException)value); } break; @@ -90796,7 +98144,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((AlreadyExistsException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); } break; @@ -90814,6 +98170,9 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -90831,6 +98190,8 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -90839,21 +98200,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_req_result) - return this.equals((alter_table_req_result)that); + if (that instanceof add_partitions_pspec_result) + return this.equals((add_partitions_pspec_result)that); return false; } - public boolean equals(alter_table_req_result that) { + public boolean equals(add_partitions_pspec_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -90875,6 +98236,15 @@ public boolean equals(alter_table_req_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + return true; } @@ -90882,7 +98252,7 @@ public boolean equals(alter_table_req_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); + boolean present_success = true; list.add(present_success); if (present_success) list.add(success); @@ -90897,11 +98267,16 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(alter_table_req_result other) { + public int compareTo(add_partitions_pspec_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -90938,6 +98313,16 @@ public int compareTo(alter_table_req_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -90955,15 +98340,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_req_result("); + StringBuilder sb = new StringBuilder("add_partitions_pspec_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -90981,6 +98362,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -90988,9 +98377,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -91003,21 +98389,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class alter_table_req_resultStandardSchemeFactory implements SchemeFactory { - public alter_table_req_resultStandardScheme getScheme() { - return new alter_table_req_resultStandardScheme(); + private static class add_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { + public add_partitions_pspec_resultStandardScheme getScheme() { + return new add_partitions_pspec_resultStandardScheme(); } } - private static class alter_table_req_resultStandardScheme extends StandardScheme { + private static class add_partitions_pspec_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -91028,9 +98416,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_req_res } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new AlterTableResponse(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -91038,7 +98425,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_req_res break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidOperationException(); + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -91047,13 +98434,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_req_res break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -91063,13 +98459,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_req_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeI32(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -91082,22 +98478,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_req_re struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_req_resultTupleSchemeFactory implements SchemeFactory { - public alter_table_req_resultTupleScheme getScheme() { - return new alter_table_req_resultTupleScheme(); + private static class add_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { + public add_partitions_pspec_resultTupleScheme getScheme() { + return new add_partitions_pspec_resultTupleScheme(); } } - private static class alter_table_req_resultTupleScheme extends TupleScheme { + private static class add_partitions_pspec_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -91109,9 +98510,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_req_res if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeI32(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -91119,48 +98523,61 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_req_res if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new AlterTableResponse(); - struct.success.read(iprot); + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new InvalidOperationException(); + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_args"); - private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_argsTupleSchemeFactory()); } - private Partition new_part; // required + private String db_name; // required + private String tbl_name; // required + private List part_vals; // 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 { - NEW_PART((short)1, "new_part"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_VALS((short)3, "part_vals"); private static final Map byName = new HashMap(); @@ -91175,8 +98592,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_req_resu */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NEW_PART - return NEW_PART; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; default: return null; } @@ -91220,70 +98641,165 @@ public String getFieldName() { 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.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_args.class, metaDataMap); } - public add_partition_args() { + public append_partition_args() { } - public add_partition_args( - Partition new_part) + public append_partition_args( + String db_name, + String tbl_name, + List part_vals) { this(); - this.new_part = new_part; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; } /** * Performs a deep copy on other. */ - public add_partition_args(add_partition_args other) { - if (other.isSetNew_part()) { - this.new_part = new Partition(other.new_part); + public append_partition_args(append_partition_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; } } - public add_partition_args deepCopy() { - return new add_partition_args(this); + public append_partition_args deepCopy() { + return new append_partition_args(this); } @Override public void clear() { - this.new_part = null; + this.db_name = null; + this.tbl_name = null; + this.part_vals = null; } - public Partition getNew_part() { - return this.new_part; + public String getDb_name() { + return this.db_name; } - public void setNew_part(Partition new_part) { - this.new_part = new_part; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetNew_part() { - this.new_part = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_part() { - return this.new_part != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setNew_partIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.new_part = null; + this.db_name = null; + } + } + + public String getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } + } + + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); + } + + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); + } + + public List getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case NEW_PART: + case DB_NAME: if (value == null) { - unsetNew_part(); + unsetDb_name(); } else { - setNew_part((Partition)value); + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); } break; @@ -91292,8 +98808,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NEW_PART: - return getNew_part(); + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); } throw new IllegalStateException(); @@ -91306,8 +98828,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case NEW_PART: - return isSetNew_part(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); } throw new IllegalStateException(); } @@ -91316,21 +98842,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partition_args) - return this.equals((add_partition_args)that); + if (that instanceof append_partition_args) + return this.equals((append_partition_args)that); return false; } - public boolean equals(add_partition_args that) { + public boolean equals(append_partition_args that) { if (that == null) return false; - boolean this_present_new_part = true && this.isSetNew_part(); - boolean that_present_new_part = true && that.isSetNew_part(); - if (this_present_new_part || that_present_new_part) { - if (!(this_present_new_part && that_present_new_part)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.new_part.equals(that.new_part)) + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) return false; } @@ -91341,28 +98885,58 @@ public boolean equals(add_partition_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); - if (present_new_part) - list.add(new_part); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); return list.hashCode(); } @Override - public int compareTo(add_partition_args other) { + public int compareTo(append_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -91384,14 +98958,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partition_args("); + StringBuilder sb = new StringBuilder("append_partition_args("); boolean first = true; - sb.append("new_part:"); - if (this.new_part == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.new_part); + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); } first = false; sb.append(")"); @@ -91401,9 +98991,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_part != null) { - new_part.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -91422,15 +99009,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partition_argsStandardSchemeFactory implements SchemeFactory { - public add_partition_argsStandardScheme getScheme() { - return new add_partition_argsStandardScheme(); + private static class append_partition_argsStandardSchemeFactory implements SchemeFactory { + public append_partition_argsStandardScheme getScheme() { + return new append_partition_argsStandardScheme(); } } - private static class add_partition_argsStandardScheme extends StandardScheme { + private static class append_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -91440,11 +99027,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_args break; } switch (schemeField.id) { - case 1: // NEW_PART - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1498 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1498.size); + String _elem1499; + for (int _i1500 = 0; _i1500 < _list1498.size; ++_i1500) + { + _elem1499 = iprot.readString(); + struct.part_vals.add(_elem1499); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -91458,13 +99070,30 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.new_part != null) { - oprot.writeFieldBegin(NEW_PART_FIELD_DESC); - struct.new_part.write(oprot); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); + for (String _iter1501 : struct.part_vals) + { + oprot.writeString(_iter1501); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -91473,43 +99102,77 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_args } - private static class add_partition_argsTupleSchemeFactory implements SchemeFactory { - public add_partition_argsTupleScheme getScheme() { - return new add_partition_argsTupleScheme(); + private static class append_partition_argsTupleSchemeFactory implements SchemeFactory { + public append_partition_argsTupleScheme getScheme() { + return new append_partition_argsTupleScheme(); } } - private static class add_partition_argsTupleScheme extends TupleScheme { + private static class append_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetNew_part()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetNew_part()) { - struct.new_part.write(oprot); + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_vals()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter1502 : struct.part_vals) + { + oprot.writeString(_iter1502); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list1503 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1503.size); + String _elem1504; + for (int _i1505 = 0; _i1505 < _list1503.size; ++_i1505) + { + _elem1504 = iprot.readString(); + struct.part_vals.add(_elem1504); + } + } + struct.setPart_valsIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -91518,8 +99181,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_args s private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_resultTupleSchemeFactory()); } private Partition success; // required @@ -91607,13 +99270,13 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_result.class, metaDataMap); } - public add_partition_result() { + public append_partition_result() { } - public add_partition_result( + public append_partition_result( Partition success, InvalidObjectException o1, AlreadyExistsException o2, @@ -91629,7 +99292,7 @@ public add_partition_result( /** * Performs a deep copy on other. */ - public add_partition_result(add_partition_result other) { + public append_partition_result(append_partition_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -91644,8 +99307,8 @@ public add_partition_result(add_partition_result other) { } } - public add_partition_result deepCopy() { - return new add_partition_result(this); + public append_partition_result deepCopy() { + return new append_partition_result(this); } @Override @@ -91826,12 +99489,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partition_result) - return this.equals((add_partition_result)that); + if (that instanceof append_partition_result) + return this.equals((append_partition_result)that); return false; } - public boolean equals(add_partition_result that) { + public boolean equals(append_partition_result that) { if (that == null) return false; @@ -91902,7 +99565,7 @@ public int hashCode() { } @Override - public int compareTo(add_partition_result other) { + public int compareTo(append_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -91966,7 +99629,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partition_result("); + StringBuilder sb = new StringBuilder("append_partition_result("); boolean first = true; sb.append("success:"); @@ -92028,15 +99691,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partition_resultStandardSchemeFactory implements SchemeFactory { - public add_partition_resultStandardScheme getScheme() { - return new add_partition_resultStandardScheme(); + private static class append_partition_resultStandardSchemeFactory implements SchemeFactory { + public append_partition_resultStandardScheme getScheme() { + return new append_partition_resultStandardScheme(); } } - private static class add_partition_resultStandardScheme extends StandardScheme { + private static class append_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -92091,7 +99754,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_resul struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -92121,16 +99784,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_resu } - private static class add_partition_resultTupleSchemeFactory implements SchemeFactory { - public add_partition_resultTupleScheme getScheme() { - return new add_partition_resultTupleScheme(); + private static class append_partition_resultTupleSchemeFactory implements SchemeFactory { + public append_partition_resultTupleScheme getScheme() { + return new append_partition_resultTupleScheme(); } } - private static class add_partition_resultTupleScheme extends TupleScheme { + private static class append_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -92161,7 +99824,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_resul } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -92189,25 +99852,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_result } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_with_environment_context_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_args"); - private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partition_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partition_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_req_argsTupleSchemeFactory()); } - private Partition new_part; // required - private EnvironmentContext environment_context; // required + private AddPartitionsRequest request; // 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 { - NEW_PART((short)1, "new_part"), - ENVIRONMENT_CONTEXT((short)2, "environment_context"); + REQUEST((short)1, "request"); private static final Map byName = new HashMap(); @@ -92222,10 +99882,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NEW_PART - return NEW_PART; - case 2: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 1: // REQUEST + return REQUEST; default: return null; } @@ -92269,109 +99927,70 @@ public String getFieldName() { 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.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); - tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPartitionsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_req_args.class, metaDataMap); } - public add_partition_with_environment_context_args() { + public add_partitions_req_args() { } - public add_partition_with_environment_context_args( - Partition new_part, - EnvironmentContext environment_context) + public add_partitions_req_args( + AddPartitionsRequest request) { this(); - this.new_part = new_part; - this.environment_context = environment_context; + this.request = request; } /** * Performs a deep copy on other. */ - public add_partition_with_environment_context_args(add_partition_with_environment_context_args other) { - if (other.isSetNew_part()) { - this.new_part = new Partition(other.new_part); - } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + public add_partitions_req_args(add_partitions_req_args other) { + if (other.isSetRequest()) { + this.request = new AddPartitionsRequest(other.request); } } - public add_partition_with_environment_context_args deepCopy() { - return new add_partition_with_environment_context_args(this); + public add_partitions_req_args deepCopy() { + return new add_partitions_req_args(this); } @Override public void clear() { - this.new_part = null; - this.environment_context = null; - } - - public Partition getNew_part() { - return this.new_part; - } - - public void setNew_part(Partition new_part) { - this.new_part = new_part; - } - - public void unsetNew_part() { - this.new_part = null; - } - - /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_part() { - return this.new_part != null; - } - - public void setNew_partIsSet(boolean value) { - if (!value) { - this.new_part = null; - } + this.request = null; } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public AddPartitionsRequest getRequest() { + return this.request; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setRequest(AddPartitionsRequest request) { + this.request = request; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetRequest() { + this.request = null; } - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; + /** Returns true if field request is set (has been assigned a value) and false otherwise */ + public boolean isSetRequest() { + return this.request != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setRequestIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.request = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case NEW_PART: - if (value == null) { - unsetNew_part(); - } else { - setNew_part((Partition)value); - } - break; - - case ENVIRONMENT_CONTEXT: + case REQUEST: if (value == null) { - unsetEnvironment_context(); + unsetRequest(); } else { - setEnvironment_context((EnvironmentContext)value); + setRequest((AddPartitionsRequest)value); } break; @@ -92380,11 +99999,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NEW_PART: - return getNew_part(); - - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case REQUEST: + return getRequest(); } throw new IllegalStateException(); @@ -92397,10 +100013,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case NEW_PART: - return isSetNew_part(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case REQUEST: + return isSetRequest(); } throw new IllegalStateException(); } @@ -92409,30 +100023,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partition_with_environment_context_args) - return this.equals((add_partition_with_environment_context_args)that); + if (that instanceof add_partitions_req_args) + return this.equals((add_partitions_req_args)that); return false; } - public boolean equals(add_partition_with_environment_context_args that) { + public boolean equals(add_partitions_req_args that) { if (that == null) return false; - boolean this_present_new_part = true && this.isSetNew_part(); - boolean that_present_new_part = true && that.isSetNew_part(); - if (this_present_new_part || that_present_new_part) { - if (!(this_present_new_part && that_present_new_part)) - return false; - if (!this.new_part.equals(that.new_part)) - return false; - } - - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) + boolean this_present_request = true && this.isSetRequest(); + boolean that_present_request = true && that.isSetRequest(); + if (this_present_request || that_present_request) { + if (!(this_present_request && that_present_request)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (!this.request.equals(that.request)) return false; } @@ -92443,43 +100048,28 @@ public boolean equals(add_partition_with_environment_context_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); - if (present_new_part) - list.add(new_part); - - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_request = true && (isSetRequest()); + list.add(present_request); + if (present_request) + list.add(request); return list.hashCode(); } @Override - public int compareTo(add_partition_with_environment_context_args other) { + public int compareTo(add_partitions_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); if (lastComparison != 0) { return lastComparison; } @@ -92501,22 +100091,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partition_with_environment_context_args("); + StringBuilder sb = new StringBuilder("add_partitions_req_args("); boolean first = true; - sb.append("new_part:"); - if (this.new_part == null) { - sb.append("null"); - } else { - sb.append(this.new_part); - } - first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("request:"); + if (this.request == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.request); } first = false; sb.append(")"); @@ -92526,11 +100108,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_part != null) { - new_part.validate(); - } - if (environment_context != null) { - environment_context.validate(); + if (request != null) { + request.validate(); } } @@ -92550,15 +100129,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public add_partition_with_environment_context_argsStandardScheme getScheme() { - return new add_partition_with_environment_context_argsStandardScheme(); + private static class add_partitions_req_argsStandardSchemeFactory implements SchemeFactory { + public add_partitions_req_argsStandardScheme getScheme() { + return new add_partitions_req_argsStandardScheme(); } } - private static class add_partition_with_environment_context_argsStandardScheme extends StandardScheme { + private static class add_partitions_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -92568,20 +100147,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ break; } switch (schemeField.id) { - case 1: // NEW_PART - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // ENVIRONMENT_CONTEXT + case 1: // REQUEST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.request = new AddPartitionsRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -92595,18 +100165,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.new_part != null) { - oprot.writeFieldBegin(NEW_PART_FIELD_DESC); - struct.new_part.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -92615,54 +100180,43 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with } - private static class add_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public add_partition_with_environment_context_argsTupleScheme getScheme() { - return new add_partition_with_environment_context_argsTupleScheme(); + private static class add_partitions_req_argsTupleSchemeFactory implements SchemeFactory { + public add_partitions_req_argsTupleScheme getScheme() { + return new add_partitions_req_argsTupleScheme(); } } - private static class add_partition_with_environment_context_argsTupleScheme extends TupleScheme { + private static class add_partitions_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetNew_part()) { + if (struct.isSetRequest()) { optionals.set(0); } - if (struct.isSetEnvironment_context()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetNew_part()) { - struct.new_part.write(oprot); - } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); - } - if (incoming.get(1)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.request = new AddPartitionsRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_with_environment_context_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -92671,11 +100225,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_e private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partition_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partition_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_req_resultTupleSchemeFactory()); } - private Partition success; // required + private AddPartitionsResult success; // required private InvalidObjectException o1; // required private AlreadyExistsException o2; // required private MetaException o3; // required @@ -92752,7 +100306,7 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPartitionsResult.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -92760,14 +100314,14 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_req_result.class, metaDataMap); } - public add_partition_with_environment_context_result() { + public add_partitions_req_result() { } - public add_partition_with_environment_context_result( - Partition success, + public add_partitions_req_result( + AddPartitionsResult success, InvalidObjectException o1, AlreadyExistsException o2, MetaException o3) @@ -92782,9 +100336,9 @@ public add_partition_with_environment_context_result( /** * Performs a deep copy on other. */ - public add_partition_with_environment_context_result(add_partition_with_environment_context_result other) { + public add_partitions_req_result(add_partitions_req_result other) { if (other.isSetSuccess()) { - this.success = new Partition(other.success); + this.success = new AddPartitionsResult(other.success); } if (other.isSetO1()) { this.o1 = new InvalidObjectException(other.o1); @@ -92797,8 +100351,8 @@ public add_partition_with_environment_context_result(add_partition_with_environm } } - public add_partition_with_environment_context_result deepCopy() { - return new add_partition_with_environment_context_result(this); + public add_partitions_req_result deepCopy() { + return new add_partitions_req_result(this); } @Override @@ -92809,11 +100363,11 @@ public void clear() { this.o3 = null; } - public Partition getSuccess() { + public AddPartitionsResult getSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(AddPartitionsResult success) { this.success = success; } @@ -92907,7 +100461,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((AddPartitionsResult)value); } break; @@ -92979,12 +100533,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partition_with_environment_context_result) - return this.equals((add_partition_with_environment_context_result)that); + if (that instanceof add_partitions_req_result) + return this.equals((add_partitions_req_result)that); return false; } - public boolean equals(add_partition_with_environment_context_result that) { + public boolean equals(add_partitions_req_result that) { if (that == null) return false; @@ -93055,7 +100609,7 @@ public int hashCode() { } @Override - public int compareTo(add_partition_with_environment_context_result other) { + public int compareTo(add_partitions_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -93119,7 +100673,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partition_with_environment_context_result("); + StringBuilder sb = new StringBuilder("add_partitions_req_result("); boolean first = true; sb.append("success:"); @@ -93181,15 +100735,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public add_partition_with_environment_context_resultStandardScheme getScheme() { - return new add_partition_with_environment_context_resultStandardScheme(); + private static class add_partitions_req_resultStandardSchemeFactory implements SchemeFactory { + public add_partitions_req_resultStandardScheme getScheme() { + return new add_partitions_req_resultStandardScheme(); } } - private static class add_partition_with_environment_context_resultStandardScheme extends StandardScheme { + private static class add_partitions_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -93201,7 +100755,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); + struct.success = new AddPartitionsResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -93244,7 +100798,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -93274,16 +100828,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with } - private static class add_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public add_partition_with_environment_context_resultTupleScheme getScheme() { - return new add_partition_with_environment_context_resultTupleScheme(); + private static class add_partitions_req_resultTupleSchemeFactory implements SchemeFactory { + public add_partitions_req_resultTupleScheme getScheme() { + return new add_partitions_req_resultTupleScheme(); } } - private static class add_partition_with_environment_context_resultTupleScheme extends TupleScheme { + private static class add_partitions_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -93314,11 +100868,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new Partition(); + struct.success = new AddPartitionsResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -93342,22 +100896,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_e } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_with_environment_context_args"); - private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", 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("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_with_environment_context_argsTupleSchemeFactory()); } - private List new_parts; // required + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required + private EnvironmentContext environment_context; // 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 { - NEW_PARTS((short)1, "new_parts"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_VALS((short)3, "part_vals"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -93372,8 +100935,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_e */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NEW_PARTS - return NEW_PARTS; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; + case 4: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -93417,90 +100986,204 @@ public String getFieldName() { 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.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, 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, Partition.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_with_environment_context_args.class, metaDataMap); } - public add_partitions_args() { + public append_partition_with_environment_context_args() { } - public add_partitions_args( - List new_parts) + public append_partition_with_environment_context_args( + String db_name, + String tbl_name, + List part_vals, + EnvironmentContext environment_context) { this(); - this.new_parts = new_parts; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public add_partitions_args(add_partitions_args other) { - if (other.isSetNew_parts()) { - List __this__new_parts = new ArrayList(other.new_parts.size()); - for (Partition other_element : other.new_parts) { - __this__new_parts.add(new Partition(other_element)); - } - this.new_parts = __this__new_parts; + public append_partition_with_environment_context_args(append_partition_with_environment_context_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; + } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } } - public add_partitions_args deepCopy() { - return new add_partitions_args(this); + public append_partition_with_environment_context_args deepCopy() { + return new append_partition_with_environment_context_args(this); } @Override public void clear() { - this.new_parts = null; + this.db_name = null; + this.tbl_name = null; + this.part_vals = null; + this.environment_context = null; } - public int getNew_partsSize() { - return (this.new_parts == null) ? 0 : this.new_parts.size(); + public String getDb_name() { + return this.db_name; } - public java.util.Iterator getNew_partsIterator() { - return (this.new_parts == null) ? null : this.new_parts.iterator(); + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void addToNew_parts(Partition elem) { - if (this.new_parts == null) { - this.new_parts = new ArrayList(); + public void unsetDb_name() { + this.db_name = null; + } + + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; + } + + public void setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = null; } - this.new_parts.add(elem); } - public List getNew_parts() { - return this.new_parts; + public String getTbl_name() { + return this.tbl_name; } - public void setNew_parts(List new_parts) { - this.new_parts = new_parts; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetNew_parts() { - this.new_parts = null; + public void unsetTbl_name() { + this.tbl_name = null; } - /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_parts() { - return this.new_parts != null; + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; } - public void setNew_partsIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.new_parts = null; + this.tbl_name = null; + } + } + + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); + } + + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); + } + + public List getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; + } + } + + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case NEW_PARTS: + case DB_NAME: if (value == null) { - unsetNew_parts(); + unsetDb_name(); } else { - setNew_parts((List)value); + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -93509,8 +101192,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NEW_PARTS: - return getNew_parts(); + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -93523,8 +101215,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case NEW_PARTS: - return isSetNew_parts(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -93533,21 +101231,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_args) - return this.equals((add_partitions_args)that); + if (that instanceof append_partition_with_environment_context_args) + return this.equals((append_partition_with_environment_context_args)that); return false; } - public boolean equals(add_partitions_args that) { + public boolean equals(append_partition_with_environment_context_args that) { if (that == null) return false; - boolean this_present_new_parts = true && this.isSetNew_parts(); - boolean that_present_new_parts = true && that.isSetNew_parts(); - if (this_present_new_parts || that_present_new_parts) { - if (!(this_present_new_parts && that_present_new_parts)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.new_parts.equals(that.new_parts)) + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) + return false; + } + + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) return false; } @@ -93558,28 +101283,73 @@ public boolean equals(add_partitions_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_new_parts = true && (isSetNew_parts()); - list.add(present_new_parts); - if (present_new_parts) - list.add(new_parts); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); + + boolean present_environment_context = true && (isSetEnvironment_context()); + list.add(present_environment_context); + if (present_environment_context) + list.add(environment_context); return list.hashCode(); } @Override - public int compareTo(add_partitions_args other) { + public int compareTo(append_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -93601,14 +101371,38 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_args("); + StringBuilder sb = new StringBuilder("append_partition_with_environment_context_args("); boolean first = true; - sb.append("new_parts:"); - if (this.new_parts == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.new_parts); + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); + } + first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); } first = false; sb.append(")"); @@ -93618,6 +101412,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -93636,15 +101433,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partitions_argsStandardSchemeFactory implements SchemeFactory { - public add_partitions_argsStandardScheme getScheme() { - return new add_partitions_argsStandardScheme(); + private static class append_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public append_partition_with_environment_context_argsStandardScheme getScheme() { + return new append_partition_with_environment_context_argsStandardScheme(); } } - private static class add_partitions_argsStandardScheme extends StandardScheme { + private static class append_partition_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -93654,21 +101451,45 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args break; } switch (schemeField.id) { - case 1: // NEW_PARTS + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1410 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1410.size); - Partition _elem1411; - for (int _i1412 = 0; _i1412 < _list1410.size; ++_i1412) + org.apache.thrift.protocol.TList _list1506 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1506.size); + String _elem1507; + for (int _i1508 = 0; _i1508 < _list1506.size; ++_i1508) { - _elem1411 = new Partition(); - _elem1411.read(iprot); - struct.new_parts.add(_elem1411); + _elem1507 = iprot.readString(); + struct.part_vals.add(_elem1507); } iprot.readListEnd(); } - struct.setNew_partsIsSet(true); + struct.setPart_valsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -93682,93 +101503,138 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.new_parts != null) { - oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1413 : struct.new_parts) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); + for (String _iter1509 : struct.part_vals) { - _iter1413.write(oprot); + oprot.writeString(_iter1509); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_partitions_argsTupleSchemeFactory implements SchemeFactory { - public add_partitions_argsTupleScheme getScheme() { - return new add_partitions_argsTupleScheme(); + private static class append_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public append_partition_with_environment_context_argsTupleScheme getScheme() { + return new append_partition_with_environment_context_argsTupleScheme(); } } - private static class add_partitions_argsTupleScheme extends TupleScheme { + private static class append_partition_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetNew_parts()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetNew_parts()) { + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_vals()) { + optionals.set(2); + } + if (struct.isSetEnvironment_context()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetPart_vals()) { { - oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1414 : struct.new_parts) + oprot.writeI32(struct.part_vals.size()); + for (String _iter1510 : struct.part_vals) { - _iter1414.write(oprot); + oprot.writeString(_iter1510); } } } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1415.size); - Partition _elem1416; - for (int _i1417 = 0; _i1417 < _list1415.size; ++_i1417) + org.apache.thrift.protocol.TList _list1511 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1511.size); + String _elem1512; + for (int _i1513 = 0; _i1513 < _list1511.size; ++_i1513) { - _elem1416 = new Partition(); - _elem1416.read(iprot); - struct.new_parts.add(_elem1416); + _elem1512 = iprot.readString(); + struct.part_vals.add(_elem1512); } } - struct.setNew_partsIsSet(true); + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_with_environment_context_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_with_environment_context_resultTupleSchemeFactory()); } - private int success; // required + private Partition success; // required private InvalidObjectException o1; // required private AlreadyExistsException o2; // required private MetaException o3; // required @@ -93841,13 +101707,11 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -93855,21 +101719,20 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_with_environment_context_result.class, metaDataMap); } - public add_partitions_result() { + public append_partition_with_environment_context_result() { } - public add_partitions_result( - int success, + public append_partition_with_environment_context_result( + Partition success, InvalidObjectException o1, AlreadyExistsException o2, MetaException o3) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; this.o3 = o3; @@ -93878,9 +101741,10 @@ public add_partitions_result( /** * Performs a deep copy on other. */ - public add_partitions_result(add_partitions_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public append_partition_with_environment_context_result(append_partition_with_environment_context_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } if (other.isSetO1()) { this.o1 = new InvalidObjectException(other.o1); } @@ -93892,39 +101756,39 @@ public add_partitions_result(add_partitions_result other) { } } - public add_partitions_result deepCopy() { - return new add_partitions_result(this); + public append_partition_with_environment_context_result deepCopy() { + return new append_partition_with_environment_context_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = 0; + this.success = null; this.o1 = null; this.o2 = null; this.o3 = null; } - public int getSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(int success) { + public void setSuccess(Partition success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public InvalidObjectException getO1() { @@ -94002,7 +101866,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((Partition)value); } break; @@ -94074,21 +101938,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_result) - return this.equals((add_partitions_result)that); + if (that instanceof append_partition_with_environment_context_result) + return this.equals((append_partition_with_environment_context_result)that); return false; } - public boolean equals(add_partitions_result that) { + public boolean equals(append_partition_with_environment_context_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -94126,7 +101990,7 @@ public boolean equals(add_partitions_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -94150,7 +102014,7 @@ public int hashCode() { } @Override - public int compareTo(add_partitions_result other) { + public int compareTo(append_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -94214,11 +102078,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_result("); + StringBuilder sb = new StringBuilder("append_partition_with_environment_context_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -94251,6 +102119,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -94263,23 +102134,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class add_partitions_resultStandardSchemeFactory implements SchemeFactory { - public add_partitions_resultStandardScheme getScheme() { - return new add_partitions_resultStandardScheme(); + private static class append_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public append_partition_with_environment_context_resultStandardScheme getScheme() { + return new append_partition_with_environment_context_resultStandardScheme(); } } - private static class add_partitions_resultStandardScheme extends StandardScheme { + private static class append_partition_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -94290,8 +102159,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_resu } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.success = iprot.readI32(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -94333,13 +102203,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeI32(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -94363,16 +102233,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_res } - private static class add_partitions_resultTupleSchemeFactory implements SchemeFactory { - public add_partitions_resultTupleScheme getScheme() { - return new add_partitions_resultTupleScheme(); + private static class append_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public append_partition_with_environment_context_resultTupleScheme getScheme() { + return new append_partition_with_environment_context_resultTupleScheme(); } } - private static class add_partitions_resultTupleScheme extends TupleScheme { + private static class append_partition_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -94389,7 +102259,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_resu } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - oprot.writeI32(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -94403,11 +102273,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = iprot.readI32(); + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -94430,22 +102301,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_resul } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_pspec_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_args"); - private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", 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("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_pspec_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_pspec_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_by_name_argsTupleSchemeFactory()); } - private List new_parts; // required + private String db_name; // required + private String tbl_name; // required + private String part_name; // 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 { - NEW_PARTS((short)1, "new_parts"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_NAME((short)3, "part_name"); private static final Map byName = new HashMap(); @@ -94460,8 +102337,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_resul */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NEW_PARTS - return NEW_PARTS; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_NAME + return PART_NAME; default: return null; } @@ -94505,90 +102386,148 @@ public String getFieldName() { 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.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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, PartitionSpec.class)))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_pspec_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_args.class, metaDataMap); } - public add_partitions_pspec_args() { + public append_partition_by_name_args() { } - public add_partitions_pspec_args( - List new_parts) + public append_partition_by_name_args( + String db_name, + String tbl_name, + String part_name) { this(); - this.new_parts = new_parts; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_name = part_name; } /** * Performs a deep copy on other. */ - public add_partitions_pspec_args(add_partitions_pspec_args other) { - if (other.isSetNew_parts()) { - List __this__new_parts = new ArrayList(other.new_parts.size()); - for (PartitionSpec other_element : other.new_parts) { - __this__new_parts.add(new PartitionSpec(other_element)); - } - this.new_parts = __this__new_parts; + public append_partition_by_name_args(append_partition_by_name_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_name()) { + this.part_name = other.part_name; } } - public add_partitions_pspec_args deepCopy() { - return new add_partitions_pspec_args(this); + public append_partition_by_name_args deepCopy() { + return new append_partition_by_name_args(this); } @Override public void clear() { - this.new_parts = null; + this.db_name = null; + this.tbl_name = null; + this.part_name = null; } - public int getNew_partsSize() { - return (this.new_parts == null) ? 0 : this.new_parts.size(); + public String getDb_name() { + return this.db_name; } - public java.util.Iterator getNew_partsIterator() { - return (this.new_parts == null) ? null : this.new_parts.iterator(); + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void addToNew_parts(PartitionSpec elem) { - if (this.new_parts == null) { - this.new_parts = new ArrayList(); + public void unsetDb_name() { + this.db_name = null; + } + + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; + } + + public void setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = null; } - this.new_parts.add(elem); } - public List getNew_parts() { - return this.new_parts; + public String getTbl_name() { + return this.tbl_name; } - public void setNew_parts(List new_parts) { - this.new_parts = new_parts; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetNew_parts() { - this.new_parts = null; + public void unsetTbl_name() { + this.tbl_name = null; } - /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_parts() { - return this.new_parts != null; + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; } - public void setNew_partsIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.new_parts = null; + this.tbl_name = null; + } + } + + public String getPart_name() { + return this.part_name; + } + + public void setPart_name(String part_name) { + this.part_name = part_name; + } + + public void unsetPart_name() { + this.part_name = null; + } + + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; + } + + public void setPart_nameIsSet(boolean value) { + if (!value) { + this.part_name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case NEW_PARTS: + case DB_NAME: if (value == null) { - unsetNew_parts(); + unsetDb_name(); } else { - setNew_parts((List)value); + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case PART_NAME: + if (value == null) { + unsetPart_name(); + } else { + setPart_name((String)value); } break; @@ -94597,8 +102536,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NEW_PARTS: - return getNew_parts(); + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_NAME: + return getPart_name(); } throw new IllegalStateException(); @@ -94611,8 +102556,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case NEW_PARTS: - return isSetNew_parts(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_NAME: + return isSetPart_name(); } throw new IllegalStateException(); } @@ -94621,21 +102570,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_pspec_args) - return this.equals((add_partitions_pspec_args)that); + if (that instanceof append_partition_by_name_args) + return this.equals((append_partition_by_name_args)that); return false; } - public boolean equals(add_partitions_pspec_args that) { + public boolean equals(append_partition_by_name_args that) { if (that == null) return false; - boolean this_present_new_parts = true && this.isSetNew_parts(); - boolean that_present_new_parts = true && that.isSetNew_parts(); - if (this_present_new_parts || that_present_new_parts) { - if (!(this_present_new_parts && that_present_new_parts)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.new_parts.equals(that.new_parts)) + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) + return false; + if (!this.part_name.equals(that.part_name)) return false; } @@ -94646,28 +102613,58 @@ public boolean equals(add_partitions_pspec_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_new_parts = true && (isSetNew_parts()); - list.add(present_new_parts); - if (present_new_parts) - list.add(new_parts); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_part_name = true && (isSetPart_name()); + list.add(present_part_name); + if (present_part_name) + list.add(part_name); return list.hashCode(); } @Override - public int compareTo(add_partitions_pspec_args other) { + public int compareTo(append_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); if (lastComparison != 0) { return lastComparison; } @@ -94689,14 +102686,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_pspec_args("); + StringBuilder sb = new StringBuilder("append_partition_by_name_args("); boolean first = true; - sb.append("new_parts:"); - if (this.new_parts == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.new_parts); + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("part_name:"); + if (this.part_name == null) { + sb.append("null"); + } else { + sb.append(this.part_name); } first = false; sb.append(")"); @@ -94724,15 +102737,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { - public add_partitions_pspec_argsStandardScheme getScheme() { - return new add_partitions_pspec_argsStandardScheme(); + private static class append_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { + public append_partition_by_name_argsStandardScheme getScheme() { + return new append_partition_by_name_argsStandardScheme(); } } - private static class add_partitions_pspec_argsStandardScheme extends StandardScheme { + private static class append_partition_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -94742,21 +102755,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe break; } switch (schemeField.id) { - case 1: // NEW_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1418 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1418.size); - PartitionSpec _elem1419; - for (int _i1420 = 0; _i1420 < _list1418.size; ++_i1420) - { - _elem1419 = new PartitionSpec(); - _elem1419.read(iprot); - struct.new_parts.add(_elem1419); - } - iprot.readListEnd(); - } - struct.setNew_partsIsSet(true); + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -94770,20 +102788,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.new_parts != null) { - oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (PartitionSpec _iter1421 : struct.new_parts) - { - _iter1421.write(oprot); - } - oprot.writeListEnd(); - } + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -94792,71 +102813,75 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp } - private static class add_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { - public add_partitions_pspec_argsTupleScheme getScheme() { - return new add_partitions_pspec_argsTupleScheme(); + private static class append_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { + public append_partition_by_name_argsTupleScheme getScheme() { + return new append_partition_by_name_argsTupleScheme(); } } - private static class add_partitions_pspec_argsTupleScheme extends TupleScheme { + private static class append_partition_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetNew_parts()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetNew_parts()) { - { - oprot.writeI32(struct.new_parts.size()); - for (PartitionSpec _iter1422 : struct.new_parts) - { - _iter1422.write(oprot); - } - } + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_name()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1423 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1423.size); - PartitionSpec _elem1424; - for (int _i1425 = 0; _i1425 < _list1423.size; ++_i1425) - { - _elem1424 = new PartitionSpec(); - _elem1424.read(iprot); - struct.new_parts.add(_elem1424); - } - } - struct.setNew_partsIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_pspec_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_pspec_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_pspec_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_by_name_resultTupleSchemeFactory()); } - private int success; // required + private Partition success; // required private InvalidObjectException o1; // required private AlreadyExistsException o2; // required private MetaException o3; // required @@ -94929,13 +102954,11 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -94943,21 +102966,20 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_pspec_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_result.class, metaDataMap); } - public add_partitions_pspec_result() { + public append_partition_by_name_result() { } - public add_partitions_pspec_result( - int success, + public append_partition_by_name_result( + Partition success, InvalidObjectException o1, AlreadyExistsException o2, MetaException o3) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; this.o3 = o3; @@ -94966,9 +102988,10 @@ public add_partitions_pspec_result( /** * Performs a deep copy on other. */ - public add_partitions_pspec_result(add_partitions_pspec_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public append_partition_by_name_result(append_partition_by_name_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } if (other.isSetO1()) { this.o1 = new InvalidObjectException(other.o1); } @@ -94980,39 +103003,39 @@ public add_partitions_pspec_result(add_partitions_pspec_result other) { } } - public add_partitions_pspec_result deepCopy() { - return new add_partitions_pspec_result(this); + public append_partition_by_name_result deepCopy() { + return new append_partition_by_name_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = 0; + this.success = null; this.o1 = null; this.o2 = null; this.o3 = null; } - public int getSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(int success) { + public void setSuccess(Partition success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public InvalidObjectException getO1() { @@ -95090,7 +103113,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((Partition)value); } break; @@ -95162,21 +103185,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_pspec_result) - return this.equals((add_partitions_pspec_result)that); + if (that instanceof append_partition_by_name_result) + return this.equals((append_partition_by_name_result)that); return false; } - public boolean equals(add_partitions_pspec_result that) { + public boolean equals(append_partition_by_name_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -95214,7 +103237,7 @@ public boolean equals(add_partitions_pspec_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -95238,7 +103261,7 @@ public int hashCode() { } @Override - public int compareTo(add_partitions_pspec_result other) { + public int compareTo(append_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -95302,11 +103325,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_pspec_result("); + StringBuilder sb = new StringBuilder("append_partition_by_name_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -95339,6 +103366,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -95351,23 +103381,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class add_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { - public add_partitions_pspec_resultStandardScheme getScheme() { - return new add_partitions_pspec_resultStandardScheme(); + private static class append_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { + public append_partition_by_name_resultStandardScheme getScheme() { + return new append_partition_by_name_resultStandardScheme(); } } - private static class add_partitions_pspec_resultStandardScheme extends StandardScheme { + private static class append_partition_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -95378,8 +103406,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.success = iprot.readI32(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -95421,13 +103450,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeI32(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -95451,16 +103480,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp } - private static class add_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { - public add_partitions_pspec_resultTupleScheme getScheme() { - return new add_partitions_pspec_resultTupleScheme(); + private static class append_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { + public append_partition_by_name_resultTupleScheme getScheme() { + return new append_partition_by_name_resultTupleScheme(); } } - private static class add_partitions_pspec_resultTupleScheme extends TupleScheme { + private static class append_partition_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -95477,7 +103506,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - oprot.writeI32(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -95491,11 +103520,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = iprot.readI32(); + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -95518,28 +103548,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_by_name_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_by_name_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_by_name_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List part_vals; // required + private String part_name; // required + private EnvironmentContext environment_context; // 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 { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"); + PART_NAME((short)3, "part_name"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -95558,8 +103591,10 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; + case 3: // PART_NAME + return PART_NAME; + case 4: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -95607,52 +103642,58 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_with_environment_context_args.class, metaDataMap); } - public append_partition_args() { + public append_partition_by_name_with_environment_context_args() { } - public append_partition_args( + public append_partition_by_name_with_environment_context_args( String db_name, String tbl_name, - List part_vals) + String part_name, + EnvironmentContext environment_context) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_vals = part_vals; + this.part_name = part_name; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public append_partition_args(append_partition_args other) { + public append_partition_by_name_with_environment_context_args(append_partition_by_name_with_environment_context_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + if (other.isSetPart_name()) { + this.part_name = other.part_name; + } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } } - public append_partition_args deepCopy() { - return new append_partition_args(this); + public append_partition_by_name_with_environment_context_args deepCopy() { + return new append_partition_by_name_with_environment_context_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_vals = null; + this.part_name = null; + this.environment_context = null; } public String getDb_name() { @@ -95701,41 +103742,49 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); + public String getPart_name() { + return this.part_name; } - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); + public void setPart_name(String part_name) { + this.part_name = part_name; } - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); + public void unsetPart_name() { + this.part_name = null; + } + + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; + } + + public void setPart_nameIsSet(boolean value) { + if (!value) { + this.part_name = null; } - this.part_vals.add(elem); } - public List getPart_vals() { - return this.part_vals; + public EnvironmentContext getEnvironment_context() { + return this.environment_context; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetEnvironment_context() { + this.environment_context = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; } - public void setPart_valsIsSet(boolean value) { + public void setEnvironment_contextIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.environment_context = null; } } @@ -95757,11 +103806,19 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_VALS: + case PART_NAME: if (value == null) { - unsetPart_vals(); + unsetPart_name(); } else { - setPart_vals((List)value); + setPart_name((String)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -95776,8 +103833,11 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_VALS: - return getPart_vals(); + case PART_NAME: + return getPart_name(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -95794,8 +103854,10 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); + case PART_NAME: + return isSetPart_name(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -95804,12 +103866,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_args) - return this.equals((append_partition_args)that); + if (that instanceof append_partition_by_name_with_environment_context_args) + return this.equals((append_partition_by_name_with_environment_context_args)that); return false; } - public boolean equals(append_partition_args that) { + public boolean equals(append_partition_by_name_with_environment_context_args that) { if (that == null) return false; @@ -95831,12 +103893,21 @@ public boolean equals(append_partition_args that) { return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) + boolean this_present_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) return false; - if (!this.part_vals.equals(that.part_vals)) + if (!this.part_name.equals(that.part_name)) + return false; + } + + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) return false; } @@ -95857,16 +103928,21 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + boolean present_part_name = true && (isSetPart_name()); + list.add(present_part_name); + if (present_part_name) + list.add(part_name); + + boolean present_environment_context = true && (isSetEnvironment_context()); + list.add(present_environment_context); + if (present_environment_context) + list.add(environment_context); return list.hashCode(); } @Override - public int compareTo(append_partition_args other) { + public int compareTo(append_partition_by_name_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -95893,12 +103969,22 @@ public int compareTo(append_partition_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -95920,7 +104006,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_args("); + StringBuilder sb = new StringBuilder("append_partition_by_name_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -95939,11 +104025,19 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("part_name:"); + if (this.part_name == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.part_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); } first = false; sb.append(")"); @@ -95953,6 +104047,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -95971,15 +104068,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_argsStandardSchemeFactory implements SchemeFactory { - public append_partition_argsStandardScheme getScheme() { - return new append_partition_argsStandardScheme(); + private static class append_partition_by_name_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public append_partition_by_name_with_environment_context_argsStandardScheme getScheme() { + return new append_partition_by_name_with_environment_context_argsStandardScheme(); } } - private static class append_partition_argsStandardScheme extends StandardScheme { + private static class append_partition_by_name_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -96005,20 +104102,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1426 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1426.size); - String _elem1427; - for (int _i1428 = 0; _i1428 < _list1426.size; ++_i1428) - { - _elem1427 = iprot.readString(); - struct.part_vals.add(_elem1427); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); + case 3: // PART_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -96032,7 +104128,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -96046,16 +104142,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_a oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1429 : struct.part_vals) - { - oprot.writeString(_iter1429); - } - oprot.writeListEnd(); - } + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); + oprot.writeFieldEnd(); + } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -96064,16 +104158,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_a } - private static class append_partition_argsTupleSchemeFactory implements SchemeFactory { - public append_partition_argsTupleScheme getScheme() { - return new append_partition_argsTupleScheme(); + private static class append_partition_by_name_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public append_partition_by_name_with_environment_context_argsTupleScheme getScheme() { + return new append_partition_by_name_with_environment_context_argsTupleScheme(); } } - private static class append_partition_argsTupleScheme extends TupleScheme { + private static class append_partition_by_name_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -96082,31 +104176,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_ar if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetPart_name()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetEnvironment_context()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter1430 : struct.part_vals) - { - oprot.writeString(_iter1430); - } - } + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); + } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -96116,25 +104210,21 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list1431 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1431.size); - String _elem1432; - for (int _i1433 = 0; _i1433 < _list1431.size; ++_i1433) - { - _elem1432 = iprot.readString(); - struct.part_vals.add(_elem1432); - } - } - struct.setPart_valsIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); + } + if (incoming.get(3)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_by_name_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_with_environment_context_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -96143,8 +104233,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_by_name_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_by_name_with_environment_context_resultTupleSchemeFactory()); } private Partition success; // required @@ -96232,13 +104322,13 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_with_environment_context_result.class, metaDataMap); } - public append_partition_result() { + public append_partition_by_name_with_environment_context_result() { } - public append_partition_result( + public append_partition_by_name_with_environment_context_result( Partition success, InvalidObjectException o1, AlreadyExistsException o2, @@ -96254,7 +104344,7 @@ public append_partition_result( /** * Performs a deep copy on other. */ - public append_partition_result(append_partition_result other) { + public append_partition_by_name_with_environment_context_result(append_partition_by_name_with_environment_context_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -96269,8 +104359,8 @@ public append_partition_result(append_partition_result other) { } } - public append_partition_result deepCopy() { - return new append_partition_result(this); + public append_partition_by_name_with_environment_context_result deepCopy() { + return new append_partition_by_name_with_environment_context_result(this); } @Override @@ -96451,12 +104541,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_result) - return this.equals((append_partition_result)that); + if (that instanceof append_partition_by_name_with_environment_context_result) + return this.equals((append_partition_by_name_with_environment_context_result)that); return false; } - public boolean equals(append_partition_result that) { + public boolean equals(append_partition_by_name_with_environment_context_result that) { if (that == null) return false; @@ -96527,7 +104617,7 @@ public int hashCode() { } @Override - public int compareTo(append_partition_result other) { + public int compareTo(append_partition_by_name_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -96591,7 +104681,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_result("); + StringBuilder sb = new StringBuilder("append_partition_by_name_with_environment_context_result("); boolean first = true; sb.append("success:"); @@ -96653,15 +104743,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_resultStandardSchemeFactory implements SchemeFactory { - public append_partition_resultStandardScheme getScheme() { - return new append_partition_resultStandardScheme(); + private static class append_partition_by_name_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public append_partition_by_name_with_environment_context_resultStandardScheme getScheme() { + return new append_partition_by_name_with_environment_context_resultStandardScheme(); } } - private static class append_partition_resultStandardScheme extends StandardScheme { + private static class append_partition_by_name_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -96716,7 +104806,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_re struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -96746,16 +104836,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_r } - private static class append_partition_resultTupleSchemeFactory implements SchemeFactory { - public append_partition_resultTupleScheme getScheme() { - return new append_partition_resultTupleScheme(); + private static class append_partition_by_name_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public append_partition_by_name_with_environment_context_resultTupleScheme getScheme() { + return new append_partition_by_name_with_environment_context_resultTupleScheme(); } } - private static class append_partition_resultTupleScheme extends TupleScheme { + private static class append_partition_by_name_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -96786,7 +104876,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_re } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -96814,22 +104904,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_res } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_args"); - private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_argsTupleSchemeFactory()); } - private AddPartitionsRequest request; // required + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required + private boolean deleteData; // 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 { - REQUEST((short)1, "request"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_VALS((short)3, "part_vals"), + DELETE_DATA((short)4, "deleteData"); private static final Map byName = new HashMap(); @@ -96844,8 +104943,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_res */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQUEST - return REQUEST; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; + case 4: // DELETE_DATA + return DELETE_DATA; default: return null; } @@ -96886,73 +104991,209 @@ public String getFieldName() { } // isset id assignments + private static final int __DELETEDATA_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPartitionsRequest.class))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_args.class, metaDataMap); } - public add_partitions_req_args() { + public drop_partition_args() { } - public add_partitions_req_args( - AddPartitionsRequest request) + public drop_partition_args( + String db_name, + String tbl_name, + List part_vals, + boolean deleteData) { this(); - this.request = request; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; + this.deleteData = deleteData; + setDeleteDataIsSet(true); } /** * Performs a deep copy on other. */ - public add_partitions_req_args(add_partitions_req_args other) { - if (other.isSetRequest()) { - this.request = new AddPartitionsRequest(other.request); + public drop_partition_args(drop_partition_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; } + this.deleteData = other.deleteData; } - public add_partitions_req_args deepCopy() { - return new add_partitions_req_args(this); + public drop_partition_args deepCopy() { + return new drop_partition_args(this); } @Override public void clear() { - this.request = null; + this.db_name = null; + this.tbl_name = null; + this.part_vals = null; + setDeleteDataIsSet(false); + this.deleteData = false; } - public AddPartitionsRequest getRequest() { - return this.request; + public String getDb_name() { + return this.db_name; } - public void setRequest(AddPartitionsRequest request) { - this.request = request; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetRequest() { - this.request = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field request is set (has been assigned a value) and false otherwise */ - public boolean isSetRequest() { - return this.request != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setRequestIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.request = null; + this.db_name = null; + } + } + + public String getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } + } + + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); + } + + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); } + this.part_vals.add(elem); + } + + public List getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; + } + } + + public boolean isDeleteData() { + return this.deleteData; + } + + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); + } + + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ + public boolean isSetDeleteData() { + return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQUEST: + case DB_NAME: if (value == null) { - unsetRequest(); + unsetDb_name(); } else { - setRequest((AddPartitionsRequest)value); + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); + } + break; + + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); } break; @@ -96961,8 +105202,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQUEST: - return getRequest(); + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); + + case DELETE_DATA: + return isDeleteData(); } throw new IllegalStateException(); @@ -96975,8 +105225,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQUEST: - return isSetRequest(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); + case DELETE_DATA: + return isSetDeleteData(); } throw new IllegalStateException(); } @@ -96985,21 +105241,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_req_args) - return this.equals((add_partitions_req_args)that); + if (that instanceof drop_partition_args) + return this.equals((drop_partition_args)that); return false; } - public boolean equals(add_partitions_req_args that) { + public boolean equals(drop_partition_args that) { if (that == null) return false; - boolean this_present_request = true && this.isSetRequest(); - boolean that_present_request = true && that.isSetRequest(); - if (this_present_request || that_present_request) { - if (!(this_present_request && that_present_request)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.request.equals(that.request)) + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) + return false; + } + + boolean this_present_deleteData = true; + boolean that_present_deleteData = true; + if (this_present_deleteData || that_present_deleteData) { + if (!(this_present_deleteData && that_present_deleteData)) + return false; + if (this.deleteData != that.deleteData) return false; } @@ -97010,28 +105293,73 @@ public boolean equals(add_partitions_req_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_request = true && (isSetRequest()); - list.add(present_request); - if (present_request) - list.add(request); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); + + boolean present_deleteData = true; + list.add(present_deleteData); + if (present_deleteData) + list.add(deleteData); return list.hashCode(); } @Override - public int compareTo(add_partitions_req_args other) { + public int compareTo(drop_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -97053,16 +105381,36 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_req_args("); + StringBuilder sb = new StringBuilder("drop_partition_args("); boolean first = true; - sb.append("request:"); - if (this.request == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.request); + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); } first = false; + if (!first) sb.append(", "); + sb.append("deleteData:"); + sb.append(this.deleteData); + first = false; sb.append(")"); return sb.toString(); } @@ -97070,9 +105418,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (request != null) { - request.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -97085,21 +105430,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class add_partitions_req_argsStandardSchemeFactory implements SchemeFactory { - public add_partitions_req_argsStandardScheme getScheme() { - return new add_partitions_req_argsStandardScheme(); + private static class drop_partition_argsStandardSchemeFactory implements SchemeFactory { + public drop_partition_argsStandardScheme getScheme() { + return new drop_partition_argsStandardScheme(); } } - private static class add_partitions_req_argsStandardScheme extends StandardScheme { + private static class drop_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -97109,11 +105456,44 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ break; } switch (schemeField.id) { - case 1: // REQUEST - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new AddPartitionsRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1514 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1514.size); + String _elem1515; + for (int _i1516 = 0; _i1516 < _list1514.size; ++_i1516) + { + _elem1515 = iprot.readString(); + struct.part_vals.add(_elem1515); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DELETE_DATA + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -97127,81 +105507,142 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.request != null) { - oprot.writeFieldBegin(REQUEST_FIELD_DESC); - struct.request.write(oprot); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); + for (String _iter1517 : struct.part_vals) + { + oprot.writeString(_iter1517); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_partitions_req_argsTupleSchemeFactory implements SchemeFactory { - public add_partitions_req_argsTupleScheme getScheme() { - return new add_partitions_req_argsTupleScheme(); + private static class drop_partition_argsTupleSchemeFactory implements SchemeFactory { + public drop_partition_argsTupleScheme getScheme() { + return new drop_partition_argsTupleScheme(); } } - private static class add_partitions_req_argsTupleScheme extends TupleScheme { + private static class drop_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetRequest()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetRequest()) { - struct.request.write(oprot); + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_vals()) { + optionals.set(2); + } + if (struct.isSetDeleteData()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter1518 : struct.part_vals) + { + oprot.writeString(_iter1518); + } + } + } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.request = new AddPartitionsRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list1519 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1519.size); + String _elem1520; + for (int _i1521 = 0; _i1521 < _list1519.size; ++_i1521) + { + _elem1520 = iprot.readString(); + struct.part_vals.add(_elem1520); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_resultTupleSchemeFactory()); } - private AddPartitionsResult success; // required - private InvalidObjectException o1; // required - private AlreadyExistsException o2; // required - private MetaException o3; // required + private boolean success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -97222,8 +105663,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -97264,95 +105703,89 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPartitionsResult.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_result.class, metaDataMap); } - public add_partitions_req_result() { + public drop_partition_result() { } - public add_partitions_req_result( - AddPartitionsResult success, - InvalidObjectException o1, - AlreadyExistsException o2, - MetaException o3) + public drop_partition_result( + boolean success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public add_partitions_req_result(add_partitions_req_result other) { - if (other.isSetSuccess()) { - this.success = new AddPartitionsResult(other.success); - } + public drop_partition_result(drop_partition_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { - this.o1 = new InvalidObjectException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new AlreadyExistsException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + this.o2 = new MetaException(other.o2); } } - public add_partitions_req_result deepCopy() { - return new add_partitions_req_result(this); + public drop_partition_result deepCopy() { + return new drop_partition_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; this.o1 = null; this.o2 = null; - this.o3 = null; } - public AddPartitionsResult getSuccess() { + public boolean isSuccess() { return this.success; } - public void setSuccess(AddPartitionsResult success) { + public void setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public InvalidObjectException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(InvalidObjectException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -97371,11 +105804,11 @@ public void setO1IsSet(boolean value) { } } - public AlreadyExistsException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(AlreadyExistsException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -97394,36 +105827,13 @@ public void setO2IsSet(boolean value) { } } - public MetaException getO3() { - return this.o3; - } - - public void setO3(MetaException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((AddPartitionsResult)value); + setSuccess((Boolean)value); } break; @@ -97431,7 +105841,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((InvalidObjectException)value); + setO1((NoSuchObjectException)value); } break; @@ -97439,15 +105849,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((AlreadyExistsException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((MetaException)value); + setO2((MetaException)value); } break; @@ -97457,7 +105859,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return isSuccess(); case O1: return getO1(); @@ -97465,9 +105867,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -97485,8 +105884,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -97495,21 +105892,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_req_result) - return this.equals((add_partitions_req_result)that); + if (that instanceof drop_partition_result) + return this.equals((drop_partition_result)that); return false; } - public boolean equals(add_partitions_req_result that) { + public boolean equals(drop_partition_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -97531,15 +105928,6 @@ public boolean equals(add_partitions_req_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @@ -97547,7 +105935,7 @@ public boolean equals(add_partitions_req_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); + boolean present_success = true; list.add(present_success); if (present_success) list.add(success); @@ -97562,16 +105950,11 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(add_partitions_req_result other) { + public int compareTo(drop_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -97608,16 +105991,6 @@ public int compareTo(add_partitions_req_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -97635,15 +106008,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_req_result("); + StringBuilder sb = new StringBuilder("drop_partition_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -97661,14 +106030,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -97676,9 +106037,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -97691,21 +106049,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class add_partitions_req_resultStandardSchemeFactory implements SchemeFactory { - public add_partitions_req_resultStandardScheme getScheme() { - return new add_partitions_req_resultStandardScheme(); + private static class drop_partition_resultStandardSchemeFactory implements SchemeFactory { + public drop_partition_resultStandardScheme getScheme() { + return new drop_partition_resultStandardScheme(); } } - private static class add_partitions_req_resultStandardScheme extends StandardScheme { + private static class drop_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -97716,9 +106076,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new AddPartitionsResult(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -97726,7 +106085,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -97735,22 +106094,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -97760,13 +106110,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -97779,27 +106129,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_partitions_req_resultTupleSchemeFactory implements SchemeFactory { - public add_partitions_req_resultTupleScheme getScheme() { - return new add_partitions_req_resultTupleScheme(); + private static class drop_partition_resultTupleSchemeFactory implements SchemeFactory { + public drop_partition_resultTupleScheme getScheme() { + return new drop_partition_resultTupleScheme(); } } - private static class add_partitions_req_resultTupleScheme extends TupleScheme { + private static class drop_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -97811,12 +106156,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_ if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeBool(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -97824,57 +106166,50 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_ if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new AddPartitionsResult(); - struct.success.read(iprot); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_with_environment_context_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private List part_vals; // required + private boolean deleteData; // required private EnvironmentContext environment_context; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -97882,7 +106217,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_r DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + DELETE_DATA((short)4, "deleteData"), + ENVIRONMENT_CONTEXT((short)5, "environment_context"); private static final Map byName = new HashMap(); @@ -97903,7 +106239,9 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // PART_VALS return PART_VALS; - case 4: // ENVIRONMENT_CONTEXT + case 4: // DELETE_DATA + return DELETE_DATA; + case 5: // ENVIRONMENT_CONTEXT return ENVIRONMENT_CONTEXT; default: return null; @@ -97945,6 +106283,8 @@ public String getFieldName() { } // isset id assignments + private static final int __DELETEDATA_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -97955,32 +106295,38 @@ public String getFieldName() { tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_with_environment_context_args.class, metaDataMap); } - public append_partition_with_environment_context_args() { + public drop_partition_with_environment_context_args() { } - public append_partition_with_environment_context_args( + public drop_partition_with_environment_context_args( String db_name, String tbl_name, List part_vals, + boolean deleteData, EnvironmentContext environment_context) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.part_vals = part_vals; + this.deleteData = deleteData; + setDeleteDataIsSet(true); this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public append_partition_with_environment_context_args(append_partition_with_environment_context_args other) { + public drop_partition_with_environment_context_args(drop_partition_with_environment_context_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; } @@ -97991,13 +106337,14 @@ public append_partition_with_environment_context_args(append_partition_with_envi List __this__part_vals = new ArrayList(other.part_vals); this.part_vals = __this__part_vals; } + this.deleteData = other.deleteData; if (other.isSetEnvironment_context()) { this.environment_context = new EnvironmentContext(other.environment_context); } } - public append_partition_with_environment_context_args deepCopy() { - return new append_partition_with_environment_context_args(this); + public drop_partition_with_environment_context_args deepCopy() { + return new drop_partition_with_environment_context_args(this); } @Override @@ -98005,6 +106352,8 @@ public void clear() { this.db_name = null; this.tbl_name = null; this.part_vals = null; + setDeleteDataIsSet(false); + this.deleteData = false; this.environment_context = null; } @@ -98092,6 +106441,28 @@ public void setPart_valsIsSet(boolean value) { } } + public boolean isDeleteData() { + return this.deleteData; + } + + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); + } + + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ + public boolean isSetDeleteData() { + return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + } + public EnvironmentContext getEnvironment_context() { return this.environment_context; } @@ -98141,6 +106512,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); + } + break; + case ENVIRONMENT_CONTEXT: if (value == null) { unsetEnvironment_context(); @@ -98163,6 +106542,9 @@ public Object getFieldValue(_Fields field) { case PART_VALS: return getPart_vals(); + case DELETE_DATA: + return isDeleteData(); + case ENVIRONMENT_CONTEXT: return getEnvironment_context(); @@ -98183,6 +106565,8 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case PART_VALS: return isSetPart_vals(); + case DELETE_DATA: + return isSetDeleteData(); case ENVIRONMENT_CONTEXT: return isSetEnvironment_context(); } @@ -98193,12 +106577,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_with_environment_context_args) - return this.equals((append_partition_with_environment_context_args)that); + if (that instanceof drop_partition_with_environment_context_args) + return this.equals((drop_partition_with_environment_context_args)that); return false; } - public boolean equals(append_partition_with_environment_context_args that) { + public boolean equals(drop_partition_with_environment_context_args that) { if (that == null) return false; @@ -98229,6 +106613,15 @@ public boolean equals(append_partition_with_environment_context_args that) { return false; } + boolean this_present_deleteData = true; + boolean that_present_deleteData = true; + if (this_present_deleteData || that_present_deleteData) { + if (!(this_present_deleteData && that_present_deleteData)) + return false; + if (this.deleteData != that.deleteData) + return false; + } + boolean this_present_environment_context = true && this.isSetEnvironment_context(); boolean that_present_environment_context = true && that.isSetEnvironment_context(); if (this_present_environment_context || that_present_environment_context) { @@ -98260,6 +106653,11 @@ public int hashCode() { if (present_part_vals) list.add(part_vals); + boolean present_deleteData = true; + list.add(present_deleteData); + if (present_deleteData) + list.add(deleteData); + boolean present_environment_context = true && (isSetEnvironment_context()); list.add(present_environment_context); if (present_environment_context) @@ -98269,7 +106667,7 @@ public int hashCode() { } @Override - public int compareTo(append_partition_with_environment_context_args other) { + public int compareTo(drop_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -98306,6 +106704,16 @@ public int compareTo(append_partition_with_environment_context_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; @@ -98333,7 +106741,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_with_environment_context_args("); + StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -98360,6 +106768,10 @@ public String toString() { } first = false; if (!first) sb.append(", "); + sb.append("deleteData:"); + sb.append(this.deleteData); + first = false; + if (!first) sb.append(", "); sb.append("environment_context:"); if (this.environment_context == null) { sb.append("null"); @@ -98389,21 +106801,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class append_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public append_partition_with_environment_context_argsStandardScheme getScheme() { - return new append_partition_with_environment_context_argsStandardScheme(); + private static class drop_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public drop_partition_with_environment_context_argsStandardScheme getScheme() { + return new drop_partition_with_environment_context_argsStandardScheme(); } } - private static class append_partition_with_environment_context_argsStandardScheme extends StandardScheme { + private static class drop_partition_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -98432,13 +106846,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1434 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1434.size); - String _elem1435; - for (int _i1436 = 0; _i1436 < _list1434.size; ++_i1436) + org.apache.thrift.protocol.TList _list1522 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1522.size); + String _elem1523; + for (int _i1524 = 0; _i1524 < _list1522.size; ++_i1524) { - _elem1435 = iprot.readString(); - struct.part_vals.add(_elem1435); + _elem1523 = iprot.readString(); + struct.part_vals.add(_elem1523); } iprot.readListEnd(); } @@ -98447,7 +106861,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // ENVIRONMENT_CONTEXT + case 4: // DELETE_DATA + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // ENVIRONMENT_CONTEXT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.environment_context = new EnvironmentContext(); struct.environment_context.read(iprot); @@ -98465,7 +106887,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -98483,14 +106905,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1437 : struct.part_vals) + for (String _iter1525 : struct.part_vals) { - oprot.writeString(_iter1437); + oprot.writeString(_iter1525); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); if (struct.environment_context != null) { oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); struct.environment_context.write(oprot); @@ -98502,16 +106927,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w } - private static class append_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public append_partition_with_environment_context_argsTupleScheme getScheme() { - return new append_partition_with_environment_context_argsTupleScheme(); + private static class drop_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public drop_partition_with_environment_context_argsTupleScheme getScheme() { + return new drop_partition_with_environment_context_argsTupleScheme(); } } - private static class append_partition_with_environment_context_argsTupleScheme extends TupleScheme { + private static class drop_partition_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -98523,10 +106948,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetPart_vals()) { optionals.set(2); } - if (struct.isSetEnvironment_context()) { + if (struct.isSetDeleteData()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetEnvironment_context()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -98536,21 +106964,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1438 : struct.part_vals) + for (String _iter1526 : struct.part_vals) { - oprot.writeString(_iter1438); + oprot.writeString(_iter1526); } } } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); + } if (struct.isSetEnvironment_context()) { struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -98561,18 +106992,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1439 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1439.size); - String _elem1440; - for (int _i1441 = 0; _i1441 < _list1439.size; ++_i1441) + org.apache.thrift.protocol.TList _list1527 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1527.size); + String _elem1528; + for (int _i1529 = 0; _i1529 < _list1527.size; ++_i1529) { - _elem1440 = iprot.readString(); - struct.part_vals.add(_elem1440); + _elem1528 = iprot.readString(); + struct.part_vals.add(_elem1528); } } struct.setPart_valsIsSet(true); } if (incoming.get(3)) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } + if (incoming.get(4)) { struct.environment_context = new EnvironmentContext(); struct.environment_context.read(iprot); struct.setEnvironment_contextIsSet(true); @@ -98582,31 +107017,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_with_environment_context_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_with_environment_context_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_with_environment_context_resultTupleSchemeFactory()); } - private Partition success; // required - private InvalidObjectException o1; // required - private AlreadyExistsException o2; // required - private MetaException o3; // required + private boolean success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -98627,8 +107059,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -98669,95 +107099,89 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_with_environment_context_result.class, metaDataMap); } - public append_partition_with_environment_context_result() { + public drop_partition_with_environment_context_result() { } - public append_partition_with_environment_context_result( - Partition success, - InvalidObjectException o1, - AlreadyExistsException o2, - MetaException o3) + public drop_partition_with_environment_context_result( + boolean success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public append_partition_with_environment_context_result(append_partition_with_environment_context_result other) { - if (other.isSetSuccess()) { - this.success = new Partition(other.success); - } + public drop_partition_with_environment_context_result(drop_partition_with_environment_context_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { - this.o1 = new InvalidObjectException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new AlreadyExistsException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + this.o2 = new MetaException(other.o2); } } - public append_partition_with_environment_context_result deepCopy() { - return new append_partition_with_environment_context_result(this); + public drop_partition_with_environment_context_result deepCopy() { + return new drop_partition_with_environment_context_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; this.o1 = null; this.o2 = null; - this.o3 = null; } - public Partition getSuccess() { + public boolean isSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public InvalidObjectException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(InvalidObjectException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -98776,11 +107200,11 @@ public void setO1IsSet(boolean value) { } } - public AlreadyExistsException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(AlreadyExistsException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -98799,36 +107223,13 @@ public void setO2IsSet(boolean value) { } } - public MetaException getO3() { - return this.o3; - } - - public void setO3(MetaException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((Boolean)value); } break; @@ -98836,7 +107237,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((InvalidObjectException)value); + setO1((NoSuchObjectException)value); } break; @@ -98844,15 +107245,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((AlreadyExistsException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((MetaException)value); + setO2((MetaException)value); } break; @@ -98862,7 +107255,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return isSuccess(); case O1: return getO1(); @@ -98870,9 +107263,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -98890,8 +107280,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -98900,21 +107288,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_with_environment_context_result) - return this.equals((append_partition_with_environment_context_result)that); + if (that instanceof drop_partition_with_environment_context_result) + return this.equals((drop_partition_with_environment_context_result)that); return false; } - public boolean equals(append_partition_with_environment_context_result that) { + public boolean equals(drop_partition_with_environment_context_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -98936,15 +107324,6 @@ public boolean equals(append_partition_with_environment_context_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @@ -98952,7 +107331,7 @@ public boolean equals(append_partition_with_environment_context_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); + boolean present_success = true; list.add(present_success); if (present_success) list.add(success); @@ -98967,16 +107346,11 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(append_partition_with_environment_context_result other) { + public int compareTo(drop_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -99013,16 +107387,6 @@ public int compareTo(append_partition_with_environment_context_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -99040,15 +107404,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_with_environment_context_result("); + StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -99066,14 +107426,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -99081,9 +107433,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -99096,21 +107445,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class append_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public append_partition_with_environment_context_resultStandardScheme getScheme() { - return new append_partition_with_environment_context_resultStandardScheme(); + private static class drop_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public drop_partition_with_environment_context_resultStandardScheme getScheme() { + return new drop_partition_with_environment_context_resultStandardScheme(); } } - private static class append_partition_with_environment_context_resultStandardScheme extends StandardScheme { + private static class drop_partition_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -99121,9 +107472,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -99131,7 +107481,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -99140,22 +107490,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -99165,13 +107506,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -99184,27 +107525,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class append_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public append_partition_with_environment_context_resultTupleScheme getScheme() { - return new append_partition_with_environment_context_resultTupleScheme(); + private static class drop_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public drop_partition_with_environment_context_resultTupleScheme getScheme() { + return new drop_partition_with_environment_context_resultTupleScheme(); } } - private static class append_partition_with_environment_context_resultTupleScheme extends TupleScheme { + private static class drop_partition_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -99216,12 +107552,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeBool(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -99229,62 +107562,56 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_by_name_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private String part_name; // required + private boolean deleteData; // 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 { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_NAME((short)3, "part_name"); + PART_NAME((short)3, "part_name"), + DELETE_DATA((short)4, "deleteData"); private static final Map byName = new HashMap(); @@ -99305,6 +107632,8 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // PART_NAME return PART_NAME; + case 4: // DELETE_DATA + return DELETE_DATA; default: return null; } @@ -99345,6 +107674,8 @@ public String getFieldName() { } // isset id assignments + private static final int __DELETEDATA_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -99354,28 +107685,34 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_args.class, metaDataMap); } - public append_partition_by_name_args() { + public drop_partition_by_name_args() { } - public append_partition_by_name_args( + public drop_partition_by_name_args( String db_name, String tbl_name, - String part_name) + String part_name, + boolean deleteData) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.part_name = part_name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); } /** * Performs a deep copy on other. */ - public append_partition_by_name_args(append_partition_by_name_args other) { + public drop_partition_by_name_args(drop_partition_by_name_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; } @@ -99385,10 +107722,11 @@ public append_partition_by_name_args(append_partition_by_name_args other) { if (other.isSetPart_name()) { this.part_name = other.part_name; } + this.deleteData = other.deleteData; } - public append_partition_by_name_args deepCopy() { - return new append_partition_by_name_args(this); + public drop_partition_by_name_args deepCopy() { + return new drop_partition_by_name_args(this); } @Override @@ -99396,6 +107734,8 @@ public void clear() { this.db_name = null; this.tbl_name = null; this.part_name = null; + setDeleteDataIsSet(false); + this.deleteData = false; } public String getDb_name() { @@ -99467,6 +107807,28 @@ public void setPart_nameIsSet(boolean value) { } } + public boolean isDeleteData() { + return this.deleteData; + } + + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); + } + + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ + public boolean isSetDeleteData() { + return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -99493,6 +107855,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); + } + break; + } } @@ -99507,6 +107877,9 @@ public Object getFieldValue(_Fields field) { case PART_NAME: return getPart_name(); + case DELETE_DATA: + return isDeleteData(); + } throw new IllegalStateException(); } @@ -99524,6 +107897,8 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case PART_NAME: return isSetPart_name(); + case DELETE_DATA: + return isSetDeleteData(); } throw new IllegalStateException(); } @@ -99532,12 +107907,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_by_name_args) - return this.equals((append_partition_by_name_args)that); + if (that instanceof drop_partition_by_name_args) + return this.equals((drop_partition_by_name_args)that); return false; } - public boolean equals(append_partition_by_name_args that) { + public boolean equals(drop_partition_by_name_args that) { if (that == null) return false; @@ -99568,6 +107943,15 @@ public boolean equals(append_partition_by_name_args that) { return false; } + boolean this_present_deleteData = true; + boolean that_present_deleteData = true; + if (this_present_deleteData || that_present_deleteData) { + if (!(this_present_deleteData && that_present_deleteData)) + return false; + if (this.deleteData != that.deleteData) + return false; + } + return true; } @@ -99590,11 +107974,16 @@ public int hashCode() { if (present_part_name) list.add(part_name); + boolean present_deleteData = true; + list.add(present_deleteData); + if (present_deleteData) + list.add(deleteData); + return list.hashCode(); } @Override - public int compareTo(append_partition_by_name_args other) { + public int compareTo(drop_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -99631,6 +108020,16 @@ public int compareTo(append_partition_by_name_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -99648,7 +108047,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_by_name_args("); + StringBuilder sb = new StringBuilder("drop_partition_by_name_args("); boolean first = true; sb.append("db_name:"); @@ -99674,6 +108073,10 @@ public String toString() { sb.append(this.part_name); } first = false; + if (!first) sb.append(", "); + sb.append("deleteData:"); + sb.append(this.deleteData); + first = false; sb.append(")"); return sb.toString(); } @@ -99693,21 +108096,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class append_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { - public append_partition_by_name_argsStandardScheme getScheme() { - return new append_partition_by_name_argsStandardScheme(); + private static class drop_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { + public drop_partition_by_name_argsStandardScheme getScheme() { + return new drop_partition_by_name_argsStandardScheme(); } } - private static class append_partition_by_name_argsStandardScheme extends StandardScheme { + private static class drop_partition_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -99741,6 +108146,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // DELETE_DATA + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -99750,7 +108163,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -99769,22 +108182,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b oprot.writeString(struct.part_name); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class append_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { - public append_partition_by_name_argsTupleScheme getScheme() { - return new append_partition_by_name_argsTupleScheme(); + private static class drop_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { + public drop_partition_by_name_argsTupleScheme getScheme() { + return new drop_partition_by_name_argsTupleScheme(); } } - private static class append_partition_by_name_argsTupleScheme extends TupleScheme { + private static class drop_partition_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -99796,7 +108212,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetPart_name()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetDeleteData()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -99806,12 +108225,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetPart_name()) { oprot.writeString(struct.part_name); } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -99824,36 +108246,37 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ struct.part_name = iprot.readString(); struct.setPart_nameIsSet(true); } + if (incoming.get(3)) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_by_name_resultTupleSchemeFactory()); } - private Partition success; // required - private InvalidObjectException o1; // required - private AlreadyExistsException o2; // required - private MetaException o3; // required + private boolean success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -99874,8 +108297,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -99916,95 +108337,89 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_result.class, metaDataMap); } - public append_partition_by_name_result() { + public drop_partition_by_name_result() { } - public append_partition_by_name_result( - Partition success, - InvalidObjectException o1, - AlreadyExistsException o2, - MetaException o3) + public drop_partition_by_name_result( + boolean success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public append_partition_by_name_result(append_partition_by_name_result other) { - if (other.isSetSuccess()) { - this.success = new Partition(other.success); - } + public drop_partition_by_name_result(drop_partition_by_name_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { - this.o1 = new InvalidObjectException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new AlreadyExistsException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + this.o2 = new MetaException(other.o2); } } - public append_partition_by_name_result deepCopy() { - return new append_partition_by_name_result(this); + public drop_partition_by_name_result deepCopy() { + return new drop_partition_by_name_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; this.o1 = null; this.o2 = null; - this.o3 = null; } - public Partition getSuccess() { + public boolean isSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public InvalidObjectException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(InvalidObjectException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -100023,11 +108438,11 @@ public void setO1IsSet(boolean value) { } } - public AlreadyExistsException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(AlreadyExistsException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -100046,36 +108461,13 @@ public void setO2IsSet(boolean value) { } } - public MetaException getO3() { - return this.o3; - } - - public void setO3(MetaException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((Boolean)value); } break; @@ -100083,7 +108475,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((InvalidObjectException)value); + setO1((NoSuchObjectException)value); } break; @@ -100091,15 +108483,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((AlreadyExistsException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((MetaException)value); + setO2((MetaException)value); } break; @@ -100109,7 +108493,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return isSuccess(); case O1: return getO1(); @@ -100117,9 +108501,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -100137,8 +108518,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -100147,21 +108526,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_by_name_result) - return this.equals((append_partition_by_name_result)that); + if (that instanceof drop_partition_by_name_result) + return this.equals((drop_partition_by_name_result)that); return false; } - public boolean equals(append_partition_by_name_result that) { + public boolean equals(drop_partition_by_name_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -100183,15 +108562,6 @@ public boolean equals(append_partition_by_name_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @@ -100199,7 +108569,7 @@ public boolean equals(append_partition_by_name_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); + boolean present_success = true; list.add(present_success); if (present_success) list.add(success); @@ -100214,16 +108584,11 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(append_partition_by_name_result other) { + public int compareTo(drop_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -100260,16 +108625,6 @@ public int compareTo(append_partition_by_name_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -100287,15 +108642,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_by_name_result("); + StringBuilder sb = new StringBuilder("drop_partition_by_name_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -100313,14 +108664,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -100328,9 +108671,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -100343,21 +108683,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class append_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { - public append_partition_by_name_resultStandardScheme getScheme() { - return new append_partition_by_name_resultStandardScheme(); + private static class drop_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { + public drop_partition_by_name_resultStandardScheme getScheme() { + return new drop_partition_by_name_resultStandardScheme(); } } - private static class append_partition_by_name_resultStandardScheme extends StandardScheme { + private static class drop_partition_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -100368,9 +108710,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -100378,7 +108719,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -100387,22 +108728,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -100412,13 +108744,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -100431,27 +108763,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class append_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { - public append_partition_by_name_resultTupleScheme getScheme() { - return new append_partition_by_name_resultTupleScheme(); + private static class drop_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { + public drop_partition_by_name_resultTupleScheme getScheme() { + return new drop_partition_by_name_resultTupleScheme(); } } - private static class append_partition_by_name_resultTupleScheme extends TupleScheme { + private static class drop_partition_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -100463,12 +108790,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeBool(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -100476,57 +108800,50 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_by_name_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_with_environment_context_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_by_name_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_by_name_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_by_name_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_by_name_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_by_name_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private String part_name; // required + private boolean deleteData; // required private EnvironmentContext environment_context; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -100534,7 +108851,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_NAME((short)3, "part_name"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + DELETE_DATA((short)4, "deleteData"), + ENVIRONMENT_CONTEXT((short)5, "environment_context"); private static final Map byName = new HashMap(); @@ -100555,7 +108873,9 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // PART_NAME return PART_NAME; - case 4: // ENVIRONMENT_CONTEXT + case 4: // DELETE_DATA + return DELETE_DATA; + case 5: // ENVIRONMENT_CONTEXT return ENVIRONMENT_CONTEXT; default: return null; @@ -100597,6 +108917,8 @@ public String getFieldName() { } // isset id assignments + private static final int __DELETEDATA_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -100606,32 +108928,38 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_with_environment_context_args.class, metaDataMap); } - public append_partition_by_name_with_environment_context_args() { + public drop_partition_by_name_with_environment_context_args() { } - public append_partition_by_name_with_environment_context_args( + public drop_partition_by_name_with_environment_context_args( String db_name, String tbl_name, String part_name, + boolean deleteData, EnvironmentContext environment_context) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.part_name = part_name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public append_partition_by_name_with_environment_context_args(append_partition_by_name_with_environment_context_args other) { + public drop_partition_by_name_with_environment_context_args(drop_partition_by_name_with_environment_context_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; } @@ -100641,13 +108969,14 @@ public append_partition_by_name_with_environment_context_args(append_partition_b if (other.isSetPart_name()) { this.part_name = other.part_name; } + this.deleteData = other.deleteData; if (other.isSetEnvironment_context()) { this.environment_context = new EnvironmentContext(other.environment_context); } } - public append_partition_by_name_with_environment_context_args deepCopy() { - return new append_partition_by_name_with_environment_context_args(this); + public drop_partition_by_name_with_environment_context_args deepCopy() { + return new drop_partition_by_name_with_environment_context_args(this); } @Override @@ -100655,6 +108984,8 @@ public void clear() { this.db_name = null; this.tbl_name = null; this.part_name = null; + setDeleteDataIsSet(false); + this.deleteData = false; this.environment_context = null; } @@ -100727,6 +109058,28 @@ public void setPart_nameIsSet(boolean value) { } } + public boolean isDeleteData() { + return this.deleteData; + } + + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); + } + + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ + public boolean isSetDeleteData() { + return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + } + public EnvironmentContext getEnvironment_context() { return this.environment_context; } @@ -100776,6 +109129,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); + } + break; + case ENVIRONMENT_CONTEXT: if (value == null) { unsetEnvironment_context(); @@ -100798,6 +109159,9 @@ public Object getFieldValue(_Fields field) { case PART_NAME: return getPart_name(); + case DELETE_DATA: + return isDeleteData(); + case ENVIRONMENT_CONTEXT: return getEnvironment_context(); @@ -100818,6 +109182,8 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case PART_NAME: return isSetPart_name(); + case DELETE_DATA: + return isSetDeleteData(); case ENVIRONMENT_CONTEXT: return isSetEnvironment_context(); } @@ -100828,12 +109194,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_by_name_with_environment_context_args) - return this.equals((append_partition_by_name_with_environment_context_args)that); + if (that instanceof drop_partition_by_name_with_environment_context_args) + return this.equals((drop_partition_by_name_with_environment_context_args)that); return false; } - public boolean equals(append_partition_by_name_with_environment_context_args that) { + public boolean equals(drop_partition_by_name_with_environment_context_args that) { if (that == null) return false; @@ -100864,6 +109230,15 @@ public boolean equals(append_partition_by_name_with_environment_context_args tha return false; } + boolean this_present_deleteData = true; + boolean that_present_deleteData = true; + if (this_present_deleteData || that_present_deleteData) { + if (!(this_present_deleteData && that_present_deleteData)) + return false; + if (this.deleteData != that.deleteData) + return false; + } + boolean this_present_environment_context = true && this.isSetEnvironment_context(); boolean that_present_environment_context = true && that.isSetEnvironment_context(); if (this_present_environment_context || that_present_environment_context) { @@ -100895,6 +109270,11 @@ public int hashCode() { if (present_part_name) list.add(part_name); + boolean present_deleteData = true; + list.add(present_deleteData); + if (present_deleteData) + list.add(deleteData); + boolean present_environment_context = true && (isSetEnvironment_context()); list.add(present_environment_context); if (present_environment_context) @@ -100904,7 +109284,7 @@ public int hashCode() { } @Override - public int compareTo(append_partition_by_name_with_environment_context_args other) { + public int compareTo(drop_partition_by_name_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -100941,6 +109321,16 @@ public int compareTo(append_partition_by_name_with_environment_context_args othe return lastComparison; } } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; @@ -100968,7 +109358,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_by_name_with_environment_context_args("); + StringBuilder sb = new StringBuilder("drop_partition_by_name_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -100995,6 +109385,10 @@ public String toString() { } first = false; if (!first) sb.append(", "); + sb.append("deleteData:"); + sb.append(this.deleteData); + first = false; + if (!first) sb.append(", "); sb.append("environment_context:"); if (this.environment_context == null) { sb.append("null"); @@ -101024,21 +109418,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class append_partition_by_name_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public append_partition_by_name_with_environment_context_argsStandardScheme getScheme() { - return new append_partition_by_name_with_environment_context_argsStandardScheme(); + private static class drop_partition_by_name_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public drop_partition_by_name_with_environment_context_argsStandardScheme getScheme() { + return new drop_partition_by_name_with_environment_context_argsStandardScheme(); } } - private static class append_partition_by_name_with_environment_context_argsStandardScheme extends StandardScheme { + private static class drop_partition_by_name_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -101072,7 +109468,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // ENVIRONMENT_CONTEXT + case 4: // DELETE_DATA + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // ENVIRONMENT_CONTEXT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.environment_context = new EnvironmentContext(); struct.environment_context.read(iprot); @@ -101090,7 +109494,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -101109,6 +109513,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b oprot.writeString(struct.part_name); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); if (struct.environment_context != null) { oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); struct.environment_context.write(oprot); @@ -101120,16 +109527,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b } - private static class append_partition_by_name_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public append_partition_by_name_with_environment_context_argsTupleScheme getScheme() { - return new append_partition_by_name_with_environment_context_argsTupleScheme(); + private static class drop_partition_by_name_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public drop_partition_by_name_with_environment_context_argsTupleScheme getScheme() { + return new drop_partition_by_name_with_environment_context_argsTupleScheme(); } } - private static class append_partition_by_name_with_environment_context_argsTupleScheme extends TupleScheme { + private static class drop_partition_by_name_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -101141,10 +109548,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetPart_name()) { optionals.set(2); } - if (struct.isSetEnvironment_context()) { + if (struct.isSetDeleteData()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetEnvironment_context()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -101154,15 +109564,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetPart_name()) { oprot.writeString(struct.part_name); } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); + } if (struct.isSetEnvironment_context()) { struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -101176,6 +109589,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ struct.setPart_nameIsSet(true); } if (incoming.get(3)) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } + if (incoming.get(4)) { struct.environment_context = new EnvironmentContext(); struct.environment_context.read(iprot); struct.setEnvironment_contextIsSet(true); @@ -101185,31 +109602,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class append_partition_by_name_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_with_environment_context_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_by_name_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_with_environment_context_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_by_name_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_by_name_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_by_name_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_by_name_with_environment_context_resultTupleSchemeFactory()); } - private Partition success; // required - private InvalidObjectException o1; // required - private AlreadyExistsException o2; // required - private MetaException o3; // required + private boolean success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -101230,8 +109644,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -101272,95 +109684,89 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_with_environment_context_result.class, metaDataMap); } - public append_partition_by_name_with_environment_context_result() { + public drop_partition_by_name_with_environment_context_result() { } - public append_partition_by_name_with_environment_context_result( - Partition success, - InvalidObjectException o1, - AlreadyExistsException o2, - MetaException o3) + public drop_partition_by_name_with_environment_context_result( + boolean success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public append_partition_by_name_with_environment_context_result(append_partition_by_name_with_environment_context_result other) { - if (other.isSetSuccess()) { - this.success = new Partition(other.success); - } + public drop_partition_by_name_with_environment_context_result(drop_partition_by_name_with_environment_context_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { - this.o1 = new InvalidObjectException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new AlreadyExistsException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + this.o2 = new MetaException(other.o2); } } - public append_partition_by_name_with_environment_context_result deepCopy() { - return new append_partition_by_name_with_environment_context_result(this); + public drop_partition_by_name_with_environment_context_result deepCopy() { + return new drop_partition_by_name_with_environment_context_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; this.o1 = null; this.o2 = null; - this.o3 = null; } - public Partition getSuccess() { + public boolean isSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public InvalidObjectException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(InvalidObjectException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -101379,11 +109785,11 @@ public void setO1IsSet(boolean value) { } } - public AlreadyExistsException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(AlreadyExistsException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -101402,36 +109808,13 @@ public void setO2IsSet(boolean value) { } } - public MetaException getO3() { - return this.o3; - } - - public void setO3(MetaException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((Boolean)value); } break; @@ -101439,7 +109822,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((InvalidObjectException)value); + setO1((NoSuchObjectException)value); } break; @@ -101447,15 +109830,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((AlreadyExistsException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((MetaException)value); + setO2((MetaException)value); } break; @@ -101465,7 +109840,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return isSuccess(); case O1: return getO1(); @@ -101473,9 +109848,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -101493,8 +109865,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -101503,21 +109873,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_by_name_with_environment_context_result) - return this.equals((append_partition_by_name_with_environment_context_result)that); + if (that instanceof drop_partition_by_name_with_environment_context_result) + return this.equals((drop_partition_by_name_with_environment_context_result)that); return false; } - public boolean equals(append_partition_by_name_with_environment_context_result that) { + public boolean equals(drop_partition_by_name_with_environment_context_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -101539,15 +109909,6 @@ public boolean equals(append_partition_by_name_with_environment_context_result t return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @@ -101555,7 +109916,7 @@ public boolean equals(append_partition_by_name_with_environment_context_result t public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); + boolean present_success = true; list.add(present_success); if (present_success) list.add(success); @@ -101570,16 +109931,11 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(append_partition_by_name_with_environment_context_result other) { + public int compareTo(drop_partition_by_name_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -101616,16 +109972,6 @@ public int compareTo(append_partition_by_name_with_environment_context_result ot return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -101643,15 +109989,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_by_name_with_environment_context_result("); + StringBuilder sb = new StringBuilder("drop_partition_by_name_with_environment_context_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -101669,14 +110011,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -101684,9 +110018,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -101699,21 +110030,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class append_partition_by_name_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public append_partition_by_name_with_environment_context_resultStandardScheme getScheme() { - return new append_partition_by_name_with_environment_context_resultStandardScheme(); + private static class drop_partition_by_name_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public drop_partition_by_name_with_environment_context_resultStandardScheme getScheme() { + return new drop_partition_by_name_with_environment_context_resultStandardScheme(); } } - private static class append_partition_by_name_with_environment_context_resultStandardScheme extends StandardScheme { + private static class drop_partition_by_name_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -101724,9 +110057,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -101734,7 +110066,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -101743,22 +110075,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -101768,13 +110091,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -101787,27 +110110,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class append_partition_by_name_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public append_partition_by_name_with_environment_context_resultTupleScheme getScheme() { - return new append_partition_by_name_with_environment_context_resultTupleScheme(); + private static class drop_partition_by_name_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public drop_partition_by_name_with_environment_context_resultTupleScheme getScheme() { + return new drop_partition_by_name_with_environment_context_resultTupleScheme(); } } - private static class append_partition_by_name_with_environment_context_resultTupleScheme extends TupleScheme { + private static class drop_partition_by_name_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -101819,12 +110137,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeBool(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -101832,65 +110147,47 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partitions_req_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partitions_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partitions_req_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private List part_vals; // required - private boolean deleteData; // required + private DropPartitionsRequest req; // 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 { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"), - DELETE_DATA((short)4, "deleteData"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -101905,14 +110202,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // DELETE_DATA - return DELETE_DATA; + case 1: // REQ + return REQ; default: return null; } @@ -101953,209 +110244,73 @@ public String getFieldName() { } // isset id assignments - private static final int __DELETEDATA_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropPartitionsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_req_args.class, metaDataMap); } - public drop_partition_args() { + public drop_partitions_req_args() { } - public drop_partition_args( - String db_name, - String tbl_name, - List part_vals, - boolean deleteData) + public drop_partitions_req_args( + DropPartitionsRequest req) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_vals = part_vals; - this.deleteData = deleteData; - setDeleteDataIsSet(true); + this.req = req; } /** * Performs a deep copy on other. */ - public drop_partition_args(drop_partition_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + public drop_partitions_req_args(drop_partitions_req_args other) { + if (other.isSetReq()) { + this.req = new DropPartitionsRequest(other.req); } - this.deleteData = other.deleteData; } - public drop_partition_args deepCopy() { - return new drop_partition_args(this); + public drop_partitions_req_args deepCopy() { + return new drop_partitions_req_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_vals = null; - setDeleteDataIsSet(false); - this.deleteData = false; - } - - public String getDb_name() { - return this.db_name; - } - - public void setDb_name(String db_name) { - this.db_name = db_name; - } - - public void unsetDb_name() { - this.db_name = null; - } - - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; - } - - public void setDb_nameIsSet(boolean value) { - if (!value) { - this.db_name = null; - } - } - - public String getTbl_name() { - return this.tbl_name; - } - - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; - } - - public void unsetTbl_name() { - this.tbl_name = null; - } - - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; - } - - public void setTbl_nameIsSet(boolean value) { - if (!value) { - this.tbl_name = null; - } - } - - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); + this.req = null; } - public List getPart_vals() { - return this.part_vals; + public DropPartitionsRequest getReq() { + return this.req; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setReq(DropPartitionsRequest req) { + this.req = req; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setPart_valsIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.req = null; } } - public boolean isDeleteData() { - return this.deleteData; - } - - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); - } - - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ - public boolean isSetDeleteData() { - return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: - if (value == null) { - unsetDb_name(); - } else { - setDb_name((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case PART_VALS: - if (value == null) { - unsetPart_vals(); - } else { - setPart_vals((List)value); - } - break; - - case DELETE_DATA: + case REQ: if (value == null) { - unsetDeleteData(); + unsetReq(); } else { - setDeleteData((Boolean)value); + setReq((DropPartitionsRequest)value); } break; @@ -102164,17 +110319,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case PART_VALS: - return getPart_vals(); - - case DELETE_DATA: - return isDeleteData(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -102187,14 +110333,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case DELETE_DATA: - return isSetDeleteData(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -102203,48 +110343,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_args) - return this.equals((drop_partition_args)that); + if (that instanceof drop_partitions_req_args) + return this.equals((drop_partitions_req_args)that); return false; } - public boolean equals(drop_partition_args that) { + public boolean equals(drop_partitions_req_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) - return false; - if (!this.part_vals.equals(that.part_vals)) - return false; - } - - boolean this_present_deleteData = true; - boolean that_present_deleteData = true; - if (this_present_deleteData || that_present_deleteData) { - if (!(this_present_deleteData && that_present_deleteData)) + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (this.deleteData != that.deleteData) + if (!this.req.equals(that.req)) return false; } @@ -102255,73 +110368,28 @@ public boolean equals(drop_partition_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); - - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(drop_partition_args other) { + public int compareTo(drop_partitions_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -102343,36 +110411,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_args("); + StringBuilder sb = new StringBuilder("drop_partitions_req_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.req); } first = false; - if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); - first = false; sb.append(")"); return sb.toString(); } @@ -102380,6 +110428,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (req != null) { + req.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -102392,23 +110443,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_partition_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_argsStandardScheme getScheme() { - return new drop_partition_argsStandardScheme(); + private static class drop_partitions_req_argsStandardSchemeFactory implements SchemeFactory { + public drop_partitions_req_argsStandardScheme getScheme() { + return new drop_partitions_req_argsStandardScheme(); } } - private static class drop_partition_argsStandardScheme extends StandardScheme { + private static class drop_partitions_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -102418,44 +110467,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1442 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1442.size); - String _elem1443; - for (int _i1444 = 0; _i1444 < _list1442.size; ++_i1444) - { - _elem1443 = iprot.readString(); - struct.part_vals.add(_elem1443); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // DELETE_DATA - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new DropPartitionsRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -102469,134 +110485,70 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1445 : struct.part_vals) - { - oprot.writeString(_iter1445); - } - oprot.writeListEnd(); - } + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_partition_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_argsTupleScheme getScheme() { - return new drop_partition_argsTupleScheme(); + private static class drop_partitions_req_argsTupleSchemeFactory implements SchemeFactory { + public drop_partitions_req_argsTupleScheme getScheme() { + return new drop_partitions_req_argsTupleScheme(); } } - private static class drop_partition_argsTupleScheme extends TupleScheme { + private static class drop_partitions_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetPart_vals()) { - optionals.set(2); - } - if (struct.isSetDeleteData()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter1446 : struct.part_vals) - { - oprot.writeString(_iter1446); - } - } - } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list1447 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1447.size); - String _elem1448; - for (int _i1449 = 0; _i1449 < _list1447.size; ++_i1449) - { - _elem1448 = iprot.readString(); - struct.part_vals.add(_elem1448); - } - } - struct.setPart_valsIsSet(true); - } - if (incoming.get(3)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + struct.req = new DropPartitionsRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partitions_req_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partitions_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partitions_req_resultTupleSchemeFactory()); } - private boolean success; // required + private DropPartitionsResult success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -102665,32 +110617,29 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropPartitionsResult.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_req_result.class, metaDataMap); } - public drop_partition_result() { + public drop_partitions_req_result() { } - public drop_partition_result( - boolean success, + public drop_partitions_req_result( + DropPartitionsResult success, NoSuchObjectException o1, MetaException o2) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -102698,9 +110647,10 @@ public drop_partition_result( /** * Performs a deep copy on other. */ - public drop_partition_result(drop_partition_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public drop_partitions_req_result(drop_partitions_req_result other) { + if (other.isSetSuccess()) { + this.success = new DropPartitionsResult(other.success); + } if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -102709,38 +110659,38 @@ public drop_partition_result(drop_partition_result other) { } } - public drop_partition_result deepCopy() { - return new drop_partition_result(this); + public drop_partitions_req_result deepCopy() { + return new drop_partitions_req_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; this.o2 = null; } - public boolean isSuccess() { + public DropPartitionsResult getSuccess() { return this.success; } - public void setSuccess(boolean success) { + public void setSuccess(DropPartitionsResult success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public NoSuchObjectException getO1() { @@ -102795,7 +110745,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((DropPartitionsResult)value); } break; @@ -102821,7 +110771,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return getSuccess(); case O1: return getO1(); @@ -102854,21 +110804,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_result) - return this.equals((drop_partition_result)that); + if (that instanceof drop_partitions_req_result) + return this.equals((drop_partitions_req_result)that); return false; } - public boolean equals(drop_partition_result that) { + public boolean equals(drop_partitions_req_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -102897,7 +110847,7 @@ public boolean equals(drop_partition_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -102916,7 +110866,7 @@ public int hashCode() { } @Override - public int compareTo(drop_partition_result other) { + public int compareTo(drop_partitions_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -102970,11 +110920,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_result("); + StringBuilder sb = new StringBuilder("drop_partitions_req_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -102999,6 +110953,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -103011,23 +110968,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_partition_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_resultStandardScheme getScheme() { - return new drop_partition_resultStandardScheme(); + private static class drop_partitions_req_resultStandardSchemeFactory implements SchemeFactory { + public drop_partitions_req_resultStandardScheme getScheme() { + return new drop_partitions_req_resultStandardScheme(); } } - private static class drop_partition_resultStandardScheme extends StandardScheme { + private static class drop_partitions_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -103038,8 +110993,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_resu } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new DropPartitionsResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -103072,13 +111028,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -103097,16 +111053,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_res } - private static class drop_partition_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_resultTupleScheme getScheme() { - return new drop_partition_resultTupleScheme(); + private static class drop_partitions_req_resultTupleSchemeFactory implements SchemeFactory { + public drop_partitions_req_resultTupleScheme getScheme() { + return new drop_partitions_req_resultTupleScheme(); } } - private static class drop_partition_resultTupleScheme extends TupleScheme { + private static class drop_partitions_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -103120,7 +111076,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_resu } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -103131,11 +111087,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = new DropPartitionsResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -103153,34 +111110,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_resul } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_with_environment_context_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private List part_vals; // required - private boolean deleteData; // required - private EnvironmentContext environment_context; // 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 { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"), - DELETE_DATA((short)4, "deleteData"), - ENVIRONMENT_CONTEXT((short)5, "environment_context"); + PART_VALS((short)3, "part_vals"); private static final Map byName = new HashMap(); @@ -103201,10 +111152,6 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // PART_VALS return PART_VALS; - case 4: // DELETE_DATA - return DELETE_DATA; - case 5: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; default: return null; } @@ -103245,8 +111192,6 @@ public String getFieldName() { } // isset id assignments - private static final int __DELETEDATA_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -103257,38 +111202,28 @@ public String getFieldName() { tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_args.class, metaDataMap); } - public drop_partition_with_environment_context_args() { + public get_partition_args() { } - public drop_partition_with_environment_context_args( + public get_partition_args( String db_name, String tbl_name, - List part_vals, - boolean deleteData, - EnvironmentContext environment_context) + List part_vals) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.part_vals = part_vals; - this.deleteData = deleteData; - setDeleteDataIsSet(true); - this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public drop_partition_with_environment_context_args(drop_partition_with_environment_context_args other) { - __isset_bitfield = other.__isset_bitfield; + public get_partition_args(get_partition_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } @@ -103299,14 +111234,10 @@ public drop_partition_with_environment_context_args(drop_partition_with_environm List __this__part_vals = new ArrayList(other.part_vals); this.part_vals = __this__part_vals; } - this.deleteData = other.deleteData; - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); - } } - public drop_partition_with_environment_context_args deepCopy() { - return new drop_partition_with_environment_context_args(this); + public get_partition_args deepCopy() { + return new get_partition_args(this); } @Override @@ -103314,9 +111245,6 @@ public void clear() { this.db_name = null; this.tbl_name = null; this.part_vals = null; - setDeleteDataIsSet(false); - this.deleteData = false; - this.environment_context = null; } public String getDb_name() { @@ -103403,51 +111331,6 @@ public void setPart_valsIsSet(boolean value) { } } - public boolean isDeleteData() { - return this.deleteData; - } - - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); - } - - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ - public boolean isSetDeleteData() { - return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); - } - - public EnvironmentContext getEnvironment_context() { - return this.environment_context; - } - - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; - } - - public void unsetEnvironment_context() { - this.environment_context = null; - } - - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; - } - - public void setEnvironment_contextIsSet(boolean value) { - if (!value) { - this.environment_context = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -103474,22 +111357,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case DELETE_DATA: - if (value == null) { - unsetDeleteData(); - } else { - setDeleteData((Boolean)value); - } - break; - - case ENVIRONMENT_CONTEXT: - if (value == null) { - unsetEnvironment_context(); - } else { - setEnvironment_context((EnvironmentContext)value); - } - break; - } } @@ -103504,12 +111371,6 @@ public Object getFieldValue(_Fields field) { case PART_VALS: return getPart_vals(); - case DELETE_DATA: - return isDeleteData(); - - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); - } throw new IllegalStateException(); } @@ -103527,10 +111388,6 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case PART_VALS: return isSetPart_vals(); - case DELETE_DATA: - return isSetDeleteData(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -103539,12 +111396,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_with_environment_context_args) - return this.equals((drop_partition_with_environment_context_args)that); + if (that instanceof get_partition_args) + return this.equals((get_partition_args)that); return false; } - public boolean equals(drop_partition_with_environment_context_args that) { + public boolean equals(get_partition_args that) { if (that == null) return false; @@ -103575,24 +111432,6 @@ public boolean equals(drop_partition_with_environment_context_args that) { return false; } - boolean this_present_deleteData = true; - boolean that_present_deleteData = true; - if (this_present_deleteData || that_present_deleteData) { - if (!(this_present_deleteData && that_present_deleteData)) - return false; - if (this.deleteData != that.deleteData) - return false; - } - - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) - return false; - if (!this.environment_context.equals(that.environment_context)) - return false; - } - return true; } @@ -103615,21 +111454,11 @@ public int hashCode() { if (present_part_vals) list.add(part_vals); - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); - - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); - return list.hashCode(); } @Override - public int compareTo(drop_partition_with_environment_context_args other) { + public int compareTo(get_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -103666,26 +111495,6 @@ public int compareTo(drop_partition_with_environment_context_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -103703,7 +111512,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_args("); + StringBuilder sb = new StringBuilder("get_partition_args("); boolean first = true; sb.append("db_name:"); @@ -103729,18 +111538,6 @@ public String toString() { sb.append(this.part_vals); } first = false; - if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); - first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { - sb.append("null"); - } else { - sb.append(this.environment_context); - } - first = false; sb.append(")"); return sb.toString(); } @@ -103748,9 +111545,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -103763,23 +111557,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_argsStandardScheme getScheme() { - return new drop_partition_with_environment_context_argsStandardScheme(); + private static class get_partition_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_argsStandardScheme getScheme() { + return new get_partition_argsStandardScheme(); } } - private static class drop_partition_with_environment_context_argsStandardScheme extends StandardScheme { + private static class get_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -103808,13 +111600,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1450 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1450.size); - String _elem1451; - for (int _i1452 = 0; _i1452 < _list1450.size; ++_i1452) + org.apache.thrift.protocol.TList _list1530 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1530.size); + String _elem1531; + for (int _i1532 = 0; _i1532 < _list1530.size; ++_i1532) { - _elem1451 = iprot.readString(); - struct.part_vals.add(_elem1451); + _elem1531 = iprot.readString(); + struct.part_vals.add(_elem1531); } iprot.readListEnd(); } @@ -103823,23 +111615,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // DELETE_DATA - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -103849,7 +111624,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -103867,38 +111642,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1453 : struct.part_vals) + for (String _iter1533 : struct.part_vals) { - oprot.writeString(_iter1453); + oprot.writeString(_iter1533); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); - oprot.writeFieldEnd(); - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_argsTupleScheme getScheme() { - return new drop_partition_with_environment_context_argsTupleScheme(); + private static class get_partition_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_argsTupleScheme getScheme() { + return new get_partition_argsTupleScheme(); } } - private static class drop_partition_with_environment_context_argsTupleScheme extends TupleScheme { + private static class get_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -103910,13 +111677,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetPart_vals()) { optionals.set(2); } - if (struct.isSetDeleteData()) { - optionals.set(3); - } - if (struct.isSetEnvironment_context()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -103926,24 +111687,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1454 : struct.part_vals) + for (String _iter1534 : struct.part_vals) { - oprot.writeString(_iter1454); + oprot.writeString(_iter1534); } } } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); - } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -103954,47 +111709,38 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1455 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1455.size); - String _elem1456; - for (int _i1457 = 0; _i1457 < _list1455.size; ++_i1457) + org.apache.thrift.protocol.TList _list1535 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1535.size); + String _elem1536; + for (int _i1537 = 0; _i1537 < _list1535.size; ++_i1537) { - _elem1456 = iprot.readString(); - struct.part_vals.add(_elem1456); + _elem1536 = iprot.readString(); + struct.part_vals.add(_elem1536); } } struct.setPart_valsIsSet(true); } - if (incoming.get(3)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); - } - if (incoming.get(4)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_with_environment_context_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_resultTupleSchemeFactory()); } - private boolean success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private Partition success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // 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 { @@ -104061,32 +111807,29 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_result.class, metaDataMap); } - public drop_partition_with_environment_context_result() { + public get_partition_result() { } - public drop_partition_with_environment_context_result( - boolean success, - NoSuchObjectException o1, - MetaException o2) + public get_partition_result( + Partition success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -104094,56 +111837,57 @@ public drop_partition_with_environment_context_result( /** * Performs a deep copy on other. */ - public drop_partition_with_environment_context_result(drop_partition_with_environment_context_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public get_partition_result(get_partition_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public drop_partition_with_environment_context_result deepCopy() { - return new drop_partition_with_environment_context_result(this); + public get_partition_result deepCopy() { + return new get_partition_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; this.o2 = null; } - public boolean isSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(boolean success) { + public void setSuccess(Partition success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -104162,11 +111906,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -104191,7 +111935,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((Partition)value); } break; @@ -104199,7 +111943,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -104207,7 +111951,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -104217,7 +111961,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return getSuccess(); case O1: return getO1(); @@ -104250,21 +111994,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_with_environment_context_result) - return this.equals((drop_partition_with_environment_context_result)that); + if (that instanceof get_partition_result) + return this.equals((get_partition_result)that); return false; } - public boolean equals(drop_partition_with_environment_context_result that) { + public boolean equals(get_partition_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -104293,7 +112037,7 @@ public boolean equals(drop_partition_with_environment_context_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -104312,7 +112056,7 @@ public int hashCode() { } @Override - public int compareTo(drop_partition_with_environment_context_result other) { + public int compareTo(get_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -104366,11 +112110,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_result("); + StringBuilder sb = new StringBuilder("get_partition_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -104395,6 +112143,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -104407,23 +112158,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_resultStandardScheme getScheme() { - return new drop_partition_with_environment_context_resultStandardScheme(); + private static class get_partition_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_resultStandardScheme getScheme() { + return new get_partition_resultStandardScheme(); } } - private static class drop_partition_with_environment_context_resultStandardScheme extends StandardScheme { + private static class get_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -104434,8 +112183,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -104443,7 +112193,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -104452,7 +112202,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -104468,13 +112218,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -104493,16 +112243,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit } - private static class drop_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_resultTupleScheme getScheme() { - return new drop_partition_with_environment_context_resultTupleScheme(); + private static class get_partition_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_resultTupleScheme getScheme() { + return new get_partition_resultTupleScheme(); } } - private static class drop_partition_with_environment_context_resultTupleScheme extends TupleScheme { + private static class get_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -104516,7 +112266,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -104527,20 +112277,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -104549,31 +112300,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_req_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_req_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private String part_name; // required - private boolean deleteData; // required + private GetPartitionRequest req; // 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 { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - PART_NAME((short)3, "part_name"), - DELETE_DATA((short)4, "deleteData"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -104588,14 +112330,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_NAME - return PART_NAME; - case 4: // DELETE_DATA - return DELETE_DATA; + case 1: // REQ + return REQ; default: return null; } @@ -104636,192 +112372,73 @@ public String getFieldName() { } // isset id assignments - private static final int __DELETEDATA_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPartitionRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_req_args.class, metaDataMap); } - public drop_partition_by_name_args() { + public get_partition_req_args() { } - public drop_partition_by_name_args( - String db_name, - String tbl_name, - String part_name, - boolean deleteData) + public get_partition_req_args( + GetPartitionRequest req) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_name = part_name; - this.deleteData = deleteData; - setDeleteDataIsSet(true); + this.req = req; } /** * Performs a deep copy on other. */ - public drop_partition_by_name_args(drop_partition_by_name_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetPart_name()) { - this.part_name = other.part_name; + public get_partition_req_args(get_partition_req_args other) { + if (other.isSetReq()) { + this.req = new GetPartitionRequest(other.req); } - this.deleteData = other.deleteData; } - public drop_partition_by_name_args deepCopy() { - return new drop_partition_by_name_args(this); + public get_partition_req_args deepCopy() { + return new get_partition_req_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_name = null; - setDeleteDataIsSet(false); - this.deleteData = false; - } - - public String getDb_name() { - return this.db_name; - } - - public void setDb_name(String db_name) { - this.db_name = db_name; - } - - public void unsetDb_name() { - this.db_name = null; - } - - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; - } - - public void setDb_nameIsSet(boolean value) { - if (!value) { - this.db_name = null; - } - } - - public String getTbl_name() { - return this.tbl_name; - } - - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; - } - - public void unsetTbl_name() { - this.tbl_name = null; - } - - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; - } - - public void setTbl_nameIsSet(boolean value) { - if (!value) { - this.tbl_name = null; - } + this.req = null; } - public String getPart_name() { - return this.part_name; + public GetPartitionRequest getReq() { + return this.req; } - public void setPart_name(String part_name) { - this.part_name = part_name; + public void setReq(GetPartitionRequest req) { + this.req = req; } - public void unsetPart_name() { - this.part_name = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setPart_nameIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.part_name = null; + this.req = null; } } - public boolean isDeleteData() { - return this.deleteData; - } - - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); - } - - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ - public boolean isSetDeleteData() { - return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: - if (value == null) { - unsetDb_name(); - } else { - setDb_name((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case PART_NAME: - if (value == null) { - unsetPart_name(); - } else { - setPart_name((String)value); - } - break; - - case DELETE_DATA: + case REQ: if (value == null) { - unsetDeleteData(); + unsetReq(); } else { - setDeleteData((Boolean)value); + setReq((GetPartitionRequest)value); } break; @@ -104830,17 +112447,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case PART_NAME: - return getPart_name(); - - case DELETE_DATA: - return isDeleteData(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -104853,14 +112461,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_NAME: - return isSetPart_name(); - case DELETE_DATA: - return isSetDeleteData(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -104869,48 +112471,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_by_name_args) - return this.equals((drop_partition_by_name_args)that); + if (that instanceof get_partition_req_args) + return this.equals((get_partition_req_args)that); return false; } - public boolean equals(drop_partition_by_name_args that) { + public boolean equals(get_partition_req_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) - return false; - if (!this.part_name.equals(that.part_name)) - return false; - } - - boolean this_present_deleteData = true; - boolean that_present_deleteData = true; - if (this_present_deleteData || that_present_deleteData) { - if (!(this_present_deleteData && that_present_deleteData)) + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (this.deleteData != that.deleteData) + if (!this.req.equals(that.req)) return false; } @@ -104921,73 +112496,28 @@ public boolean equals(drop_partition_by_name_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); - - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(drop_partition_by_name_args other) { + public int compareTo(get_partition_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -105009,36 +112539,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_by_name_args("); + StringBuilder sb = new StringBuilder("get_partition_req_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("part_name:"); - if (this.part_name == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.part_name); + sb.append(this.req); } first = false; - if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); - first = false; sb.append(")"); return sb.toString(); } @@ -105046,6 +112556,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (req != null) { + req.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -105058,23 +112571,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_by_name_argsStandardScheme getScheme() { - return new drop_partition_by_name_argsStandardScheme(); + private static class get_partition_req_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_req_argsStandardScheme getScheme() { + return new get_partition_req_argsStandardScheme(); } } - private static class drop_partition_by_name_argsStandardScheme extends StandardScheme { + private static class get_partition_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -105084,34 +112595,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PART_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // DELETE_DATA - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new GetPartitionRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -105125,114 +112613,72 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_by_name_argsTupleScheme getScheme() { - return new drop_partition_by_name_argsTupleScheme(); + private static class get_partition_req_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_req_argsTupleScheme getScheme() { + return new get_partition_req_argsTupleScheme(); } } - private static class drop_partition_by_name_argsTupleScheme extends TupleScheme { + private static class get_partition_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetPart_name()) { - optionals.set(2); - } - if (struct.isSetDeleteData()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); - } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); - } - if (incoming.get(3)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + struct.req = new GetPartitionRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_req_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_req_resultTupleSchemeFactory()); } - private boolean success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private GetPartitionResponse success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // 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 { @@ -105299,32 +112745,29 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPartitionResponse.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_req_result.class, metaDataMap); } - public drop_partition_by_name_result() { + public get_partition_req_result() { } - public drop_partition_by_name_result( - boolean success, - NoSuchObjectException o1, - MetaException o2) + public get_partition_req_result( + GetPartitionResponse success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -105332,56 +112775,57 @@ public drop_partition_by_name_result( /** * Performs a deep copy on other. */ - public drop_partition_by_name_result(drop_partition_by_name_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public get_partition_req_result(get_partition_req_result other) { + if (other.isSetSuccess()) { + this.success = new GetPartitionResponse(other.success); + } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public drop_partition_by_name_result deepCopy() { - return new drop_partition_by_name_result(this); + public get_partition_req_result deepCopy() { + return new get_partition_req_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; this.o2 = null; } - public boolean isSuccess() { + public GetPartitionResponse getSuccess() { return this.success; } - public void setSuccess(boolean success) { + public void setSuccess(GetPartitionResponse success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -105400,11 +112844,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -105429,7 +112873,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((GetPartitionResponse)value); } break; @@ -105437,7 +112881,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -105445,7 +112889,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -105455,7 +112899,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return getSuccess(); case O1: return getO1(); @@ -105488,21 +112932,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_by_name_result) - return this.equals((drop_partition_by_name_result)that); + if (that instanceof get_partition_req_result) + return this.equals((get_partition_req_result)that); return false; } - public boolean equals(drop_partition_by_name_result that) { + public boolean equals(get_partition_req_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -105531,7 +112975,7 @@ public boolean equals(drop_partition_by_name_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -105550,7 +112994,7 @@ public int hashCode() { } @Override - public int compareTo(drop_partition_by_name_result other) { + public int compareTo(get_partition_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -105604,11 +113048,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_by_name_result("); + StringBuilder sb = new StringBuilder("get_partition_req_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -105633,6 +113081,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -105645,23 +113096,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_by_name_resultStandardScheme getScheme() { - return new drop_partition_by_name_resultStandardScheme(); + private static class get_partition_req_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_req_resultStandardScheme getScheme() { + return new get_partition_req_resultStandardScheme(); } } - private static class drop_partition_by_name_resultStandardScheme extends StandardScheme { + private static class get_partition_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -105672,8 +113121,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new GetPartitionResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -105681,7 +113131,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -105690,7 +113140,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -105706,13 +113156,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -105731,16 +113181,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ } - private static class drop_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_by_name_resultTupleScheme getScheme() { - return new drop_partition_by_name_resultTupleScheme(); + private static class get_partition_req_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_req_resultTupleScheme getScheme() { + return new get_partition_req_resultTupleScheme(); } } - private static class drop_partition_by_name_resultTupleScheme extends TupleScheme { + private static class get_partition_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -105754,7 +113204,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -105765,20 +113215,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = new GetPartitionResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -105787,34 +113238,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_by_name_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_with_environment_context_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partition_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)5); + private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); + private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField SOURCE_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_table_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DEST_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_db", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField DEST_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_table_name", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_by_name_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_by_name_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partition_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private String part_name; // required - private boolean deleteData; // required - private EnvironmentContext environment_context; // required + private Map partitionSpecs; // required + private String source_db; // required + private String source_table_name; // required + private String dest_db; // required + private String dest_table_name; // 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 { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - PART_NAME((short)3, "part_name"), - DELETE_DATA((short)4, "deleteData"), - ENVIRONMENT_CONTEXT((short)5, "environment_context"); + PARTITION_SPECS((short)1, "partitionSpecs"), + SOURCE_DB((short)2, "source_db"), + SOURCE_TABLE_NAME((short)3, "source_table_name"), + DEST_DB((short)4, "dest_db"), + DEST_TABLE_NAME((short)5, "dest_table_name"); private static final Map byName = new HashMap(); @@ -105829,16 +113280,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_NAME - return PART_NAME; - case 4: // DELETE_DATA - return DELETE_DATA; - case 5: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 1: // PARTITION_SPECS + return PARTITION_SPECS; + case 2: // SOURCE_DB + return SOURCE_DB; + case 3: // SOURCE_TABLE_NAME + return SOURCE_TABLE_NAME; + case 4: // DEST_DB + return DEST_DB; + case 5: // DEST_TABLE_NAME + return DEST_TABLE_NAME; default: return null; } @@ -105879,231 +113330,243 @@ public String getFieldName() { } // isset id assignments - private static final int __DELETEDATA_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PARTITION_SPECS, new org.apache.thrift.meta_data.FieldMetaData("partitionSpecs", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.SOURCE_DB, new org.apache.thrift.meta_data.FieldMetaData("source_db", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SOURCE_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DEST_DB, new org.apache.thrift.meta_data.FieldMetaData("dest_db", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_args.class, metaDataMap); } - public drop_partition_by_name_with_environment_context_args() { + public exchange_partition_args() { } - public drop_partition_by_name_with_environment_context_args( - String db_name, - String tbl_name, - String part_name, - boolean deleteData, - EnvironmentContext environment_context) + public exchange_partition_args( + Map partitionSpecs, + String source_db, + String source_table_name, + String dest_db, + String dest_table_name) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_name = part_name; - this.deleteData = deleteData; - setDeleteDataIsSet(true); - this.environment_context = environment_context; + this.partitionSpecs = partitionSpecs; + this.source_db = source_db; + this.source_table_name = source_table_name; + this.dest_db = dest_db; + this.dest_table_name = dest_table_name; } /** * Performs a deep copy on other. */ - public drop_partition_by_name_with_environment_context_args(drop_partition_by_name_with_environment_context_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public exchange_partition_args(exchange_partition_args other) { + if (other.isSetPartitionSpecs()) { + Map __this__partitionSpecs = new HashMap(other.partitionSpecs); + this.partitionSpecs = __this__partitionSpecs; } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + if (other.isSetSource_db()) { + this.source_db = other.source_db; } - if (other.isSetPart_name()) { - this.part_name = other.part_name; + if (other.isSetSource_table_name()) { + this.source_table_name = other.source_table_name; } - this.deleteData = other.deleteData; - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + if (other.isSetDest_db()) { + this.dest_db = other.dest_db; + } + if (other.isSetDest_table_name()) { + this.dest_table_name = other.dest_table_name; } } - public drop_partition_by_name_with_environment_context_args deepCopy() { - return new drop_partition_by_name_with_environment_context_args(this); + public exchange_partition_args deepCopy() { + return new exchange_partition_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_name = null; - setDeleteDataIsSet(false); - this.deleteData = false; - this.environment_context = null; + this.partitionSpecs = null; + this.source_db = null; + this.source_table_name = null; + this.dest_db = null; + this.dest_table_name = null; } - public String getDb_name() { - return this.db_name; + public int getPartitionSpecsSize() { + return (this.partitionSpecs == null) ? 0 : this.partitionSpecs.size(); } - public void setDb_name(String db_name) { - this.db_name = db_name; + public void putToPartitionSpecs(String key, String val) { + if (this.partitionSpecs == null) { + this.partitionSpecs = new HashMap(); + } + this.partitionSpecs.put(key, val); } - public void unsetDb_name() { - this.db_name = null; + public Map getPartitionSpecs() { + return this.partitionSpecs; } - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; + public void setPartitionSpecs(Map partitionSpecs) { + this.partitionSpecs = partitionSpecs; } - public void setDb_nameIsSet(boolean value) { + public void unsetPartitionSpecs() { + this.partitionSpecs = null; + } + + /** Returns true if field partitionSpecs is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionSpecs() { + return this.partitionSpecs != null; + } + + public void setPartitionSpecsIsSet(boolean value) { if (!value) { - this.db_name = null; + this.partitionSpecs = null; } } - public String getTbl_name() { - return this.tbl_name; + public String getSource_db() { + return this.source_db; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setSource_db(String source_db) { + this.source_db = source_db; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetSource_db() { + this.source_db = null; } - - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; + + /** Returns true if field source_db is set (has been assigned a value) and false otherwise */ + public boolean isSetSource_db() { + return this.source_db != null; } - public void setTbl_nameIsSet(boolean value) { + public void setSource_dbIsSet(boolean value) { if (!value) { - this.tbl_name = null; + this.source_db = null; } } - public String getPart_name() { - return this.part_name; + public String getSource_table_name() { + return this.source_table_name; } - public void setPart_name(String part_name) { - this.part_name = part_name; + public void setSource_table_name(String source_table_name) { + this.source_table_name = source_table_name; } - public void unsetPart_name() { - this.part_name = null; + public void unsetSource_table_name() { + this.source_table_name = null; } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; + /** Returns true if field source_table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetSource_table_name() { + return this.source_table_name != null; } - public void setPart_nameIsSet(boolean value) { + public void setSource_table_nameIsSet(boolean value) { if (!value) { - this.part_name = null; + this.source_table_name = null; } } - public boolean isDeleteData() { - return this.deleteData; + public String getDest_db() { + return this.dest_db; } - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); + public void setDest_db(String dest_db) { + this.dest_db = dest_db; } - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + public void unsetDest_db() { + this.dest_db = null; } - /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ - public boolean isSetDeleteData() { - return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + /** Returns true if field dest_db is set (has been assigned a value) and false otherwise */ + public boolean isSetDest_db() { + return this.dest_db != null; } - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + public void setDest_dbIsSet(boolean value) { + if (!value) { + this.dest_db = null; + } } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public String getDest_table_name() { + return this.dest_table_name; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setDest_table_name(String dest_table_name) { + this.dest_table_name = dest_table_name; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetDest_table_name() { + this.dest_table_name = null; } - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; + /** Returns true if field dest_table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDest_table_name() { + return this.dest_table_name != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setDest_table_nameIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.dest_table_name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case PARTITION_SPECS: if (value == null) { - unsetDb_name(); + unsetPartitionSpecs(); } else { - setDb_name((String)value); + setPartitionSpecs((Map)value); } break; - case TBL_NAME: + case SOURCE_DB: if (value == null) { - unsetTbl_name(); + unsetSource_db(); } else { - setTbl_name((String)value); + setSource_db((String)value); } break; - case PART_NAME: + case SOURCE_TABLE_NAME: if (value == null) { - unsetPart_name(); + unsetSource_table_name(); } else { - setPart_name((String)value); + setSource_table_name((String)value); } break; - case DELETE_DATA: + case DEST_DB: if (value == null) { - unsetDeleteData(); + unsetDest_db(); } else { - setDeleteData((Boolean)value); + setDest_db((String)value); } break; - case ENVIRONMENT_CONTEXT: + case DEST_TABLE_NAME: if (value == null) { - unsetEnvironment_context(); + unsetDest_table_name(); } else { - setEnvironment_context((EnvironmentContext)value); + setDest_table_name((String)value); } break; @@ -106112,20 +113575,20 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case PARTITION_SPECS: + return getPartitionSpecs(); - case TBL_NAME: - return getTbl_name(); + case SOURCE_DB: + return getSource_db(); - case PART_NAME: - return getPart_name(); + case SOURCE_TABLE_NAME: + return getSource_table_name(); - case DELETE_DATA: - return isDeleteData(); + case DEST_DB: + return getDest_db(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case DEST_TABLE_NAME: + return getDest_table_name(); } throw new IllegalStateException(); @@ -106138,16 +113601,16 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_NAME: - return isSetPart_name(); - case DELETE_DATA: - return isSetDeleteData(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case PARTITION_SPECS: + return isSetPartitionSpecs(); + case SOURCE_DB: + return isSetSource_db(); + case SOURCE_TABLE_NAME: + return isSetSource_table_name(); + case DEST_DB: + return isSetDest_db(); + case DEST_TABLE_NAME: + return isSetDest_table_name(); } throw new IllegalStateException(); } @@ -106156,57 +113619,57 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_by_name_with_environment_context_args) - return this.equals((drop_partition_by_name_with_environment_context_args)that); + if (that instanceof exchange_partition_args) + return this.equals((exchange_partition_args)that); return false; } - public boolean equals(drop_partition_by_name_with_environment_context_args that) { + public boolean equals(exchange_partition_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) + boolean this_present_partitionSpecs = true && this.isSetPartitionSpecs(); + boolean that_present_partitionSpecs = true && that.isSetPartitionSpecs(); + if (this_present_partitionSpecs || that_present_partitionSpecs) { + if (!(this_present_partitionSpecs && that_present_partitionSpecs)) return false; - if (!this.db_name.equals(that.db_name)) + if (!this.partitionSpecs.equals(that.partitionSpecs)) return false; } - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) + boolean this_present_source_db = true && this.isSetSource_db(); + boolean that_present_source_db = true && that.isSetSource_db(); + if (this_present_source_db || that_present_source_db) { + if (!(this_present_source_db && that_present_source_db)) return false; - if (!this.tbl_name.equals(that.tbl_name)) + if (!this.source_db.equals(that.source_db)) return false; } - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) + boolean this_present_source_table_name = true && this.isSetSource_table_name(); + boolean that_present_source_table_name = true && that.isSetSource_table_name(); + if (this_present_source_table_name || that_present_source_table_name) { + if (!(this_present_source_table_name && that_present_source_table_name)) return false; - if (!this.part_name.equals(that.part_name)) + if (!this.source_table_name.equals(that.source_table_name)) return false; } - boolean this_present_deleteData = true; - boolean that_present_deleteData = true; - if (this_present_deleteData || that_present_deleteData) { - if (!(this_present_deleteData && that_present_deleteData)) + boolean this_present_dest_db = true && this.isSetDest_db(); + boolean that_present_dest_db = true && that.isSetDest_db(); + if (this_present_dest_db || that_present_dest_db) { + if (!(this_present_dest_db && that_present_dest_db)) return false; - if (this.deleteData != that.deleteData) + if (!this.dest_db.equals(that.dest_db)) return false; } - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) + boolean this_present_dest_table_name = true && this.isSetDest_table_name(); + boolean that_present_dest_table_name = true && that.isSetDest_table_name(); + if (this_present_dest_table_name || that_present_dest_table_name) { + if (!(this_present_dest_table_name && that_present_dest_table_name)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (!this.dest_table_name.equals(that.dest_table_name)) return false; } @@ -106217,88 +113680,88 @@ public boolean equals(drop_partition_by_name_with_environment_context_args that) public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); + boolean present_partitionSpecs = true && (isSetPartitionSpecs()); + list.add(present_partitionSpecs); + if (present_partitionSpecs) + list.add(partitionSpecs); - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); + boolean present_source_db = true && (isSetSource_db()); + list.add(present_source_db); + if (present_source_db) + list.add(source_db); - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); + boolean present_source_table_name = true && (isSetSource_table_name()); + list.add(present_source_table_name); + if (present_source_table_name) + list.add(source_table_name); - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); + boolean present_dest_db = true && (isSetDest_db()); + list.add(present_dest_db); + if (present_dest_db) + list.add(dest_db); - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_dest_table_name = true && (isSetDest_table_name()); + list.add(present_dest_table_name); + if (present_dest_table_name) + list.add(dest_table_name); return list.hashCode(); } @Override - public int compareTo(drop_partition_by_name_with_environment_context_args other) { + public int compareTo(exchange_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(other.isSetPartitionSpecs()); if (lastComparison != 0) { return lastComparison; } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (isSetPartitionSpecs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, other.partitionSpecs); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(other.isSetSource_db()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (isSetSource_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, other.source_db); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(other.isSetSource_table_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (isSetSource_table_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, other.source_table_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(other.isSetDest_db()); if (lastComparison != 0) { return lastComparison; } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (isSetDest_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, other.dest_db); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(other.isSetDest_table_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetDest_table_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, other.dest_table_name); if (lastComparison != 0) { return lastComparison; } @@ -106320,42 +113783,46 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_by_name_with_environment_context_args("); + StringBuilder sb = new StringBuilder("exchange_partition_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { + sb.append("partitionSpecs:"); + if (this.partitionSpecs == null) { sb.append("null"); } else { - sb.append(this.db_name); + sb.append(this.partitionSpecs); } first = false; if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("source_db:"); + if (this.source_db == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.source_db); } first = false; if (!first) sb.append(", "); - sb.append("part_name:"); - if (this.part_name == null) { + sb.append("source_table_name:"); + if (this.source_table_name == null) { sb.append("null"); } else { - sb.append(this.part_name); + sb.append(this.source_table_name); } first = false; if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); + sb.append("dest_db:"); + if (this.dest_db == null) { + sb.append("null"); + } else { + sb.append(this.dest_db); + } first = false; if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("dest_table_name:"); + if (this.dest_table_name == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.dest_table_name); } first = false; sb.append(")"); @@ -106365,9 +113832,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -106380,23 +113844,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_partition_by_name_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_by_name_with_environment_context_argsStandardScheme getScheme() { - return new drop_partition_by_name_with_environment_context_argsStandardScheme(); + private static class exchange_partition_argsStandardSchemeFactory implements SchemeFactory { + public exchange_partition_argsStandardScheme getScheme() { + return new exchange_partition_argsStandardScheme(); } } - private static class drop_partition_by_name_with_environment_context_argsStandardScheme extends StandardScheme { + private static class exchange_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -106406,43 +113868,54 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + case 1: // PARTITION_SPECS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map1538 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1538.size); + String _key1539; + String _val1540; + for (int _i1541 = 0; _i1541 < _map1538.size; ++_i1541) + { + _key1539 = iprot.readString(); + _val1540 = iprot.readString(); + struct.partitionSpecs.put(_key1539, _val1540); + } + iprot.readMapEnd(); + } + struct.setPartitionSpecsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TBL_NAME + case 2: // SOURCE_DB if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.source_db = iprot.readString(); + struct.setSource_dbIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_NAME + case 3: // SOURCE_TABLE_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + struct.source_table_name = iprot.readString(); + struct.setSource_table_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // DELETE_DATA - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + case 4: // DEST_DB + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dest_db = iprot.readString(); + struct.setDest_dbIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + case 5: // DEST_TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dest_table_name = iprot.readString(); + struct.setDest_table_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -106456,31 +113929,41 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); + if (struct.partitionSpecs != null) { + oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); + for (Map.Entry _iter1542 : struct.partitionSpecs.entrySet()) + { + oprot.writeString(_iter1542.getKey()); + oprot.writeString(_iter1542.getValue()); + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + if (struct.source_db != null) { + oprot.writeFieldBegin(SOURCE_DB_FIELD_DESC); + oprot.writeString(struct.source_db); oprot.writeFieldEnd(); } - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); + if (struct.source_table_name != null) { + oprot.writeFieldBegin(SOURCE_TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.source_table_name); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); - oprot.writeFieldEnd(); - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.dest_db != null) { + oprot.writeFieldBegin(DEST_DB_FIELD_DESC); + oprot.writeString(struct.dest_db); + oprot.writeFieldEnd(); + } + if (struct.dest_table_name != null) { + oprot.writeFieldBegin(DEST_TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.dest_table_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -106489,103 +113972,126 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ } - private static class drop_partition_by_name_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_by_name_with_environment_context_argsTupleScheme getScheme() { - return new drop_partition_by_name_with_environment_context_argsTupleScheme(); + private static class exchange_partition_argsTupleSchemeFactory implements SchemeFactory { + public exchange_partition_argsTupleScheme getScheme() { + return new exchange_partition_argsTupleScheme(); } } - private static class drop_partition_by_name_with_environment_context_argsTupleScheme extends TupleScheme { + private static class exchange_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetPartitionSpecs()) { optionals.set(0); } - if (struct.isSetTbl_name()) { + if (struct.isSetSource_db()) { optionals.set(1); } - if (struct.isSetPart_name()) { + if (struct.isSetSource_table_name()) { optionals.set(2); } - if (struct.isSetDeleteData()) { + if (struct.isSetDest_db()) { optionals.set(3); } - if (struct.isSetEnvironment_context()) { + if (struct.isSetDest_table_name()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetPartitionSpecs()) { + { + oprot.writeI32(struct.partitionSpecs.size()); + for (Map.Entry _iter1543 : struct.partitionSpecs.entrySet()) + { + oprot.writeString(_iter1543.getKey()); + oprot.writeString(_iter1543.getValue()); + } + } } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); + if (struct.isSetSource_db()) { + oprot.writeString(struct.source_db); } - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); + if (struct.isSetSource_table_name()) { + oprot.writeString(struct.source_table_name); } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); + if (struct.isSetDest_db()) { + oprot.writeString(struct.dest_db); } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + if (struct.isSetDest_table_name()) { + oprot.writeString(struct.dest_table_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + { + org.apache.thrift.protocol.TMap _map1544 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map1544.size); + String _key1545; + String _val1546; + for (int _i1547 = 0; _i1547 < _map1544.size; ++_i1547) + { + _key1545 = iprot.readString(); + _val1546 = iprot.readString(); + struct.partitionSpecs.put(_key1545, _val1546); + } + } + struct.setPartitionSpecsIsSet(true); } if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.source_db = iprot.readString(); + struct.setSource_dbIsSet(true); } if (incoming.get(2)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + struct.source_table_name = iprot.readString(); + struct.setSource_table_nameIsSet(true); } if (incoming.get(3)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + struct.dest_db = iprot.readString(); + struct.setDest_dbIsSet(true); } if (incoming.get(4)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.dest_table_name = iprot.readString(); + struct.setDest_table_nameIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partition_by_name_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_with_environment_context_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partition_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_by_name_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_by_name_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partition_resultTupleSchemeFactory()); } - private boolean success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private Partition success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required + private InvalidObjectException o3; // required + private InvalidInputException o4; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"), + O4((short)4, "o4"); private static final Map byName = new HashMap(); @@ -106606,6 +114112,10 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; + case 4: // O4 + return O4; default: return null; } @@ -106646,89 +114156,103 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_result.class, metaDataMap); } - public drop_partition_by_name_with_environment_context_result() { + public exchange_partition_result() { } - public drop_partition_by_name_with_environment_context_result( - boolean success, - NoSuchObjectException o1, - MetaException o2) + public exchange_partition_result( + Partition success, + MetaException o1, + NoSuchObjectException o2, + InvalidObjectException o3, + InvalidInputException o4) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; + this.o3 = o3; + this.o4 = o4; } /** * Performs a deep copy on other. */ - public drop_partition_by_name_with_environment_context_result(drop_partition_by_name_with_environment_context_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public exchange_partition_result(exchange_partition_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new InvalidObjectException(other.o3); + } + if (other.isSetO4()) { + this.o4 = new InvalidInputException(other.o4); } } - public drop_partition_by_name_with_environment_context_result deepCopy() { - return new drop_partition_by_name_with_environment_context_result(this); + public exchange_partition_result deepCopy() { + return new exchange_partition_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; + this.o4 = null; } - public boolean isSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(boolean success) { + public void setSuccess(Partition success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -106747,11 +114271,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -106770,13 +114294,59 @@ public void setO2IsSet(boolean value) { } } + public InvalidObjectException getO3() { + return this.o3; + } + + public void setO3(InvalidObjectException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + + public InvalidInputException getO4() { + return this.o4; + } + + public void setO4(InvalidInputException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((Partition)value); } break; @@ -106784,7 +114354,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -106792,7 +114362,23 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((InvalidObjectException)value); + } + break; + + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((InvalidInputException)value); } break; @@ -106802,7 +114388,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return getSuccess(); case O1: return getO1(); @@ -106810,6 +114396,12 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + + case O4: + return getO4(); + } throw new IllegalStateException(); } @@ -106827,6 +114419,10 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); + case O4: + return isSetO4(); } throw new IllegalStateException(); } @@ -106835,21 +114431,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_by_name_with_environment_context_result) - return this.equals((drop_partition_by_name_with_environment_context_result)that); + if (that instanceof exchange_partition_result) + return this.equals((exchange_partition_result)that); return false; } - public boolean equals(drop_partition_by_name_with_environment_context_result that) { + public boolean equals(exchange_partition_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -106871,6 +114467,24 @@ public boolean equals(drop_partition_by_name_with_environment_context_result tha return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + return true; } @@ -106878,7 +114492,7 @@ public boolean equals(drop_partition_by_name_with_environment_context_result tha public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -106893,11 +114507,21 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + + boolean present_o4 = true && (isSetO4()); + list.add(present_o4); + if (present_o4) + list.add(o4); + return list.hashCode(); } @Override - public int compareTo(drop_partition_by_name_with_environment_context_result other) { + public int compareTo(exchange_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -106934,6 +114558,26 @@ public int compareTo(drop_partition_by_name_with_environment_context_result othe return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -106951,11 +114595,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_by_name_with_environment_context_result("); + StringBuilder sb = new StringBuilder("exchange_partition_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -106973,6 +114621,22 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; + if (!first) sb.append(", "); + sb.append("o4:"); + if (this.o4 == null) { + sb.append("null"); + } else { + sb.append(this.o4); + } + first = false; sb.append(")"); return sb.toString(); } @@ -106980,6 +114644,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -106992,23 +114659,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_partition_by_name_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_by_name_with_environment_context_resultStandardScheme getScheme() { - return new drop_partition_by_name_with_environment_context_resultStandardScheme(); + private static class exchange_partition_resultStandardSchemeFactory implements SchemeFactory { + public exchange_partition_resultStandardScheme getScheme() { + return new exchange_partition_resultStandardScheme(); } } - private static class drop_partition_by_name_with_environment_context_resultStandardScheme extends StandardScheme { + private static class exchange_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -107019,8 +114684,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -107028,7 +114694,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -107037,13 +114703,31 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new InvalidObjectException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // O4 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o4 = new InvalidInputException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -107053,13 +114737,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -107072,22 +114756,32 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o4 != null) { + oprot.writeFieldBegin(O4_FIELD_DESC); + struct.o4.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_partition_by_name_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_by_name_with_environment_context_resultTupleScheme getScheme() { - return new drop_partition_by_name_with_environment_context_resultTupleScheme(); + private static class exchange_partition_resultTupleSchemeFactory implements SchemeFactory { + public exchange_partition_resultTupleScheme getScheme() { + return new exchange_partition_resultTupleScheme(); } } - private static class drop_partition_by_name_with_environment_context_resultTupleScheme extends TupleScheme { + private static class exchange_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -107099,9 +114793,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + if (struct.isSetO4()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -107109,47 +114809,76 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + if (struct.isSetO4()) { + struct.o4.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new InvalidObjectException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + if (incoming.get(4)) { + struct.o4 = new InvalidInputException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partitions_req_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); + private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField SOURCE_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_table_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DEST_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_db", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField DEST_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_table_name", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partitions_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partitions_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partitions_argsTupleSchemeFactory()); } - private DropPartitionsRequest req; // required + private Map partitionSpecs; // required + private String source_db; // required + private String source_table_name; // required + private String dest_db; // required + private String dest_table_name; // 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 { - REQ((short)1, "req"); + PARTITION_SPECS((short)1, "partitionSpecs"), + SOURCE_DB((short)2, "source_db"), + SOURCE_TABLE_NAME((short)3, "source_table_name"), + DEST_DB((short)4, "dest_db"), + DEST_TABLE_NAME((short)5, "dest_table_name"); private static final Map byName = new HashMap(); @@ -107164,115 +114893,293 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // PARTITION_SPECS + return PARTITION_SPECS; + case 2: // SOURCE_DB + return SOURCE_DB; + case 3: // SOURCE_TABLE_NAME + return SOURCE_TABLE_NAME; + case 4: // DEST_DB + return DEST_DB; + case 5: // DEST_TABLE_NAME + return DEST_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 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.PARTITION_SPECS, new org.apache.thrift.meta_data.FieldMetaData("partitionSpecs", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.SOURCE_DB, new org.apache.thrift.meta_data.FieldMetaData("source_db", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.SOURCE_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DEST_DB, new org.apache.thrift.meta_data.FieldMetaData("dest_db", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partitions_args.class, metaDataMap); + } + + public exchange_partitions_args() { + } + + public exchange_partitions_args( + Map partitionSpecs, + String source_db, + String source_table_name, + String dest_db, + String dest_table_name) + { + this(); + this.partitionSpecs = partitionSpecs; + this.source_db = source_db; + this.source_table_name = source_table_name; + this.dest_db = dest_db; + this.dest_table_name = dest_table_name; + } + + /** + * Performs a deep copy on other. + */ + public exchange_partitions_args(exchange_partitions_args other) { + if (other.isSetPartitionSpecs()) { + Map __this__partitionSpecs = new HashMap(other.partitionSpecs); + this.partitionSpecs = __this__partitionSpecs; + } + if (other.isSetSource_db()) { + this.source_db = other.source_db; + } + if (other.isSetSource_table_name()) { + this.source_table_name = other.source_table_name; + } + if (other.isSetDest_db()) { + this.dest_db = other.dest_db; + } + if (other.isSetDest_table_name()) { + this.dest_table_name = other.dest_table_name; + } + } + + public exchange_partitions_args deepCopy() { + return new exchange_partitions_args(this); + } + + @Override + public void clear() { + this.partitionSpecs = null; + this.source_db = null; + this.source_table_name = null; + this.dest_db = null; + this.dest_table_name = null; + } + + public int getPartitionSpecsSize() { + return (this.partitionSpecs == null) ? 0 : this.partitionSpecs.size(); + } + + public void putToPartitionSpecs(String key, String val) { + if (this.partitionSpecs == null) { + this.partitionSpecs = new HashMap(); + } + this.partitionSpecs.put(key, val); + } + + public Map getPartitionSpecs() { + return this.partitionSpecs; + } + + public void setPartitionSpecs(Map partitionSpecs) { + this.partitionSpecs = partitionSpecs; + } + + public void unsetPartitionSpecs() { + this.partitionSpecs = null; + } + + /** Returns true if field partitionSpecs is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionSpecs() { + return this.partitionSpecs != null; + } + + public void setPartitionSpecsIsSet(boolean value) { + if (!value) { + this.partitionSpecs = null; + } + } + + public String getSource_db() { + return this.source_db; + } - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } + public void setSource_db(String source_db) { + this.source_db = source_db; + } - private final short _thriftId; - private final String _fieldName; + public void unsetSource_db() { + this.source_db = null; + } - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } + /** Returns true if field source_db is set (has been assigned a value) and false otherwise */ + public boolean isSetSource_db() { + return this.source_db != null; + } - public short getThriftFieldId() { - return _thriftId; + public void setSource_dbIsSet(boolean value) { + if (!value) { + this.source_db = null; } + } - public String getFieldName() { - return _fieldName; - } + public String getSource_table_name() { + return this.source_table_name; } - // 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropPartitionsRequest.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_req_args.class, metaDataMap); + public void setSource_table_name(String source_table_name) { + this.source_table_name = source_table_name; } - public drop_partitions_req_args() { + public void unsetSource_table_name() { + this.source_table_name = null; } - public drop_partitions_req_args( - DropPartitionsRequest req) - { - this(); - this.req = req; + /** Returns true if field source_table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetSource_table_name() { + return this.source_table_name != null; } - /** - * Performs a deep copy on other. - */ - public drop_partitions_req_args(drop_partitions_req_args other) { - if (other.isSetReq()) { - this.req = new DropPartitionsRequest(other.req); + public void setSource_table_nameIsSet(boolean value) { + if (!value) { + this.source_table_name = null; } } - public drop_partitions_req_args deepCopy() { - return new drop_partitions_req_args(this); + public String getDest_db() { + return this.dest_db; } - @Override - public void clear() { - this.req = null; + public void setDest_db(String dest_db) { + this.dest_db = dest_db; } - public DropPartitionsRequest getReq() { - return this.req; + public void unsetDest_db() { + this.dest_db = null; } - public void setReq(DropPartitionsRequest req) { - this.req = req; + /** Returns true if field dest_db is set (has been assigned a value) and false otherwise */ + public boolean isSetDest_db() { + return this.dest_db != null; } - public void unsetReq() { - this.req = null; + public void setDest_dbIsSet(boolean value) { + if (!value) { + this.dest_db = null; + } } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + public String getDest_table_name() { + return this.dest_table_name; } - public void setReqIsSet(boolean value) { + public void setDest_table_name(String dest_table_name) { + this.dest_table_name = dest_table_name; + } + + public void unsetDest_table_name() { + this.dest_table_name = null; + } + + /** Returns true if field dest_table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDest_table_name() { + return this.dest_table_name != null; + } + + public void setDest_table_nameIsSet(boolean value) { if (!value) { - this.req = null; + this.dest_table_name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case PARTITION_SPECS: if (value == null) { - unsetReq(); + unsetPartitionSpecs(); } else { - setReq((DropPartitionsRequest)value); + setPartitionSpecs((Map)value); + } + break; + + case SOURCE_DB: + if (value == null) { + unsetSource_db(); + } else { + setSource_db((String)value); + } + break; + + case SOURCE_TABLE_NAME: + if (value == null) { + unsetSource_table_name(); + } else { + setSource_table_name((String)value); + } + break; + + case DEST_DB: + if (value == null) { + unsetDest_db(); + } else { + setDest_db((String)value); + } + break; + + case DEST_TABLE_NAME: + if (value == null) { + unsetDest_table_name(); + } else { + setDest_table_name((String)value); } break; @@ -107281,8 +115188,20 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case PARTITION_SPECS: + return getPartitionSpecs(); + + case SOURCE_DB: + return getSource_db(); + + case SOURCE_TABLE_NAME: + return getSource_table_name(); + + case DEST_DB: + return getDest_db(); + + case DEST_TABLE_NAME: + return getDest_table_name(); } throw new IllegalStateException(); @@ -107295,8 +115214,16 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case PARTITION_SPECS: + return isSetPartitionSpecs(); + case SOURCE_DB: + return isSetSource_db(); + case SOURCE_TABLE_NAME: + return isSetSource_table_name(); + case DEST_DB: + return isSetDest_db(); + case DEST_TABLE_NAME: + return isSetDest_table_name(); } throw new IllegalStateException(); } @@ -107305,21 +115232,57 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partitions_req_args) - return this.equals((drop_partitions_req_args)that); + if (that instanceof exchange_partitions_args) + return this.equals((exchange_partitions_args)that); return false; } - public boolean equals(drop_partitions_req_args that) { + public boolean equals(exchange_partitions_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + boolean this_present_partitionSpecs = true && this.isSetPartitionSpecs(); + boolean that_present_partitionSpecs = true && that.isSetPartitionSpecs(); + if (this_present_partitionSpecs || that_present_partitionSpecs) { + if (!(this_present_partitionSpecs && that_present_partitionSpecs)) return false; - if (!this.req.equals(that.req)) + if (!this.partitionSpecs.equals(that.partitionSpecs)) + return false; + } + + boolean this_present_source_db = true && this.isSetSource_db(); + boolean that_present_source_db = true && that.isSetSource_db(); + if (this_present_source_db || that_present_source_db) { + if (!(this_present_source_db && that_present_source_db)) + return false; + if (!this.source_db.equals(that.source_db)) + return false; + } + + boolean this_present_source_table_name = true && this.isSetSource_table_name(); + boolean that_present_source_table_name = true && that.isSetSource_table_name(); + if (this_present_source_table_name || that_present_source_table_name) { + if (!(this_present_source_table_name && that_present_source_table_name)) + return false; + if (!this.source_table_name.equals(that.source_table_name)) + return false; + } + + boolean this_present_dest_db = true && this.isSetDest_db(); + boolean that_present_dest_db = true && that.isSetDest_db(); + if (this_present_dest_db || that_present_dest_db) { + if (!(this_present_dest_db && that_present_dest_db)) + return false; + if (!this.dest_db.equals(that.dest_db)) + return false; + } + + boolean this_present_dest_table_name = true && this.isSetDest_table_name(); + boolean that_present_dest_table_name = true && that.isSetDest_table_name(); + if (this_present_dest_table_name || that_present_dest_table_name) { + if (!(this_present_dest_table_name && that_present_dest_table_name)) + return false; + if (!this.dest_table_name.equals(that.dest_table_name)) return false; } @@ -107330,28 +115293,88 @@ public boolean equals(drop_partitions_req_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_partitionSpecs = true && (isSetPartitionSpecs()); + list.add(present_partitionSpecs); + if (present_partitionSpecs) + list.add(partitionSpecs); + + boolean present_source_db = true && (isSetSource_db()); + list.add(present_source_db); + if (present_source_db) + list.add(source_db); + + boolean present_source_table_name = true && (isSetSource_table_name()); + list.add(present_source_table_name); + if (present_source_table_name) + list.add(source_table_name); + + boolean present_dest_db = true && (isSetDest_db()); + list.add(present_dest_db); + if (present_dest_db) + list.add(dest_db); + + boolean present_dest_table_name = true && (isSetDest_table_name()); + list.add(present_dest_table_name); + if (present_dest_table_name) + list.add(dest_table_name); return list.hashCode(); } @Override - public int compareTo(drop_partitions_req_args other) { + public int compareTo(exchange_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(other.isSetPartitionSpecs()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetPartitionSpecs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, other.partitionSpecs); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(other.isSetSource_db()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSource_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, other.source_db); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(other.isSetSource_table_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSource_table_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, other.source_table_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(other.isSetDest_db()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDest_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, other.dest_db); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(other.isSetDest_table_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDest_table_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, other.dest_table_name); if (lastComparison != 0) { return lastComparison; } @@ -107373,14 +115396,46 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partitions_req_args("); + StringBuilder sb = new StringBuilder("exchange_partitions_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("partitionSpecs:"); + if (this.partitionSpecs == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.partitionSpecs); + } + first = false; + if (!first) sb.append(", "); + sb.append("source_db:"); + if (this.source_db == null) { + sb.append("null"); + } else { + sb.append(this.source_db); + } + first = false; + if (!first) sb.append(", "); + sb.append("source_table_name:"); + if (this.source_table_name == null) { + sb.append("null"); + } else { + sb.append(this.source_table_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("dest_db:"); + if (this.dest_db == null) { + sb.append("null"); + } else { + sb.append(this.dest_db); + } + first = false; + if (!first) sb.append(", "); + sb.append("dest_table_name:"); + if (this.dest_table_name == null) { + sb.append("null"); + } else { + sb.append(this.dest_table_name); } first = false; sb.append(")"); @@ -107390,9 +115445,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -107411,15 +115463,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partitions_req_argsStandardSchemeFactory implements SchemeFactory { - public drop_partitions_req_argsStandardScheme getScheme() { - return new drop_partitions_req_argsStandardScheme(); + private static class exchange_partitions_argsStandardSchemeFactory implements SchemeFactory { + public exchange_partitions_argsStandardScheme getScheme() { + return new exchange_partitions_argsStandardScheme(); } } - private static class drop_partitions_req_argsStandardScheme extends StandardScheme { + private static class exchange_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -107429,11 +115481,54 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new DropPartitionsRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + case 1: // PARTITION_SPECS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map1548 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1548.size); + String _key1549; + String _val1550; + for (int _i1551 = 0; _i1551 < _map1548.size; ++_i1551) + { + _key1549 = iprot.readString(); + _val1550 = iprot.readString(); + struct.partitionSpecs.put(_key1549, _val1550); + } + iprot.readMapEnd(); + } + struct.setPartitionSpecsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SOURCE_DB + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.source_db = iprot.readString(); + struct.setSource_dbIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SOURCE_TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.source_table_name = iprot.readString(); + struct.setSource_table_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DEST_DB + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dest_db = iprot.readString(); + struct.setDest_dbIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // DEST_TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dest_table_name = iprot.readString(); + struct.setDest_table_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -107447,13 +115542,41 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.partitionSpecs != null) { + oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); + for (Map.Entry _iter1552 : struct.partitionSpecs.entrySet()) + { + oprot.writeString(_iter1552.getKey()); + oprot.writeString(_iter1552.getValue()); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.source_db != null) { + oprot.writeFieldBegin(SOURCE_DB_FIELD_DESC); + oprot.writeString(struct.source_db); + oprot.writeFieldEnd(); + } + if (struct.source_table_name != null) { + oprot.writeFieldBegin(SOURCE_TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.source_table_name); + oprot.writeFieldEnd(); + } + if (struct.dest_db != null) { + oprot.writeFieldBegin(DEST_DB_FIELD_DESC); + oprot.writeString(struct.dest_db); + oprot.writeFieldEnd(); + } + if (struct.dest_table_name != null) { + oprot.writeFieldBegin(DEST_TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.dest_table_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -107462,63 +115585,126 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_re } - private static class drop_partitions_req_argsTupleSchemeFactory implements SchemeFactory { - public drop_partitions_req_argsTupleScheme getScheme() { - return new drop_partitions_req_argsTupleScheme(); + private static class exchange_partitions_argsTupleSchemeFactory implements SchemeFactory { + public exchange_partitions_argsTupleScheme getScheme() { + return new exchange_partitions_argsTupleScheme(); } } - private static class drop_partitions_req_argsTupleScheme extends TupleScheme { + private static class exchange_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetPartitionSpecs()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetSource_db()) { + optionals.set(1); + } + if (struct.isSetSource_table_name()) { + optionals.set(2); + } + if (struct.isSetDest_db()) { + optionals.set(3); + } + if (struct.isSetDest_table_name()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); + if (struct.isSetPartitionSpecs()) { + { + oprot.writeI32(struct.partitionSpecs.size()); + for (Map.Entry _iter1553 : struct.partitionSpecs.entrySet()) + { + oprot.writeString(_iter1553.getKey()); + oprot.writeString(_iter1553.getValue()); + } + } + } + if (struct.isSetSource_db()) { + oprot.writeString(struct.source_db); + } + if (struct.isSetSource_table_name()) { + oprot.writeString(struct.source_table_name); + } + if (struct.isSetDest_db()) { + oprot.writeString(struct.dest_db); + } + if (struct.isSetDest_table_name()) { + oprot.writeString(struct.dest_table_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.req = new DropPartitionsRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + { + org.apache.thrift.protocol.TMap _map1554 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map1554.size); + String _key1555; + String _val1556; + for (int _i1557 = 0; _i1557 < _map1554.size; ++_i1557) + { + _key1555 = iprot.readString(); + _val1556 = iprot.readString(); + struct.partitionSpecs.put(_key1555, _val1556); + } + } + struct.setPartitionSpecsIsSet(true); + } + if (incoming.get(1)) { + struct.source_db = iprot.readString(); + struct.setSource_dbIsSet(true); + } + if (incoming.get(2)) { + struct.source_table_name = iprot.readString(); + struct.setSource_table_nameIsSet(true); + } + if (incoming.get(3)) { + struct.dest_db = iprot.readString(); + struct.setDest_dbIsSet(true); + } + if (incoming.get(4)) { + struct.dest_table_name = iprot.readString(); + struct.setDest_table_nameIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partitions_req_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partitions_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partitions_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partitions_resultTupleSchemeFactory()); } - private DropPartitionsResult success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private List success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required + private InvalidObjectException o3; // required + private InvalidInputException o4; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"), + O4((short)4, "o4"); private static final Map byName = new HashMap(); @@ -107539,6 +115725,10 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; + case 4: // O4 + return O4; default: return null; } @@ -107583,46 +115773,65 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropPartitionsResult.class))); + 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, Partition.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partitions_result.class, metaDataMap); } - public drop_partitions_req_result() { + public exchange_partitions_result() { } - public drop_partitions_req_result( - DropPartitionsResult success, - NoSuchObjectException o1, - MetaException o2) + public exchange_partitions_result( + List success, + MetaException o1, + NoSuchObjectException o2, + InvalidObjectException o3, + InvalidInputException o4) { this(); this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; + this.o4 = o4; } /** * Performs a deep copy on other. */ - public drop_partitions_req_result(drop_partitions_req_result other) { + public exchange_partitions_result(exchange_partitions_result other) { if (other.isSetSuccess()) { - this.success = new DropPartitionsResult(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } + this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new InvalidObjectException(other.o3); + } + if (other.isSetO4()) { + this.o4 = new InvalidInputException(other.o4); } } - public drop_partitions_req_result deepCopy() { - return new drop_partitions_req_result(this); + public exchange_partitions_result deepCopy() { + return new exchange_partitions_result(this); } @Override @@ -107630,13 +115839,30 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; + this.o4 = null; } - public DropPartitionsResult getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Partition elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(DropPartitionsResult success) { + public void setSuccess(List success) { this.success = success; } @@ -107655,11 +115881,11 @@ public void setSuccessIsSet(boolean value) { } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -107678,11 +115904,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -107701,13 +115927,59 @@ public void setO2IsSet(boolean value) { } } + public InvalidObjectException getO3() { + return this.o3; + } + + public void setO3(InvalidObjectException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + + public InvalidInputException getO4() { + return this.o4; + } + + public void setO4(InvalidInputException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((DropPartitionsResult)value); + setSuccess((List)value); } break; @@ -107715,7 +115987,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -107723,7 +115995,23 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((InvalidObjectException)value); + } + break; + + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((InvalidInputException)value); } break; @@ -107741,6 +116029,12 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + + case O4: + return getO4(); + } throw new IllegalStateException(); } @@ -107758,6 +116052,10 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); + case O4: + return isSetO4(); } throw new IllegalStateException(); } @@ -107766,12 +116064,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partitions_req_result) - return this.equals((drop_partitions_req_result)that); + if (that instanceof exchange_partitions_result) + return this.equals((exchange_partitions_result)that); return false; } - public boolean equals(drop_partitions_req_result that) { + public boolean equals(exchange_partitions_result that) { if (that == null) return false; @@ -107802,6 +116100,24 @@ public boolean equals(drop_partitions_req_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + return true; } @@ -107824,11 +116140,21 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + + boolean present_o4 = true && (isSetO4()); + list.add(present_o4); + if (present_o4) + list.add(o4); + return list.hashCode(); } @Override - public int compareTo(drop_partitions_req_result other) { + public int compareTo(exchange_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -107865,6 +116191,26 @@ public int compareTo(drop_partitions_req_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -107882,7 +116228,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partitions_req_result("); + StringBuilder sb = new StringBuilder("exchange_partitions_result("); boolean first = true; sb.append("success:"); @@ -107908,6 +116254,22 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; + if (!first) sb.append(", "); + sb.append("o4:"); + if (this.o4 == null) { + sb.append("null"); + } else { + sb.append(this.o4); + } + first = false; sb.append(")"); return sb.toString(); } @@ -107915,9 +116277,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -107936,15 +116295,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partitions_req_resultStandardSchemeFactory implements SchemeFactory { - public drop_partitions_req_resultStandardScheme getScheme() { - return new drop_partitions_req_resultStandardScheme(); + private static class exchange_partitions_resultStandardSchemeFactory implements SchemeFactory { + public exchange_partitions_resultStandardScheme getScheme() { + return new exchange_partitions_resultStandardScheme(); } } - private static class drop_partitions_req_resultStandardScheme extends StandardScheme { + private static class exchange_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -107955,9 +116314,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new DropPartitionsResult(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1558 = iprot.readListBegin(); + struct.success = new ArrayList(_list1558.size); + Partition _elem1559; + for (int _i1560 = 0; _i1560 < _list1558.size; ++_i1560) + { + _elem1559 = new Partition(); + _elem1559.read(iprot); + struct.success.add(_elem1559); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -107965,7 +116334,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -107974,13 +116343,31 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new InvalidObjectException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // O4 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o4 = new InvalidInputException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -107990,13 +116377,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter1561 : struct.success) + { + _iter1561.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -108009,22 +116403,32 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_re struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o4 != null) { + oprot.writeFieldBegin(O4_FIELD_DESC); + struct.o4.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_partitions_req_resultTupleSchemeFactory implements SchemeFactory { - public drop_partitions_req_resultTupleScheme getScheme() { - return new drop_partitions_req_resultTupleScheme(); + private static class exchange_partitions_resultTupleSchemeFactory implements SchemeFactory { + public exchange_partitions_resultTupleScheme getScheme() { + return new exchange_partitions_resultTupleScheme(); } } - private static class drop_partitions_req_resultTupleScheme extends TupleScheme { + private static class exchange_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -108036,9 +116440,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + if (struct.isSetO4()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Partition _iter1562 : struct.success) + { + _iter1562.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -108046,54 +116462,85 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + if (struct.isSetO4()) { + struct.o4.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.success = new DropPartitionsResult(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list1563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1563.size); + Partition _elem1564; + for (int _i1565 = 0; _i1565 < _list1563.size; ++_i1565) + { + _elem1564 = new Partition(); + _elem1564.read(iprot); + struct.success.add(_elem1564); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new InvalidObjectException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + if (incoming.get(4)) { + struct.o4 = new InvalidInputException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_with_auth_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_with_auth_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_with_auth_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private List part_vals; // required + private String user_name; // required + private List group_names; // 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 { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"); + PART_VALS((short)3, "part_vals"), + USER_NAME((short)4, "user_name"), + GROUP_NAMES((short)5, "group_names"); private static final Map byName = new HashMap(); @@ -108114,6 +116561,10 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // PART_VALS return PART_VALS; + case 4: // USER_NAME + return USER_NAME; + case 5: // GROUP_NAMES + return GROUP_NAMES; default: return null; } @@ -108164,28 +116615,37 @@ public String getFieldName() { tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_args.class, metaDataMap); } - public get_partition_args() { + public get_partition_with_auth_args() { } - public get_partition_args( + public get_partition_with_auth_args( String db_name, String tbl_name, - List part_vals) + List part_vals, + String user_name, + List group_names) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.part_vals = part_vals; + this.user_name = user_name; + this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partition_args(get_partition_args other) { + public get_partition_with_auth_args(get_partition_with_auth_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } @@ -108196,10 +116656,17 @@ public get_partition_args(get_partition_args other) { List __this__part_vals = new ArrayList(other.part_vals); this.part_vals = __this__part_vals; } + if (other.isSetUser_name()) { + this.user_name = other.user_name; + } + if (other.isSetGroup_names()) { + List __this__group_names = new ArrayList(other.group_names); + this.group_names = __this__group_names; + } } - public get_partition_args deepCopy() { - return new get_partition_args(this); + public get_partition_with_auth_args deepCopy() { + return new get_partition_with_auth_args(this); } @Override @@ -108207,6 +116674,8 @@ public void clear() { this.db_name = null; this.tbl_name = null; this.part_vals = null; + this.user_name = null; + this.group_names = null; } public String getDb_name() { @@ -108293,6 +116762,67 @@ public void setPart_valsIsSet(boolean value) { } } + public String getUser_name() { + return this.user_name; + } + + public void setUser_name(String user_name) { + this.user_name = user_name; + } + + public void unsetUser_name() { + this.user_name = null; + } + + /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUser_name() { + return this.user_name != null; + } + + public void setUser_nameIsSet(boolean value) { + if (!value) { + this.user_name = null; + } + } + + public int getGroup_namesSize() { + return (this.group_names == null) ? 0 : this.group_names.size(); + } + + public java.util.Iterator getGroup_namesIterator() { + return (this.group_names == null) ? null : this.group_names.iterator(); + } + + public void addToGroup_names(String elem) { + if (this.group_names == null) { + this.group_names = new ArrayList(); + } + this.group_names.add(elem); + } + + public List getGroup_names() { + return this.group_names; + } + + public void setGroup_names(List group_names) { + this.group_names = group_names; + } + + public void unsetGroup_names() { + this.group_names = null; + } + + /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ + public boolean isSetGroup_names() { + return this.group_names != null; + } + + public void setGroup_namesIsSet(boolean value) { + if (!value) { + this.group_names = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -108319,6 +116849,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case USER_NAME: + if (value == null) { + unsetUser_name(); + } else { + setUser_name((String)value); + } + break; + + case GROUP_NAMES: + if (value == null) { + unsetGroup_names(); + } else { + setGroup_names((List)value); + } + break; + } } @@ -108333,6 +116879,12 @@ public Object getFieldValue(_Fields field) { case PART_VALS: return getPart_vals(); + case USER_NAME: + return getUser_name(); + + case GROUP_NAMES: + return getGroup_names(); + } throw new IllegalStateException(); } @@ -108350,6 +116902,10 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case PART_VALS: return isSetPart_vals(); + case USER_NAME: + return isSetUser_name(); + case GROUP_NAMES: + return isSetGroup_names(); } throw new IllegalStateException(); } @@ -108358,12 +116914,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_args) - return this.equals((get_partition_args)that); + if (that instanceof get_partition_with_auth_args) + return this.equals((get_partition_with_auth_args)that); return false; } - public boolean equals(get_partition_args that) { + public boolean equals(get_partition_with_auth_args that) { if (that == null) return false; @@ -108394,6 +116950,24 @@ public boolean equals(get_partition_args that) { return false; } + boolean this_present_user_name = true && this.isSetUser_name(); + boolean that_present_user_name = true && that.isSetUser_name(); + if (this_present_user_name || that_present_user_name) { + if (!(this_present_user_name && that_present_user_name)) + return false; + if (!this.user_name.equals(that.user_name)) + return false; + } + + boolean this_present_group_names = true && this.isSetGroup_names(); + boolean that_present_group_names = true && that.isSetGroup_names(); + if (this_present_group_names || that_present_group_names) { + if (!(this_present_group_names && that_present_group_names)) + return false; + if (!this.group_names.equals(that.group_names)) + return false; + } + return true; } @@ -108416,11 +116990,21 @@ public int hashCode() { if (present_part_vals) list.add(part_vals); + boolean present_user_name = true && (isSetUser_name()); + list.add(present_user_name); + if (present_user_name) + list.add(user_name); + + boolean present_group_names = true && (isSetGroup_names()); + list.add(present_group_names); + if (present_group_names) + list.add(group_names); + return list.hashCode(); } @Override - public int compareTo(get_partition_args other) { + public int compareTo(get_partition_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -108457,6 +117041,26 @@ public int compareTo(get_partition_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGroup_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -108474,7 +117078,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_args("); + StringBuilder sb = new StringBuilder("get_partition_with_auth_args("); boolean first = true; sb.append("db_name:"); @@ -108500,6 +117104,22 @@ public String toString() { sb.append(this.part_vals); } first = false; + if (!first) sb.append(", "); + sb.append("user_name:"); + if (this.user_name == null) { + sb.append("null"); + } else { + sb.append(this.user_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("group_names:"); + if (this.group_names == null) { + sb.append("null"); + } else { + sb.append(this.group_names); + } + first = false; sb.append(")"); return sb.toString(); } @@ -108525,15 +117145,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_argsStandardScheme getScheme() { - return new get_partition_argsStandardScheme(); + private static class get_partition_with_auth_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_with_auth_argsStandardScheme getScheme() { + return new get_partition_with_auth_argsStandardScheme(); } } - private static class get_partition_argsStandardScheme extends StandardScheme { + private static class get_partition_with_auth_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -108562,13 +117182,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1458 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1458.size); - String _elem1459; - for (int _i1460 = 0; _i1460 < _list1458.size; ++_i1460) + org.apache.thrift.protocol.TList _list1566 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1566.size); + String _elem1567; + for (int _i1568 = 0; _i1568 < _list1566.size; ++_i1568) { - _elem1459 = iprot.readString(); - struct.part_vals.add(_elem1459); + _elem1567 = iprot.readString(); + struct.part_vals.add(_elem1567); } iprot.readListEnd(); } @@ -108577,6 +117197,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1569 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1569.size); + String _elem1570; + for (int _i1571 = 0; _i1571 < _list1569.size; ++_i1571) + { + _elem1570 = iprot.readString(); + struct.group_names.add(_elem1570); + } + iprot.readListEnd(); + } + struct.setGroup_namesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -108586,7 +117232,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -108604,9 +117250,26 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1461 : struct.part_vals) + for (String _iter1572 : struct.part_vals) + { + oprot.writeString(_iter1572); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.user_name); + oprot.writeFieldEnd(); + } + if (struct.group_names != null) { + oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); + for (String _iter1573 : struct.group_names) { - oprot.writeString(_iter1461); + oprot.writeString(_iter1573); } oprot.writeListEnd(); } @@ -108618,16 +117281,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args } - private static class get_partition_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_argsTupleScheme getScheme() { - return new get_partition_argsTupleScheme(); + private static class get_partition_with_auth_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_with_auth_argsTupleScheme getScheme() { + return new get_partition_with_auth_argsTupleScheme(); } } - private static class get_partition_argsTupleScheme extends TupleScheme { + private static class get_partition_with_auth_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -108639,7 +117302,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args if (struct.isSetPart_vals()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetUser_name()) { + optionals.set(3); + } + if (struct.isSetGroup_names()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -108649,18 +117318,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1462 : struct.part_vals) + for (String _iter1574 : struct.part_vals) + { + oprot.writeString(_iter1574); + } + } + } + if (struct.isSetUser_name()) { + oprot.writeString(struct.user_name); + } + if (struct.isSetGroup_names()) { + { + oprot.writeI32(struct.group_names.size()); + for (String _iter1575 : struct.group_names) { - oprot.writeString(_iter1462); + oprot.writeString(_iter1575); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -108671,24 +117352,41 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1463 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1463.size); - String _elem1464; - for (int _i1465 = 0; _i1465 < _list1463.size; ++_i1465) + org.apache.thrift.protocol.TList _list1576 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1576.size); + String _elem1577; + for (int _i1578 = 0; _i1578 < _list1576.size; ++_i1578) { - _elem1464 = iprot.readString(); - struct.part_vals.add(_elem1464); + _elem1577 = iprot.readString(); + struct.part_vals.add(_elem1577); } } struct.setPart_valsIsSet(true); } + if (incoming.get(3)) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } + if (incoming.get(4)) { + { + org.apache.thrift.protocol.TList _list1579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1579.size); + String _elem1580; + for (int _i1581 = 0; _i1581 < _list1579.size; ++_i1581) + { + _elem1580 = iprot.readString(); + struct.group_names.add(_elem1580); + } + } + struct.setGroup_namesIsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_with_auth_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -108696,8 +117394,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_with_auth_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_with_auth_resultTupleSchemeFactory()); } private Partition success; // required @@ -108779,13 +117477,13 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_result.class, metaDataMap); } - public get_partition_result() { + public get_partition_with_auth_result() { } - public get_partition_result( + public get_partition_with_auth_result( Partition success, MetaException o1, NoSuchObjectException o2) @@ -108799,7 +117497,7 @@ public get_partition_result( /** * Performs a deep copy on other. */ - public get_partition_result(get_partition_result other) { + public get_partition_with_auth_result(get_partition_with_auth_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -108811,8 +117509,8 @@ public get_partition_result(get_partition_result other) { } } - public get_partition_result deepCopy() { - return new get_partition_result(this); + public get_partition_with_auth_result deepCopy() { + return new get_partition_with_auth_result(this); } @Override @@ -108956,12 +117654,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_result) - return this.equals((get_partition_result)that); + if (that instanceof get_partition_with_auth_result) + return this.equals((get_partition_with_auth_result)that); return false; } - public boolean equals(get_partition_result that) { + public boolean equals(get_partition_with_auth_result that) { if (that == null) return false; @@ -109018,7 +117716,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_result other) { + public int compareTo(get_partition_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -109072,7 +117770,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_result("); + StringBuilder sb = new StringBuilder("get_partition_with_auth_result("); boolean first = true; sb.append("success:"); @@ -109126,15 +117824,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_resultStandardScheme getScheme() { - return new get_partition_resultStandardScheme(); + private static class get_partition_with_auth_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_with_auth_resultStandardScheme getScheme() { + return new get_partition_with_auth_resultStandardScheme(); } } - private static class get_partition_resultStandardScheme extends StandardScheme { + private static class get_partition_with_auth_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -109180,7 +117878,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_resul struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -109205,16 +117903,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_resu } - private static class get_partition_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_resultTupleScheme getScheme() { - return new get_partition_resultTupleScheme(); + private static class get_partition_with_auth_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_with_auth_resultTupleScheme getScheme() { + return new get_partition_with_auth_resultTupleScheme(); } } - private static class get_partition_resultTupleScheme extends TupleScheme { + private static class get_partition_with_auth_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -109239,7 +117937,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_resul } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -109262,34 +117960,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partition_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_args"); - private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); - private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField SOURCE_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_table_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField DEST_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_db", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField DEST_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_table_name", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_by_name_argsTupleSchemeFactory()); } - private Map partitionSpecs; // required - private String source_db; // required - private String source_table_name; // required - private String dest_db; // required - private String dest_table_name; // required + private String db_name; // required + private String tbl_name; // required + private String part_name; // 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 { - PARTITION_SPECS((short)1, "partitionSpecs"), - SOURCE_DB((short)2, "source_db"), - SOURCE_TABLE_NAME((short)3, "source_table_name"), - DEST_DB((short)4, "dest_db"), - DEST_TABLE_NAME((short)5, "dest_table_name"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_NAME((short)3, "part_name"); private static final Map byName = new HashMap(); @@ -109304,16 +117996,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // PARTITION_SPECS - return PARTITION_SPECS; - case 2: // SOURCE_DB - return SOURCE_DB; - case 3: // SOURCE_TABLE_NAME - return SOURCE_TABLE_NAME; - case 4: // DEST_DB - return DEST_DB; - case 5: // DEST_TABLE_NAME - return DEST_TABLE_NAME; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_NAME + return PART_NAME; default: return null; } @@ -109357,240 +118045,148 @@ public String getFieldName() { 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.PARTITION_SPECS, new org.apache.thrift.meta_data.FieldMetaData("partitionSpecs", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.SOURCE_DB, new org.apache.thrift.meta_data.FieldMetaData("source_db", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.SOURCE_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DEST_DB, new org.apache.thrift.meta_data.FieldMetaData("dest_db", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_args.class, metaDataMap); } - public exchange_partition_args() { + public get_partition_by_name_args() { } - public exchange_partition_args( - Map partitionSpecs, - String source_db, - String source_table_name, - String dest_db, - String dest_table_name) + public get_partition_by_name_args( + String db_name, + String tbl_name, + String part_name) { this(); - this.partitionSpecs = partitionSpecs; - this.source_db = source_db; - this.source_table_name = source_table_name; - this.dest_db = dest_db; - this.dest_table_name = dest_table_name; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_name = part_name; } /** * Performs a deep copy on other. */ - public exchange_partition_args(exchange_partition_args other) { - if (other.isSetPartitionSpecs()) { - Map __this__partitionSpecs = new HashMap(other.partitionSpecs); - this.partitionSpecs = __this__partitionSpecs; - } - if (other.isSetSource_db()) { - this.source_db = other.source_db; - } - if (other.isSetSource_table_name()) { - this.source_table_name = other.source_table_name; + public get_partition_by_name_args(get_partition_by_name_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } - if (other.isSetDest_db()) { - this.dest_db = other.dest_db; + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; } - if (other.isSetDest_table_name()) { - this.dest_table_name = other.dest_table_name; + if (other.isSetPart_name()) { + this.part_name = other.part_name; } } - public exchange_partition_args deepCopy() { - return new exchange_partition_args(this); + public get_partition_by_name_args deepCopy() { + return new get_partition_by_name_args(this); } @Override public void clear() { - this.partitionSpecs = null; - this.source_db = null; - this.source_table_name = null; - this.dest_db = null; - this.dest_table_name = null; - } - - public int getPartitionSpecsSize() { - return (this.partitionSpecs == null) ? 0 : this.partitionSpecs.size(); - } - - public void putToPartitionSpecs(String key, String val) { - if (this.partitionSpecs == null) { - this.partitionSpecs = new HashMap(); - } - this.partitionSpecs.put(key, val); - } - - public Map getPartitionSpecs() { - return this.partitionSpecs; - } - - public void setPartitionSpecs(Map partitionSpecs) { - this.partitionSpecs = partitionSpecs; - } - - public void unsetPartitionSpecs() { - this.partitionSpecs = null; - } - - /** Returns true if field partitionSpecs is set (has been assigned a value) and false otherwise */ - public boolean isSetPartitionSpecs() { - return this.partitionSpecs != null; - } - - public void setPartitionSpecsIsSet(boolean value) { - if (!value) { - this.partitionSpecs = null; - } - } - - public String getSource_db() { - return this.source_db; - } - - public void setSource_db(String source_db) { - this.source_db = source_db; - } - - public void unsetSource_db() { - this.source_db = null; - } - - /** Returns true if field source_db is set (has been assigned a value) and false otherwise */ - public boolean isSetSource_db() { - return this.source_db != null; - } - - public void setSource_dbIsSet(boolean value) { - if (!value) { - this.source_db = null; - } + this.db_name = null; + this.tbl_name = null; + this.part_name = null; } - public String getSource_table_name() { - return this.source_table_name; + public String getDb_name() { + return this.db_name; } - public void setSource_table_name(String source_table_name) { - this.source_table_name = source_table_name; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetSource_table_name() { - this.source_table_name = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field source_table_name is set (has been assigned a value) and false otherwise */ - public boolean isSetSource_table_name() { - return this.source_table_name != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setSource_table_nameIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.source_table_name = null; + this.db_name = null; } } - public String getDest_db() { - return this.dest_db; + public String getTbl_name() { + return this.tbl_name; } - public void setDest_db(String dest_db) { - this.dest_db = dest_db; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetDest_db() { - this.dest_db = null; + public void unsetTbl_name() { + this.tbl_name = null; } - /** Returns true if field dest_db is set (has been assigned a value) and false otherwise */ - public boolean isSetDest_db() { - return this.dest_db != null; + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; } - public void setDest_dbIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.dest_db = null; + this.tbl_name = null; } } - public String getDest_table_name() { - return this.dest_table_name; + public String getPart_name() { + return this.part_name; } - public void setDest_table_name(String dest_table_name) { - this.dest_table_name = dest_table_name; + public void setPart_name(String part_name) { + this.part_name = part_name; } - public void unsetDest_table_name() { - this.dest_table_name = null; + public void unsetPart_name() { + this.part_name = null; } - /** Returns true if field dest_table_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDest_table_name() { - return this.dest_table_name != null; + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; } - public void setDest_table_nameIsSet(boolean value) { + public void setPart_nameIsSet(boolean value) { if (!value) { - this.dest_table_name = null; + this.part_name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case PARTITION_SPECS: - if (value == null) { - unsetPartitionSpecs(); - } else { - setPartitionSpecs((Map)value); - } - break; - - case SOURCE_DB: - if (value == null) { - unsetSource_db(); - } else { - setSource_db((String)value); - } - break; - - case SOURCE_TABLE_NAME: + case DB_NAME: if (value == null) { - unsetSource_table_name(); + unsetDb_name(); } else { - setSource_table_name((String)value); + setDb_name((String)value); } break; - case DEST_DB: + case TBL_NAME: if (value == null) { - unsetDest_db(); + unsetTbl_name(); } else { - setDest_db((String)value); + setTbl_name((String)value); } break; - case DEST_TABLE_NAME: + case PART_NAME: if (value == null) { - unsetDest_table_name(); + unsetPart_name(); } else { - setDest_table_name((String)value); + setPart_name((String)value); } break; @@ -109599,20 +118195,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case PARTITION_SPECS: - return getPartitionSpecs(); - - case SOURCE_DB: - return getSource_db(); - - case SOURCE_TABLE_NAME: - return getSource_table_name(); + case DB_NAME: + return getDb_name(); - case DEST_DB: - return getDest_db(); + case TBL_NAME: + return getTbl_name(); - case DEST_TABLE_NAME: - return getDest_table_name(); + case PART_NAME: + return getPart_name(); } throw new IllegalStateException(); @@ -109625,16 +118215,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case PARTITION_SPECS: - return isSetPartitionSpecs(); - case SOURCE_DB: - return isSetSource_db(); - case SOURCE_TABLE_NAME: - return isSetSource_table_name(); - case DEST_DB: - return isSetDest_db(); - case DEST_TABLE_NAME: - return isSetDest_table_name(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_NAME: + return isSetPart_name(); } throw new IllegalStateException(); } @@ -109643,57 +118229,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partition_args) - return this.equals((exchange_partition_args)that); + if (that instanceof get_partition_by_name_args) + return this.equals((get_partition_by_name_args)that); return false; } - public boolean equals(exchange_partition_args that) { + public boolean equals(get_partition_by_name_args that) { if (that == null) return false; - boolean this_present_partitionSpecs = true && this.isSetPartitionSpecs(); - boolean that_present_partitionSpecs = true && that.isSetPartitionSpecs(); - if (this_present_partitionSpecs || that_present_partitionSpecs) { - if (!(this_present_partitionSpecs && that_present_partitionSpecs)) - return false; - if (!this.partitionSpecs.equals(that.partitionSpecs)) - return false; - } - - boolean this_present_source_db = true && this.isSetSource_db(); - boolean that_present_source_db = true && that.isSetSource_db(); - if (this_present_source_db || that_present_source_db) { - if (!(this_present_source_db && that_present_source_db)) - return false; - if (!this.source_db.equals(that.source_db)) - return false; - } - - boolean this_present_source_table_name = true && this.isSetSource_table_name(); - boolean that_present_source_table_name = true && that.isSetSource_table_name(); - if (this_present_source_table_name || that_present_source_table_name) { - if (!(this_present_source_table_name && that_present_source_table_name)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.source_table_name.equals(that.source_table_name)) + if (!this.db_name.equals(that.db_name)) return false; } - boolean this_present_dest_db = true && this.isSetDest_db(); - boolean that_present_dest_db = true && that.isSetDest_db(); - if (this_present_dest_db || that_present_dest_db) { - if (!(this_present_dest_db && that_present_dest_db)) + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) return false; - if (!this.dest_db.equals(that.dest_db)) + if (!this.tbl_name.equals(that.tbl_name)) return false; } - boolean this_present_dest_table_name = true && this.isSetDest_table_name(); - boolean that_present_dest_table_name = true && that.isSetDest_table_name(); - if (this_present_dest_table_name || that_present_dest_table_name) { - if (!(this_present_dest_table_name && that_present_dest_table_name)) + boolean this_present_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) return false; - if (!this.dest_table_name.equals(that.dest_table_name)) + if (!this.part_name.equals(that.part_name)) return false; } @@ -109704,88 +118272,58 @@ public boolean equals(exchange_partition_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_partitionSpecs = true && (isSetPartitionSpecs()); - list.add(present_partitionSpecs); - if (present_partitionSpecs) - list.add(partitionSpecs); - - boolean present_source_db = true && (isSetSource_db()); - list.add(present_source_db); - if (present_source_db) - list.add(source_db); - - boolean present_source_table_name = true && (isSetSource_table_name()); - list.add(present_source_table_name); - if (present_source_table_name) - list.add(source_table_name); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); - boolean present_dest_db = true && (isSetDest_db()); - list.add(present_dest_db); - if (present_dest_db) - list.add(dest_db); + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); - boolean present_dest_table_name = true && (isSetDest_table_name()); - list.add(present_dest_table_name); - if (present_dest_table_name) - list.add(dest_table_name); + boolean present_part_name = true && (isSetPart_name()); + list.add(present_part_name); + if (present_part_name) + list.add(part_name); return list.hashCode(); } @Override - public int compareTo(exchange_partition_args other) { + public int compareTo(get_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(other.isSetPartitionSpecs()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPartitionSpecs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, other.partitionSpecs); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(other.isSetSource_db()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSource_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, other.source_db); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(other.isSetSource_table_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetSource_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, other.source_table_name); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(other.isSetDest_db()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetDest_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, other.dest_db); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(other.isSetDest_table_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetDest_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, other.dest_table_name); + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); if (lastComparison != 0) { return lastComparison; } @@ -109807,46 +118345,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partition_args("); + StringBuilder sb = new StringBuilder("get_partition_by_name_args("); boolean first = true; - sb.append("partitionSpecs:"); - if (this.partitionSpecs == null) { - sb.append("null"); - } else { - sb.append(this.partitionSpecs); - } - first = false; - if (!first) sb.append(", "); - sb.append("source_db:"); - if (this.source_db == null) { - sb.append("null"); - } else { - sb.append(this.source_db); - } - first = false; - if (!first) sb.append(", "); - sb.append("source_table_name:"); - if (this.source_table_name == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.source_table_name); + sb.append(this.db_name); } first = false; if (!first) sb.append(", "); - sb.append("dest_db:"); - if (this.dest_db == null) { + sb.append("tbl_name:"); + if (this.tbl_name == null) { sb.append("null"); } else { - sb.append(this.dest_db); + sb.append(this.tbl_name); } first = false; if (!first) sb.append(", "); - sb.append("dest_table_name:"); - if (this.dest_table_name == null) { + sb.append("part_name:"); + if (this.part_name == null) { sb.append("null"); } else { - sb.append(this.dest_table_name); + sb.append(this.part_name); } first = false; sb.append(")"); @@ -109874,72 +118396,44 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partition_argsStandardSchemeFactory implements SchemeFactory { - public exchange_partition_argsStandardScheme getScheme() { - return new exchange_partition_argsStandardScheme(); + private static class get_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_by_name_argsStandardScheme getScheme() { + return new get_partition_by_name_argsStandardScheme(); } } - private static class exchange_partition_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_args 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: // PARTITION_SPECS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map1466 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1466.size); - String _key1467; - String _val1468; - for (int _i1469 = 0; _i1469 < _map1466.size; ++_i1469) - { - _key1467 = iprot.readString(); - _val1468 = iprot.readString(); - struct.partitionSpecs.put(_key1467, _val1468); - } - iprot.readMapEnd(); - } - struct.setPartitionSpecsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SOURCE_DB - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.source_db = iprot.readString(); - struct.setSource_dbIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // SOURCE_TABLE_NAME + private static class get_partition_by_name_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_args 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: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.source_table_name = iprot.readString(); - struct.setSource_table_nameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // DEST_DB + case 2: // TBL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dest_db = iprot.readString(); - struct.setDest_dbIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // DEST_TABLE_NAME + case 3: // PART_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dest_table_name = iprot.readString(); - struct.setDest_table_nameIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -109953,41 +118447,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.partitionSpecs != null) { - oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter1470 : struct.partitionSpecs.entrySet()) - { - oprot.writeString(_iter1470.getKey()); - oprot.writeString(_iter1470.getValue()); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.source_db != null) { - oprot.writeFieldBegin(SOURCE_DB_FIELD_DESC); - oprot.writeString(struct.source_db); - oprot.writeFieldEnd(); - } - if (struct.source_table_name != null) { - oprot.writeFieldBegin(SOURCE_TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.source_table_name); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } - if (struct.dest_db != null) { - oprot.writeFieldBegin(DEST_DB_FIELD_DESC); - oprot.writeString(struct.dest_db); + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.dest_table_name != null) { - oprot.writeFieldBegin(DEST_TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.dest_table_name); + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -109996,126 +118472,82 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition } - private static class exchange_partition_argsTupleSchemeFactory implements SchemeFactory { - public exchange_partition_argsTupleScheme getScheme() { - return new exchange_partition_argsTupleScheme(); + private static class get_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_by_name_argsTupleScheme getScheme() { + return new get_partition_by_name_argsTupleScheme(); } } - private static class exchange_partition_argsTupleScheme extends TupleScheme { + private static class get_partition_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetPartitionSpecs()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetSource_db()) { + if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetSource_table_name()) { + if (struct.isSetPart_name()) { optionals.set(2); } - if (struct.isSetDest_db()) { - optionals.set(3); - } - if (struct.isSetDest_table_name()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); - if (struct.isSetPartitionSpecs()) { - { - oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1471 : struct.partitionSpecs.entrySet()) - { - oprot.writeString(_iter1471.getKey()); - oprot.writeString(_iter1471.getValue()); - } - } - } - if (struct.isSetSource_db()) { - oprot.writeString(struct.source_db); - } - if (struct.isSetSource_table_name()) { - oprot.writeString(struct.source_table_name); + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); } - if (struct.isSetDest_db()) { - oprot.writeString(struct.dest_db); + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); } - if (struct.isSetDest_table_name()) { - oprot.writeString(struct.dest_table_name); + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map1472 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map1472.size); - String _key1473; - String _val1474; - for (int _i1475 = 0; _i1475 < _map1472.size; ++_i1475) - { - _key1473 = iprot.readString(); - _val1474 = iprot.readString(); - struct.partitionSpecs.put(_key1473, _val1474); - } - } - struct.setPartitionSpecsIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } if (incoming.get(1)) { - struct.source_db = iprot.readString(); - struct.setSource_dbIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.source_table_name = iprot.readString(); - struct.setSource_table_nameIsSet(true); - } - if (incoming.get(3)) { - struct.dest_db = iprot.readString(); - struct.setDest_dbIsSet(true); - } - if (incoming.get(4)) { - struct.dest_table_name = iprot.readString(); - struct.setDest_table_nameIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partition_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_by_name_resultTupleSchemeFactory()); } private Partition success; // required private MetaException o1; // required private NoSuchObjectException o2; // required - private InvalidObjectException o3; // required - private InvalidInputException o4; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"), - O4((short)4, "o4"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -110136,10 +118568,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; - case 4: // O4 - return O4; default: return null; } @@ -110189,36 +118617,28 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_result.class, metaDataMap); } - public exchange_partition_result() { + public get_partition_by_name_result() { } - public exchange_partition_result( + public get_partition_by_name_result( Partition success, MetaException o1, - NoSuchObjectException o2, - InvalidObjectException o3, - InvalidInputException o4) + NoSuchObjectException o2) { this(); this.success = success; this.o1 = o1; this.o2 = o2; - this.o3 = o3; - this.o4 = o4; } /** * Performs a deep copy on other. */ - public exchange_partition_result(exchange_partition_result other) { + public get_partition_by_name_result(get_partition_by_name_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -110228,16 +118648,10 @@ public exchange_partition_result(exchange_partition_result other) { if (other.isSetO2()) { this.o2 = new NoSuchObjectException(other.o2); } - if (other.isSetO3()) { - this.o3 = new InvalidObjectException(other.o3); - } - if (other.isSetO4()) { - this.o4 = new InvalidInputException(other.o4); - } } - public exchange_partition_result deepCopy() { - return new exchange_partition_result(this); + public get_partition_by_name_result deepCopy() { + return new get_partition_by_name_result(this); } @Override @@ -110245,8 +118659,6 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; - this.o4 = null; } public Partition getSuccess() { @@ -110318,52 +118730,6 @@ public void setO2IsSet(boolean value) { } } - public InvalidObjectException getO3() { - return this.o3; - } - - public void setO3(InvalidObjectException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - - public InvalidInputException getO4() { - return this.o4; - } - - public void setO4(InvalidInputException o4) { - this.o4 = o4; - } - - public void unsetO4() { - this.o4 = null; - } - - /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ - public boolean isSetO4() { - return this.o4 != null; - } - - public void setO4IsSet(boolean value) { - if (!value) { - this.o4 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -110390,22 +118756,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((InvalidObjectException)value); - } - break; - - case O4: - if (value == null) { - unsetO4(); - } else { - setO4((InvalidInputException)value); - } - break; - } } @@ -110420,12 +118770,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - - case O4: - return getO4(); - } throw new IllegalStateException(); } @@ -110443,10 +118787,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); - case O4: - return isSetO4(); } throw new IllegalStateException(); } @@ -110455,12 +118795,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partition_result) - return this.equals((exchange_partition_result)that); + if (that instanceof get_partition_by_name_result) + return this.equals((get_partition_by_name_result)that); return false; } - public boolean equals(exchange_partition_result that) { + public boolean equals(get_partition_by_name_result that) { if (that == null) return false; @@ -110491,24 +118831,6 @@ public boolean equals(exchange_partition_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - - boolean this_present_o4 = true && this.isSetO4(); - boolean that_present_o4 = true && that.isSetO4(); - if (this_present_o4 || that_present_o4) { - if (!(this_present_o4 && that_present_o4)) - return false; - if (!this.o4.equals(that.o4)) - return false; - } - return true; } @@ -110531,21 +118853,11 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - - boolean present_o4 = true && (isSetO4()); - list.add(present_o4); - if (present_o4) - list.add(o4); - return list.hashCode(); } @Override - public int compareTo(exchange_partition_result other) { + public int compareTo(get_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -110582,26 +118894,6 @@ public int compareTo(exchange_partition_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -110619,7 +118911,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partition_result("); + StringBuilder sb = new StringBuilder("get_partition_by_name_result("); boolean first = true; sb.append("success:"); @@ -110645,22 +118937,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; - if (!first) sb.append(", "); - sb.append("o4:"); - if (this.o4 == null) { - sb.append("null"); - } else { - sb.append(this.o4); - } - first = false; sb.append(")"); return sb.toString(); } @@ -110689,15 +118965,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partition_resultStandardSchemeFactory implements SchemeFactory { - public exchange_partition_resultStandardScheme getScheme() { - return new exchange_partition_resultStandardScheme(); + private static class get_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_by_name_resultStandardScheme getScheme() { + return new get_partition_by_name_resultStandardScheme(); } } - private static class exchange_partition_resultStandardScheme extends StandardScheme { + private static class get_partition_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -110734,24 +119010,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new InvalidObjectException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // O4 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o4 = new InvalidInputException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -110761,7 +119019,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -110780,32 +119038,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o4 != null) { - oprot.writeFieldBegin(O4_FIELD_DESC); - struct.o4.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class exchange_partition_resultTupleSchemeFactory implements SchemeFactory { - public exchange_partition_resultTupleScheme getScheme() { - return new exchange_partition_resultTupleScheme(); + private static class get_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_by_name_resultTupleScheme getScheme() { + return new get_partition_by_name_resultTupleScheme(); } } - private static class exchange_partition_resultTupleScheme extends TupleScheme { + private static class get_partition_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -110817,13 +119065,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - if (struct.isSetO4()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } @@ -110833,18 +119075,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } - if (struct.isSetO4()) { - struct.o4.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new Partition(); struct.success.read(iprot); @@ -110860,49 +119096,33 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_r struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new InvalidObjectException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } - if (incoming.get(4)) { - struct.o4 = new InvalidInputException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_args"); - private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); - private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField SOURCE_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_table_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField DEST_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_db", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField DEST_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_table_name", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partitions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_argsTupleSchemeFactory()); } - private Map partitionSpecs; // required - private String source_db; // required - private String source_table_name; // required - private String dest_db; // required - private String dest_table_name; // required + private String db_name; // required + private String tbl_name; // required + private short max_parts; // 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 { - PARTITION_SPECS((short)1, "partitionSpecs"), - SOURCE_DB((short)2, "source_db"), - SOURCE_TABLE_NAME((short)3, "source_table_name"), - DEST_DB((short)4, "dest_db"), - DEST_TABLE_NAME((short)5, "dest_table_name"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + MAX_PARTS((short)3, "max_parts"); private static final Map byName = new HashMap(); @@ -110917,16 +119137,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_r */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // PARTITION_SPECS - return PARTITION_SPECS; - case 2: // SOURCE_DB - return SOURCE_DB; - case 3: // SOURCE_TABLE_NAME - return SOURCE_TABLE_NAME; - case 4: // DEST_DB - return DEST_DB; - case 5: // DEST_TABLE_NAME - return DEST_TABLE_NAME; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // MAX_PARTS + return MAX_PARTS; default: return null; } @@ -110967,243 +119183,155 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_PARTS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PARTITION_SPECS, new org.apache.thrift.meta_data.FieldMetaData("partitionSpecs", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.SOURCE_DB, new org.apache.thrift.meta_data.FieldMetaData("source_db", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.SOURCE_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DEST_DB, new org.apache.thrift.meta_data.FieldMetaData("dest_db", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_args.class, metaDataMap); } - public exchange_partitions_args() { + public get_partitions_args() { + this.max_parts = (short)-1; + } - public exchange_partitions_args( - Map partitionSpecs, - String source_db, - String source_table_name, - String dest_db, - String dest_table_name) + public get_partitions_args( + String db_name, + String tbl_name, + short max_parts) { this(); - this.partitionSpecs = partitionSpecs; - this.source_db = source_db; - this.source_table_name = source_table_name; - this.dest_db = dest_db; - this.dest_table_name = dest_table_name; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.max_parts = max_parts; + setMax_partsIsSet(true); } /** * Performs a deep copy on other. */ - public exchange_partitions_args(exchange_partitions_args other) { - if (other.isSetPartitionSpecs()) { - Map __this__partitionSpecs = new HashMap(other.partitionSpecs); - this.partitionSpecs = __this__partitionSpecs; - } - if (other.isSetSource_db()) { - this.source_db = other.source_db; - } - if (other.isSetSource_table_name()) { - this.source_table_name = other.source_table_name; - } - if (other.isSetDest_db()) { - this.dest_db = other.dest_db; + public get_partitions_args(get_partitions_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDb_name()) { + this.db_name = other.db_name; } - if (other.isSetDest_table_name()) { - this.dest_table_name = other.dest_table_name; + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; } + this.max_parts = other.max_parts; } - public exchange_partitions_args deepCopy() { - return new exchange_partitions_args(this); + public get_partitions_args deepCopy() { + return new get_partitions_args(this); } @Override public void clear() { - this.partitionSpecs = null; - this.source_db = null; - this.source_table_name = null; - this.dest_db = null; - this.dest_table_name = null; - } - - public int getPartitionSpecsSize() { - return (this.partitionSpecs == null) ? 0 : this.partitionSpecs.size(); - } - - public void putToPartitionSpecs(String key, String val) { - if (this.partitionSpecs == null) { - this.partitionSpecs = new HashMap(); - } - this.partitionSpecs.put(key, val); - } - - public Map getPartitionSpecs() { - return this.partitionSpecs; - } - - public void setPartitionSpecs(Map partitionSpecs) { - this.partitionSpecs = partitionSpecs; - } - - public void unsetPartitionSpecs() { - this.partitionSpecs = null; - } - - /** Returns true if field partitionSpecs is set (has been assigned a value) and false otherwise */ - public boolean isSetPartitionSpecs() { - return this.partitionSpecs != null; - } - - public void setPartitionSpecsIsSet(boolean value) { - if (!value) { - this.partitionSpecs = null; - } - } - - public String getSource_db() { - return this.source_db; - } - - public void setSource_db(String source_db) { - this.source_db = source_db; - } - - public void unsetSource_db() { - this.source_db = null; - } - - /** Returns true if field source_db is set (has been assigned a value) and false otherwise */ - public boolean isSetSource_db() { - return this.source_db != null; - } + this.db_name = null; + this.tbl_name = null; + this.max_parts = (short)-1; - public void setSource_dbIsSet(boolean value) { - if (!value) { - this.source_db = null; - } } - public String getSource_table_name() { - return this.source_table_name; + public String getDb_name() { + return this.db_name; } - public void setSource_table_name(String source_table_name) { - this.source_table_name = source_table_name; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetSource_table_name() { - this.source_table_name = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field source_table_name is set (has been assigned a value) and false otherwise */ - public boolean isSetSource_table_name() { - return this.source_table_name != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setSource_table_nameIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.source_table_name = null; + this.db_name = null; } } - public String getDest_db() { - return this.dest_db; + public String getTbl_name() { + return this.tbl_name; } - public void setDest_db(String dest_db) { - this.dest_db = dest_db; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetDest_db() { - this.dest_db = null; + public void unsetTbl_name() { + this.tbl_name = null; } - /** Returns true if field dest_db is set (has been assigned a value) and false otherwise */ - public boolean isSetDest_db() { - return this.dest_db != null; + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; } - public void setDest_dbIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.dest_db = null; + this.tbl_name = null; } } - public String getDest_table_name() { - return this.dest_table_name; + public short getMax_parts() { + return this.max_parts; } - public void setDest_table_name(String dest_table_name) { - this.dest_table_name = dest_table_name; + public void setMax_parts(short max_parts) { + this.max_parts = max_parts; + setMax_partsIsSet(true); } - public void unsetDest_table_name() { - this.dest_table_name = null; + public void unsetMax_parts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); } - /** Returns true if field dest_table_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDest_table_name() { - return this.dest_table_name != null; + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_parts() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); } - public void setDest_table_nameIsSet(boolean value) { - if (!value) { - this.dest_table_name = null; - } + public void setMax_partsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { - case PARTITION_SPECS: - if (value == null) { - unsetPartitionSpecs(); - } else { - setPartitionSpecs((Map)value); - } - break; - - case SOURCE_DB: - if (value == null) { - unsetSource_db(); - } else { - setSource_db((String)value); - } - break; - - case SOURCE_TABLE_NAME: + case DB_NAME: if (value == null) { - unsetSource_table_name(); + unsetDb_name(); } else { - setSource_table_name((String)value); + setDb_name((String)value); } break; - case DEST_DB: + case TBL_NAME: if (value == null) { - unsetDest_db(); + unsetTbl_name(); } else { - setDest_db((String)value); + setTbl_name((String)value); } break; - case DEST_TABLE_NAME: + case MAX_PARTS: if (value == null) { - unsetDest_table_name(); + unsetMax_parts(); } else { - setDest_table_name((String)value); + setMax_parts((Short)value); } break; @@ -111212,20 +119340,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case PARTITION_SPECS: - return getPartitionSpecs(); - - case SOURCE_DB: - return getSource_db(); - - case SOURCE_TABLE_NAME: - return getSource_table_name(); + case DB_NAME: + return getDb_name(); - case DEST_DB: - return getDest_db(); + case TBL_NAME: + return getTbl_name(); - case DEST_TABLE_NAME: - return getDest_table_name(); + case MAX_PARTS: + return getMax_parts(); } throw new IllegalStateException(); @@ -111238,16 +119360,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case PARTITION_SPECS: - return isSetPartitionSpecs(); - case SOURCE_DB: - return isSetSource_db(); - case SOURCE_TABLE_NAME: - return isSetSource_table_name(); - case DEST_DB: - return isSetDest_db(); - case DEST_TABLE_NAME: - return isSetDest_table_name(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case MAX_PARTS: + return isSetMax_parts(); } throw new IllegalStateException(); } @@ -111256,57 +119374,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partitions_args) - return this.equals((exchange_partitions_args)that); + if (that instanceof get_partitions_args) + return this.equals((get_partitions_args)that); return false; } - public boolean equals(exchange_partitions_args that) { + public boolean equals(get_partitions_args that) { if (that == null) return false; - boolean this_present_partitionSpecs = true && this.isSetPartitionSpecs(); - boolean that_present_partitionSpecs = true && that.isSetPartitionSpecs(); - if (this_present_partitionSpecs || that_present_partitionSpecs) { - if (!(this_present_partitionSpecs && that_present_partitionSpecs)) - return false; - if (!this.partitionSpecs.equals(that.partitionSpecs)) - return false; - } - - boolean this_present_source_db = true && this.isSetSource_db(); - boolean that_present_source_db = true && that.isSetSource_db(); - if (this_present_source_db || that_present_source_db) { - if (!(this_present_source_db && that_present_source_db)) - return false; - if (!this.source_db.equals(that.source_db)) - return false; - } - - boolean this_present_source_table_name = true && this.isSetSource_table_name(); - boolean that_present_source_table_name = true && that.isSetSource_table_name(); - if (this_present_source_table_name || that_present_source_table_name) { - if (!(this_present_source_table_name && that_present_source_table_name)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.source_table_name.equals(that.source_table_name)) + if (!this.db_name.equals(that.db_name)) return false; } - boolean this_present_dest_db = true && this.isSetDest_db(); - boolean that_present_dest_db = true && that.isSetDest_db(); - if (this_present_dest_db || that_present_dest_db) { - if (!(this_present_dest_db && that_present_dest_db)) + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) return false; - if (!this.dest_db.equals(that.dest_db)) + if (!this.tbl_name.equals(that.tbl_name)) return false; } - boolean this_present_dest_table_name = true && this.isSetDest_table_name(); - boolean that_present_dest_table_name = true && that.isSetDest_table_name(); - if (this_present_dest_table_name || that_present_dest_table_name) { - if (!(this_present_dest_table_name && that_present_dest_table_name)) + boolean this_present_max_parts = true; + boolean that_present_max_parts = true; + if (this_present_max_parts || that_present_max_parts) { + if (!(this_present_max_parts && that_present_max_parts)) return false; - if (!this.dest_table_name.equals(that.dest_table_name)) + if (this.max_parts != that.max_parts) return false; } @@ -111317,88 +119417,58 @@ public boolean equals(exchange_partitions_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_partitionSpecs = true && (isSetPartitionSpecs()); - list.add(present_partitionSpecs); - if (present_partitionSpecs) - list.add(partitionSpecs); - - boolean present_source_db = true && (isSetSource_db()); - list.add(present_source_db); - if (present_source_db) - list.add(source_db); - - boolean present_source_table_name = true && (isSetSource_table_name()); - list.add(present_source_table_name); - if (present_source_table_name) - list.add(source_table_name); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); - boolean present_dest_db = true && (isSetDest_db()); - list.add(present_dest_db); - if (present_dest_db) - list.add(dest_db); + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); - boolean present_dest_table_name = true && (isSetDest_table_name()); - list.add(present_dest_table_name); - if (present_dest_table_name) - list.add(dest_table_name); + boolean present_max_parts = true; + list.add(present_max_parts); + if (present_max_parts) + list.add(max_parts); return list.hashCode(); } @Override - public int compareTo(exchange_partitions_args other) { + public int compareTo(get_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(other.isSetPartitionSpecs()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPartitionSpecs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, other.partitionSpecs); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(other.isSetSource_db()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSource_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, other.source_db); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(other.isSetSource_table_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetSource_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, other.source_table_name); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(other.isSetDest_db()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetDest_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, other.dest_db); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(other.isSetDest_table_name()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } - if (isSetDest_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, other.dest_table_name); + if (isSetMax_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -111420,47 +119490,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partitions_args("); + StringBuilder sb = new StringBuilder("get_partitions_args("); boolean first = true; - sb.append("partitionSpecs:"); - if (this.partitionSpecs == null) { - sb.append("null"); - } else { - sb.append(this.partitionSpecs); - } - first = false; - if (!first) sb.append(", "); - sb.append("source_db:"); - if (this.source_db == null) { - sb.append("null"); - } else { - sb.append(this.source_db); - } - first = false; - if (!first) sb.append(", "); - sb.append("source_table_name:"); - if (this.source_table_name == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.source_table_name); + sb.append(this.db_name); } first = false; if (!first) sb.append(", "); - sb.append("dest_db:"); - if (this.dest_db == null) { + sb.append("tbl_name:"); + if (this.tbl_name == null) { sb.append("null"); } else { - sb.append(this.dest_db); + sb.append(this.tbl_name); } first = false; if (!first) sb.append(", "); - sb.append("dest_table_name:"); - if (this.dest_table_name == null) { - sb.append("null"); - } else { - sb.append(this.dest_table_name); - } + sb.append("max_parts:"); + sb.append(this.max_parts); first = false; sb.append(")"); return sb.toString(); @@ -111481,21 +119531,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class exchange_partitions_argsStandardSchemeFactory implements SchemeFactory { - public exchange_partitions_argsStandardScheme getScheme() { - return new exchange_partitions_argsStandardScheme(); + private static class get_partitions_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_argsStandardScheme getScheme() { + return new get_partitions_argsStandardScheme(); } } - private static class exchange_partitions_argsStandardScheme extends StandardScheme { + private static class get_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -111505,54 +119557,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions break; } switch (schemeField.id) { - case 1: // PARTITION_SPECS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map1476 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1476.size); - String _key1477; - String _val1478; - for (int _i1479 = 0; _i1479 < _map1476.size; ++_i1479) - { - _key1477 = iprot.readString(); - _val1478 = iprot.readString(); - struct.partitionSpecs.put(_key1477, _val1478); - } - iprot.readMapEnd(); - } - struct.setPartitionSpecsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SOURCE_DB - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.source_db = iprot.readString(); - struct.setSource_dbIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // SOURCE_TABLE_NAME + case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.source_table_name = iprot.readString(); - struct.setSource_table_nameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // DEST_DB + case 2: // TBL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dest_db = iprot.readString(); - struct.setDest_dbIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // DEST_TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dest_table_name = iprot.readString(); - struct.setDest_table_nameIsSet(true); + case 3: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -111566,169 +119590,105 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.partitionSpecs != null) { - oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter1480 : struct.partitionSpecs.entrySet()) - { - oprot.writeString(_iter1480.getKey()); - oprot.writeString(_iter1480.getValue()); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.source_db != null) { - oprot.writeFieldBegin(SOURCE_DB_FIELD_DESC); - oprot.writeString(struct.source_db); - oprot.writeFieldEnd(); - } - if (struct.source_table_name != null) { - oprot.writeFieldBegin(SOURCE_TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.source_table_name); - oprot.writeFieldEnd(); - } - if (struct.dest_db != null) { - oprot.writeFieldBegin(DEST_DB_FIELD_DESC); - oprot.writeString(struct.dest_db); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } - if (struct.dest_table_name != null) { - oprot.writeFieldBegin(DEST_TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.dest_table_name); + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI16(struct.max_parts); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class exchange_partitions_argsTupleSchemeFactory implements SchemeFactory { - public exchange_partitions_argsTupleScheme getScheme() { - return new exchange_partitions_argsTupleScheme(); + private static class get_partitions_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_argsTupleScheme getScheme() { + return new get_partitions_argsTupleScheme(); } } - private static class exchange_partitions_argsTupleScheme extends TupleScheme { + private static class get_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetPartitionSpecs()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetSource_db()) { + if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetSource_table_name()) { + if (struct.isSetMax_parts()) { optionals.set(2); } - if (struct.isSetDest_db()) { - optionals.set(3); - } - if (struct.isSetDest_table_name()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); - if (struct.isSetPartitionSpecs()) { - { - oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1481 : struct.partitionSpecs.entrySet()) - { - oprot.writeString(_iter1481.getKey()); - oprot.writeString(_iter1481.getValue()); - } - } - } - if (struct.isSetSource_db()) { - oprot.writeString(struct.source_db); - } - if (struct.isSetSource_table_name()) { - oprot.writeString(struct.source_table_name); + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); } - if (struct.isSetDest_db()) { - oprot.writeString(struct.dest_db); + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); } - if (struct.isSetDest_table_name()) { - oprot.writeString(struct.dest_table_name); + if (struct.isSetMax_parts()) { + oprot.writeI16(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map1482 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map1482.size); - String _key1483; - String _val1484; - for (int _i1485 = 0; _i1485 < _map1482.size; ++_i1485) - { - _key1483 = iprot.readString(); - _val1484 = iprot.readString(); - struct.partitionSpecs.put(_key1483, _val1484); - } - } - struct.setPartitionSpecsIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } if (incoming.get(1)) { - struct.source_db = iprot.readString(); - struct.setSource_dbIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.source_table_name = iprot.readString(); - struct.setSource_table_nameIsSet(true); - } - if (incoming.get(3)) { - struct.dest_db = iprot.readString(); - struct.setDest_dbIsSet(true); - } - if (incoming.get(4)) { - struct.dest_table_name = iprot.readString(); - struct.setDest_table_nameIsSet(true); + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class exchange_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_resultTupleSchemeFactory()); } private List success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required - private InvalidObjectException o3; // required - private InvalidInputException o4; // required + private NoSuchObjectException o1; // required + private MetaException o2; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"), - O4((short)4, "o4"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -111749,10 +119709,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; - case 4: // O4 - return O4; default: return null; } @@ -111803,36 +119759,28 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_result.class, metaDataMap); } - public exchange_partitions_result() { + public get_partitions_result() { } - public exchange_partitions_result( + public get_partitions_result( List success, - MetaException o1, - NoSuchObjectException o2, - InvalidObjectException o3, - InvalidInputException o4) + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; this.o1 = o1; this.o2 = o2; - this.o3 = o3; - this.o4 = o4; } /** * Performs a deep copy on other. */ - public exchange_partitions_result(exchange_partitions_result other) { + public get_partitions_result(get_partitions_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Partition other_element : other.success) { @@ -111841,21 +119789,15 @@ public exchange_partitions_result(exchange_partitions_result other) { this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new InvalidObjectException(other.o3); - } - if (other.isSetO4()) { - this.o4 = new InvalidInputException(other.o4); + this.o2 = new MetaException(other.o2); } } - public exchange_partitions_result deepCopy() { - return new exchange_partitions_result(this); + public get_partitions_result deepCopy() { + return new get_partitions_result(this); } @Override @@ -111863,8 +119805,6 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; - this.o4 = null; } public int getSuccessSize() { @@ -111905,11 +119845,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -111928,11 +119868,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -111951,52 +119891,6 @@ public void setO2IsSet(boolean value) { } } - public InvalidObjectException getO3() { - return this.o3; - } - - public void setO3(InvalidObjectException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - - public InvalidInputException getO4() { - return this.o4; - } - - public void setO4(InvalidInputException o4) { - this.o4 = o4; - } - - public void unsetO4() { - this.o4 = null; - } - - /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ - public boolean isSetO4() { - return this.o4 != null; - } - - public void setO4IsSet(boolean value) { - if (!value) { - this.o4 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -112011,7 +119905,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); } break; @@ -112019,23 +119913,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((InvalidObjectException)value); - } - break; - - case O4: - if (value == null) { - unsetO4(); - } else { - setO4((InvalidInputException)value); + setO2((MetaException)value); } break; @@ -112053,12 +119931,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - - case O4: - return getO4(); - } throw new IllegalStateException(); } @@ -112076,10 +119948,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); - case O4: - return isSetO4(); } throw new IllegalStateException(); } @@ -112088,12 +119956,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partitions_result) - return this.equals((exchange_partitions_result)that); + if (that instanceof get_partitions_result) + return this.equals((get_partitions_result)that); return false; } - public boolean equals(exchange_partitions_result that) { + public boolean equals(get_partitions_result that) { if (that == null) return false; @@ -112124,24 +119992,6 @@ public boolean equals(exchange_partitions_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - - boolean this_present_o4 = true && this.isSetO4(); - boolean that_present_o4 = true && that.isSetO4(); - if (this_present_o4 || that_present_o4) { - if (!(this_present_o4 && that_present_o4)) - return false; - if (!this.o4.equals(that.o4)) - return false; - } - return true; } @@ -112164,21 +120014,11 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - - boolean present_o4 = true && (isSetO4()); - list.add(present_o4); - if (present_o4) - list.add(o4); - return list.hashCode(); } @Override - public int compareTo(exchange_partitions_result other) { + public int compareTo(get_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -112215,26 +120055,6 @@ public int compareTo(exchange_partitions_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -112252,7 +120072,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partitions_result("); + StringBuilder sb = new StringBuilder("get_partitions_result("); boolean first = true; sb.append("success:"); @@ -112278,22 +120098,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; - if (!first) sb.append(", "); - sb.append("o4:"); - if (this.o4 == null) { - sb.append("null"); - } else { - sb.append(this.o4); - } - first = false; sb.append(")"); return sb.toString(); } @@ -112319,15 +120123,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partitions_resultStandardSchemeFactory implements SchemeFactory { - public exchange_partitions_resultStandardScheme getScheme() { - return new exchange_partitions_resultStandardScheme(); + private static class get_partitions_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_resultStandardScheme getScheme() { + return new get_partitions_resultStandardScheme(); } } - private static class exchange_partitions_resultStandardScheme extends StandardScheme { + private static class get_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -112340,14 +120144,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1486 = iprot.readListBegin(); - struct.success = new ArrayList(_list1486.size); - Partition _elem1487; - for (int _i1488 = 0; _i1488 < _list1486.size; ++_i1488) + org.apache.thrift.protocol.TList _list1582 = iprot.readListBegin(); + struct.success = new ArrayList(_list1582.size); + Partition _elem1583; + for (int _i1584 = 0; _i1584 < _list1582.size; ++_i1584) { - _elem1487 = new Partition(); - _elem1487.read(iprot); - struct.success.add(_elem1487); + _elem1583 = new Partition(); + _elem1583.read(iprot); + struct.success.add(_elem1583); } iprot.readListEnd(); } @@ -112358,7 +120162,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -112367,31 +120171,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new InvalidObjectException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // O4 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o4 = new InvalidInputException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -112401,7 +120187,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -112409,9 +120195,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1489 : struct.success) + for (Partition _iter1585 : struct.success) { - _iter1489.write(oprot); + _iter1585.write(oprot); } oprot.writeListEnd(); } @@ -112427,32 +120213,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o4 != null) { - oprot.writeFieldBegin(O4_FIELD_DESC); - struct.o4.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class exchange_partitions_resultTupleSchemeFactory implements SchemeFactory { - public exchange_partitions_resultTupleScheme getScheme() { - return new exchange_partitions_resultTupleScheme(); + private static class get_partitions_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_resultTupleScheme getScheme() { + return new get_partitions_resultTupleScheme(); } } - private static class exchange_partitions_resultTupleScheme extends TupleScheme { + private static class get_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -112464,19 +120240,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - if (struct.isSetO4()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1490 : struct.success) + for (Partition _iter1586 : struct.success) { - _iter1490.write(oprot); + _iter1586.write(oprot); } } } @@ -112486,85 +120256,57 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } - if (struct.isSetO4()) { - struct.o4.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1491 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1491.size); - Partition _elem1492; - for (int _i1493 = 0; _i1493 < _list1491.size; ++_i1493) + org.apache.thrift.protocol.TList _list1587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1587.size); + Partition _elem1588; + for (int _i1589 = 0; _i1589 < _list1587.size; ++_i1589) { - _elem1492 = new Partition(); - _elem1492.read(iprot); - struct.success.add(_elem1492); + _elem1588 = new Partition(); + _elem1588.read(iprot); + struct.success.add(_elem1588); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new InvalidObjectException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } - if (incoming.get(4)) { - struct.o4 = new InvalidInputException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_with_auth_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_req_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_with_auth_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_with_auth_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_req_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private List part_vals; // required - private String user_name; // required - private List group_names; // required + private PartitionsRequest req; // 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 { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"), - USER_NAME((short)4, "user_name"), - GROUP_NAMES((short)5, "group_names"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -112579,16 +120321,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // USER_NAME - return USER_NAME; - case 5: // GROUP_NAMES - return GROUP_NAMES; + case 1: // REQ + return REQ; default: return null; } @@ -112632,260 +120366,70 @@ public String getFieldName() { 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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_req_args.class, metaDataMap); } - public get_partition_with_auth_args() { + public get_partitions_req_args() { } - public get_partition_with_auth_args( - String db_name, - String tbl_name, - List part_vals, - String user_name, - List group_names) + public get_partitions_req_args( + PartitionsRequest req) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_vals = part_vals; - this.user_name = user_name; - this.group_names = group_names; + this.req = req; } /** * Performs a deep copy on other. */ - public get_partition_with_auth_args(get_partition_with_auth_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; - } - if (other.isSetUser_name()) { - this.user_name = other.user_name; - } - if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); - this.group_names = __this__group_names; + public get_partitions_req_args(get_partitions_req_args other) { + if (other.isSetReq()) { + this.req = new PartitionsRequest(other.req); } } - public get_partition_with_auth_args deepCopy() { - return new get_partition_with_auth_args(this); + public get_partitions_req_args deepCopy() { + return new get_partitions_req_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_vals = null; - this.user_name = null; - this.group_names = null; - } - - public String getDb_name() { - return this.db_name; - } - - public void setDb_name(String db_name) { - this.db_name = db_name; - } - - public void unsetDb_name() { - this.db_name = null; - } - - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; - } - - public void setDb_nameIsSet(boolean value) { - if (!value) { - this.db_name = null; - } - } - - public String getTbl_name() { - return this.tbl_name; - } - - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; - } - - public void unsetTbl_name() { - this.tbl_name = null; - } - - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; - } - - public void setTbl_nameIsSet(boolean value) { - if (!value) { - this.tbl_name = null; - } - } - - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); - } - - public List getPart_vals() { - return this.part_vals; - } - - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; - } - - public void unsetPart_vals() { - this.part_vals = null; - } - - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; - } - - public void setPart_valsIsSet(boolean value) { - if (!value) { - this.part_vals = null; - } - } - - public String getUser_name() { - return this.user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public void unsetUser_name() { - this.user_name = null; - } - - /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean value) { - if (!value) { - this.user_name = null; - } - } - - public int getGroup_namesSize() { - return (this.group_names == null) ? 0 : this.group_names.size(); - } - - public java.util.Iterator getGroup_namesIterator() { - return (this.group_names == null) ? null : this.group_names.iterator(); - } - - public void addToGroup_names(String elem) { - if (this.group_names == null) { - this.group_names = new ArrayList(); - } - this.group_names.add(elem); + this.req = null; } - public List getGroup_names() { - return this.group_names; + public PartitionsRequest getReq() { + return this.req; } - public void setGroup_names(List group_names) { - this.group_names = group_names; + public void setReq(PartitionsRequest req) { + this.req = req; } - public void unsetGroup_names() { - this.group_names = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ - public boolean isSetGroup_names() { - return this.group_names != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setGroup_namesIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.group_names = null; + this.req = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: - if (value == null) { - unsetDb_name(); - } else { - setDb_name((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case PART_VALS: - if (value == null) { - unsetPart_vals(); - } else { - setPart_vals((List)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUser_name(); - } else { - setUser_name((String)value); - } - break; - - case GROUP_NAMES: + case REQ: if (value == null) { - unsetGroup_names(); + unsetReq(); } else { - setGroup_names((List)value); + setReq((PartitionsRequest)value); } break; @@ -112894,20 +120438,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case PART_VALS: - return getPart_vals(); - - case USER_NAME: - return getUser_name(); - - case GROUP_NAMES: - return getGroup_names(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -112920,16 +120452,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case USER_NAME: - return isSetUser_name(); - case GROUP_NAMES: - return isSetGroup_names(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -112938,57 +120462,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_with_auth_args) - return this.equals((get_partition_with_auth_args)that); + if (that instanceof get_partitions_req_args) + return this.equals((get_partitions_req_args)that); return false; } - public boolean equals(get_partition_with_auth_args that) { + public boolean equals(get_partitions_req_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) - return false; - if (!this.part_vals.equals(that.part_vals)) - return false; - } - - boolean this_present_user_name = true && this.isSetUser_name(); - boolean that_present_user_name = true && that.isSetUser_name(); - if (this_present_user_name || that_present_user_name) { - if (!(this_present_user_name && that_present_user_name)) - return false; - if (!this.user_name.equals(that.user_name)) - return false; - } - - boolean this_present_group_names = true && this.isSetGroup_names(); - boolean that_present_group_names = true && that.isSetGroup_names(); - if (this_present_group_names || that_present_group_names) { - if (!(this_present_group_names && that_present_group_names)) + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (!this.group_names.equals(that.group_names)) + if (!this.req.equals(that.req)) return false; } @@ -112999,88 +120487,28 @@ public boolean equals(get_partition_with_auth_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); - - boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); - if (present_user_name) - list.add(user_name); - - boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); - if (present_group_names) - list.add(group_names); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(get_partition_with_auth_args other) { + public int compareTo(get_partitions_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -113102,46 +120530,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_with_auth_args("); + StringBuilder sb = new StringBuilder("get_partitions_req_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { - sb.append("null"); - } else { - sb.append(this.part_vals); - } - first = false; - if (!first) sb.append(", "); - sb.append("user_name:"); - if (this.user_name == null) { - sb.append("null"); - } else { - sb.append(this.user_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("group_names:"); - if (this.group_names == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.group_names); + sb.append(this.req); } first = false; sb.append(")"); @@ -113151,6 +120547,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (req != null) { + req.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -113169,15 +120568,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_with_auth_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_with_auth_argsStandardScheme getScheme() { - return new get_partition_with_auth_argsStandardScheme(); + private static class get_partitions_req_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_req_argsStandardScheme getScheme() { + return new get_partitions_req_argsStandardScheme(); } } - private static class get_partition_with_auth_argsStandardScheme extends StandardScheme { + private static class get_partitions_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -113187,62 +120586,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1494 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1494.size); - String _elem1495; - for (int _i1496 = 0; _i1496 < _list1494.size; ++_i1496) - { - _elem1495 = iprot.readString(); - struct.part_vals.add(_elem1495); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // USER_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // GROUP_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1497 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1497.size); - String _elem1498; - for (int _i1499 = 0; _i1499 < _list1497.size; ++_i1499) - { - _elem1498 = iprot.readString(); - struct.group_names.add(_elem1498); - } - iprot.readListEnd(); - } - struct.setGroup_namesIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new PartitionsRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -113256,47 +120604,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1500 : struct.part_vals) - { - oprot.writeString(_iter1500); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.user_name); - oprot.writeFieldEnd(); - } - if (struct.group_names != null) { - oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1501 : struct.group_names) - { - oprot.writeString(_iter1501); - } - oprot.writeListEnd(); - } + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -113305,112 +120619,43 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with } - private static class get_partition_with_auth_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_with_auth_argsTupleScheme getScheme() { - return new get_partition_with_auth_argsTupleScheme(); + private static class get_partitions_req_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_req_argsTupleScheme getScheme() { + return new get_partitions_req_argsTupleScheme(); } } - private static class get_partition_with_auth_argsTupleScheme extends TupleScheme { + private static class get_partitions_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetPart_vals()) { - optionals.set(2); - } - if (struct.isSetUser_name()) { - optionals.set(3); - } - if (struct.isSetGroup_names()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter1502 : struct.part_vals) - { - oprot.writeString(_iter1502); - } - } - } - if (struct.isSetUser_name()) { - oprot.writeString(struct.user_name); - } - if (struct.isSetGroup_names()) { - { - oprot.writeI32(struct.group_names.size()); - for (String _iter1503 : struct.group_names) - { - oprot.writeString(_iter1503); - } - } + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list1504 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1504.size); - String _elem1505; - for (int _i1506 = 0; _i1506 < _list1504.size; ++_i1506) - { - _elem1505 = iprot.readString(); - struct.part_vals.add(_elem1505); - } - } - struct.setPart_valsIsSet(true); - } - if (incoming.get(3)) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list1507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1507.size); - String _elem1508; - for (int _i1509 = 0; _i1509 < _list1507.size; ++_i1509) - { - _elem1508 = iprot.readString(); - struct.group_names.add(_elem1508); - } - } - struct.setGroup_namesIsSet(true); + struct.req = new PartitionsRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_with_auth_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -113418,13 +120663,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_with_auth_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_with_auth_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_req_resultTupleSchemeFactory()); } - private Partition success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private PartitionsResponse success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // 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 { @@ -113495,22 +120740,22 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionsResponse.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_req_result.class, metaDataMap); } - public get_partition_with_auth_result() { + public get_partitions_req_result() { } - public get_partition_with_auth_result( - Partition success, - MetaException o1, - NoSuchObjectException o2) + public get_partitions_req_result( + PartitionsResponse success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; @@ -113521,20 +120766,20 @@ public get_partition_with_auth_result( /** * Performs a deep copy on other. */ - public get_partition_with_auth_result(get_partition_with_auth_result other) { + public get_partitions_req_result(get_partitions_req_result other) { if (other.isSetSuccess()) { - this.success = new Partition(other.success); + this.success = new PartitionsResponse(other.success); } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_partition_with_auth_result deepCopy() { - return new get_partition_with_auth_result(this); + public get_partitions_req_result deepCopy() { + return new get_partitions_req_result(this); } @Override @@ -113544,11 +120789,11 @@ public void clear() { this.o2 = null; } - public Partition getSuccess() { + public PartitionsResponse getSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(PartitionsResponse success) { this.success = success; } @@ -113567,11 +120812,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -113590,11 +120835,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -113619,7 +120864,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((PartitionsResponse)value); } break; @@ -113627,7 +120872,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); } break; @@ -113635,7 +120880,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -113678,12 +120923,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_with_auth_result) - return this.equals((get_partition_with_auth_result)that); + if (that instanceof get_partitions_req_result) + return this.equals((get_partitions_req_result)that); return false; } - public boolean equals(get_partition_with_auth_result that) { + public boolean equals(get_partitions_req_result that) { if (that == null) return false; @@ -113740,7 +120985,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_with_auth_result other) { + public int compareTo(get_partitions_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -113794,7 +121039,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_with_auth_result("); + StringBuilder sb = new StringBuilder("get_partitions_req_result("); boolean first = true; sb.append("success:"); @@ -113848,15 +121093,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_with_auth_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_with_auth_resultStandardScheme getScheme() { - return new get_partition_with_auth_resultStandardScheme(); + private static class get_partitions_req_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_req_resultStandardScheme getScheme() { + return new get_partitions_req_resultStandardScheme(); } } - private static class get_partition_with_auth_resultStandardScheme extends StandardScheme { + private static class get_partitions_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -113868,7 +121113,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); + struct.success = new PartitionsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -113877,7 +121122,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -113886,7 +121131,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -113902,7 +121147,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -113927,16 +121172,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with } - private static class get_partition_with_auth_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_with_auth_resultTupleScheme getScheme() { - return new get_partition_with_auth_resultTupleScheme(); + private static class get_partitions_req_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_req_resultTupleScheme getScheme() { + return new get_partitions_req_resultTupleScheme(); } } - private static class get_partition_with_auth_resultTupleScheme extends TupleScheme { + private static class get_partitions_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -113961,21 +121206,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new Partition(); + struct.success = new PartitionsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -113984,28 +121229,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_with_auth_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_with_auth_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String part_name; // required + private short max_parts; // required + private String user_name; // required + private List group_names; // 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 { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_NAME((short)3, "part_name"); + MAX_PARTS((short)3, "max_parts"), + USER_NAME((short)4, "user_name"), + GROUP_NAMES((short)5, "group_names"); private static final Map byName = new HashMap(); @@ -114024,8 +121275,12 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_NAME - return PART_NAME; + case 3: // MAX_PARTS + return MAX_PARTS; + case 4: // USER_NAME + return USER_NAME; + case 5: // GROUP_NAMES + return GROUP_NAMES; default: return null; } @@ -114066,6 +121321,8 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_PARTS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -114073,50 +121330,71 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_args.class, metaDataMap); } - public get_partition_by_name_args() { + public get_partitions_with_auth_args() { + this.max_parts = (short)-1; + } - public get_partition_by_name_args( + public get_partitions_with_auth_args( String db_name, String tbl_name, - String part_name) + short max_parts, + String user_name, + List group_names) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_name = part_name; + this.max_parts = max_parts; + setMax_partsIsSet(true); + this.user_name = user_name; + this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partition_by_name_args(get_partition_by_name_args other) { + public get_partitions_with_auth_args(get_partitions_with_auth_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_name()) { - this.part_name = other.part_name; + this.max_parts = other.max_parts; + if (other.isSetUser_name()) { + this.user_name = other.user_name; + } + if (other.isSetGroup_names()) { + List __this__group_names = new ArrayList(other.group_names); + this.group_names = __this__group_names; } } - public get_partition_by_name_args deepCopy() { - return new get_partition_by_name_args(this); + public get_partitions_with_auth_args deepCopy() { + return new get_partitions_with_auth_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_name = null; + this.max_parts = (short)-1; + + this.user_name = null; + this.group_names = null; } public String getDb_name() { @@ -114165,26 +121443,86 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getPart_name() { - return this.part_name; + public short getMax_parts() { + return this.max_parts; } - public void setPart_name(String part_name) { - this.part_name = part_name; + public void setMax_parts(short max_parts) { + this.max_parts = max_parts; + setMax_partsIsSet(true); } - public void unsetPart_name() { - this.part_name = null; + public void unsetMax_parts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_parts() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); } - public void setPart_nameIsSet(boolean value) { + public void setMax_partsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); + } + + public String getUser_name() { + return this.user_name; + } + + public void setUser_name(String user_name) { + this.user_name = user_name; + } + + public void unsetUser_name() { + this.user_name = null; + } + + /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUser_name() { + return this.user_name != null; + } + + public void setUser_nameIsSet(boolean value) { if (!value) { - this.part_name = null; + this.user_name = null; + } + } + + public int getGroup_namesSize() { + return (this.group_names == null) ? 0 : this.group_names.size(); + } + + public java.util.Iterator getGroup_namesIterator() { + return (this.group_names == null) ? null : this.group_names.iterator(); + } + + public void addToGroup_names(String elem) { + if (this.group_names == null) { + this.group_names = new ArrayList(); + } + this.group_names.add(elem); + } + + public List getGroup_names() { + return this.group_names; + } + + public void setGroup_names(List group_names) { + this.group_names = group_names; + } + + public void unsetGroup_names() { + this.group_names = null; + } + + /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ + public boolean isSetGroup_names() { + return this.group_names != null; + } + + public void setGroup_namesIsSet(boolean value) { + if (!value) { + this.group_names = null; } } @@ -114206,11 +121544,27 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_NAME: + case MAX_PARTS: if (value == null) { - unsetPart_name(); + unsetMax_parts(); } else { - setPart_name((String)value); + setMax_parts((Short)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUser_name(); + } else { + setUser_name((String)value); + } + break; + + case GROUP_NAMES: + if (value == null) { + unsetGroup_names(); + } else { + setGroup_names((List)value); } break; @@ -114225,8 +121579,14 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_NAME: - return getPart_name(); + case MAX_PARTS: + return getMax_parts(); + + case USER_NAME: + return getUser_name(); + + case GROUP_NAMES: + return getGroup_names(); } throw new IllegalStateException(); @@ -114243,8 +121603,12 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_NAME: - return isSetPart_name(); + case MAX_PARTS: + return isSetMax_parts(); + case USER_NAME: + return isSetUser_name(); + case GROUP_NAMES: + return isSetGroup_names(); } throw new IllegalStateException(); } @@ -114253,12 +121617,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_by_name_args) - return this.equals((get_partition_by_name_args)that); + if (that instanceof get_partitions_with_auth_args) + return this.equals((get_partitions_with_auth_args)that); return false; } - public boolean equals(get_partition_by_name_args that) { + public boolean equals(get_partitions_with_auth_args that) { if (that == null) return false; @@ -114280,12 +121644,30 @@ public boolean equals(get_partition_by_name_args that) { return false; } - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) + boolean this_present_max_parts = true; + boolean that_present_max_parts = true; + if (this_present_max_parts || that_present_max_parts) { + if (!(this_present_max_parts && that_present_max_parts)) return false; - if (!this.part_name.equals(that.part_name)) + if (this.max_parts != that.max_parts) + return false; + } + + boolean this_present_user_name = true && this.isSetUser_name(); + boolean that_present_user_name = true && that.isSetUser_name(); + if (this_present_user_name || that_present_user_name) { + if (!(this_present_user_name && that_present_user_name)) + return false; + if (!this.user_name.equals(that.user_name)) + return false; + } + + boolean this_present_group_names = true && this.isSetGroup_names(); + boolean that_present_group_names = true && that.isSetGroup_names(); + if (this_present_group_names || that_present_group_names) { + if (!(this_present_group_names && that_present_group_names)) + return false; + if (!this.group_names.equals(that.group_names)) return false; } @@ -114306,16 +121688,26 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); + boolean present_max_parts = true; + list.add(present_max_parts); + if (present_max_parts) + list.add(max_parts); + + boolean present_user_name = true && (isSetUser_name()); + list.add(present_user_name); + if (present_user_name) + list.add(user_name); + + boolean present_group_names = true && (isSetGroup_names()); + list.add(present_group_names); + if (present_group_names) + list.add(group_names); return list.hashCode(); } @Override - public int compareTo(get_partition_by_name_args other) { + public int compareTo(get_partitions_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -114342,12 +121734,32 @@ public int compareTo(get_partition_by_name_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (isSetMax_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGroup_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); if (lastComparison != 0) { return lastComparison; } @@ -114369,7 +121781,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_by_name_args("); + StringBuilder sb = new StringBuilder("get_partitions_with_auth_args("); boolean first = true; sb.append("db_name:"); @@ -114388,11 +121800,23 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_name:"); - if (this.part_name == null) { + sb.append("max_parts:"); + sb.append(this.max_parts); + first = false; + if (!first) sb.append(", "); + sb.append("user_name:"); + if (this.user_name == null) { sb.append("null"); } else { - sb.append(this.part_name); + sb.append(this.user_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("group_names:"); + if (this.group_names == null) { + sb.append("null"); + } else { + sb.append(this.group_names); } first = false; sb.append(")"); @@ -114414,21 +121838,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_by_name_argsStandardScheme getScheme() { - return new get_partition_by_name_argsStandardScheme(); + private static class get_partitions_with_auth_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_argsStandardScheme getScheme() { + return new get_partitions_with_auth_argsStandardScheme(); } } - private static class get_partition_by_name_argsStandardScheme extends StandardScheme { + private static class get_partitions_with_auth_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -114454,10 +121880,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_NAME + case 3: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // USER_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1590 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1590.size); + String _elem1591; + for (int _i1592 = 0; _i1592 < _list1590.size; ++_i1592) + { + _elem1591 = iprot.readString(); + struct.group_names.add(_elem1591); + } + iprot.readListEnd(); + } + struct.setGroup_namesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -114471,7 +121923,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -114485,9 +121937,24 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_n oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI16(struct.max_parts); + oprot.writeFieldEnd(); + if (struct.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.user_name); + oprot.writeFieldEnd(); + } + if (struct.group_names != null) { + oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); + for (String _iter1593 : struct.group_names) + { + oprot.writeString(_iter1593); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -114496,16 +121963,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_n } - private static class get_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_by_name_argsTupleScheme getScheme() { - return new get_partition_by_name_argsTupleScheme(); + private static class get_partitions_with_auth_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_argsTupleScheme getScheme() { + return new get_partitions_with_auth_argsTupleScheme(); } } - private static class get_partition_by_name_argsTupleScheme extends TupleScheme { + private static class get_partitions_with_auth_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -114514,25 +121981,43 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_name()) { + if (struct.isSetMax_parts()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetUser_name()) { + optionals.set(3); + } + if (struct.isSetGroup_names()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); + if (struct.isSetMax_parts()) { + oprot.writeI16(struct.max_parts); + } + if (struct.isSetUser_name()) { + oprot.writeString(struct.user_name); + } + if (struct.isSetGroup_names()) { + { + oprot.writeI32(struct.group_names.size()); + for (String _iter1594 : struct.group_names) + { + oprot.writeString(_iter1594); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -114542,30 +122027,47 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_nam struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); + } + if (incoming.get(3)) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } + if (incoming.get(4)) { + { + org.apache.thrift.protocol.TList _list1595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1595.size); + String _elem1596; + for (int _i1597 = 0; _i1597 < _list1595.size; ++_i1597) + { + _elem1596 = iprot.readString(); + struct.group_names.add(_elem1596); + } + } + struct.setGroup_namesIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_with_auth_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_with_auth_resultTupleSchemeFactory()); } - private Partition success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private List success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // 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 { @@ -114636,22 +122138,23 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + 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, Partition.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_result.class, metaDataMap); } - public get_partition_by_name_result() { + public get_partitions_with_auth_result() { } - public get_partition_by_name_result( - Partition success, - MetaException o1, - NoSuchObjectException o2) + public get_partitions_with_auth_result( + List success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; @@ -114662,20 +122165,24 @@ public get_partition_by_name_result( /** * Performs a deep copy on other. */ - public get_partition_by_name_result(get_partition_by_name_result other) { + public get_partitions_with_auth_result(get_partitions_with_auth_result other) { if (other.isSetSuccess()) { - this.success = new Partition(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } + this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_partition_by_name_result deepCopy() { - return new get_partition_by_name_result(this); + public get_partitions_with_auth_result deepCopy() { + return new get_partitions_with_auth_result(this); } @Override @@ -114685,11 +122192,26 @@ public void clear() { this.o2 = null; } - public Partition getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Partition elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(List success) { this.success = success; } @@ -114708,11 +122230,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -114731,11 +122253,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -114760,7 +122282,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((List)value); } break; @@ -114768,7 +122290,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); } break; @@ -114776,7 +122298,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -114819,12 +122341,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_by_name_result) - return this.equals((get_partition_by_name_result)that); + if (that instanceof get_partitions_with_auth_result) + return this.equals((get_partitions_with_auth_result)that); return false; } - public boolean equals(get_partition_by_name_result that) { + public boolean equals(get_partitions_with_auth_result that) { if (that == null) return false; @@ -114881,7 +122403,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_by_name_result other) { + public int compareTo(get_partitions_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -114935,7 +122457,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_by_name_result("); + StringBuilder sb = new StringBuilder("get_partitions_with_auth_result("); boolean first = true; sb.append("success:"); @@ -114968,9 +122490,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -114989,15 +122508,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_by_name_resultStandardScheme getScheme() { - return new get_partition_by_name_resultStandardScheme(); + private static class get_partitions_with_auth_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_resultStandardScheme getScheme() { + return new get_partitions_with_auth_resultStandardScheme(); } } - private static class get_partition_by_name_resultStandardScheme extends StandardScheme { + private static class get_partitions_with_auth_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -115008,9 +122527,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1598 = iprot.readListBegin(); + struct.success = new ArrayList(_list1598.size); + Partition _elem1599; + for (int _i1600 = 0; _i1600 < _list1598.size; ++_i1600) + { + _elem1599 = new Partition(); + _elem1599.read(iprot); + struct.success.add(_elem1599); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -115018,7 +122547,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -115027,7 +122556,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -115043,13 +122572,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter1601 : struct.success) + { + _iter1601.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -115068,16 +122604,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_n } - private static class get_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_by_name_resultTupleScheme getScheme() { - return new get_partition_by_name_resultTupleScheme(); + private static class get_partitions_with_auth_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_resultTupleScheme getScheme() { + return new get_partitions_with_auth_resultTupleScheme(); } } - private static class get_partition_by_name_resultTupleScheme extends TupleScheme { + private static class get_partitions_with_auth_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -115091,7 +122627,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Partition _iter1602 : struct.success) + { + _iter1602.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -115102,21 +122644,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list1603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1603.size); + Partition _elem1604; + for (int _i1605 = 0; _i1605 < _list1603.size; ++_i1605) + { + _elem1604 = new Partition(); + _elem1604.read(iprot); + struct.success.add(_elem1604); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -115125,22 +122676,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_nam } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_pspec_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I32, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_pspec_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_pspec_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private short max_parts; // required + private int max_parts; // 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 { @@ -115217,20 +122768,20 @@ public String getFieldName() { tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_args.class, metaDataMap); } - public get_partitions_args() { - this.max_parts = (short)-1; + public get_partitions_pspec_args() { + this.max_parts = -1; } - public get_partitions_args( + public get_partitions_pspec_args( String db_name, String tbl_name, - short max_parts) + int max_parts) { this(); this.db_name = db_name; @@ -115242,7 +122793,7 @@ public get_partitions_args( /** * Performs a deep copy on other. */ - public get_partitions_args(get_partitions_args other) { + public get_partitions_pspec_args(get_partitions_pspec_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -115253,15 +122804,15 @@ public get_partitions_args(get_partitions_args other) { this.max_parts = other.max_parts; } - public get_partitions_args deepCopy() { - return new get_partitions_args(this); + public get_partitions_pspec_args deepCopy() { + return new get_partitions_pspec_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.max_parts = (short)-1; + this.max_parts = -1; } @@ -115311,11 +122862,11 @@ public void setTbl_nameIsSet(boolean value) { } } - public short getMax_parts() { + public int getMax_parts() { return this.max_parts; } - public void setMax_parts(short max_parts) { + public void setMax_parts(int max_parts) { this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -115355,7 +122906,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetMax_parts(); } else { - setMax_parts((Short)value); + setMax_parts((Integer)value); } break; @@ -115398,12 +122949,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_args) - return this.equals((get_partitions_args)that); + if (that instanceof get_partitions_pspec_args) + return this.equals((get_partitions_pspec_args)that); return false; } - public boolean equals(get_partitions_args that) { + public boolean equals(get_partitions_pspec_args that) { if (that == null) return false; @@ -115460,7 +123011,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_args other) { + public int compareTo(get_partitions_pspec_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -115514,7 +123065,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_args("); + StringBuilder sb = new StringBuilder("get_partitions_pspec_args("); boolean first = true; sb.append("db_name:"); @@ -115563,15 +123114,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_argsStandardScheme getScheme() { - return new get_partitions_argsStandardScheme(); + private static class get_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_pspec_argsStandardScheme getScheme() { + return new get_partitions_pspec_argsStandardScheme(); } } - private static class get_partitions_argsStandardScheme extends StandardScheme { + private static class get_partitions_pspec_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -115598,8 +123149,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args } break; case 3: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_parts = iprot.readI16(); + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.max_parts = iprot.readI32(); struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -115614,7 +123165,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -115629,7 +123180,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_arg oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI16(struct.max_parts); + oprot.writeI32(struct.max_parts); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -115637,16 +123188,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_arg } - private static class get_partitions_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_argsTupleScheme getScheme() { - return new get_partitions_argsTupleScheme(); + private static class get_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_pspec_argsTupleScheme getScheme() { + return new get_partitions_pspec_argsTupleScheme(); } } - private static class get_partitions_argsTupleScheme extends TupleScheme { + private static class get_partitions_pspec_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -115666,12 +123217,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args oprot.writeString(struct.tbl_name); } if (struct.isSetMax_parts()) { - oprot.writeI16(struct.max_parts); + oprot.writeI32(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -115683,7 +123234,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.max_parts = iprot.readI16(); + struct.max_parts = iprot.readI32(); struct.setMax_partsIsSet(true); } } @@ -115691,8 +123242,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_pspec_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -115700,11 +123251,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_pspec_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_pspec_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -115778,20 +123329,20 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 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, Partition.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionSpec.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_result.class, metaDataMap); } - public get_partitions_result() { + public get_partitions_pspec_result() { } - public get_partitions_result( - List success, + public get_partitions_pspec_result( + List success, NoSuchObjectException o1, MetaException o2) { @@ -115804,11 +123355,11 @@ public get_partitions_result( /** * Performs a deep copy on other. */ - public get_partitions_result(get_partitions_result other) { + public get_partitions_pspec_result(get_partitions_pspec_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (PartitionSpec other_element : other.success) { + __this__success.add(new PartitionSpec(other_element)); } this.success = __this__success; } @@ -115820,8 +123371,8 @@ public get_partitions_result(get_partitions_result other) { } } - public get_partitions_result deepCopy() { - return new get_partitions_result(this); + public get_partitions_pspec_result deepCopy() { + return new get_partitions_pspec_result(this); } @Override @@ -115835,22 +123386,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Partition elem) { + public void addToSuccess(PartitionSpec elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -115921,7 +123472,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -115980,12 +123531,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_result) - return this.equals((get_partitions_result)that); + if (that instanceof get_partitions_pspec_result) + return this.equals((get_partitions_pspec_result)that); return false; } - public boolean equals(get_partitions_result that) { + public boolean equals(get_partitions_pspec_result that) { if (that == null) return false; @@ -116042,7 +123593,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_result other) { + public int compareTo(get_partitions_pspec_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -116096,7 +123647,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_result("); + StringBuilder sb = new StringBuilder("get_partitions_pspec_result("); boolean first = true; sb.append("success:"); @@ -116147,15 +123698,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_resultStandardScheme getScheme() { - return new get_partitions_resultStandardScheme(); + private static class get_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_pspec_resultStandardScheme getScheme() { + return new get_partitions_pspec_resultStandardScheme(); } } - private static class get_partitions_resultStandardScheme extends StandardScheme { + private static class get_partitions_pspec_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -116168,14 +123719,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1510 = iprot.readListBegin(); - struct.success = new ArrayList(_list1510.size); - Partition _elem1511; - for (int _i1512 = 0; _i1512 < _list1510.size; ++_i1512) + org.apache.thrift.protocol.TList _list1606 = iprot.readListBegin(); + struct.success = new ArrayList(_list1606.size); + PartitionSpec _elem1607; + for (int _i1608 = 0; _i1608 < _list1606.size; ++_i1608) { - _elem1511 = new Partition(); - _elem1511.read(iprot); - struct.success.add(_elem1511); + _elem1607 = new PartitionSpec(); + _elem1607.read(iprot); + struct.success.add(_elem1607); } iprot.readListEnd(); } @@ -116211,7 +123762,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -116219,9 +123770,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1513 : struct.success) + for (PartitionSpec _iter1609 : struct.success) { - _iter1513.write(oprot); + _iter1609.write(oprot); } oprot.writeListEnd(); } @@ -116243,16 +123794,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res } - private static class get_partitions_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_resultTupleScheme getScheme() { - return new get_partitions_resultTupleScheme(); + private static class get_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_pspec_resultTupleScheme getScheme() { + return new get_partitions_pspec_resultTupleScheme(); } } - private static class get_partitions_resultTupleScheme extends TupleScheme { + private static class get_partitions_pspec_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -116268,9 +123819,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1514 : struct.success) + for (PartitionSpec _iter1610 : struct.success) { - _iter1514.write(oprot); + _iter1610.write(oprot); } } } @@ -116283,19 +123834,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1515.size); - Partition _elem1516; - for (int _i1517 = 0; _i1517 < _list1515.size; ++_i1517) + org.apache.thrift.protocol.TList _list1611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1611.size); + PartitionSpec _elem1612; + for (int _i1613 = 0; _i1613 < _list1611.size; ++_i1613) { - _elem1516 = new Partition(); - _elem1516.read(iprot); - struct.success.add(_elem1516); + _elem1612 = new PartitionSpec(); + _elem1612.read(iprot); + struct.success.add(_elem1612); } } struct.setSuccessIsSet(true); @@ -116315,34 +123866,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); - private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_with_auth_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_with_auth_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private short max_parts; // required - private String user_name; // required - private List group_names; // 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 { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - MAX_PARTS((short)3, "max_parts"), - USER_NAME((short)4, "user_name"), - GROUP_NAMES((short)5, "group_names"); + MAX_PARTS((short)3, "max_parts"); private static final Map byName = new HashMap(); @@ -116363,10 +123908,6 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // MAX_PARTS return MAX_PARTS; - case 4: // USER_NAME - return USER_NAME; - case 5: // GROUP_NAMES - return GROUP_NAMES; default: return null; } @@ -116418,40 +123959,31 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); - tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_args.class, metaDataMap); } - public get_partitions_with_auth_args() { + public get_partition_names_args() { this.max_parts = (short)-1; } - public get_partitions_with_auth_args( + public get_partition_names_args( String db_name, String tbl_name, - short max_parts, - String user_name, - List group_names) + short max_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.max_parts = max_parts; setMax_partsIsSet(true); - this.user_name = user_name; - this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partitions_with_auth_args(get_partitions_with_auth_args other) { + public get_partition_names_args(get_partition_names_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -116460,17 +123992,10 @@ public get_partitions_with_auth_args(get_partitions_with_auth_args other) { this.tbl_name = other.tbl_name; } this.max_parts = other.max_parts; - if (other.isSetUser_name()) { - this.user_name = other.user_name; - } - if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); - this.group_names = __this__group_names; - } } - public get_partitions_with_auth_args deepCopy() { - return new get_partitions_with_auth_args(this); + public get_partition_names_args deepCopy() { + return new get_partition_names_args(this); } @Override @@ -116479,8 +124004,6 @@ public void clear() { this.tbl_name = null; this.max_parts = (short)-1; - this.user_name = null; - this.group_names = null; } public String getDb_name() { @@ -116551,67 +124074,6 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } - public String getUser_name() { - return this.user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public void unsetUser_name() { - this.user_name = null; - } - - /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean value) { - if (!value) { - this.user_name = null; - } - } - - public int getGroup_namesSize() { - return (this.group_names == null) ? 0 : this.group_names.size(); - } - - public java.util.Iterator getGroup_namesIterator() { - return (this.group_names == null) ? null : this.group_names.iterator(); - } - - public void addToGroup_names(String elem) { - if (this.group_names == null) { - this.group_names = new ArrayList(); - } - this.group_names.add(elem); - } - - public List getGroup_names() { - return this.group_names; - } - - public void setGroup_names(List group_names) { - this.group_names = group_names; - } - - public void unsetGroup_names() { - this.group_names = null; - } - - /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ - public boolean isSetGroup_names() { - return this.group_names != null; - } - - public void setGroup_namesIsSet(boolean value) { - if (!value) { - this.group_names = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -116638,22 +124100,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case USER_NAME: - if (value == null) { - unsetUser_name(); - } else { - setUser_name((String)value); - } - break; - - case GROUP_NAMES: - if (value == null) { - unsetGroup_names(); - } else { - setGroup_names((List)value); - } - break; - } } @@ -116668,12 +124114,6 @@ public Object getFieldValue(_Fields field) { case MAX_PARTS: return getMax_parts(); - case USER_NAME: - return getUser_name(); - - case GROUP_NAMES: - return getGroup_names(); - } throw new IllegalStateException(); } @@ -116691,10 +124131,6 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case MAX_PARTS: return isSetMax_parts(); - case USER_NAME: - return isSetUser_name(); - case GROUP_NAMES: - return isSetGroup_names(); } throw new IllegalStateException(); } @@ -116703,12 +124139,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_with_auth_args) - return this.equals((get_partitions_with_auth_args)that); + if (that instanceof get_partition_names_args) + return this.equals((get_partition_names_args)that); return false; } - public boolean equals(get_partitions_with_auth_args that) { + public boolean equals(get_partition_names_args that) { if (that == null) return false; @@ -116739,24 +124175,6 @@ public boolean equals(get_partitions_with_auth_args that) { return false; } - boolean this_present_user_name = true && this.isSetUser_name(); - boolean that_present_user_name = true && that.isSetUser_name(); - if (this_present_user_name || that_present_user_name) { - if (!(this_present_user_name && that_present_user_name)) - return false; - if (!this.user_name.equals(that.user_name)) - return false; - } - - boolean this_present_group_names = true && this.isSetGroup_names(); - boolean that_present_group_names = true && that.isSetGroup_names(); - if (this_present_group_names || that_present_group_names) { - if (!(this_present_group_names && that_present_group_names)) - return false; - if (!this.group_names.equals(that.group_names)) - return false; - } - return true; } @@ -116779,21 +124197,11 @@ public int hashCode() { if (present_max_parts) list.add(max_parts); - boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); - if (present_user_name) - list.add(user_name); - - boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); - if (present_group_names) - list.add(group_names); - return list.hashCode(); } @Override - public int compareTo(get_partitions_with_auth_args other) { + public int compareTo(get_partition_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -116830,26 +124238,6 @@ public int compareTo(get_partitions_with_auth_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -116867,7 +124255,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_with_auth_args("); + StringBuilder sb = new StringBuilder("get_partition_names_args("); boolean first = true; sb.append("db_name:"); @@ -116889,22 +124277,6 @@ public String toString() { sb.append("max_parts:"); sb.append(this.max_parts); first = false; - if (!first) sb.append(", "); - sb.append("user_name:"); - if (this.user_name == null) { - sb.append("null"); - } else { - sb.append(this.user_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("group_names:"); - if (this.group_names == null) { - sb.append("null"); - } else { - sb.append(this.group_names); - } - first = false; sb.append(")"); return sb.toString(); } @@ -116932,15 +124304,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_with_auth_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_argsStandardScheme getScheme() { - return new get_partitions_with_auth_argsStandardScheme(); + private static class get_partition_names_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_names_argsStandardScheme getScheme() { + return new get_partition_names_argsStandardScheme(); } } - private static class get_partitions_with_auth_argsStandardScheme extends StandardScheme { + private static class get_partition_names_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -116974,32 +124346,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // USER_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // GROUP_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1518 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1518.size); - String _elem1519; - for (int _i1520 = 0; _i1520 < _list1518.size; ++_i1520) - { - _elem1519 = iprot.readString(); - struct.group_names.add(_elem1519); - } - iprot.readListEnd(); - } - struct.setGroup_namesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -117009,7 +124355,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -117026,39 +124372,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); - if (struct.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.user_name); - oprot.writeFieldEnd(); - } - if (struct.group_names != null) { - oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1521 : struct.group_names) - { - oprot.writeString(_iter1521); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_with_auth_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_argsTupleScheme getScheme() { - return new get_partitions_with_auth_argsTupleScheme(); + private static class get_partition_names_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_names_argsTupleScheme getScheme() { + return new get_partition_names_argsTupleScheme(); } } - private static class get_partitions_with_auth_argsTupleScheme extends TupleScheme { + private static class get_partition_names_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -117070,13 +124399,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetMax_parts()) { optionals.set(2); } - if (struct.isSetUser_name()) { - optionals.set(3); - } - if (struct.isSetGroup_names()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -117086,24 +124409,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); } - if (struct.isSetUser_name()) { - oprot.writeString(struct.user_name); - } - if (struct.isSetGroup_names()) { - { - oprot.writeI32(struct.group_names.size()); - for (String _iter1522 : struct.group_names) - { - oprot.writeString(_iter1522); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -117116,30 +124427,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } - if (incoming.get(3)) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list1523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1523.size); - String _elem1524; - for (int _i1525 = 0; _i1525 < _list1523.size; ++_i1525) - { - _elem1524 = iprot.readString(); - struct.group_names.add(_elem1524); - } - } - struct.setGroup_namesIsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -117147,11 +124441,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_with_auth_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_with_auth_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -117225,20 +124519,20 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 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, Partition.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_result.class, metaDataMap); } - public get_partitions_with_auth_result() { + public get_partition_names_result() { } - public get_partitions_with_auth_result( - List success, + public get_partition_names_result( + List success, NoSuchObjectException o1, MetaException o2) { @@ -117251,12 +124545,9 @@ public get_partitions_with_auth_result( /** * Performs a deep copy on other. */ - public get_partitions_with_auth_result(get_partitions_with_auth_result other) { + public get_partition_names_result(get_partition_names_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); - } + List __this__success = new ArrayList(other.success); this.success = __this__success; } if (other.isSetO1()) { @@ -117267,8 +124558,8 @@ public get_partitions_with_auth_result(get_partitions_with_auth_result other) { } } - public get_partitions_with_auth_result deepCopy() { - return new get_partitions_with_auth_result(this); + public get_partition_names_result deepCopy() { + return new get_partition_names_result(this); } @Override @@ -117282,22 +124573,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Partition elem) { + public void addToSuccess(String elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -117368,7 +124659,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -117427,12 +124718,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_with_auth_result) - return this.equals((get_partitions_with_auth_result)that); + if (that instanceof get_partition_names_result) + return this.equals((get_partition_names_result)that); return false; } - public boolean equals(get_partitions_with_auth_result that) { + public boolean equals(get_partition_names_result that) { if (that == null) return false; @@ -117489,7 +124780,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_with_auth_result other) { + public int compareTo(get_partition_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -117543,7 +124834,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_with_auth_result("); + StringBuilder sb = new StringBuilder("get_partition_names_result("); boolean first = true; sb.append("success:"); @@ -117594,15 +124885,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_with_auth_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_resultStandardScheme getScheme() { - return new get_partitions_with_auth_resultStandardScheme(); + private static class get_partition_names_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_names_resultStandardScheme getScheme() { + return new get_partition_names_resultStandardScheme(); } } - private static class get_partitions_with_auth_resultStandardScheme extends StandardScheme { + private static class get_partition_names_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -117615,14 +124906,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1526 = iprot.readListBegin(); - struct.success = new ArrayList(_list1526.size); - Partition _elem1527; - for (int _i1528 = 0; _i1528 < _list1526.size; ++_i1528) + org.apache.thrift.protocol.TList _list1614 = iprot.readListBegin(); + struct.success = new ArrayList(_list1614.size); + String _elem1615; + for (int _i1616 = 0; _i1616 < _list1614.size; ++_i1616) { - _elem1527 = new Partition(); - _elem1527.read(iprot); - struct.success.add(_elem1527); + _elem1615 = iprot.readString(); + struct.success.add(_elem1615); } iprot.readListEnd(); } @@ -117658,17 +124948,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1529 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1617 : struct.success) { - _iter1529.write(oprot); + oprot.writeString(_iter1617); } oprot.writeListEnd(); } @@ -117690,16 +124980,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit } - private static class get_partitions_with_auth_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_resultTupleScheme getScheme() { - return new get_partitions_with_auth_resultTupleScheme(); + private static class get_partition_names_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_names_resultTupleScheme getScheme() { + return new get_partition_names_resultTupleScheme(); } } - private static class get_partitions_with_auth_resultTupleScheme extends TupleScheme { + private static class get_partition_names_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -117715,9 +125005,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1530 : struct.success) + for (String _iter1618 : struct.success) { - _iter1530.write(oprot); + oprot.writeString(_iter1618); } } } @@ -117730,19 +125020,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1531 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1531.size); - Partition _elem1532; - for (int _i1533 = 0; _i1533 < _list1531.size; ++_i1533) + org.apache.thrift.protocol.TList _list1619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1619.size); + String _elem1620; + for (int _i1621 = 0; _i1621 < _list1619.size; ++_i1621) { - _elem1532 = new Partition(); - _elem1532.read(iprot); - struct.success.add(_elem1532); + _elem1620 = iprot.readString(); + struct.success.add(_elem1620); } } struct.setSuccessIsSet(true); @@ -117762,28 +125051,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_pspec_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_values_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_values_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_pspec_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_pspec_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_values_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_values_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private int max_parts; // required + private PartitionValuesRequest request; // 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 { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - MAX_PARTS((short)3, "max_parts"); + REQUEST((short)1, "request"); private static final Map byName = new HashMap(); @@ -117798,12 +125081,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // MAX_PARTS - return MAX_PARTS; + case 1: // REQUEST + return REQUEST; default: return null; } @@ -117844,155 +125123,73 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_PARTS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionValuesRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_values_args.class, metaDataMap); } - public get_partitions_pspec_args() { - this.max_parts = -1; - + public get_partition_values_args() { } - public get_partitions_pspec_args( - String db_name, - String tbl_name, - int max_parts) + public get_partition_values_args( + PartitionValuesRequest request) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.max_parts = max_parts; - setMax_partsIsSet(true); + this.request = request; } /** * Performs a deep copy on other. */ - public get_partitions_pspec_args(get_partitions_pspec_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + public get_partition_values_args(get_partition_values_args other) { + if (other.isSetRequest()) { + this.request = new PartitionValuesRequest(other.request); } - this.max_parts = other.max_parts; } - public get_partitions_pspec_args deepCopy() { - return new get_partitions_pspec_args(this); + public get_partition_values_args deepCopy() { + return new get_partition_values_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.max_parts = -1; - - } - - public String getDb_name() { - return this.db_name; - } - - public void setDb_name(String db_name) { - this.db_name = db_name; - } - - public void unsetDb_name() { - this.db_name = null; - } - - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; - } - - public void setDb_nameIsSet(boolean value) { - if (!value) { - this.db_name = null; - } + this.request = null; } - public String getTbl_name() { - return this.tbl_name; + public PartitionValuesRequest getRequest() { + return this.request; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setRequest(PartitionValuesRequest request) { + this.request = request; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetRequest() { + this.request = null; } - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; + /** Returns true if field request is set (has been assigned a value) and false otherwise */ + public boolean isSetRequest() { + return this.request != null; } - public void setTbl_nameIsSet(boolean value) { + public void setRequestIsSet(boolean value) { if (!value) { - this.tbl_name = null; + this.request = null; } } - public int getMax_parts() { - return this.max_parts; - } - - public void setMax_parts(int max_parts) { - this.max_parts = max_parts; - setMax_partsIsSet(true); - } - - public void unsetMax_parts() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); - } - - /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_parts() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); - } - - public void setMax_partsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: - if (value == null) { - unsetDb_name(); - } else { - setDb_name((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case MAX_PARTS: + case REQUEST: if (value == null) { - unsetMax_parts(); + unsetRequest(); } else { - setMax_parts((Integer)value); + setRequest((PartitionValuesRequest)value); } break; @@ -118001,14 +125198,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case MAX_PARTS: - return getMax_parts(); + case REQUEST: + return getRequest(); } throw new IllegalStateException(); @@ -118021,12 +125212,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case MAX_PARTS: - return isSetMax_parts(); + case REQUEST: + return isSetRequest(); } throw new IllegalStateException(); } @@ -118035,39 +125222,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_pspec_args) - return this.equals((get_partitions_pspec_args)that); + if (that instanceof get_partition_values_args) + return this.equals((get_partition_values_args)that); return false; } - public boolean equals(get_partitions_pspec_args that) { + public boolean equals(get_partition_values_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_max_parts = true; - boolean that_present_max_parts = true; - if (this_present_max_parts || that_present_max_parts) { - if (!(this_present_max_parts && that_present_max_parts)) + boolean this_present_request = true && this.isSetRequest(); + boolean that_present_request = true && that.isSetRequest(); + if (this_present_request || that_present_request) { + if (!(this_present_request && that_present_request)) return false; - if (this.max_parts != that.max_parts) + if (!this.request.equals(that.request)) return false; } @@ -118078,58 +125247,28 @@ public boolean equals(get_partitions_pspec_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_max_parts = true; - list.add(present_max_parts); - if (present_max_parts) - list.add(max_parts); + boolean present_request = true && (isSetRequest()); + list.add(present_request); + if (present_request) + list.add(request); return list.hashCode(); } @Override - public int compareTo(get_partitions_pspec_args other) { + public int compareTo(get_partition_values_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); if (lastComparison != 0) { return lastComparison; } @@ -118151,28 +125290,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_pspec_args("); + StringBuilder sb = new StringBuilder("get_partition_values_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("request:"); + if (this.request == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.request); } first = false; - if (!first) sb.append(", "); - sb.append("max_parts:"); - sb.append(this.max_parts); - first = false; sb.append(")"); return sb.toString(); } @@ -118180,6 +125307,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (request != null) { + request.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -118192,23 +125322,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_pspec_argsStandardScheme getScheme() { - return new get_partitions_pspec_argsStandardScheme(); + private static class get_partition_values_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_values_argsStandardScheme getScheme() { + return new get_partition_values_argsStandardScheme(); } } - private static class get_partitions_pspec_argsStandardScheme extends StandardScheme { + private static class get_partition_values_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_values_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -118218,26 +125346,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.max_parts = iprot.readI32(); - struct.setMax_partsIsSet(true); + case 1: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new PartitionValuesRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -118251,99 +125364,72 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_values_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI32(struct.max_parts); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_pspec_argsTupleScheme getScheme() { - return new get_partitions_pspec_argsTupleScheme(); + private static class get_partition_values_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_values_argsTupleScheme getScheme() { + return new get_partition_values_argsTupleScheme(); } } - private static class get_partitions_pspec_argsTupleScheme extends TupleScheme { + private static class get_partition_values_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_values_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetRequest()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetMax_parts()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetMax_parts()) { - oprot.writeI32(struct.max_parts); + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_values_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - struct.max_parts = iprot.readI32(); - struct.setMax_partsIsSet(true); + struct.request = new PartitionValuesRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_pspec_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_values_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_values_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_pspec_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_pspec_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_values_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_values_resultTupleSchemeFactory()); } - private List success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private PartitionValuesResponse success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // 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 { @@ -118414,23 +125500,22 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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, PartitionSpec.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionValuesResponse.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_values_result.class, metaDataMap); } - public get_partitions_pspec_result() { + public get_partition_values_result() { } - public get_partitions_pspec_result( - List success, - NoSuchObjectException o1, - MetaException o2) + public get_partition_values_result( + PartitionValuesResponse success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; @@ -118441,24 +125526,20 @@ public get_partitions_pspec_result( /** * Performs a deep copy on other. */ - public get_partitions_pspec_result(get_partitions_pspec_result other) { + public get_partition_values_result(get_partition_values_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (PartitionSpec other_element : other.success) { - __this__success.add(new PartitionSpec(other_element)); - } - this.success = __this__success; + this.success = new PartitionValuesResponse(other.success); } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_partitions_pspec_result deepCopy() { - return new get_partitions_pspec_result(this); + public get_partition_values_result deepCopy() { + return new get_partition_values_result(this); } @Override @@ -118468,26 +125549,11 @@ public void clear() { this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(PartitionSpec elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public PartitionValuesResponse getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(PartitionValuesResponse success) { this.success = success; } @@ -118506,11 +125572,11 @@ public void setSuccessIsSet(boolean value) { } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -118529,11 +125595,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -118558,7 +125624,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((PartitionValuesResponse)value); } break; @@ -118566,7 +125632,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -118574,7 +125640,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -118617,12 +125683,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_pspec_result) - return this.equals((get_partitions_pspec_result)that); + if (that instanceof get_partition_values_result) + return this.equals((get_partition_values_result)that); return false; } - public boolean equals(get_partitions_pspec_result that) { + public boolean equals(get_partition_values_result that) { if (that == null) return false; @@ -118679,7 +125745,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_pspec_result other) { + public int compareTo(get_partition_values_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -118733,7 +125799,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_pspec_result("); + StringBuilder sb = new StringBuilder("get_partition_values_result("); boolean first = true; sb.append("success:"); @@ -118766,6 +125832,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -118784,15 +125853,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_pspec_resultStandardScheme getScheme() { - return new get_partitions_pspec_resultStandardScheme(); + private static class get_partition_values_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_values_resultStandardScheme getScheme() { + return new get_partition_values_resultStandardScheme(); } } - private static class get_partitions_pspec_resultStandardScheme extends StandardScheme { + private static class get_partition_values_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_values_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -118803,19 +125872,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1534 = iprot.readListBegin(); - struct.success = new ArrayList(_list1534.size); - PartitionSpec _elem1535; - for (int _i1536 = 0; _i1536 < _list1534.size; ++_i1536) - { - _elem1535 = new PartitionSpec(); - _elem1535.read(iprot); - struct.success.add(_elem1535); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new PartitionValuesResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -118823,7 +125882,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -118832,7 +125891,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -118848,20 +125907,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_values_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter1537 : struct.success) - { - _iter1537.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -118880,16 +125932,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp } - private static class get_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_pspec_resultTupleScheme getScheme() { - return new get_partitions_pspec_resultTupleScheme(); + private static class get_partition_values_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_values_resultTupleScheme getScheme() { + return new get_partition_values_resultTupleScheme(); } } - private static class get_partitions_pspec_resultTupleScheme extends TupleScheme { + private static class get_partition_values_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_values_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -118903,13 +125955,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1538 : struct.success) - { - _iter1538.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -118920,30 +125966,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_values_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1539.size); - PartitionSpec _elem1540; - for (int _i1541 = 0; _i1541 < _list1539.size; ++_i1541) - { - _elem1540 = new PartitionSpec(); - _elem1540.read(iprot); - struct.success.add(_elem1540); - } - } + struct.success = new PartitionValuesResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -118952,28 +125989,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required + private List part_vals; // required private short max_parts; // 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 { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - MAX_PARTS((short)3, "max_parts"); + PART_VALS((short)3, "part_vals"), + MAX_PARTS((short)4, "max_parts"); private static final Map byName = new HashMap(); @@ -118992,7 +126032,9 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // MAX_PARTS + case 3: // PART_VALS + return PART_VALS; + case 4: // MAX_PARTS return MAX_PARTS; default: return null; @@ -119043,25 +126085,30 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_args.class, metaDataMap); } - public get_partition_names_args() { + public get_partitions_ps_args() { this.max_parts = (short)-1; } - public get_partition_names_args( + public get_partitions_ps_args( String db_name, String tbl_name, + List part_vals, short max_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; + this.part_vals = part_vals; this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -119069,7 +126116,7 @@ public get_partition_names_args( /** * Performs a deep copy on other. */ - public get_partition_names_args(get_partition_names_args other) { + public get_partitions_ps_args(get_partitions_ps_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -119077,17 +126124,22 @@ public get_partition_names_args(get_partition_names_args other) { if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; + } this.max_parts = other.max_parts; } - public get_partition_names_args deepCopy() { - return new get_partition_names_args(this); + public get_partitions_ps_args deepCopy() { + return new get_partitions_ps_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; + this.part_vals = null; this.max_parts = (short)-1; } @@ -119138,6 +126190,44 @@ public void setTbl_nameIsSet(boolean value) { } } + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); + } + + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); + } + + public List getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; + } + } + public short getMax_parts() { return this.max_parts; } @@ -119178,6 +126268,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); + } + break; + case MAX_PARTS: if (value == null) { unsetMax_parts(); @@ -119197,6 +126295,9 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); + case PART_VALS: + return getPart_vals(); + case MAX_PARTS: return getMax_parts(); @@ -119215,6 +126316,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); case MAX_PARTS: return isSetMax_parts(); } @@ -119225,12 +126328,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_args) - return this.equals((get_partition_names_args)that); + if (that instanceof get_partitions_ps_args) + return this.equals((get_partitions_ps_args)that); return false; } - public boolean equals(get_partition_names_args that) { + public boolean equals(get_partitions_ps_args that) { if (that == null) return false; @@ -119252,6 +126355,15 @@ public boolean equals(get_partition_names_args that) { return false; } + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) + return false; + } + boolean this_present_max_parts = true; boolean that_present_max_parts = true; if (this_present_max_parts || that_present_max_parts) { @@ -119278,6 +126390,11 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); + boolean present_max_parts = true; list.add(present_max_parts); if (present_max_parts) @@ -119287,7 +126404,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_names_args other) { + public int compareTo(get_partitions_ps_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -119314,6 +126431,16 @@ public int compareTo(get_partition_names_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; @@ -119341,7 +126468,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_args("); + StringBuilder sb = new StringBuilder("get_partitions_ps_args("); boolean first = true; sb.append("db_name:"); @@ -119360,6 +126487,14 @@ public String toString() { } first = false; if (!first) sb.append(", "); + sb.append("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); + } + first = false; + if (!first) sb.append(", "); sb.append("max_parts:"); sb.append(this.max_parts); first = false; @@ -119390,15 +126525,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_names_argsStandardScheme getScheme() { - return new get_partition_names_argsStandardScheme(); + private static class get_partitions_ps_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_argsStandardScheme getScheme() { + return new get_partitions_ps_argsStandardScheme(); } } - private static class get_partition_names_argsStandardScheme extends StandardScheme { + private static class get_partitions_ps_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -119424,7 +126559,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // MAX_PARTS + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1622 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1622.size); + String _elem1623; + for (int _i1624 = 0; _i1624 < _list1622.size; ++_i1624) + { + _elem1623 = iprot.readString(); + struct.part_vals.add(_elem1623); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // MAX_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.I16) { struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); @@ -119441,7 +126594,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -119455,6 +126608,18 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } + if (struct.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); + for (String _iter1625 : struct.part_vals) + { + oprot.writeString(_iter1625); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); @@ -119464,16 +126629,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name } - private static class get_partition_names_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_names_argsTupleScheme getScheme() { - return new get_partition_names_argsTupleScheme(); + private static class get_partitions_ps_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_argsTupleScheme getScheme() { + return new get_partitions_ps_argsTupleScheme(); } } - private static class get_partition_names_argsTupleScheme extends TupleScheme { + private static class get_partitions_ps_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -119482,25 +126647,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetMax_parts()) { + if (struct.isSetPart_vals()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetMax_parts()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter1626 : struct.part_vals) + { + oprot.writeString(_iter1626); + } + } + } if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -119510,6 +126687,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list1627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1627.size); + String _elem1628; + for (int _i1629 = 0; _i1629 < _list1627.size; ++_i1629) + { + _elem1628 = iprot.readString(); + struct.part_vals.add(_elem1628); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } @@ -119518,8 +126708,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -119527,13 +126717,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_resultTupleSchemeFactory()); } - private List success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private List success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // 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 { @@ -119605,22 +126795,22 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_result.class, metaDataMap); } - public get_partition_names_result() { + public get_partitions_ps_result() { } - public get_partition_names_result( - List success, - NoSuchObjectException o1, - MetaException o2) + public get_partitions_ps_result( + List success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; @@ -119631,21 +126821,24 @@ public get_partition_names_result( /** * Performs a deep copy on other. */ - public get_partition_names_result(get_partition_names_result other) { + public get_partitions_ps_result(get_partitions_ps_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_partition_names_result deepCopy() { - return new get_partition_names_result(this); + public get_partitions_ps_result deepCopy() { + return new get_partitions_ps_result(this); } @Override @@ -119659,22 +126852,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(String elem) { + public void addToSuccess(Partition elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -119693,11 +126886,11 @@ public void setSuccessIsSet(boolean value) { } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -119716,11 +126909,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -119745,7 +126938,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -119753,7 +126946,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -119761,7 +126954,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -119804,12 +126997,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_result) - return this.equals((get_partition_names_result)that); + if (that instanceof get_partitions_ps_result) + return this.equals((get_partitions_ps_result)that); return false; } - public boolean equals(get_partition_names_result that) { + public boolean equals(get_partitions_ps_result that) { if (that == null) return false; @@ -119866,7 +127059,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_names_result other) { + public int compareTo(get_partitions_ps_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -119920,7 +127113,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_result("); + StringBuilder sb = new StringBuilder("get_partitions_ps_result("); boolean first = true; sb.append("success:"); @@ -119971,15 +127164,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_names_resultStandardScheme getScheme() { - return new get_partition_names_resultStandardScheme(); + private static class get_partitions_ps_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_resultStandardScheme getScheme() { + return new get_partitions_ps_resultStandardScheme(); } } - private static class get_partition_names_resultStandardScheme extends StandardScheme { + private static class get_partitions_ps_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -119992,13 +127185,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1542 = iprot.readListBegin(); - struct.success = new ArrayList(_list1542.size); - String _elem1543; - for (int _i1544 = 0; _i1544 < _list1542.size; ++_i1544) + org.apache.thrift.protocol.TList _list1630 = iprot.readListBegin(); + struct.success = new ArrayList(_list1630.size); + Partition _elem1631; + for (int _i1632 = 0; _i1632 < _list1630.size; ++_i1632) { - _elem1543 = iprot.readString(); - struct.success.add(_elem1543); + _elem1631 = new Partition(); + _elem1631.read(iprot); + struct.success.add(_elem1631); } iprot.readListEnd(); } @@ -120009,7 +127203,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -120018,7 +127212,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -120034,17 +127228,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1545 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter1633 : struct.success) { - oprot.writeString(_iter1545); + _iter1633.write(oprot); } oprot.writeListEnd(); } @@ -120066,16 +127260,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name } - private static class get_partition_names_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_names_resultTupleScheme getScheme() { - return new get_partition_names_resultTupleScheme(); + private static class get_partitions_ps_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_resultTupleScheme getScheme() { + return new get_partitions_ps_resultTupleScheme(); } } - private static class get_partition_names_resultTupleScheme extends TupleScheme { + private static class get_partitions_ps_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -120091,9 +127285,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1546 : struct.success) + for (Partition _iter1634 : struct.success) { - oprot.writeString(_iter1546); + _iter1634.write(oprot); } } } @@ -120106,29 +127300,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1547.size); - String _elem1548; - for (int _i1549 = 0; _i1549 < _list1547.size; ++_i1549) + org.apache.thrift.protocol.TList _list1635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1635.size); + Partition _elem1636; + for (int _i1637 = 0; _i1637 < _list1635.size; ++_i1637) { - _elem1548 = iprot.readString(); - struct.success.add(_elem1548); + _elem1636 = new Partition(); + _elem1636.read(iprot); + struct.success.add(_elem1636); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -120137,22 +127332,37 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_values_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_values_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_args"); - private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_values_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_values_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_argsTupleSchemeFactory()); } - private PartitionValuesRequest request; // required + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required + private short max_parts; // required + private String user_name; // required + private List group_names; // 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 { - REQUEST((short)1, "request"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_VALS((short)3, "part_vals"), + MAX_PARTS((short)4, "max_parts"), + USER_NAME((short)5, "user_name"), + GROUP_NAMES((short)6, "group_names"); private static final Map byName = new HashMap(); @@ -120167,8 +127377,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQUEST - return REQUEST; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; + case 4: // MAX_PARTS + return MAX_PARTS; + case 5: // USER_NAME + return USER_NAME; + case 6: // GROUP_NAMES + return GROUP_NAMES; default: return null; } @@ -120209,73 +127429,306 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_PARTS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionValuesRequest.class))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_values_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_args.class, metaDataMap); } - public get_partition_values_args() { + public get_partitions_ps_with_auth_args() { + this.max_parts = (short)-1; + } - public get_partition_values_args( - PartitionValuesRequest request) + public get_partitions_ps_with_auth_args( + String db_name, + String tbl_name, + List part_vals, + short max_parts, + String user_name, + List group_names) { this(); - this.request = request; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; + this.max_parts = max_parts; + setMax_partsIsSet(true); + this.user_name = user_name; + this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partition_values_args(get_partition_values_args other) { - if (other.isSetRequest()) { - this.request = new PartitionValuesRequest(other.request); + public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; + } + this.max_parts = other.max_parts; + if (other.isSetUser_name()) { + this.user_name = other.user_name; + } + if (other.isSetGroup_names()) { + List __this__group_names = new ArrayList(other.group_names); + this.group_names = __this__group_names; } } - public get_partition_values_args deepCopy() { - return new get_partition_values_args(this); + public get_partitions_ps_with_auth_args deepCopy() { + return new get_partitions_ps_with_auth_args(this); } @Override public void clear() { - this.request = null; + this.db_name = null; + this.tbl_name = null; + this.part_vals = null; + this.max_parts = (short)-1; + + this.user_name = null; + this.group_names = null; } - public PartitionValuesRequest getRequest() { - return this.request; + public String getDb_name() { + return this.db_name; } - public void setRequest(PartitionValuesRequest request) { - this.request = request; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetRequest() { - this.request = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field request is set (has been assigned a value) and false otherwise */ - public boolean isSetRequest() { - return this.request != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setRequestIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.request = null; + this.db_name = null; + } + } + + public String getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } + } + + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); + } + + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); + } + + public List getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; + } + } + + public short getMax_parts() { + return this.max_parts; + } + + public void setMax_parts(short max_parts) { + this.max_parts = max_parts; + setMax_partsIsSet(true); + } + + public void unsetMax_parts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); + } + + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_parts() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); + } + + public void setMax_partsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); + } + + public String getUser_name() { + return this.user_name; + } + + public void setUser_name(String user_name) { + this.user_name = user_name; + } + + public void unsetUser_name() { + this.user_name = null; + } + + /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUser_name() { + return this.user_name != null; + } + + public void setUser_nameIsSet(boolean value) { + if (!value) { + this.user_name = null; + } + } + + public int getGroup_namesSize() { + return (this.group_names == null) ? 0 : this.group_names.size(); + } + + public java.util.Iterator getGroup_namesIterator() { + return (this.group_names == null) ? null : this.group_names.iterator(); + } + + public void addToGroup_names(String elem) { + if (this.group_names == null) { + this.group_names = new ArrayList(); + } + this.group_names.add(elem); + } + + public List getGroup_names() { + return this.group_names; + } + + public void setGroup_names(List group_names) { + this.group_names = group_names; + } + + public void unsetGroup_names() { + this.group_names = null; + } + + /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ + public boolean isSetGroup_names() { + return this.group_names != null; + } + + public void setGroup_namesIsSet(boolean value) { + if (!value) { + this.group_names = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQUEST: + case DB_NAME: if (value == null) { - unsetRequest(); + unsetDb_name(); } else { - setRequest((PartitionValuesRequest)value); + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); + } + break; + + case MAX_PARTS: + if (value == null) { + unsetMax_parts(); + } else { + setMax_parts((Short)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUser_name(); + } else { + setUser_name((String)value); + } + break; + + case GROUP_NAMES: + if (value == null) { + unsetGroup_names(); + } else { + setGroup_names((List)value); } break; @@ -120284,8 +127737,23 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQUEST: - return getRequest(); + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); + + case MAX_PARTS: + return getMax_parts(); + + case USER_NAME: + return getUser_name(); + + case GROUP_NAMES: + return getGroup_names(); } throw new IllegalStateException(); @@ -120298,8 +127766,18 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQUEST: - return isSetRequest(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); + case MAX_PARTS: + return isSetMax_parts(); + case USER_NAME: + return isSetUser_name(); + case GROUP_NAMES: + return isSetGroup_names(); } throw new IllegalStateException(); } @@ -120308,53 +127786,173 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_values_args) - return this.equals((get_partition_values_args)that); + if (that instanceof get_partitions_ps_with_auth_args) + return this.equals((get_partitions_ps_with_auth_args)that); return false; } - public boolean equals(get_partition_values_args that) { + public boolean equals(get_partitions_ps_with_auth_args that) { if (that == null) return false; - boolean this_present_request = true && this.isSetRequest(); - boolean that_present_request = true && that.isSetRequest(); - if (this_present_request || that_present_request) { - if (!(this_present_request && that_present_request)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.request.equals(that.request)) + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) return false; } - return true; - } + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) + return false; + } + + boolean this_present_max_parts = true; + boolean that_present_max_parts = true; + if (this_present_max_parts || that_present_max_parts) { + if (!(this_present_max_parts && that_present_max_parts)) + return false; + if (this.max_parts != that.max_parts) + return false; + } + + boolean this_present_user_name = true && this.isSetUser_name(); + boolean that_present_user_name = true && that.isSetUser_name(); + if (this_present_user_name || that_present_user_name) { + if (!(this_present_user_name && that_present_user_name)) + return false; + if (!this.user_name.equals(that.user_name)) + return false; + } + + boolean this_present_group_names = true && this.isSetGroup_names(); + boolean that_present_group_names = true && that.isSetGroup_names(); + if (this_present_group_names || that_present_group_names) { + if (!(this_present_group_names && that_present_group_names)) + return false; + if (!this.group_names.equals(that.group_names)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); + + boolean present_max_parts = true; + list.add(present_max_parts); + if (present_max_parts) + list.add(max_parts); - @Override - public int hashCode() { - List list = new ArrayList(); + boolean present_user_name = true && (isSetUser_name()); + list.add(present_user_name); + if (present_user_name) + list.add(user_name); - boolean present_request = true && (isSetRequest()); - list.add(present_request); - if (present_request) - list.add(request); + boolean present_group_names = true && (isSetGroup_names()); + list.add(present_group_names); + if (present_group_names) + list.add(group_names); return list.hashCode(); } @Override - public int compareTo(get_partition_values_args other) { + public int compareTo(get_partitions_ps_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMax_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGroup_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); if (lastComparison != 0) { return lastComparison; } @@ -120376,14 +127974,50 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_values_args("); + StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_args("); boolean first = true; - sb.append("request:"); - if (this.request == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.request); + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); + } + first = false; + if (!first) sb.append(", "); + sb.append("max_parts:"); + sb.append(this.max_parts); + first = false; + if (!first) sb.append(", "); + sb.append("user_name:"); + if (this.user_name == null) { + sb.append("null"); + } else { + sb.append(this.user_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("group_names:"); + if (this.group_names == null) { + sb.append("null"); + } else { + sb.append(this.group_names); } first = false; sb.append(")"); @@ -120393,9 +128027,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (request != null) { - request.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -120408,21 +128039,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partition_values_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_values_argsStandardScheme getScheme() { - return new get_partition_values_argsStandardScheme(); + private static class get_partitions_ps_with_auth_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_argsStandardScheme getScheme() { + return new get_partitions_ps_with_auth_argsStandardScheme(); } } - private static class get_partition_values_argsStandardScheme extends StandardScheme { + private static class get_partitions_ps_with_auth_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_values_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -120432,11 +128065,70 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_value break; } switch (schemeField.id) { - case 1: // REQUEST - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new PartitionValuesRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1638 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1638.size); + String _elem1639; + for (int _i1640 = 0; _i1640 < _list1638.size; ++_i1640) + { + _elem1639 = iprot.readString(); + struct.part_vals.add(_elem1639); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1641 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1641.size); + String _elem1642; + for (int _i1643 = 0; _i1643 < _list1641.size; ++_i1643) + { + _elem1642 = iprot.readString(); + struct.group_names.add(_elem1642); + } + iprot.readListEnd(); + } + struct.setGroup_namesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -120450,13 +128142,50 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_value struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_values_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.request != null) { - oprot.writeFieldBegin(REQUEST_FIELD_DESC); - struct.request.write(oprot); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); + for (String _iter1644 : struct.part_vals) + { + oprot.writeString(_iter1644); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI16(struct.max_parts); + oprot.writeFieldEnd(); + if (struct.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.user_name); + oprot.writeFieldEnd(); + } + if (struct.group_names != null) { + oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); + for (String _iter1645 : struct.group_names) + { + oprot.writeString(_iter1645); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -120465,57 +128194,136 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_valu } - private static class get_partition_values_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_values_argsTupleScheme getScheme() { - return new get_partition_values_argsTupleScheme(); + private static class get_partitions_ps_with_auth_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_argsTupleScheme getScheme() { + return new get_partitions_ps_with_auth_argsTupleScheme(); } } - private static class get_partition_values_argsTupleScheme extends TupleScheme { + private static class get_partitions_ps_with_auth_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_values_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetRequest()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetRequest()) { - struct.request.write(oprot); + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_vals()) { + optionals.set(2); + } + if (struct.isSetMax_parts()) { + optionals.set(3); + } + if (struct.isSetUser_name()) { + optionals.set(4); + } + if (struct.isSetGroup_names()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter1646 : struct.part_vals) + { + oprot.writeString(_iter1646); + } + } + } + if (struct.isSetMax_parts()) { + oprot.writeI16(struct.max_parts); + } + if (struct.isSetUser_name()) { + oprot.writeString(struct.user_name); + } + if (struct.isSetGroup_names()) { + { + oprot.writeI32(struct.group_names.size()); + for (String _iter1647 : struct.group_names) + { + oprot.writeString(_iter1647); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_values_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { - struct.request = new PartitionValuesRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list1648 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1648.size); + String _elem1649; + for (int _i1650 = 0; _i1650 < _list1648.size; ++_i1650) + { + _elem1649 = iprot.readString(); + struct.part_vals.add(_elem1649); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); + } + if (incoming.get(4)) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } + if (incoming.get(5)) { + { + org.apache.thrift.protocol.TList _list1651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1651.size); + String _elem1652; + for (int _i1653 = 0; _i1653 < _list1651.size; ++_i1653) + { + _elem1652 = iprot.readString(); + struct.group_names.add(_elem1652); + } + } + struct.setGroup_namesIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_values_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_values_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_values_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_values_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_resultTupleSchemeFactory()); } - private PartitionValuesResponse success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private List success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // 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 { @@ -120586,22 +128394,23 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionValuesResponse.class))); + 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, Partition.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_values_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_result.class, metaDataMap); } - public get_partition_values_result() { + public get_partitions_ps_with_auth_result() { } - public get_partition_values_result( - PartitionValuesResponse success, - MetaException o1, - NoSuchObjectException o2) + public get_partitions_ps_with_auth_result( + List success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; @@ -120612,20 +128421,24 @@ public get_partition_values_result( /** * Performs a deep copy on other. */ - public get_partition_values_result(get_partition_values_result other) { + public get_partitions_ps_with_auth_result(get_partitions_ps_with_auth_result other) { if (other.isSetSuccess()) { - this.success = new PartitionValuesResponse(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } + this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_partition_values_result deepCopy() { - return new get_partition_values_result(this); + public get_partitions_ps_with_auth_result deepCopy() { + return new get_partitions_ps_with_auth_result(this); } @Override @@ -120635,11 +128448,26 @@ public void clear() { this.o2 = null; } - public PartitionValuesResponse getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Partition elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(PartitionValuesResponse success) { + public void setSuccess(List success) { this.success = success; } @@ -120658,11 +128486,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -120681,11 +128509,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -120710,7 +128538,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((PartitionValuesResponse)value); + setSuccess((List)value); } break; @@ -120718,7 +128546,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); } break; @@ -120726,7 +128554,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -120769,12 +128597,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_values_result) - return this.equals((get_partition_values_result)that); + if (that instanceof get_partitions_ps_with_auth_result) + return this.equals((get_partitions_ps_with_auth_result)that); return false; } - public boolean equals(get_partition_values_result that) { + public boolean equals(get_partitions_ps_with_auth_result that) { if (that == null) return false; @@ -120831,7 +128659,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_values_result other) { + public int compareTo(get_partitions_ps_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -120885,7 +128713,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_values_result("); + StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_result("); boolean first = true; sb.append("success:"); @@ -120918,9 +128746,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -120939,15 +128764,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_values_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_values_resultStandardScheme getScheme() { - return new get_partition_values_resultStandardScheme(); + private static class get_partitions_ps_with_auth_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_resultStandardScheme getScheme() { + return new get_partitions_ps_with_auth_resultStandardScheme(); } } - private static class get_partition_values_resultStandardScheme extends StandardScheme { + private static class get_partitions_ps_with_auth_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_values_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -120958,9 +128783,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_value } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new PartitionValuesResponse(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1654 = iprot.readListBegin(); + struct.success = new ArrayList(_list1654.size); + Partition _elem1655; + for (int _i1656 = 0; _i1656 < _list1654.size; ++_i1656) + { + _elem1655 = new Partition(); + _elem1655.read(iprot); + struct.success.add(_elem1655); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -120968,7 +128803,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_value break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -120977,7 +128812,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_value break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -120993,13 +128828,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_value struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_values_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter1657 : struct.success) + { + _iter1657.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -121018,16 +128860,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_valu } - private static class get_partition_values_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_values_resultTupleScheme getScheme() { - return new get_partition_values_resultTupleScheme(); + private static class get_partitions_ps_with_auth_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_resultTupleScheme getScheme() { + return new get_partitions_ps_with_auth_resultTupleScheme(); } } - private static class get_partition_values_resultTupleScheme extends TupleScheme { + private static class get_partitions_ps_with_auth_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_values_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -121041,7 +128883,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_value } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Partition _iter1658 : struct.success) + { + _iter1658.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -121052,21 +128900,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_value } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_values_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new PartitionValuesResponse(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list1659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1659.size); + Partition _elem1660; + for (int _i1661 = 0; _i1661 < _list1659.size; ++_i1661) + { + _elem1660 = new Partition(); + _elem1660.read(iprot); + struct.success.add(_elem1660); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -121075,31 +128932,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_values } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_with_auth_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_req_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_req_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private List part_vals; // required - private short max_parts; // required + private GetPartitionsPsWithAuthRequest req; // 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 { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"), - MAX_PARTS((short)4, "max_parts"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -121114,14 +128962,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_values */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // MAX_PARTS - return MAX_PARTS; + case 1: // REQ + return REQ; default: return null; } @@ -121162,211 +129004,73 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_PARTS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPartitionsPsWithAuthRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_req_args.class, metaDataMap); } - public get_partitions_ps_args() { - this.max_parts = (short)-1; - + public get_partitions_ps_with_auth_req_args() { } - public get_partitions_ps_args( - String db_name, - String tbl_name, - List part_vals, - short max_parts) + public get_partitions_ps_with_auth_req_args( + GetPartitionsPsWithAuthRequest req) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_vals = part_vals; - this.max_parts = max_parts; - setMax_partsIsSet(true); + this.req = req; } /** * Performs a deep copy on other. */ - public get_partitions_ps_args(get_partitions_ps_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + public get_partitions_ps_with_auth_req_args(get_partitions_ps_with_auth_req_args other) { + if (other.isSetReq()) { + this.req = new GetPartitionsPsWithAuthRequest(other.req); } - this.max_parts = other.max_parts; } - public get_partitions_ps_args deepCopy() { - return new get_partitions_ps_args(this); + public get_partitions_ps_with_auth_req_args deepCopy() { + return new get_partitions_ps_with_auth_req_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_vals = null; - this.max_parts = (short)-1; - - } - - public String getDb_name() { - return this.db_name; - } - - public void setDb_name(String db_name) { - this.db_name = db_name; - } - - public void unsetDb_name() { - this.db_name = null; - } - - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; - } - - public void setDb_nameIsSet(boolean value) { - if (!value) { - this.db_name = null; - } - } - - public String getTbl_name() { - return this.tbl_name; - } - - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; - } - - public void unsetTbl_name() { - this.tbl_name = null; - } - - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; - } - - public void setTbl_nameIsSet(boolean value) { - if (!value) { - this.tbl_name = null; - } - } - - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); + this.req = null; } - public List getPart_vals() { - return this.part_vals; + public GetPartitionsPsWithAuthRequest getReq() { + return this.req; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setReq(GetPartitionsPsWithAuthRequest req) { + this.req = req; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setPart_valsIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.req = null; } } - public short getMax_parts() { - return this.max_parts; - } - - public void setMax_parts(short max_parts) { - this.max_parts = max_parts; - setMax_partsIsSet(true); - } - - public void unsetMax_parts() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); - } - - /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_parts() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); - } - - public void setMax_partsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: - if (value == null) { - unsetDb_name(); - } else { - setDb_name((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case PART_VALS: - if (value == null) { - unsetPart_vals(); - } else { - setPart_vals((List)value); - } - break; - - case MAX_PARTS: + case REQ: if (value == null) { - unsetMax_parts(); + unsetReq(); } else { - setMax_parts((Short)value); + setReq((GetPartitionsPsWithAuthRequest)value); } break; @@ -121375,17 +129079,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case PART_VALS: - return getPart_vals(); - - case MAX_PARTS: - return getMax_parts(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -121398,14 +129093,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case MAX_PARTS: - return isSetMax_parts(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -121414,48 +129103,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_args) - return this.equals((get_partitions_ps_args)that); + if (that instanceof get_partitions_ps_with_auth_req_args) + return this.equals((get_partitions_ps_with_auth_req_args)that); return false; } - public boolean equals(get_partitions_ps_args that) { + public boolean equals(get_partitions_ps_with_auth_req_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) - return false; - if (!this.part_vals.equals(that.part_vals)) - return false; - } - - boolean this_present_max_parts = true; - boolean that_present_max_parts = true; - if (this_present_max_parts || that_present_max_parts) { - if (!(this_present_max_parts && that_present_max_parts)) + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (this.max_parts != that.max_parts) + if (!this.req.equals(that.req)) return false; } @@ -121466,73 +129128,28 @@ public boolean equals(get_partitions_ps_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); - - boolean present_max_parts = true; - list.add(present_max_parts); - if (present_max_parts) - list.add(max_parts); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(get_partitions_ps_args other) { + public int compareTo(get_partitions_ps_with_auth_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -121554,36 +129171,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_args("); + StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_req_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.req); } first = false; - if (!first) sb.append(", "); - sb.append("max_parts:"); - sb.append(this.max_parts); - first = false; sb.append(")"); return sb.toString(); } @@ -121591,6 +129188,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (req != null) { + req.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -121603,23 +129203,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partitions_ps_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_argsStandardScheme getScheme() { - return new get_partitions_ps_argsStandardScheme(); + private static class get_partitions_ps_with_auth_req_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_req_argsStandardScheme getScheme() { + return new get_partitions_ps_with_auth_req_argsStandardScheme(); } } - private static class get_partitions_ps_argsStandardScheme extends StandardScheme { + private static class get_partitions_ps_with_auth_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -121629,44 +129227,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1550 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1550.size); - String _elem1551; - for (int _i1552 = 0; _i1552 < _list1550.size; ++_i1552) - { - _elem1551 = iprot.readString(); - struct.part_vals.add(_elem1551); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_parts = iprot.readI16(); - struct.setMax_partsIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new GetPartitionsPsWithAuthRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -121680,134 +129245,70 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1553 : struct.part_vals) - { - oprot.writeString(_iter1553); - } - oprot.writeListEnd(); - } + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI16(struct.max_parts); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_ps_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_argsTupleScheme getScheme() { - return new get_partitions_ps_argsTupleScheme(); + private static class get_partitions_ps_with_auth_req_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_req_argsTupleScheme getScheme() { + return new get_partitions_ps_with_auth_req_argsTupleScheme(); } } - private static class get_partitions_ps_argsTupleScheme extends TupleScheme { + private static class get_partitions_ps_with_auth_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetPart_vals()) { - optionals.set(2); - } - if (struct.isSetMax_parts()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter1554 : struct.part_vals) - { - oprot.writeString(_iter1554); - } - } - } - if (struct.isSetMax_parts()) { - oprot.writeI16(struct.max_parts); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list1555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1555.size); - String _elem1556; - for (int _i1557 = 0; _i1557 < _list1555.size; ++_i1557) - { - _elem1556 = iprot.readString(); - struct.part_vals.add(_elem1556); - } - } - struct.setPart_valsIsSet(true); - } - if (incoming.get(3)) { - struct.max_parts = iprot.readI16(); - struct.setMax_partsIsSet(true); + struct.req = new GetPartitionsPsWithAuthRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_with_auth_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_req_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_req_resultTupleSchemeFactory()); } - private List success; // required + private GetPartitionsPsWithAuthResponse success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -121880,21 +129381,20 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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, Partition.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPartitionsPsWithAuthResponse.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_req_result.class, metaDataMap); } - public get_partitions_ps_result() { + public get_partitions_ps_with_auth_req_result() { } - public get_partitions_ps_result( - List success, + public get_partitions_ps_with_auth_req_result( + GetPartitionsPsWithAuthResponse success, MetaException o1, NoSuchObjectException o2) { @@ -121907,13 +129407,9 @@ public get_partitions_ps_result( /** * Performs a deep copy on other. */ - public get_partitions_ps_result(get_partitions_ps_result other) { + public get_partitions_ps_with_auth_req_result(get_partitions_ps_with_auth_req_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); - } - this.success = __this__success; + this.success = new GetPartitionsPsWithAuthResponse(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -121923,8 +129419,8 @@ public get_partitions_ps_result(get_partitions_ps_result other) { } } - public get_partitions_ps_result deepCopy() { - return new get_partitions_ps_result(this); + public get_partitions_ps_with_auth_req_result deepCopy() { + return new get_partitions_ps_with_auth_req_result(this); } @Override @@ -121934,26 +129430,11 @@ public void clear() { this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(Partition elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public GetPartitionsPsWithAuthResponse getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(GetPartitionsPsWithAuthResponse success) { this.success = success; } @@ -122024,7 +129505,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((GetPartitionsPsWithAuthResponse)value); } break; @@ -122083,12 +129564,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_result) - return this.equals((get_partitions_ps_result)that); + if (that instanceof get_partitions_ps_with_auth_req_result) + return this.equals((get_partitions_ps_with_auth_req_result)that); return false; } - public boolean equals(get_partitions_ps_result that) { + public boolean equals(get_partitions_ps_with_auth_req_result that) { if (that == null) return false; @@ -122145,7 +129626,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_ps_result other) { + public int compareTo(get_partitions_ps_with_auth_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -122199,7 +129680,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_result("); + StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_req_result("); boolean first = true; sb.append("success:"); @@ -122232,6 +129713,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -122250,15 +129734,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_resultStandardScheme getScheme() { - return new get_partitions_ps_resultStandardScheme(); + private static class get_partitions_ps_with_auth_req_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_req_resultStandardScheme getScheme() { + return new get_partitions_ps_with_auth_req_resultStandardScheme(); } } - private static class get_partitions_ps_resultStandardScheme extends StandardScheme { + private static class get_partitions_ps_with_auth_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -122269,19 +129753,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1558 = iprot.readListBegin(); - struct.success = new ArrayList(_list1558.size); - Partition _elem1559; - for (int _i1560 = 0; _i1560 < _list1558.size; ++_i1560) - { - _elem1559 = new Partition(); - _elem1559.read(iprot); - struct.success.add(_elem1559); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new GetPartitionsPsWithAuthResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -122314,20 +129788,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1561 : struct.success) - { - _iter1561.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -122346,16 +129813,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ } - private static class get_partitions_ps_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_resultTupleScheme getScheme() { - return new get_partitions_ps_resultTupleScheme(); + private static class get_partitions_ps_with_auth_req_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_req_resultTupleScheme getScheme() { + return new get_partitions_ps_with_auth_req_resultTupleScheme(); } } - private static class get_partitions_ps_resultTupleScheme extends TupleScheme { + private static class get_partitions_ps_with_auth_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -122369,13 +129836,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Partition _iter1562 : struct.success) - { - _iter1562.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -122386,21 +129847,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1563.size); - Partition _elem1564; - for (int _i1565 = 0; _i1565 < _list1563.size; ++_i1565) - { - _elem1564 = new Partition(); - _elem1564.read(iprot); - struct.success.add(_elem1564); - } - } + struct.success = new GetPartitionsPsWithAuthResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -122418,37 +129870,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); - private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_ps_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_ps_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private List part_vals; // required private short max_parts; // required - private String user_name; // required - private List group_names; // 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 { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"), - MAX_PARTS((short)4, "max_parts"), - USER_NAME((short)5, "user_name"), - GROUP_NAMES((short)6, "group_names"); + MAX_PARTS((short)4, "max_parts"); private static final Map byName = new HashMap(); @@ -122471,10 +129917,6 @@ public static _Fields findByThriftId(int fieldId) { return PART_VALS; case 4: // MAX_PARTS return MAX_PARTS; - case 5: // USER_NAME - return USER_NAME; - case 6: // GROUP_NAMES - return GROUP_NAMES; default: return null; } @@ -122529,27 +129971,20 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); - tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_args.class, metaDataMap); } - public get_partitions_ps_with_auth_args() { + public get_partition_names_ps_args() { this.max_parts = (short)-1; } - public get_partitions_ps_with_auth_args( + public get_partition_names_ps_args( String db_name, String tbl_name, List part_vals, - short max_parts, - String user_name, - List group_names) + short max_parts) { this(); this.db_name = db_name; @@ -122557,14 +129992,12 @@ public get_partitions_ps_with_auth_args( this.part_vals = part_vals; this.max_parts = max_parts; setMax_partsIsSet(true); - this.user_name = user_name; - this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) { + public get_partition_names_ps_args(get_partition_names_ps_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -122577,17 +130010,10 @@ public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) this.part_vals = __this__part_vals; } this.max_parts = other.max_parts; - if (other.isSetUser_name()) { - this.user_name = other.user_name; - } - if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); - this.group_names = __this__group_names; - } } - public get_partitions_ps_with_auth_args deepCopy() { - return new get_partitions_ps_with_auth_args(this); + public get_partition_names_ps_args deepCopy() { + return new get_partition_names_ps_args(this); } @Override @@ -122597,8 +130023,6 @@ public void clear() { this.part_vals = null; this.max_parts = (short)-1; - this.user_name = null; - this.group_names = null; } public String getDb_name() { @@ -122707,67 +130131,6 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } - public String getUser_name() { - return this.user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public void unsetUser_name() { - this.user_name = null; - } - - /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean value) { - if (!value) { - this.user_name = null; - } - } - - public int getGroup_namesSize() { - return (this.group_names == null) ? 0 : this.group_names.size(); - } - - public java.util.Iterator getGroup_namesIterator() { - return (this.group_names == null) ? null : this.group_names.iterator(); - } - - public void addToGroup_names(String elem) { - if (this.group_names == null) { - this.group_names = new ArrayList(); - } - this.group_names.add(elem); - } - - public List getGroup_names() { - return this.group_names; - } - - public void setGroup_names(List group_names) { - this.group_names = group_names; - } - - public void unsetGroup_names() { - this.group_names = null; - } - - /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ - public boolean isSetGroup_names() { - return this.group_names != null; - } - - public void setGroup_namesIsSet(boolean value) { - if (!value) { - this.group_names = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -122802,22 +130165,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case USER_NAME: - if (value == null) { - unsetUser_name(); - } else { - setUser_name((String)value); - } - break; - - case GROUP_NAMES: - if (value == null) { - unsetGroup_names(); - } else { - setGroup_names((List)value); - } - break; - } } @@ -122835,12 +130182,6 @@ public Object getFieldValue(_Fields field) { case MAX_PARTS: return getMax_parts(); - case USER_NAME: - return getUser_name(); - - case GROUP_NAMES: - return getGroup_names(); - } throw new IllegalStateException(); } @@ -122860,10 +130201,6 @@ public boolean isSet(_Fields field) { return isSetPart_vals(); case MAX_PARTS: return isSetMax_parts(); - case USER_NAME: - return isSetUser_name(); - case GROUP_NAMES: - return isSetGroup_names(); } throw new IllegalStateException(); } @@ -122872,12 +130209,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_with_auth_args) - return this.equals((get_partitions_ps_with_auth_args)that); + if (that instanceof get_partition_names_ps_args) + return this.equals((get_partition_names_ps_args)that); return false; } - public boolean equals(get_partitions_ps_with_auth_args that) { + public boolean equals(get_partition_names_ps_args that) { if (that == null) return false; @@ -122917,24 +130254,6 @@ public boolean equals(get_partitions_ps_with_auth_args that) { return false; } - boolean this_present_user_name = true && this.isSetUser_name(); - boolean that_present_user_name = true && that.isSetUser_name(); - if (this_present_user_name || that_present_user_name) { - if (!(this_present_user_name && that_present_user_name)) - return false; - if (!this.user_name.equals(that.user_name)) - return false; - } - - boolean this_present_group_names = true && this.isSetGroup_names(); - boolean that_present_group_names = true && that.isSetGroup_names(); - if (this_present_group_names || that_present_group_names) { - if (!(this_present_group_names && that_present_group_names)) - return false; - if (!this.group_names.equals(that.group_names)) - return false; - } - return true; } @@ -122962,21 +130281,11 @@ public int hashCode() { if (present_max_parts) list.add(max_parts); - boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); - if (present_user_name) - list.add(user_name); - - boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); - if (present_group_names) - list.add(group_names); - return list.hashCode(); } @Override - public int compareTo(get_partitions_ps_with_auth_args other) { + public int compareTo(get_partition_names_ps_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -123023,26 +130332,6 @@ public int compareTo(get_partitions_ps_with_auth_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -123060,7 +130349,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_args("); + StringBuilder sb = new StringBuilder("get_partition_names_ps_args("); boolean first = true; sb.append("db_name:"); @@ -123090,22 +130379,6 @@ public String toString() { sb.append("max_parts:"); sb.append(this.max_parts); first = false; - if (!first) sb.append(", "); - sb.append("user_name:"); - if (this.user_name == null) { - sb.append("null"); - } else { - sb.append(this.user_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("group_names:"); - if (this.group_names == null) { - sb.append("null"); - } else { - sb.append(this.group_names); - } - first = false; sb.append(")"); return sb.toString(); } @@ -123133,15 +130406,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_with_auth_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_argsStandardScheme getScheme() { - return new get_partitions_ps_with_auth_argsStandardScheme(); + private static class get_partition_names_ps_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_names_ps_argsStandardScheme getScheme() { + return new get_partition_names_ps_argsStandardScheme(); } } - private static class get_partitions_ps_with_auth_argsStandardScheme extends StandardScheme { + private static class get_partition_names_ps_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -123170,13 +130443,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1566 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1566.size); - String _elem1567; - for (int _i1568 = 0; _i1568 < _list1566.size; ++_i1568) + org.apache.thrift.protocol.TList _list1662 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1662.size); + String _elem1663; + for (int _i1664 = 0; _i1664 < _list1662.size; ++_i1664) { - _elem1567 = iprot.readString(); - struct.part_vals.add(_elem1567); + _elem1663 = iprot.readString(); + struct.part_vals.add(_elem1663); } iprot.readListEnd(); } @@ -123193,32 +130466,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // USER_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // GROUP_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1569 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1569.size); - String _elem1570; - for (int _i1571 = 0; _i1571 < _list1569.size; ++_i1571) - { - _elem1570 = iprot.readString(); - struct.group_names.add(_elem1570); - } - iprot.readListEnd(); - } - struct.setGroup_namesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -123228,7 +130475,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -123246,9 +130493,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1572 : struct.part_vals) + for (String _iter1665 : struct.part_vals) { - oprot.writeString(_iter1572); + oprot.writeString(_iter1665); } oprot.writeListEnd(); } @@ -123257,39 +130504,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); - if (struct.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.user_name); - oprot.writeFieldEnd(); - } - if (struct.group_names != null) { - oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1573 : struct.group_names) - { - oprot.writeString(_iter1573); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_ps_with_auth_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_argsTupleScheme getScheme() { - return new get_partitions_ps_with_auth_argsTupleScheme(); + private static class get_partition_names_ps_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_names_ps_argsTupleScheme getScheme() { + return new get_partition_names_ps_argsTupleScheme(); } } - private static class get_partitions_ps_with_auth_argsTupleScheme extends TupleScheme { + private static class get_partition_names_ps_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -123304,13 +130534,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetMax_parts()) { optionals.set(3); } - if (struct.isSetUser_name()) { - optionals.set(4); - } - if (struct.isSetGroup_names()) { - optionals.set(5); - } - oprot.writeBitSet(optionals, 6); + oprot.writeBitSet(optionals, 4); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -123320,33 +130544,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1574 : struct.part_vals) + for (String _iter1666 : struct.part_vals) { - oprot.writeString(_iter1574); + oprot.writeString(_iter1666); } } } if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); } - if (struct.isSetUser_name()) { - oprot.writeString(struct.user_name); - } - if (struct.isSetGroup_names()) { - { - oprot.writeI32(struct.group_names.size()); - for (String _iter1575 : struct.group_names) - { - oprot.writeString(_iter1575); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(6); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -123357,13 +130569,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1576 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1576.size); - String _elem1577; - for (int _i1578 = 0; _i1578 < _list1576.size; ++_i1578) + org.apache.thrift.protocol.TList _list1667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1667.size); + String _elem1668; + for (int _i1669 = 0; _i1669 < _list1667.size; ++_i1669) { - _elem1577 = iprot.readString(); - struct.part_vals.add(_elem1577); + _elem1668 = iprot.readString(); + struct.part_vals.add(_elem1668); } } struct.setPart_valsIsSet(true); @@ -123372,30 +130584,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } - if (incoming.get(4)) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } - if (incoming.get(5)) { - { - org.apache.thrift.protocol.TList _list1579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1579.size); - String _elem1580; - for (int _i1581 = 0; _i1581 < _list1579.size; ++_i1581) - { - _elem1580 = iprot.readString(); - struct.group_names.add(_elem1580); - } - } - struct.setGroup_namesIsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_ps_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_ps_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -123403,13 +130598,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_ps_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_ps_resultTupleSchemeFactory()); } - private List success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private List success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // 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 { @@ -123481,22 +130676,22 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 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, Partition.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_result.class, metaDataMap); } - public get_partitions_ps_with_auth_result() { + public get_partition_names_ps_result() { } - public get_partitions_ps_with_auth_result( - List success, - NoSuchObjectException o1, - MetaException o2) + public get_partition_names_ps_result( + List success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; @@ -123507,24 +130702,21 @@ public get_partitions_ps_with_auth_result( /** * Performs a deep copy on other. */ - public get_partitions_ps_with_auth_result(get_partitions_ps_with_auth_result other) { + public get_partition_names_ps_result(get_partition_names_ps_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); - } + List __this__success = new ArrayList(other.success); this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_partitions_ps_with_auth_result deepCopy() { - return new get_partitions_ps_with_auth_result(this); + public get_partition_names_ps_result deepCopy() { + return new get_partition_names_ps_result(this); } @Override @@ -123538,22 +130730,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Partition elem) { + public void addToSuccess(String elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -123572,11 +130764,11 @@ public void setSuccessIsSet(boolean value) { } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -123595,11 +130787,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -123624,7 +130816,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -123632,7 +130824,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -123640,7 +130832,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -123683,12 +130875,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_with_auth_result) - return this.equals((get_partitions_ps_with_auth_result)that); + if (that instanceof get_partition_names_ps_result) + return this.equals((get_partition_names_ps_result)that); return false; } - public boolean equals(get_partitions_ps_with_auth_result that) { + public boolean equals(get_partition_names_ps_result that) { if (that == null) return false; @@ -123745,7 +130937,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_ps_with_auth_result other) { + public int compareTo(get_partition_names_ps_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -123799,7 +130991,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_result("); + StringBuilder sb = new StringBuilder("get_partition_names_ps_result("); boolean first = true; sb.append("success:"); @@ -123850,15 +131042,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_with_auth_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_resultStandardScheme getScheme() { - return new get_partitions_ps_with_auth_resultStandardScheme(); + private static class get_partition_names_ps_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_names_ps_resultStandardScheme getScheme() { + return new get_partition_names_ps_resultStandardScheme(); } } - private static class get_partitions_ps_with_auth_resultStandardScheme extends StandardScheme { + private static class get_partition_names_ps_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -123871,14 +131063,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1582 = iprot.readListBegin(); - struct.success = new ArrayList(_list1582.size); - Partition _elem1583; - for (int _i1584 = 0; _i1584 < _list1582.size; ++_i1584) + org.apache.thrift.protocol.TList _list1670 = iprot.readListBegin(); + struct.success = new ArrayList(_list1670.size); + String _elem1671; + for (int _i1672 = 0; _i1672 < _list1670.size; ++_i1672) { - _elem1583 = new Partition(); - _elem1583.read(iprot); - struct.success.add(_elem1583); + _elem1671 = iprot.readString(); + struct.success.add(_elem1671); } iprot.readListEnd(); } @@ -123889,7 +131080,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -123898,7 +131089,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -123914,17 +131105,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1585 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1673 : struct.success) { - _iter1585.write(oprot); + oprot.writeString(_iter1673); } oprot.writeListEnd(); } @@ -123946,16 +131137,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ } - private static class get_partitions_ps_with_auth_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_resultTupleScheme getScheme() { - return new get_partitions_ps_with_auth_resultTupleScheme(); + private static class get_partition_names_ps_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_names_ps_resultTupleScheme getScheme() { + return new get_partition_names_ps_resultTupleScheme(); } } - private static class get_partitions_ps_with_auth_resultTupleScheme extends TupleScheme { + private static class get_partition_names_ps_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -123971,9 +131162,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1586 : struct.success) + for (String _iter1674 : struct.success) { - _iter1586.write(oprot); + oprot.writeString(_iter1674); } } } @@ -123986,30 +131177,29 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1587.size); - Partition _elem1588; - for (int _i1589 = 0; _i1589 < _list1587.size; ++_i1589) + org.apache.thrift.protocol.TList _list1675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1675.size); + String _elem1676; + for (int _i1677 = 0; _i1677 < _list1675.size; ++_i1677) { - _elem1588 = new Partition(); - _elem1588.read(iprot); - struct.success.add(_elem1588); + _elem1676 = iprot.readString(); + struct.success.add(_elem1676); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -124018,31 +131208,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_ps_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_req_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_ps_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_ps_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_ps_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_ps_req_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private List part_vals; // required - private short max_parts; // required + private GetPartitionNamesPsRequest req; // 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 { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"), - MAX_PARTS((short)4, "max_parts"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -124057,14 +131238,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // MAX_PARTS - return MAX_PARTS; + case 1: // REQ + return REQ; default: return null; } @@ -124105,211 +131280,73 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_PARTS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPartitionNamesPsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_req_args.class, metaDataMap); } - public get_partition_names_ps_args() { - this.max_parts = (short)-1; - + public get_partition_names_ps_req_args() { } - public get_partition_names_ps_args( - String db_name, - String tbl_name, - List part_vals, - short max_parts) + public get_partition_names_ps_req_args( + GetPartitionNamesPsRequest req) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_vals = part_vals; - this.max_parts = max_parts; - setMax_partsIsSet(true); + this.req = req; } /** * Performs a deep copy on other. */ - public get_partition_names_ps_args(get_partition_names_ps_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + public get_partition_names_ps_req_args(get_partition_names_ps_req_args other) { + if (other.isSetReq()) { + this.req = new GetPartitionNamesPsRequest(other.req); } - this.max_parts = other.max_parts; } - public get_partition_names_ps_args deepCopy() { - return new get_partition_names_ps_args(this); + public get_partition_names_ps_req_args deepCopy() { + return new get_partition_names_ps_req_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_vals = null; - this.max_parts = (short)-1; - - } - - public String getDb_name() { - return this.db_name; - } - - public void setDb_name(String db_name) { - this.db_name = db_name; - } - - public void unsetDb_name() { - this.db_name = null; - } - - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; - } - - public void setDb_nameIsSet(boolean value) { - if (!value) { - this.db_name = null; - } - } - - public String getTbl_name() { - return this.tbl_name; - } - - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; - } - - public void unsetTbl_name() { - this.tbl_name = null; - } - - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; - } - - public void setTbl_nameIsSet(boolean value) { - if (!value) { - this.tbl_name = null; - } - } - - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); + this.req = null; } - public List getPart_vals() { - return this.part_vals; + public GetPartitionNamesPsRequest getReq() { + return this.req; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setReq(GetPartitionNamesPsRequest req) { + this.req = req; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setPart_valsIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.req = null; } } - public short getMax_parts() { - return this.max_parts; - } - - public void setMax_parts(short max_parts) { - this.max_parts = max_parts; - setMax_partsIsSet(true); - } - - public void unsetMax_parts() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); - } - - /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_parts() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); - } - - public void setMax_partsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: - if (value == null) { - unsetDb_name(); - } else { - setDb_name((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case PART_VALS: - if (value == null) { - unsetPart_vals(); - } else { - setPart_vals((List)value); - } - break; - - case MAX_PARTS: + case REQ: if (value == null) { - unsetMax_parts(); + unsetReq(); } else { - setMax_parts((Short)value); + setReq((GetPartitionNamesPsRequest)value); } break; @@ -124318,17 +131355,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case PART_VALS: - return getPart_vals(); - - case MAX_PARTS: - return getMax_parts(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -124341,14 +131369,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case MAX_PARTS: - return isSetMax_parts(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -124357,48 +131379,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_ps_args) - return this.equals((get_partition_names_ps_args)that); + if (that instanceof get_partition_names_ps_req_args) + return this.equals((get_partition_names_ps_req_args)that); return false; } - public boolean equals(get_partition_names_ps_args that) { + public boolean equals(get_partition_names_ps_req_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) - return false; - if (!this.part_vals.equals(that.part_vals)) - return false; - } - - boolean this_present_max_parts = true; - boolean that_present_max_parts = true; - if (this_present_max_parts || that_present_max_parts) { - if (!(this_present_max_parts && that_present_max_parts)) + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (this.max_parts != that.max_parts) + if (!this.req.equals(that.req)) return false; } @@ -124409,73 +131404,28 @@ public boolean equals(get_partition_names_ps_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); - - boolean present_max_parts = true; - list.add(present_max_parts); - if (present_max_parts) - list.add(max_parts); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(get_partition_names_ps_args other) { + public int compareTo(get_partition_names_ps_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -124497,36 +131447,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_ps_args("); + StringBuilder sb = new StringBuilder("get_partition_names_ps_req_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.req); } first = false; - if (!first) sb.append(", "); - sb.append("max_parts:"); - sb.append(this.max_parts); - first = false; sb.append(")"); return sb.toString(); } @@ -124534,6 +131464,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (req != null) { + req.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -124546,23 +131479,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partition_names_ps_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_names_ps_argsStandardScheme getScheme() { - return new get_partition_names_ps_argsStandardScheme(); + private static class get_partition_names_ps_req_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_names_ps_req_argsStandardScheme getScheme() { + return new get_partition_names_ps_req_argsStandardScheme(); } } - private static class get_partition_names_ps_argsStandardScheme extends StandardScheme { + private static class get_partition_names_ps_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -124572,44 +131503,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1590 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1590.size); - String _elem1591; - for (int _i1592 = 0; _i1592 < _list1590.size; ++_i1592) - { - _elem1591 = iprot.readString(); - struct.part_vals.add(_elem1591); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_parts = iprot.readI16(); - struct.setMax_partsIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new GetPartitionNamesPsRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -124623,134 +131521,70 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1593 : struct.part_vals) - { - oprot.writeString(_iter1593); - } - oprot.writeListEnd(); - } + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI16(struct.max_parts); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partition_names_ps_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_names_ps_argsTupleScheme getScheme() { - return new get_partition_names_ps_argsTupleScheme(); + private static class get_partition_names_ps_req_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_names_ps_req_argsTupleScheme getScheme() { + return new get_partition_names_ps_req_argsTupleScheme(); } } - private static class get_partition_names_ps_argsTupleScheme extends TupleScheme { + private static class get_partition_names_ps_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetPart_vals()) { - optionals.set(2); - } - if (struct.isSetMax_parts()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter1594 : struct.part_vals) - { - oprot.writeString(_iter1594); - } - } - } - if (struct.isSetMax_parts()) { - oprot.writeI16(struct.max_parts); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list1595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1595.size); - String _elem1596; - for (int _i1597 = 0; _i1597 < _list1595.size; ++_i1597) - { - _elem1596 = iprot.readString(); - struct.part_vals.add(_elem1596); - } - } - struct.setPart_valsIsSet(true); - } - if (incoming.get(3)) { - struct.max_parts = iprot.readI16(); - struct.setMax_partsIsSet(true); + struct.req = new GetPartitionNamesPsRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_ps_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partition_names_ps_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_req_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_ps_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_ps_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_ps_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_ps_req_resultTupleSchemeFactory()); } - private List success; // required + private GetPartitionNamesPsResponse success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -124823,21 +131657,20 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPartitionNamesPsResponse.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_req_result.class, metaDataMap); } - public get_partition_names_ps_result() { + public get_partition_names_ps_req_result() { } - public get_partition_names_ps_result( - List success, + public get_partition_names_ps_req_result( + GetPartitionNamesPsResponse success, MetaException o1, NoSuchObjectException o2) { @@ -124850,10 +131683,9 @@ public get_partition_names_ps_result( /** * Performs a deep copy on other. */ - public get_partition_names_ps_result(get_partition_names_ps_result other) { + public get_partition_names_ps_req_result(get_partition_names_ps_req_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); - this.success = __this__success; + this.success = new GetPartitionNamesPsResponse(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -124863,8 +131695,8 @@ public get_partition_names_ps_result(get_partition_names_ps_result other) { } } - public get_partition_names_ps_result deepCopy() { - return new get_partition_names_ps_result(this); + public get_partition_names_ps_req_result deepCopy() { + return new get_partition_names_ps_req_result(this); } @Override @@ -124874,26 +131706,11 @@ public void clear() { this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(String elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public GetPartitionNamesPsResponse getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(GetPartitionNamesPsResponse success) { this.success = success; } @@ -124964,7 +131781,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((GetPartitionNamesPsResponse)value); } break; @@ -125023,12 +131840,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_ps_result) - return this.equals((get_partition_names_ps_result)that); + if (that instanceof get_partition_names_ps_req_result) + return this.equals((get_partition_names_ps_req_result)that); return false; } - public boolean equals(get_partition_names_ps_result that) { + public boolean equals(get_partition_names_ps_req_result that) { if (that == null) return false; @@ -125085,7 +131902,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_names_ps_result other) { + public int compareTo(get_partition_names_ps_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -125139,7 +131956,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_ps_result("); + StringBuilder sb = new StringBuilder("get_partition_names_ps_req_result("); boolean first = true; sb.append("success:"); @@ -125172,6 +131989,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -125190,15 +132010,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_ps_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_names_ps_resultStandardScheme getScheme() { - return new get_partition_names_ps_resultStandardScheme(); + private static class get_partition_names_ps_req_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_names_ps_req_resultStandardScheme getScheme() { + return new get_partition_names_ps_req_resultStandardScheme(); } } - private static class get_partition_names_ps_resultStandardScheme extends StandardScheme { + private static class get_partition_names_ps_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -125209,18 +132029,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1598 = iprot.readListBegin(); - struct.success = new ArrayList(_list1598.size); - String _elem1599; - for (int _i1600 = 0; _i1600 < _list1598.size; ++_i1600) - { - _elem1599 = iprot.readString(); - struct.success.add(_elem1599); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new GetPartitionNamesPsResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -125253,20 +132064,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1601 : struct.success) - { - oprot.writeString(_iter1601); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -125285,16 +132089,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name } - private static class get_partition_names_ps_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_names_ps_resultTupleScheme getScheme() { - return new get_partition_names_ps_resultTupleScheme(); + private static class get_partition_names_ps_req_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_names_ps_req_resultTupleScheme getScheme() { + return new get_partition_names_ps_req_resultTupleScheme(); } } - private static class get_partition_names_ps_resultTupleScheme extends TupleScheme { + private static class get_partition_names_ps_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -125308,13 +132112,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (String _iter1602 : struct.success) - { - oprot.writeString(_iter1602); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -125325,20 +132123,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1603.size); - String _elem1604; - for (int _i1605 = 0; _i1605 < _list1603.size; ++_i1605) - { - _elem1604 = iprot.readString(); - struct.success.add(_elem1604); - } - } + struct.success = new GetPartitionNamesPsResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -126193,13 +132983,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1606 = iprot.readListBegin(); - struct.success = new ArrayList(_list1606.size); - String _elem1607; - for (int _i1608 = 0; _i1608 < _list1606.size; ++_i1608) + org.apache.thrift.protocol.TList _list1678 = iprot.readListBegin(); + struct.success = new ArrayList(_list1678.size); + String _elem1679; + for (int _i1680 = 0; _i1680 < _list1678.size; ++_i1680) { - _elem1607 = iprot.readString(); - struct.success.add(_elem1607); + _elem1679 = iprot.readString(); + struct.success.add(_elem1679); } iprot.readListEnd(); } @@ -126243,9 +133033,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1609 : struct.success) + for (String _iter1681 : struct.success) { - oprot.writeString(_iter1609); + oprot.writeString(_iter1681); } oprot.writeListEnd(); } @@ -126292,9 +133082,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1610 : struct.success) + for (String _iter1682 : struct.success) { - oprot.writeString(_iter1610); + oprot.writeString(_iter1682); } } } @@ -126312,13 +133102,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1611.size); - String _elem1612; - for (int _i1613 = 0; _i1613 < _list1611.size; ++_i1613) + org.apache.thrift.protocol.TList _list1683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1683.size); + String _elem1684; + for (int _i1685 = 0; _i1685 < _list1683.size; ++_i1685) { - _elem1612 = iprot.readString(); - struct.success.add(_elem1612); + _elem1684 = iprot.readString(); + struct.success.add(_elem1684); } } struct.setSuccessIsSet(true); @@ -127485,14 +134275,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1614 = iprot.readListBegin(); - struct.success = new ArrayList(_list1614.size); - Partition _elem1615; - for (int _i1616 = 0; _i1616 < _list1614.size; ++_i1616) + org.apache.thrift.protocol.TList _list1686 = iprot.readListBegin(); + struct.success = new ArrayList(_list1686.size); + Partition _elem1687; + for (int _i1688 = 0; _i1688 < _list1686.size; ++_i1688) { - _elem1615 = new Partition(); - _elem1615.read(iprot); - struct.success.add(_elem1615); + _elem1687 = new Partition(); + _elem1687.read(iprot); + struct.success.add(_elem1687); } iprot.readListEnd(); } @@ -127536,9 +134326,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1617 : struct.success) + for (Partition _iter1689 : struct.success) { - _iter1617.write(oprot); + _iter1689.write(oprot); } oprot.writeListEnd(); } @@ -127585,9 +134375,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1618 : struct.success) + for (Partition _iter1690 : struct.success) { - _iter1618.write(oprot); + _iter1690.write(oprot); } } } @@ -127605,14 +134395,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1619.size); - Partition _elem1620; - for (int _i1621 = 0; _i1621 < _list1619.size; ++_i1621) + org.apache.thrift.protocol.TList _list1691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1691.size); + Partition _elem1692; + for (int _i1693 = 0; _i1693 < _list1691.size; ++_i1693) { - _elem1620 = new Partition(); - _elem1620.read(iprot); - struct.success.add(_elem1620); + _elem1692 = new Partition(); + _elem1692.read(iprot); + struct.success.add(_elem1692); } } struct.setSuccessIsSet(true); @@ -128779,14 +135569,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1622 = iprot.readListBegin(); - struct.success = new ArrayList(_list1622.size); - PartitionSpec _elem1623; - for (int _i1624 = 0; _i1624 < _list1622.size; ++_i1624) + org.apache.thrift.protocol.TList _list1694 = iprot.readListBegin(); + struct.success = new ArrayList(_list1694.size); + PartitionSpec _elem1695; + for (int _i1696 = 0; _i1696 < _list1694.size; ++_i1696) { - _elem1623 = new PartitionSpec(); - _elem1623.read(iprot); - struct.success.add(_elem1623); + _elem1695 = new PartitionSpec(); + _elem1695.read(iprot); + struct.success.add(_elem1695); } iprot.readListEnd(); } @@ -128830,9 +135620,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter1625 : struct.success) + for (PartitionSpec _iter1697 : struct.success) { - _iter1625.write(oprot); + _iter1697.write(oprot); } oprot.writeListEnd(); } @@ -128879,9 +135669,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1626 : struct.success) + for (PartitionSpec _iter1698 : struct.success) { - _iter1626.write(oprot); + _iter1698.write(oprot); } } } @@ -128899,14 +135689,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1627.size); - PartitionSpec _elem1628; - for (int _i1629 = 0; _i1629 < _list1627.size; ++_i1629) + org.apache.thrift.protocol.TList _list1699 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1699.size); + PartitionSpec _elem1700; + for (int _i1701 = 0; _i1701 < _list1699.size; ++_i1701) { - _elem1628 = new PartitionSpec(); - _elem1628.read(iprot); - struct.success.add(_elem1628); + _elem1700 = new PartitionSpec(); + _elem1700.read(iprot); + struct.success.add(_elem1700); } } struct.setSuccessIsSet(true); @@ -132428,13 +139218,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 3: // NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1630 = iprot.readListBegin(); - struct.names = new ArrayList(_list1630.size); - String _elem1631; - for (int _i1632 = 0; _i1632 < _list1630.size; ++_i1632) + org.apache.thrift.protocol.TList _list1702 = iprot.readListBegin(); + struct.names = new ArrayList(_list1702.size); + String _elem1703; + for (int _i1704 = 0; _i1704 < _list1702.size; ++_i1704) { - _elem1631 = iprot.readString(); - struct.names.add(_elem1631); + _elem1703 = iprot.readString(); + struct.names.add(_elem1703); } iprot.readListEnd(); } @@ -132470,9 +139260,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); - for (String _iter1633 : struct.names) + for (String _iter1705 : struct.names) { - oprot.writeString(_iter1633); + oprot.writeString(_iter1705); } oprot.writeListEnd(); } @@ -132515,9 +139305,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1634 : struct.names) + for (String _iter1706 : struct.names) { - oprot.writeString(_iter1634); + oprot.writeString(_iter1706); } } } @@ -132537,13 +139327,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1635.size); - String _elem1636; - for (int _i1637 = 0; _i1637 < _list1635.size; ++_i1637) + org.apache.thrift.protocol.TList _list1707 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1707.size); + String _elem1708; + for (int _i1709 = 0; _i1709 < _list1707.size; ++_i1709) { - _elem1636 = iprot.readString(); - struct.names.add(_elem1636); + _elem1708 = iprot.readString(); + struct.names.add(_elem1708); } } struct.setNamesIsSet(true); @@ -133030,14 +139820,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1638 = iprot.readListBegin(); - struct.success = new ArrayList(_list1638.size); - Partition _elem1639; - for (int _i1640 = 0; _i1640 < _list1638.size; ++_i1640) + org.apache.thrift.protocol.TList _list1710 = iprot.readListBegin(); + struct.success = new ArrayList(_list1710.size); + Partition _elem1711; + for (int _i1712 = 0; _i1712 < _list1710.size; ++_i1712) { - _elem1639 = new Partition(); - _elem1639.read(iprot); - struct.success.add(_elem1639); + _elem1711 = new Partition(); + _elem1711.read(iprot); + struct.success.add(_elem1711); } iprot.readListEnd(); } @@ -133081,9 +139871,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1641 : struct.success) + for (Partition _iter1713 : struct.success) { - _iter1641.write(oprot); + _iter1713.write(oprot); } oprot.writeListEnd(); } @@ -133130,9 +139920,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1642 : struct.success) + for (Partition _iter1714 : struct.success) { - _iter1642.write(oprot); + _iter1714.write(oprot); } } } @@ -133150,14 +139940,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1643.size); - Partition _elem1644; - for (int _i1645 = 0; _i1645 < _list1643.size; ++_i1645) + org.apache.thrift.protocol.TList _list1715 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1715.size); + Partition _elem1716; + for (int _i1717 = 0; _i1717 < _list1715.size; ++_i1717) { - _elem1644 = new Partition(); - _elem1644.read(iprot); - struct.success.add(_elem1644); + _elem1716 = new Partition(); + _elem1716.read(iprot); + struct.success.add(_elem1716); } } struct.setSuccessIsSet(true); @@ -135645,14 +142435,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_ar case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1646 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1646.size); - Partition _elem1647; - for (int _i1648 = 0; _i1648 < _list1646.size; ++_i1648) + org.apache.thrift.protocol.TList _list1718 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1718.size); + Partition _elem1719; + for (int _i1720 = 0; _i1720 < _list1718.size; ++_i1720) { - _elem1647 = new Partition(); - _elem1647.read(iprot); - struct.new_parts.add(_elem1647); + _elem1719 = new Partition(); + _elem1719.read(iprot); + struct.new_parts.add(_elem1719); } iprot.readListEnd(); } @@ -135688,9 +142478,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_a oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1649 : struct.new_parts) + for (Partition _iter1721 : struct.new_parts) { - _iter1649.write(oprot); + _iter1721.write(oprot); } oprot.writeListEnd(); } @@ -135733,9 +142523,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_ar if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1650 : struct.new_parts) + for (Partition _iter1722 : struct.new_parts) { - _iter1650.write(oprot); + _iter1722.write(oprot); } } } @@ -135755,14 +142545,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1651.size); - Partition _elem1652; - for (int _i1653 = 0; _i1653 < _list1651.size; ++_i1653) + org.apache.thrift.protocol.TList _list1723 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1723.size); + Partition _elem1724; + for (int _i1725 = 0; _i1725 < _list1723.size; ++_i1725) { - _elem1652 = new Partition(); - _elem1652.read(iprot); - struct.new_parts.add(_elem1652); + _elem1724 = new Partition(); + _elem1724.read(iprot); + struct.new_parts.add(_elem1724); } } struct.setNew_partsIsSet(true); @@ -136815,14 +143605,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_wi case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1654 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1654.size); - Partition _elem1655; - for (int _i1656 = 0; _i1656 < _list1654.size; ++_i1656) + org.apache.thrift.protocol.TList _list1726 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1726.size); + Partition _elem1727; + for (int _i1728 = 0; _i1728 < _list1726.size; ++_i1728) { - _elem1655 = new Partition(); - _elem1655.read(iprot); - struct.new_parts.add(_elem1655); + _elem1727 = new Partition(); + _elem1727.read(iprot); + struct.new_parts.add(_elem1727); } iprot.readListEnd(); } @@ -136867,9 +143657,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_w oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1657 : struct.new_parts) + for (Partition _iter1729 : struct.new_parts) { - _iter1657.write(oprot); + _iter1729.write(oprot); } oprot.writeListEnd(); } @@ -136920,9 +143710,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wi if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1658 : struct.new_parts) + for (Partition _iter1730 : struct.new_parts) { - _iter1658.write(oprot); + _iter1730.write(oprot); } } } @@ -136945,14 +143735,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1659.size); - Partition _elem1660; - for (int _i1661 = 0; _i1661 < _list1659.size; ++_i1661) + org.apache.thrift.protocol.TList _list1731 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1731.size); + Partition _elem1732; + for (int _i1733 = 0; _i1733 < _list1731.size; ++_i1733) { - _elem1660 = new Partition(); - _elem1660.read(iprot); - struct.new_parts.add(_elem1660); + _elem1732 = new Partition(); + _elem1732.read(iprot); + struct.new_parts.add(_elem1732); } } struct.setNew_partsIsSet(true); @@ -140091,13 +146881,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1662 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1662.size); - String _elem1663; - for (int _i1664 = 0; _i1664 < _list1662.size; ++_i1664) + org.apache.thrift.protocol.TList _list1734 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1734.size); + String _elem1735; + for (int _i1736 = 0; _i1736 < _list1734.size; ++_i1736) { - _elem1663 = iprot.readString(); - struct.part_vals.add(_elem1663); + _elem1735 = iprot.readString(); + struct.part_vals.add(_elem1735); } iprot.readListEnd(); } @@ -140142,9 +146932,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1665 : struct.part_vals) + for (String _iter1737 : struct.part_vals) { - oprot.writeString(_iter1665); + oprot.writeString(_iter1737); } oprot.writeListEnd(); } @@ -140195,9 +146985,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1666 : struct.part_vals) + for (String _iter1738 : struct.part_vals) { - oprot.writeString(_iter1666); + oprot.writeString(_iter1738); } } } @@ -140220,13 +147010,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1667.size); - String _elem1668; - for (int _i1669 = 0; _i1669 < _list1667.size; ++_i1669) + org.apache.thrift.protocol.TList _list1739 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1739.size); + String _elem1740; + for (int _i1741 = 0; _i1741 < _list1739.size; ++_i1741) { - _elem1668 = iprot.readString(); - struct.part_vals.add(_elem1668); + _elem1740 = iprot.readString(); + struct.part_vals.add(_elem1740); } } struct.setPart_valsIsSet(true); @@ -142038,13 +148828,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ case 1: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1670 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1670.size); - String _elem1671; - for (int _i1672 = 0; _i1672 < _list1670.size; ++_i1672) + org.apache.thrift.protocol.TList _list1742 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1742.size); + String _elem1743; + for (int _i1744 = 0; _i1744 < _list1742.size; ++_i1744) { - _elem1671 = iprot.readString(); - struct.part_vals.add(_elem1671); + _elem1743 = iprot.readString(); + struct.part_vals.add(_elem1743); } iprot.readListEnd(); } @@ -142078,9 +148868,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_has oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1673 : struct.part_vals) + for (String _iter1745 : struct.part_vals) { - oprot.writeString(_iter1673); + oprot.writeString(_iter1745); } oprot.writeListEnd(); } @@ -142117,9 +148907,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_has_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1674 : struct.part_vals) + for (String _iter1746 : struct.part_vals) { - oprot.writeString(_iter1674); + oprot.writeString(_iter1746); } } } @@ -142134,13 +148924,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1675.size); - String _elem1676; - for (int _i1677 = 0; _i1677 < _list1675.size; ++_i1677) + org.apache.thrift.protocol.TList _list1747 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1747.size); + String _elem1748; + for (int _i1749 = 0; _i1749 < _list1747.size; ++_i1749) { - _elem1676 = iprot.readString(); - struct.part_vals.add(_elem1676); + _elem1748 = iprot.readString(); + struct.part_vals.add(_elem1748); } } struct.setPart_valsIsSet(true); @@ -144295,13 +151085,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1678 = iprot.readListBegin(); - struct.success = new ArrayList(_list1678.size); - String _elem1679; - for (int _i1680 = 0; _i1680 < _list1678.size; ++_i1680) + org.apache.thrift.protocol.TList _list1750 = iprot.readListBegin(); + struct.success = new ArrayList(_list1750.size); + String _elem1751; + for (int _i1752 = 0; _i1752 < _list1750.size; ++_i1752) { - _elem1679 = iprot.readString(); - struct.success.add(_elem1679); + _elem1751 = iprot.readString(); + struct.success.add(_elem1751); } iprot.readListEnd(); } @@ -144336,9 +151126,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1681 : struct.success) + for (String _iter1753 : struct.success) { - oprot.writeString(_iter1681); + oprot.writeString(_iter1753); } oprot.writeListEnd(); } @@ -144377,9 +151167,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1682 : struct.success) + for (String _iter1754 : struct.success) { - oprot.writeString(_iter1682); + oprot.writeString(_iter1754); } } } @@ -144394,13 +151184,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1683.size); - String _elem1684; - for (int _i1685 = 0; _i1685 < _list1683.size; ++_i1685) + org.apache.thrift.protocol.TList _list1755 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1755.size); + String _elem1756; + for (int _i1757 = 0; _i1757 < _list1755.size; ++_i1757) { - _elem1684 = iprot.readString(); - struct.success.add(_elem1684); + _elem1756 = iprot.readString(); + struct.success.add(_elem1756); } } struct.setSuccessIsSet(true); @@ -145163,15 +151953,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1686 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1686.size); - String _key1687; - String _val1688; - for (int _i1689 = 0; _i1689 < _map1686.size; ++_i1689) + org.apache.thrift.protocol.TMap _map1758 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1758.size); + String _key1759; + String _val1760; + for (int _i1761 = 0; _i1761 < _map1758.size; ++_i1761) { - _key1687 = iprot.readString(); - _val1688 = iprot.readString(); - struct.success.put(_key1687, _val1688); + _key1759 = iprot.readString(); + _val1760 = iprot.readString(); + struct.success.put(_key1759, _val1760); } iprot.readMapEnd(); } @@ -145206,10 +151996,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter1690 : struct.success.entrySet()) + for (Map.Entry _iter1762 : struct.success.entrySet()) { - oprot.writeString(_iter1690.getKey()); - oprot.writeString(_iter1690.getValue()); + oprot.writeString(_iter1762.getKey()); + oprot.writeString(_iter1762.getValue()); } oprot.writeMapEnd(); } @@ -145248,10 +152038,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter1691 : struct.success.entrySet()) + for (Map.Entry _iter1763 : struct.success.entrySet()) { - oprot.writeString(_iter1691.getKey()); - oprot.writeString(_iter1691.getValue()); + oprot.writeString(_iter1763.getKey()); + oprot.writeString(_iter1763.getValue()); } } } @@ -145266,15 +152056,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map1692 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map1692.size); - String _key1693; - String _val1694; - for (int _i1695 = 0; _i1695 < _map1692.size; ++_i1695) + org.apache.thrift.protocol.TMap _map1764 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map1764.size); + String _key1765; + String _val1766; + for (int _i1767 = 0; _i1767 < _map1764.size; ++_i1767) { - _key1693 = iprot.readString(); - _val1694 = iprot.readString(); - struct.success.put(_key1693, _val1694); + _key1765 = iprot.readString(); + _val1766 = iprot.readString(); + struct.success.put(_key1765, _val1766); } } struct.setSuccessIsSet(true); @@ -145869,15 +152659,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1696 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1696.size); - String _key1697; - String _val1698; - for (int _i1699 = 0; _i1699 < _map1696.size; ++_i1699) + org.apache.thrift.protocol.TMap _map1768 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1768.size); + String _key1769; + String _val1770; + for (int _i1771 = 0; _i1771 < _map1768.size; ++_i1771) { - _key1697 = iprot.readString(); - _val1698 = iprot.readString(); - struct.part_vals.put(_key1697, _val1698); + _key1769 = iprot.readString(); + _val1770 = iprot.readString(); + struct.part_vals.put(_key1769, _val1770); } iprot.readMapEnd(); } @@ -145921,10 +152711,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, markPartitionForEv oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter1700 : struct.part_vals.entrySet()) + for (Map.Entry _iter1772 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1700.getKey()); - oprot.writeString(_iter1700.getValue()); + oprot.writeString(_iter1772.getKey()); + oprot.writeString(_iter1772.getValue()); } oprot.writeMapEnd(); } @@ -145975,10 +152765,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1701 : struct.part_vals.entrySet()) + for (Map.Entry _iter1773 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1701.getKey()); - oprot.writeString(_iter1701.getValue()); + oprot.writeString(_iter1773.getKey()); + oprot.writeString(_iter1773.getValue()); } } } @@ -146001,15 +152791,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1702 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map1702.size); - String _key1703; - String _val1704; - for (int _i1705 = 0; _i1705 < _map1702.size; ++_i1705) + org.apache.thrift.protocol.TMap _map1774 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map1774.size); + String _key1775; + String _val1776; + for (int _i1777 = 0; _i1777 < _map1774.size; ++_i1777) { - _key1703 = iprot.readString(); - _val1704 = iprot.readString(); - struct.part_vals.put(_key1703, _val1704); + _key1775 = iprot.readString(); + _val1776 = iprot.readString(); + struct.part_vals.put(_key1775, _val1776); } } struct.setPart_valsIsSet(true); @@ -147493,15 +154283,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1706 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1706.size); - String _key1707; - String _val1708; - for (int _i1709 = 0; _i1709 < _map1706.size; ++_i1709) + org.apache.thrift.protocol.TMap _map1778 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1778.size); + String _key1779; + String _val1780; + for (int _i1781 = 0; _i1781 < _map1778.size; ++_i1781) { - _key1707 = iprot.readString(); - _val1708 = iprot.readString(); - struct.part_vals.put(_key1707, _val1708); + _key1779 = iprot.readString(); + _val1780 = iprot.readString(); + struct.part_vals.put(_key1779, _val1780); } iprot.readMapEnd(); } @@ -147545,10 +154335,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isPartitionMarkedF oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter1710 : struct.part_vals.entrySet()) + for (Map.Entry _iter1782 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1710.getKey()); - oprot.writeString(_iter1710.getValue()); + oprot.writeString(_iter1782.getKey()); + oprot.writeString(_iter1782.getValue()); } oprot.writeMapEnd(); } @@ -147599,10 +154389,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1711 : struct.part_vals.entrySet()) + for (Map.Entry _iter1783 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1711.getKey()); - oprot.writeString(_iter1711.getValue()); + oprot.writeString(_iter1783.getKey()); + oprot.writeString(_iter1783.getValue()); } } } @@ -147625,15 +154415,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1712 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map1712.size); - String _key1713; - String _val1714; - for (int _i1715 = 0; _i1715 < _map1712.size; ++_i1715) + org.apache.thrift.protocol.TMap _map1784 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map1784.size); + String _key1785; + String _val1786; + for (int _i1787 = 0; _i1787 < _map1784.size; ++_i1787) { - _key1713 = iprot.readString(); - _val1714 = iprot.readString(); - struct.part_vals.put(_key1713, _val1714); + _key1785 = iprot.readString(); + _val1786 = iprot.readString(); + struct.part_vals.put(_key1785, _val1786); } } struct.setPart_valsIsSet(true); @@ -172497,13 +179287,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_functions_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1716 = iprot.readListBegin(); - struct.success = new ArrayList(_list1716.size); - String _elem1717; - for (int _i1718 = 0; _i1718 < _list1716.size; ++_i1718) + org.apache.thrift.protocol.TList _list1788 = iprot.readListBegin(); + struct.success = new ArrayList(_list1788.size); + String _elem1789; + for (int _i1790 = 0; _i1790 < _list1788.size; ++_i1790) { - _elem1717 = iprot.readString(); - struct.success.add(_elem1717); + _elem1789 = iprot.readString(); + struct.success.add(_elem1789); } iprot.readListEnd(); } @@ -172538,9 +179328,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_functions_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1719 : struct.success) + for (String _iter1791 : struct.success) { - oprot.writeString(_iter1719); + oprot.writeString(_iter1791); } oprot.writeListEnd(); } @@ -172579,9 +179369,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1720 : struct.success) + for (String _iter1792 : struct.success) { - oprot.writeString(_iter1720); + oprot.writeString(_iter1792); } } } @@ -172596,13 +179386,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1721.size); - String _elem1722; - for (int _i1723 = 0; _i1723 < _list1721.size; ++_i1723) + org.apache.thrift.protocol.TList _list1793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1793.size); + String _elem1794; + for (int _i1795 = 0; _i1795 < _list1793.size; ++_i1795) { - _elem1722 = iprot.readString(); - struct.success.add(_elem1722); + _elem1794 = iprot.readString(); + struct.success.add(_elem1794); } } struct.setSuccessIsSet(true); @@ -176657,13 +183447,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_role_names_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1724 = iprot.readListBegin(); - struct.success = new ArrayList(_list1724.size); - String _elem1725; - for (int _i1726 = 0; _i1726 < _list1724.size; ++_i1726) + org.apache.thrift.protocol.TList _list1796 = iprot.readListBegin(); + struct.success = new ArrayList(_list1796.size); + String _elem1797; + for (int _i1798 = 0; _i1798 < _list1796.size; ++_i1798) { - _elem1725 = iprot.readString(); - struct.success.add(_elem1725); + _elem1797 = iprot.readString(); + struct.success.add(_elem1797); } iprot.readListEnd(); } @@ -176698,9 +183488,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_role_names_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1727 : struct.success) + for (String _iter1799 : struct.success) { - oprot.writeString(_iter1727); + oprot.writeString(_iter1799); } oprot.writeListEnd(); } @@ -176739,9 +183529,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1728 : struct.success) + for (String _iter1800 : struct.success) { - oprot.writeString(_iter1728); + oprot.writeString(_iter1800); } } } @@ -176756,13 +183546,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1729 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1729.size); - String _elem1730; - for (int _i1731 = 0; _i1731 < _list1729.size; ++_i1731) + org.apache.thrift.protocol.TList _list1801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1801.size); + String _elem1802; + for (int _i1803 = 0; _i1803 < _list1801.size; ++_i1803) { - _elem1730 = iprot.readString(); - struct.success.add(_elem1730); + _elem1802 = iprot.readString(); + struct.success.add(_elem1802); } } struct.setSuccessIsSet(true); @@ -180053,14 +186843,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1732 = iprot.readListBegin(); - struct.success = new ArrayList(_list1732.size); - Role _elem1733; - for (int _i1734 = 0; _i1734 < _list1732.size; ++_i1734) + org.apache.thrift.protocol.TList _list1804 = iprot.readListBegin(); + struct.success = new ArrayList(_list1804.size); + Role _elem1805; + for (int _i1806 = 0; _i1806 < _list1804.size; ++_i1806) { - _elem1733 = new Role(); - _elem1733.read(iprot); - struct.success.add(_elem1733); + _elem1805 = new Role(); + _elem1805.read(iprot); + struct.success.add(_elem1805); } iprot.readListEnd(); } @@ -180095,9 +186885,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Role _iter1735 : struct.success) + for (Role _iter1807 : struct.success) { - _iter1735.write(oprot); + _iter1807.write(oprot); } oprot.writeListEnd(); } @@ -180136,9 +186926,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1736 : struct.success) + for (Role _iter1808 : struct.success) { - _iter1736.write(oprot); + _iter1808.write(oprot); } } } @@ -180153,14 +186943,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1737.size); - Role _elem1738; - for (int _i1739 = 0; _i1739 < _list1737.size; ++_i1739) + org.apache.thrift.protocol.TList _list1809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1809.size); + Role _elem1810; + for (int _i1811 = 0; _i1811 < _list1809.size; ++_i1811) { - _elem1738 = new Role(); - _elem1738.read(iprot); - struct.success.add(_elem1738); + _elem1810 = new Role(); + _elem1810.read(iprot); + struct.success.add(_elem1810); } } struct.setSuccessIsSet(true); @@ -183165,13 +189955,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_privilege_set_a case 3: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1740 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1740.size); - String _elem1741; - for (int _i1742 = 0; _i1742 < _list1740.size; ++_i1742) + org.apache.thrift.protocol.TList _list1812 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1812.size); + String _elem1813; + for (int _i1814 = 0; _i1814 < _list1812.size; ++_i1814) { - _elem1741 = iprot.readString(); - struct.group_names.add(_elem1741); + _elem1813 = iprot.readString(); + struct.group_names.add(_elem1813); } iprot.readListEnd(); } @@ -183207,9 +189997,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_privilege_set_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1743 : struct.group_names) + for (String _iter1815 : struct.group_names) { - oprot.writeString(_iter1743); + oprot.writeString(_iter1815); } oprot.writeListEnd(); } @@ -183252,9 +190042,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_a if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter1744 : struct.group_names) + for (String _iter1816 : struct.group_names) { - oprot.writeString(_iter1744); + oprot.writeString(_iter1816); } } } @@ -183275,13 +190065,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1745.size); - String _elem1746; - for (int _i1747 = 0; _i1747 < _list1745.size; ++_i1747) + org.apache.thrift.protocol.TList _list1817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1817.size); + String _elem1818; + for (int _i1819 = 0; _i1819 < _list1817.size; ++_i1819) { - _elem1746 = iprot.readString(); - struct.group_names.add(_elem1746); + _elem1818 = iprot.readString(); + struct.group_names.add(_elem1818); } } struct.setGroup_namesIsSet(true); @@ -184739,14 +191529,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_privileges_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1748 = iprot.readListBegin(); - struct.success = new ArrayList(_list1748.size); - HiveObjectPrivilege _elem1749; - for (int _i1750 = 0; _i1750 < _list1748.size; ++_i1750) + org.apache.thrift.protocol.TList _list1820 = iprot.readListBegin(); + struct.success = new ArrayList(_list1820.size); + HiveObjectPrivilege _elem1821; + for (int _i1822 = 0; _i1822 < _list1820.size; ++_i1822) { - _elem1749 = new HiveObjectPrivilege(); - _elem1749.read(iprot); - struct.success.add(_elem1749); + _elem1821 = new HiveObjectPrivilege(); + _elem1821.read(iprot); + struct.success.add(_elem1821); } iprot.readListEnd(); } @@ -184781,9 +191571,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_privileges_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (HiveObjectPrivilege _iter1751 : struct.success) + for (HiveObjectPrivilege _iter1823 : struct.success) { - _iter1751.write(oprot); + _iter1823.write(oprot); } oprot.writeListEnd(); } @@ -184822,9 +191612,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1752 : struct.success) + for (HiveObjectPrivilege _iter1824 : struct.success) { - _iter1752.write(oprot); + _iter1824.write(oprot); } } } @@ -184839,14 +191629,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_resu BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1753.size); - HiveObjectPrivilege _elem1754; - for (int _i1755 = 0; _i1755 < _list1753.size; ++_i1755) + org.apache.thrift.protocol.TList _list1825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1825.size); + HiveObjectPrivilege _elem1826; + for (int _i1827 = 0; _i1827 < _list1825.size; ++_i1827) { - _elem1754 = new HiveObjectPrivilege(); - _elem1754.read(iprot); - struct.success.add(_elem1754); + _elem1826 = new HiveObjectPrivilege(); + _elem1826.read(iprot); + struct.success.add(_elem1826); } } struct.setSuccessIsSet(true); @@ -188793,13 +195583,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_args struct case 2: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1756 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1756.size); - String _elem1757; - for (int _i1758 = 0; _i1758 < _list1756.size; ++_i1758) + org.apache.thrift.protocol.TList _list1828 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1828.size); + String _elem1829; + for (int _i1830 = 0; _i1830 < _list1828.size; ++_i1830) { - _elem1757 = iprot.readString(); - struct.group_names.add(_elem1757); + _elem1829 = iprot.readString(); + struct.group_names.add(_elem1829); } iprot.readListEnd(); } @@ -188830,9 +195620,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_args struc oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1759 : struct.group_names) + for (String _iter1831 : struct.group_names) { - oprot.writeString(_iter1759); + oprot.writeString(_iter1831); } oprot.writeListEnd(); } @@ -188869,9 +195659,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter1760 : struct.group_names) + for (String _iter1832 : struct.group_names) { - oprot.writeString(_iter1760); + oprot.writeString(_iter1832); } } } @@ -188887,13 +195677,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1761.size); - String _elem1762; - for (int _i1763 = 0; _i1763 < _list1761.size; ++_i1763) + org.apache.thrift.protocol.TList _list1833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1833.size); + String _elem1834; + for (int _i1835 = 0; _i1835 < _list1833.size; ++_i1835) { - _elem1762 = iprot.readString(); - struct.group_names.add(_elem1762); + _elem1834 = iprot.readString(); + struct.group_names.add(_elem1834); } } struct.setGroup_namesIsSet(true); @@ -189296,13 +196086,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_result stru case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1764 = iprot.readListBegin(); - struct.success = new ArrayList(_list1764.size); - String _elem1765; - for (int _i1766 = 0; _i1766 < _list1764.size; ++_i1766) + org.apache.thrift.protocol.TList _list1836 = iprot.readListBegin(); + struct.success = new ArrayList(_list1836.size); + String _elem1837; + for (int _i1838 = 0; _i1838 < _list1836.size; ++_i1838) { - _elem1765 = iprot.readString(); - struct.success.add(_elem1765); + _elem1837 = iprot.readString(); + struct.success.add(_elem1837); } iprot.readListEnd(); } @@ -189337,9 +196127,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_result str oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1767 : struct.success) + for (String _iter1839 : struct.success) { - oprot.writeString(_iter1767); + oprot.writeString(_iter1839); } oprot.writeListEnd(); } @@ -189378,9 +196168,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1768 : struct.success) + for (String _iter1840 : struct.success) { - oprot.writeString(_iter1768); + oprot.writeString(_iter1840); } } } @@ -189395,13 +196185,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_result struc BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1769.size); - String _elem1770; - for (int _i1771 = 0; _i1771 < _list1769.size; ++_i1771) + org.apache.thrift.protocol.TList _list1841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1841.size); + String _elem1842; + for (int _i1843 = 0; _i1843 < _list1841.size; ++_i1843) { - _elem1770 = iprot.readString(); - struct.success.add(_elem1770); + _elem1842 = iprot.readString(); + struct.success.add(_elem1842); } } struct.setSuccessIsSet(true); @@ -194692,13 +201482,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_token_ident case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1772 = iprot.readListBegin(); - struct.success = new ArrayList(_list1772.size); - String _elem1773; - for (int _i1774 = 0; _i1774 < _list1772.size; ++_i1774) + org.apache.thrift.protocol.TList _list1844 = iprot.readListBegin(); + struct.success = new ArrayList(_list1844.size); + String _elem1845; + for (int _i1846 = 0; _i1846 < _list1844.size; ++_i1846) { - _elem1773 = iprot.readString(); - struct.success.add(_elem1773); + _elem1845 = iprot.readString(); + struct.success.add(_elem1845); } iprot.readListEnd(); } @@ -194724,9 +201514,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_token_iden oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1775 : struct.success) + for (String _iter1847 : struct.success) { - oprot.writeString(_iter1775); + oprot.writeString(_iter1847); } oprot.writeListEnd(); } @@ -194757,9 +201547,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1776 : struct.success) + for (String _iter1848 : struct.success) { - oprot.writeString(_iter1776); + oprot.writeString(_iter1848); } } } @@ -194771,13 +201561,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_token_identi BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1777.size); - String _elem1778; - for (int _i1779 = 0; _i1779 < _list1777.size; ++_i1779) + org.apache.thrift.protocol.TList _list1849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1849.size); + String _elem1850; + for (int _i1851 = 0; _i1851 < _list1849.size; ++_i1851) { - _elem1778 = iprot.readString(); - struct.success.add(_elem1778); + _elem1850 = iprot.readString(); + struct.success.add(_elem1850); } } struct.setSuccessIsSet(true); @@ -197807,13 +204597,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_master_keys_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1780 = iprot.readListBegin(); - struct.success = new ArrayList(_list1780.size); - String _elem1781; - for (int _i1782 = 0; _i1782 < _list1780.size; ++_i1782) + org.apache.thrift.protocol.TList _list1852 = iprot.readListBegin(); + struct.success = new ArrayList(_list1852.size); + String _elem1853; + for (int _i1854 = 0; _i1854 < _list1852.size; ++_i1854) { - _elem1781 = iprot.readString(); - struct.success.add(_elem1781); + _elem1853 = iprot.readString(); + struct.success.add(_elem1853); } iprot.readListEnd(); } @@ -197839,9 +204629,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_master_keys_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1783 : struct.success) + for (String _iter1855 : struct.success) { - oprot.writeString(_iter1783); + oprot.writeString(_iter1855); } oprot.writeListEnd(); } @@ -197872,9 +204662,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1784 : struct.success) + for (String _iter1856 : struct.success) { - oprot.writeString(_iter1784); + oprot.writeString(_iter1856); } } } @@ -197886,13 +204676,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_master_keys_resu BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1785.size); - String _elem1786; - for (int _i1787 = 0; _i1787 < _list1785.size; ++_i1787) + org.apache.thrift.protocol.TList _list1857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1857.size); + String _elem1858; + for (int _i1859 = 0; _i1859 < _list1857.size; ++_i1859) { - _elem1786 = iprot.readString(); - struct.success.add(_elem1786); + _elem1858 = iprot.readString(); + struct.success.add(_elem1858); } } struct.setSuccessIsSet(true); @@ -215013,13 +221803,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, find_columns_with_s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1788 = iprot.readListBegin(); - struct.success = new ArrayList(_list1788.size); - String _elem1789; - for (int _i1790 = 0; _i1790 < _list1788.size; ++_i1790) + org.apache.thrift.protocol.TList _list1860 = iprot.readListBegin(); + struct.success = new ArrayList(_list1860.size); + String _elem1861; + for (int _i1862 = 0; _i1862 < _list1860.size; ++_i1862) { - _elem1789 = iprot.readString(); - struct.success.add(_elem1789); + _elem1861 = iprot.readString(); + struct.success.add(_elem1861); } iprot.readListEnd(); } @@ -215045,9 +221835,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, find_columns_with_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1791 : struct.success) + for (String _iter1863 : struct.success) { - oprot.writeString(_iter1791); + oprot.writeString(_iter1863); } oprot.writeListEnd(); } @@ -215078,9 +221868,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, find_columns_with_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1792 : struct.success) + for (String _iter1864 : struct.success) { - oprot.writeString(_iter1792); + oprot.writeString(_iter1864); } } } @@ -215092,13 +221882,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, find_columns_with_st BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1793.size); - String _elem1794; - for (int _i1795 = 0; _i1795 < _list1793.size; ++_i1795) + org.apache.thrift.protocol.TList _list1865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1865.size); + String _elem1866; + for (int _i1867 = 0; _i1867 < _list1865.size; ++_i1867) { - _elem1794 = iprot.readString(); - struct.success.add(_elem1794); + _elem1866 = iprot.readString(); + struct.success.add(_elem1866); } } struct.setSuccessIsSet(true); @@ -251984,14 +258774,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_all_vers case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1796 = iprot.readListBegin(); - struct.success = new ArrayList(_list1796.size); - SchemaVersion _elem1797; - for (int _i1798 = 0; _i1798 < _list1796.size; ++_i1798) + org.apache.thrift.protocol.TList _list1868 = iprot.readListBegin(); + struct.success = new ArrayList(_list1868.size); + SchemaVersion _elem1869; + for (int _i1870 = 0; _i1870 < _list1868.size; ++_i1870) { - _elem1797 = new SchemaVersion(); - _elem1797.read(iprot); - struct.success.add(_elem1797); + _elem1869 = new SchemaVersion(); + _elem1869.read(iprot); + struct.success.add(_elem1869); } iprot.readListEnd(); } @@ -252035,9 +258825,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_all_ver oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (SchemaVersion _iter1799 : struct.success) + for (SchemaVersion _iter1871 : struct.success) { - _iter1799.write(oprot); + _iter1871.write(oprot); } oprot.writeListEnd(); } @@ -252084,9 +258874,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_all_vers if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (SchemaVersion _iter1800 : struct.success) + for (SchemaVersion _iter1872 : struct.success) { - _iter1800.write(oprot); + _iter1872.write(oprot); } } } @@ -252104,14 +258894,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_all_versi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1801.size); - SchemaVersion _elem1802; - for (int _i1803 = 0; _i1803 < _list1801.size; ++_i1803) + org.apache.thrift.protocol.TList _list1873 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1873.size); + SchemaVersion _elem1874; + for (int _i1875 = 0; _i1875 < _list1873.size; ++_i1875) { - _elem1802 = new SchemaVersion(); - _elem1802.read(iprot); - struct.success.add(_elem1802); + _elem1874 = new SchemaVersion(); + _elem1874.read(iprot); + struct.success.add(_elem1874); } } struct.setSuccessIsSet(true); @@ -260654,14 +267444,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_runtime_stats_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1804 = iprot.readListBegin(); - struct.success = new ArrayList(_list1804.size); - RuntimeStat _elem1805; - for (int _i1806 = 0; _i1806 < _list1804.size; ++_i1806) + org.apache.thrift.protocol.TList _list1876 = iprot.readListBegin(); + struct.success = new ArrayList(_list1876.size); + RuntimeStat _elem1877; + for (int _i1878 = 0; _i1878 < _list1876.size; ++_i1878) { - _elem1805 = new RuntimeStat(); - _elem1805.read(iprot); - struct.success.add(_elem1805); + _elem1877 = new RuntimeStat(); + _elem1877.read(iprot); + struct.success.add(_elem1877); } iprot.readListEnd(); } @@ -260696,9 +267486,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_runtime_stats_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (RuntimeStat _iter1807 : struct.success) + for (RuntimeStat _iter1879 : struct.success) { - _iter1807.write(oprot); + _iter1879.write(oprot); } oprot.writeListEnd(); } @@ -260737,9 +267527,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (RuntimeStat _iter1808 : struct.success) + for (RuntimeStat _iter1880 : struct.success) { - _iter1808.write(oprot); + _iter1880.write(oprot); } } } @@ -260754,14 +267544,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_re BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1809.size); - RuntimeStat _elem1810; - for (int _i1811 = 0; _i1811 < _list1809.size; ++_i1811) + org.apache.thrift.protocol.TList _list1881 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1881.size); + RuntimeStat _elem1882; + for (int _i1883 = 0; _i1883 < _list1881.size; ++_i1883) { - _elem1810 = new RuntimeStat(); - _elem1810.read(iprot); - struct.success.add(_elem1810); + _elem1882 = new RuntimeStat(); + _elem1882.read(iprot); + struct.success.add(_elem1882); } } struct.setSuccessIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 803faf7413..a20cb23b87 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -160,6 +160,14 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\UnknownDBException */ public function get_fields_with_environment_context($db_name, $table_name, \metastore\EnvironmentContext $environment_context); + /** + * @param \metastore\GetFieldsRequest $req + * @return \metastore\GetFieldsResponse + * @throws \metastore\MetaException + * @throws \metastore\UnknownTableException + * @throws \metastore\UnknownDBException + */ + public function get_fields_req(\metastore\GetFieldsRequest $req); /** * @param string $db_name * @param string $table_name @@ -179,6 +187,14 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\UnknownDBException */ public function get_schema_with_environment_context($db_name, $table_name, \metastore\EnvironmentContext $environment_context); + /** + * @param \metastore\GetSchemaRequest $req + * @return \metastore\GetSchemaResponse + * @throws \metastore\MetaException + * @throws \metastore\UnknownTableException + * @throws \metastore\UnknownDBException + */ + public function get_schema_req(\metastore\GetSchemaRequest $req); /** * @param \metastore\Table $tbl * @throws \metastore\AlreadyExistsException @@ -568,6 +584,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\NoSuchObjectException */ public function get_partition($db_name, $tbl_name, array $part_vals); + /** + * @param \metastore\GetPartitionRequest $req + * @return \metastore\GetPartitionResponse + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_partition_req(\metastore\GetPartitionRequest $req); /** * @param array $partitionSpecs * @param string $source_db @@ -623,6 +646,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\MetaException */ public function get_partitions($db_name, $tbl_name, $max_parts); + /** + * @param \metastore\PartitionsRequest $req + * @return \metastore\PartitionsResponse + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_partitions_req(\metastore\PartitionsRequest $req); /** * @param string $db_name * @param string $tbl_name @@ -681,6 +711,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\MetaException */ public function get_partitions_ps_with_auth($db_name, $tbl_name, array $part_vals, $max_parts, $user_name, array $group_names); + /** + * @param \metastore\GetPartitionsPsWithAuthRequest $req + * @return \metastore\GetPartitionsPsWithAuthResponse + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_partitions_ps_with_auth_req(\metastore\GetPartitionsPsWithAuthRequest $req); /** * @param string $db_name * @param string $tbl_name @@ -691,6 +728,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\NoSuchObjectException */ public function get_partition_names_ps($db_name, $tbl_name, array $part_vals, $max_parts); + /** + * @param \metastore\GetPartitionNamesPsRequest $req + * @return \metastore\GetPartitionNamesPsResponse + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_partition_names_ps_req(\metastore\GetPartitionNamesPsRequest $req); /** * @param \metastore\PartitionsByExprRequest $req * @return string[] @@ -2863,6 +2907,66 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_fields_with_environment_context failed: unknown result"); } + public function get_fields_req(\metastore\GetFieldsRequest $req) + { + $this->send_get_fields_req($req); + return $this->recv_get_fields_req(); + } + + public function send_get_fields_req(\metastore\GetFieldsRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_get_fields_req_args(); + $args->req = $req; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_fields_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_fields_req', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_fields_req() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_fields_req_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_get_fields_req_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + if ($result->o3 !== null) { + throw $result->o3; + } + throw new \Exception("get_fields_req failed: unknown result"); + } + public function get_schema($db_name, $table_name) { $this->send_get_schema($db_name, $table_name); @@ -2986,6 +3090,66 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_schema_with_environment_context failed: unknown result"); } + public function get_schema_req(\metastore\GetSchemaRequest $req) + { + $this->send_get_schema_req($req); + return $this->recv_get_schema_req(); + } + + public function send_get_schema_req(\metastore\GetSchemaRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_get_schema_req_args(); + $args->req = $req; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_schema_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_schema_req', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_schema_req() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_schema_req_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_get_schema_req_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + if ($result->o3 !== null) { + throw $result->o3; + } + throw new \Exception("get_schema_req failed: unknown result"); + } + public function create_table(\metastore\Table $tbl) { $this->send_create_table($tbl); @@ -5759,6 +5923,63 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partition failed: unknown result"); } + public function get_partition_req(\metastore\GetPartitionRequest $req) + { + $this->send_get_partition_req($req); + return $this->recv_get_partition_req(); + } + + public function send_get_partition_req(\metastore\GetPartitionRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_get_partition_req_args(); + $args->req = $req; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_partition_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_partition_req', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_partition_req() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_req_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_get_partition_req_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + throw new \Exception("get_partition_req failed: unknown result"); + } + public function exchange_partition(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) { $this->send_exchange_partition($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name); @@ -6072,6 +6293,63 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partitions failed: unknown result"); } + public function get_partitions_req(\metastore\PartitionsRequest $req) + { + $this->send_get_partitions_req($req); + return $this->recv_get_partitions_req(); + } + + public function send_get_partitions_req(\metastore\PartitionsRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_get_partitions_req_args(); + $args->req = $req; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_partitions_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_partitions_req', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_partitions_req() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_req_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_get_partitions_req_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + throw new \Exception("get_partitions_req failed: unknown result"); + } + public function get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, array $group_names) { $this->send_get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names); @@ -6430,6 +6708,63 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partitions_ps_with_auth failed: unknown result"); } + public function get_partitions_ps_with_auth_req(\metastore\GetPartitionsPsWithAuthRequest $req) + { + $this->send_get_partitions_ps_with_auth_req($req); + return $this->recv_get_partitions_ps_with_auth_req(); + } + + public function send_get_partitions_ps_with_auth_req(\metastore\GetPartitionsPsWithAuthRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_get_partitions_ps_with_auth_req_args(); + $args->req = $req; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_partitions_ps_with_auth_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_partitions_ps_with_auth_req', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_partitions_ps_with_auth_req() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_ps_with_auth_req_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_get_partitions_ps_with_auth_req_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + throw new \Exception("get_partitions_ps_with_auth_req failed: unknown result"); + } + public function get_partition_names_ps($db_name, $tbl_name, array $part_vals, $max_parts) { $this->send_get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts); @@ -6490,6 +6825,63 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partition_names_ps failed: unknown result"); } + public function get_partition_names_ps_req(\metastore\GetPartitionNamesPsRequest $req) + { + $this->send_get_partition_names_ps_req($req); + return $this->recv_get_partition_names_ps_req(); + } + + public function send_get_partition_names_ps_req(\metastore\GetPartitionNamesPsRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_get_partition_names_ps_req_args(); + $args->req = $req; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_partition_names_ps_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_partition_names_ps_req', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_partition_names_ps_req() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_names_ps_req_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_get_partition_names_ps_req_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + throw new \Exception("get_partition_names_ps_req failed: unknown result"); + } + public function get_partition_names_req(\metastore\PartitionsByExprRequest $req) { $this->send_get_partition_names_req($req); @@ -17252,14 +17644,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1064 = 0; - $_etype1067 = 0; - $xfer += $input->readListBegin($_etype1067, $_size1064); - for ($_i1068 = 0; $_i1068 < $_size1064; ++$_i1068) + $_size1127 = 0; + $_etype1130 = 0; + $xfer += $input->readListBegin($_etype1130, $_size1127); + for ($_i1131 = 0; $_i1131 < $_size1127; ++$_i1131) { - $elem1069 = null; - $xfer += $input->readString($elem1069); - $this->success []= $elem1069; + $elem1132 = null; + $xfer += $input->readString($elem1132); + $this->success []= $elem1132; } $xfer += $input->readListEnd(); } else { @@ -17295,9 +17687,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1070) + foreach ($this->success as $iter1133) { - $xfer += $output->writeString($iter1070); + $xfer += $output->writeString($iter1133); } } $output->writeListEnd(); @@ -17428,14 +17820,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1071 = 0; - $_etype1074 = 0; - $xfer += $input->readListBegin($_etype1074, $_size1071); - for ($_i1075 = 0; $_i1075 < $_size1071; ++$_i1075) + $_size1134 = 0; + $_etype1137 = 0; + $xfer += $input->readListBegin($_etype1137, $_size1134); + for ($_i1138 = 0; $_i1138 < $_size1134; ++$_i1138) { - $elem1076 = null; - $xfer += $input->readString($elem1076); - $this->success []= $elem1076; + $elem1139 = null; + $xfer += $input->readString($elem1139); + $this->success []= $elem1139; } $xfer += $input->readListEnd(); } else { @@ -17471,9 +17863,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1077) + foreach ($this->success as $iter1140) { - $xfer += $output->writeString($iter1077); + $xfer += $output->writeString($iter1140); } } $output->writeListEnd(); @@ -18474,18 +18866,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1078 = 0; - $_ktype1079 = 0; - $_vtype1080 = 0; - $xfer += $input->readMapBegin($_ktype1079, $_vtype1080, $_size1078); - for ($_i1082 = 0; $_i1082 < $_size1078; ++$_i1082) + $_size1141 = 0; + $_ktype1142 = 0; + $_vtype1143 = 0; + $xfer += $input->readMapBegin($_ktype1142, $_vtype1143, $_size1141); + for ($_i1145 = 0; $_i1145 < $_size1141; ++$_i1145) { - $key1083 = ''; - $val1084 = new \metastore\Type(); - $xfer += $input->readString($key1083); - $val1084 = new \metastore\Type(); - $xfer += $val1084->read($input); - $this->success[$key1083] = $val1084; + $key1146 = ''; + $val1147 = new \metastore\Type(); + $xfer += $input->readString($key1146); + $val1147 = new \metastore\Type(); + $xfer += $val1147->read($input); + $this->success[$key1146] = $val1147; } $xfer += $input->readMapEnd(); } else { @@ -18521,10 +18913,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter1085 => $viter1086) + foreach ($this->success as $kiter1148 => $viter1149) { - $xfer += $output->writeString($kiter1085); - $xfer += $viter1086->write($output); + $xfer += $output->writeString($kiter1148); + $xfer += $viter1149->write($output); } } $output->writeMapEnd(); @@ -18728,15 +19120,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1087 = 0; - $_etype1090 = 0; - $xfer += $input->readListBegin($_etype1090, $_size1087); - for ($_i1091 = 0; $_i1091 < $_size1087; ++$_i1091) + $_size1150 = 0; + $_etype1153 = 0; + $xfer += $input->readListBegin($_etype1153, $_size1150); + for ($_i1154 = 0; $_i1154 < $_size1150; ++$_i1154) { - $elem1092 = null; - $elem1092 = new \metastore\FieldSchema(); - $xfer += $elem1092->read($input); - $this->success []= $elem1092; + $elem1155 = null; + $elem1155 = new \metastore\FieldSchema(); + $xfer += $elem1155->read($input); + $this->success []= $elem1155; } $xfer += $input->readListEnd(); } else { @@ -18788,9 +19180,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1093) + foreach ($this->success as $iter1156) { - $xfer += $iter1093->write($output); + $xfer += $iter1156->write($output); } } $output->writeListEnd(); @@ -19032,15 +19424,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1094 = 0; - $_etype1097 = 0; - $xfer += $input->readListBegin($_etype1097, $_size1094); - for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) + $_size1157 = 0; + $_etype1160 = 0; + $xfer += $input->readListBegin($_etype1160, $_size1157); + for ($_i1161 = 0; $_i1161 < $_size1157; ++$_i1161) { - $elem1099 = null; - $elem1099 = new \metastore\FieldSchema(); - $xfer += $elem1099->read($input); - $this->success []= $elem1099; + $elem1162 = null; + $elem1162 = new \metastore\FieldSchema(); + $xfer += $elem1162->read($input); + $this->success []= $elem1162; } $xfer += $input->readListEnd(); } else { @@ -19092,9 +19484,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1100) + foreach ($this->success as $iter1163) { - $xfer += $iter1100->write($output); + $xfer += $iter1163->write($output); } } $output->writeListEnd(); @@ -19123,6 +19515,241 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { } +class ThriftHiveMetastore_get_fields_req_args { + static $_TSPEC; + + /** + * @var \metastore\GetFieldsRequest + */ + public $req = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'req', + 'type' => TType::STRUCT, + 'class' => '\metastore\GetFieldsRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['req'])) { + $this->req = $vals['req']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_fields_req_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->req = new \metastore\GetFieldsRequest(); + $xfer += $this->req->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_fields_req_args'); + if ($this->req !== null) { + if (!is_object($this->req)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); + $xfer += $this->req->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_fields_req_result { + static $_TSPEC; + + /** + * @var \metastore\GetFieldsResponse + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\UnknownTableException + */ + public $o2 = null; + /** + * @var \metastore\UnknownDBException + */ + public $o3 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\GetFieldsResponse', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\UnknownTableException', + ), + 3 => array( + 'var' => 'o3', + 'type' => TType::STRUCT, + 'class' => '\metastore\UnknownDBException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + if (isset($vals['o3'])) { + $this->o3 = $vals['o3']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_fields_req_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::STRUCT) { + $this->success = new \metastore\GetFieldsResponse(); + $xfer += $this->success->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\UnknownTableException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->o3 = new \metastore\UnknownDBException(); + $xfer += $this->o3->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_fields_req_result'); + if ($this->success !== null) { + if (!is_object($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o3 !== null) { + $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3); + $xfer += $this->o3->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_get_schema_args { static $_TSPEC; @@ -19308,15 +19935,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1101 = 0; - $_etype1104 = 0; - $xfer += $input->readListBegin($_etype1104, $_size1101); - for ($_i1105 = 0; $_i1105 < $_size1101; ++$_i1105) + $_size1164 = 0; + $_etype1167 = 0; + $xfer += $input->readListBegin($_etype1167, $_size1164); + for ($_i1168 = 0; $_i1168 < $_size1164; ++$_i1168) { - $elem1106 = null; - $elem1106 = new \metastore\FieldSchema(); - $xfer += $elem1106->read($input); - $this->success []= $elem1106; + $elem1169 = null; + $elem1169 = new \metastore\FieldSchema(); + $xfer += $elem1169->read($input); + $this->success []= $elem1169; } $xfer += $input->readListEnd(); } else { @@ -19368,9 +19995,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1107) + foreach ($this->success as $iter1170) { - $xfer += $iter1107->write($output); + $xfer += $iter1170->write($output); } } $output->writeListEnd(); @@ -19612,15 +20239,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1108 = 0; - $_etype1111 = 0; - $xfer += $input->readListBegin($_etype1111, $_size1108); - for ($_i1112 = 0; $_i1112 < $_size1108; ++$_i1112) + $_size1171 = 0; + $_etype1174 = 0; + $xfer += $input->readListBegin($_etype1174, $_size1171); + for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) { - $elem1113 = null; - $elem1113 = new \metastore\FieldSchema(); - $xfer += $elem1113->read($input); - $this->success []= $elem1113; + $elem1176 = null; + $elem1176 = new \metastore\FieldSchema(); + $xfer += $elem1176->read($input); + $this->success []= $elem1176; } $xfer += $input->readListEnd(); } else { @@ -19672,9 +20299,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1114) + foreach ($this->success as $iter1177) { - $xfer += $iter1114->write($output); + $xfer += $iter1177->write($output); } } $output->writeListEnd(); @@ -19703,6 +20330,241 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { } +class ThriftHiveMetastore_get_schema_req_args { + static $_TSPEC; + + /** + * @var \metastore\GetSchemaRequest + */ + public $req = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'req', + 'type' => TType::STRUCT, + 'class' => '\metastore\GetSchemaRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['req'])) { + $this->req = $vals['req']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_schema_req_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->req = new \metastore\GetSchemaRequest(); + $xfer += $this->req->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_schema_req_args'); + if ($this->req !== null) { + if (!is_object($this->req)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); + $xfer += $this->req->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_schema_req_result { + static $_TSPEC; + + /** + * @var \metastore\GetSchemaResponse + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\UnknownTableException + */ + public $o2 = null; + /** + * @var \metastore\UnknownDBException + */ + public $o3 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\GetSchemaResponse', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\UnknownTableException', + ), + 3 => array( + 'var' => 'o3', + 'type' => TType::STRUCT, + 'class' => '\metastore\UnknownDBException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + if (isset($vals['o3'])) { + $this->o3 = $vals['o3']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_schema_req_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::STRUCT) { + $this->success = new \metastore\GetSchemaResponse(); + $xfer += $this->success->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\UnknownTableException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->o3 = new \metastore\UnknownDBException(); + $xfer += $this->o3->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_schema_req_result'); + if ($this->success !== null) { + if (!is_object($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o3 !== null) { + $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3); + $xfer += $this->o3->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_create_table_args { static $_TSPEC; @@ -20346,15 +21208,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size1115 = 0; - $_etype1118 = 0; - $xfer += $input->readListBegin($_etype1118, $_size1115); - for ($_i1119 = 0; $_i1119 < $_size1115; ++$_i1119) + $_size1178 = 0; + $_etype1181 = 0; + $xfer += $input->readListBegin($_etype1181, $_size1178); + for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) { - $elem1120 = null; - $elem1120 = new \metastore\SQLPrimaryKey(); - $xfer += $elem1120->read($input); - $this->primaryKeys []= $elem1120; + $elem1183 = null; + $elem1183 = new \metastore\SQLPrimaryKey(); + $xfer += $elem1183->read($input); + $this->primaryKeys []= $elem1183; } $xfer += $input->readListEnd(); } else { @@ -20364,15 +21226,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size1121 = 0; - $_etype1124 = 0; - $xfer += $input->readListBegin($_etype1124, $_size1121); - for ($_i1125 = 0; $_i1125 < $_size1121; ++$_i1125) + $_size1184 = 0; + $_etype1187 = 0; + $xfer += $input->readListBegin($_etype1187, $_size1184); + for ($_i1188 = 0; $_i1188 < $_size1184; ++$_i1188) { - $elem1126 = null; - $elem1126 = new \metastore\SQLForeignKey(); - $xfer += $elem1126->read($input); - $this->foreignKeys []= $elem1126; + $elem1189 = null; + $elem1189 = new \metastore\SQLForeignKey(); + $xfer += $elem1189->read($input); + $this->foreignKeys []= $elem1189; } $xfer += $input->readListEnd(); } else { @@ -20382,15 +21244,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size1127 = 0; - $_etype1130 = 0; - $xfer += $input->readListBegin($_etype1130, $_size1127); - for ($_i1131 = 0; $_i1131 < $_size1127; ++$_i1131) + $_size1190 = 0; + $_etype1193 = 0; + $xfer += $input->readListBegin($_etype1193, $_size1190); + for ($_i1194 = 0; $_i1194 < $_size1190; ++$_i1194) { - $elem1132 = null; - $elem1132 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem1132->read($input); - $this->uniqueConstraints []= $elem1132; + $elem1195 = null; + $elem1195 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem1195->read($input); + $this->uniqueConstraints []= $elem1195; } $xfer += $input->readListEnd(); } else { @@ -20400,15 +21262,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size1133 = 0; - $_etype1136 = 0; - $xfer += $input->readListBegin($_etype1136, $_size1133); - for ($_i1137 = 0; $_i1137 < $_size1133; ++$_i1137) + $_size1196 = 0; + $_etype1199 = 0; + $xfer += $input->readListBegin($_etype1199, $_size1196); + for ($_i1200 = 0; $_i1200 < $_size1196; ++$_i1200) { - $elem1138 = null; - $elem1138 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem1138->read($input); - $this->notNullConstraints []= $elem1138; + $elem1201 = null; + $elem1201 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem1201->read($input); + $this->notNullConstraints []= $elem1201; } $xfer += $input->readListEnd(); } else { @@ -20418,15 +21280,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 6: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size1139 = 0; - $_etype1142 = 0; - $xfer += $input->readListBegin($_etype1142, $_size1139); - for ($_i1143 = 0; $_i1143 < $_size1139; ++$_i1143) + $_size1202 = 0; + $_etype1205 = 0; + $xfer += $input->readListBegin($_etype1205, $_size1202); + for ($_i1206 = 0; $_i1206 < $_size1202; ++$_i1206) { - $elem1144 = null; - $elem1144 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem1144->read($input); - $this->defaultConstraints []= $elem1144; + $elem1207 = null; + $elem1207 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem1207->read($input); + $this->defaultConstraints []= $elem1207; } $xfer += $input->readListEnd(); } else { @@ -20436,15 +21298,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 7: if ($ftype == TType::LST) { $this->checkConstraints = array(); - $_size1145 = 0; - $_etype1148 = 0; - $xfer += $input->readListBegin($_etype1148, $_size1145); - for ($_i1149 = 0; $_i1149 < $_size1145; ++$_i1149) + $_size1208 = 0; + $_etype1211 = 0; + $xfer += $input->readListBegin($_etype1211, $_size1208); + for ($_i1212 = 0; $_i1212 < $_size1208; ++$_i1212) { - $elem1150 = null; - $elem1150 = new \metastore\SQLCheckConstraint(); - $xfer += $elem1150->read($input); - $this->checkConstraints []= $elem1150; + $elem1213 = null; + $elem1213 = new \metastore\SQLCheckConstraint(); + $xfer += $elem1213->read($input); + $this->checkConstraints []= $elem1213; } $xfer += $input->readListEnd(); } else { @@ -20480,9 +21342,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter1151) + foreach ($this->primaryKeys as $iter1214) { - $xfer += $iter1151->write($output); + $xfer += $iter1214->write($output); } } $output->writeListEnd(); @@ -20497,9 +21359,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter1152) + foreach ($this->foreignKeys as $iter1215) { - $xfer += $iter1152->write($output); + $xfer += $iter1215->write($output); } } $output->writeListEnd(); @@ -20514,9 +21376,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter1153) + foreach ($this->uniqueConstraints as $iter1216) { - $xfer += $iter1153->write($output); + $xfer += $iter1216->write($output); } } $output->writeListEnd(); @@ -20531,9 +21393,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter1154) + foreach ($this->notNullConstraints as $iter1217) { - $xfer += $iter1154->write($output); + $xfer += $iter1217->write($output); } } $output->writeListEnd(); @@ -20548,9 +21410,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter1155) + foreach ($this->defaultConstraints as $iter1218) { - $xfer += $iter1155->write($output); + $xfer += $iter1218->write($output); } } $output->writeListEnd(); @@ -20565,9 +21427,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); { - foreach ($this->checkConstraints as $iter1156) + foreach ($this->checkConstraints as $iter1219) { - $xfer += $iter1156->write($output); + $xfer += $iter1219->write($output); } } $output->writeListEnd(); @@ -22799,14 +23661,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size1157 = 0; - $_etype1160 = 0; - $xfer += $input->readListBegin($_etype1160, $_size1157); - for ($_i1161 = 0; $_i1161 < $_size1157; ++$_i1161) + $_size1220 = 0; + $_etype1223 = 0; + $xfer += $input->readListBegin($_etype1223, $_size1220); + for ($_i1224 = 0; $_i1224 < $_size1220; ++$_i1224) { - $elem1162 = null; - $xfer += $input->readString($elem1162); - $this->partNames []= $elem1162; + $elem1225 = null; + $xfer += $input->readString($elem1225); + $this->partNames []= $elem1225; } $xfer += $input->readListEnd(); } else { @@ -22844,9 +23706,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter1163) + foreach ($this->partNames as $iter1226) { - $xfer += $output->writeString($iter1163); + $xfer += $output->writeString($iter1226); } } $output->writeListEnd(); @@ -23282,14 +24144,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1164 = 0; - $_etype1167 = 0; - $xfer += $input->readListBegin($_etype1167, $_size1164); - for ($_i1168 = 0; $_i1168 < $_size1164; ++$_i1168) + $_size1227 = 0; + $_etype1230 = 0; + $xfer += $input->readListBegin($_etype1230, $_size1227); + for ($_i1231 = 0; $_i1231 < $_size1227; ++$_i1231) { - $elem1169 = null; - $xfer += $input->readString($elem1169); - $this->success []= $elem1169; + $elem1232 = null; + $xfer += $input->readString($elem1232); + $this->success []= $elem1232; } $xfer += $input->readListEnd(); } else { @@ -23325,9 +24187,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1170) + foreach ($this->success as $iter1233) { - $xfer += $output->writeString($iter1170); + $xfer += $output->writeString($iter1233); } } $output->writeListEnd(); @@ -23529,14 +24391,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1171 = 0; - $_etype1174 = 0; - $xfer += $input->readListBegin($_etype1174, $_size1171); - for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) + $_size1234 = 0; + $_etype1237 = 0; + $xfer += $input->readListBegin($_etype1237, $_size1234); + for ($_i1238 = 0; $_i1238 < $_size1234; ++$_i1238) { - $elem1176 = null; - $xfer += $input->readString($elem1176); - $this->success []= $elem1176; + $elem1239 = null; + $xfer += $input->readString($elem1239); + $this->success []= $elem1239; } $xfer += $input->readListEnd(); } else { @@ -23572,9 +24434,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1177) + foreach ($this->success as $iter1240) { - $xfer += $output->writeString($iter1177); + $xfer += $output->writeString($iter1240); } } $output->writeListEnd(); @@ -23706,15 +24568,15 @@ class ThriftHiveMetastore_get_all_materialized_view_objects_for_rewriting_result case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1178 = 0; - $_etype1181 = 0; - $xfer += $input->readListBegin($_etype1181, $_size1178); - for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) + $_size1241 = 0; + $_etype1244 = 0; + $xfer += $input->readListBegin($_etype1244, $_size1241); + for ($_i1245 = 0; $_i1245 < $_size1241; ++$_i1245) { - $elem1183 = null; - $elem1183 = new \metastore\Table(); - $xfer += $elem1183->read($input); - $this->success []= $elem1183; + $elem1246 = null; + $elem1246 = new \metastore\Table(); + $xfer += $elem1246->read($input); + $this->success []= $elem1246; } $xfer += $input->readListEnd(); } else { @@ -23750,9 +24612,9 @@ class ThriftHiveMetastore_get_all_materialized_view_objects_for_rewriting_result { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1184) + foreach ($this->success as $iter1247) { - $xfer += $iter1184->write($output); + $xfer += $iter1247->write($output); } } $output->writeListEnd(); @@ -23908,14 +24770,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1185 = 0; - $_etype1188 = 0; - $xfer += $input->readListBegin($_etype1188, $_size1185); - for ($_i1189 = 0; $_i1189 < $_size1185; ++$_i1189) + $_size1248 = 0; + $_etype1251 = 0; + $xfer += $input->readListBegin($_etype1251, $_size1248); + for ($_i1252 = 0; $_i1252 < $_size1248; ++$_i1252) { - $elem1190 = null; - $xfer += $input->readString($elem1190); - $this->success []= $elem1190; + $elem1253 = null; + $xfer += $input->readString($elem1253); + $this->success []= $elem1253; } $xfer += $input->readListEnd(); } else { @@ -23951,9 +24813,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1191) + foreach ($this->success as $iter1254) { - $xfer += $output->writeString($iter1191); + $xfer += $output->writeString($iter1254); } } $output->writeListEnd(); @@ -24058,14 +24920,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size1192 = 0; - $_etype1195 = 0; - $xfer += $input->readListBegin($_etype1195, $_size1192); - for ($_i1196 = 0; $_i1196 < $_size1192; ++$_i1196) + $_size1255 = 0; + $_etype1258 = 0; + $xfer += $input->readListBegin($_etype1258, $_size1255); + for ($_i1259 = 0; $_i1259 < $_size1255; ++$_i1259) { - $elem1197 = null; - $xfer += $input->readString($elem1197); - $this->tbl_types []= $elem1197; + $elem1260 = null; + $xfer += $input->readString($elem1260); + $this->tbl_types []= $elem1260; } $xfer += $input->readListEnd(); } else { @@ -24103,9 +24965,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter1198) + foreach ($this->tbl_types as $iter1261) { - $xfer += $output->writeString($iter1198); + $xfer += $output->writeString($iter1261); } } $output->writeListEnd(); @@ -24182,15 +25044,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1199 = 0; - $_etype1202 = 0; - $xfer += $input->readListBegin($_etype1202, $_size1199); - for ($_i1203 = 0; $_i1203 < $_size1199; ++$_i1203) + $_size1262 = 0; + $_etype1265 = 0; + $xfer += $input->readListBegin($_etype1265, $_size1262); + for ($_i1266 = 0; $_i1266 < $_size1262; ++$_i1266) { - $elem1204 = null; - $elem1204 = new \metastore\TableMeta(); - $xfer += $elem1204->read($input); - $this->success []= $elem1204; + $elem1267 = null; + $elem1267 = new \metastore\TableMeta(); + $xfer += $elem1267->read($input); + $this->success []= $elem1267; } $xfer += $input->readListEnd(); } else { @@ -24226,9 +25088,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1205) + foreach ($this->success as $iter1268) { - $xfer += $iter1205->write($output); + $xfer += $iter1268->write($output); } } $output->writeListEnd(); @@ -24384,14 +25246,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1206 = 0; - $_etype1209 = 0; - $xfer += $input->readListBegin($_etype1209, $_size1206); - for ($_i1210 = 0; $_i1210 < $_size1206; ++$_i1210) + $_size1269 = 0; + $_etype1272 = 0; + $xfer += $input->readListBegin($_etype1272, $_size1269); + for ($_i1273 = 0; $_i1273 < $_size1269; ++$_i1273) { - $elem1211 = null; - $xfer += $input->readString($elem1211); - $this->success []= $elem1211; + $elem1274 = null; + $xfer += $input->readString($elem1274); + $this->success []= $elem1274; } $xfer += $input->readListEnd(); } else { @@ -24427,9 +25289,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1212) + foreach ($this->success as $iter1275) { - $xfer += $output->writeString($iter1212); + $xfer += $output->writeString($iter1275); } } $output->writeListEnd(); @@ -24744,14 +25606,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size1213 = 0; - $_etype1216 = 0; - $xfer += $input->readListBegin($_etype1216, $_size1213); - for ($_i1217 = 0; $_i1217 < $_size1213; ++$_i1217) + $_size1276 = 0; + $_etype1279 = 0; + $xfer += $input->readListBegin($_etype1279, $_size1276); + for ($_i1280 = 0; $_i1280 < $_size1276; ++$_i1280) { - $elem1218 = null; - $xfer += $input->readString($elem1218); - $this->tbl_names []= $elem1218; + $elem1281 = null; + $xfer += $input->readString($elem1281); + $this->tbl_names []= $elem1281; } $xfer += $input->readListEnd(); } else { @@ -24784,9 +25646,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter1219) + foreach ($this->tbl_names as $iter1282) { - $xfer += $output->writeString($iter1219); + $xfer += $output->writeString($iter1282); } } $output->writeListEnd(); @@ -24851,15 +25713,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1220 = 0; - $_etype1223 = 0; - $xfer += $input->readListBegin($_etype1223, $_size1220); - for ($_i1224 = 0; $_i1224 < $_size1220; ++$_i1224) + $_size1283 = 0; + $_etype1286 = 0; + $xfer += $input->readListBegin($_etype1286, $_size1283); + for ($_i1287 = 0; $_i1287 < $_size1283; ++$_i1287) { - $elem1225 = null; - $elem1225 = new \metastore\Table(); - $xfer += $elem1225->read($input); - $this->success []= $elem1225; + $elem1288 = null; + $elem1288 = new \metastore\Table(); + $xfer += $elem1288->read($input); + $this->success []= $elem1288; } $xfer += $input->readListEnd(); } else { @@ -24887,9 +25749,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1226) + foreach ($this->success as $iter1289) { - $xfer += $iter1226->write($output); + $xfer += $iter1289->write($output); } } $output->writeListEnd(); @@ -25046,15 +25908,15 @@ class ThriftHiveMetastore_get_tables_ext_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1227 = 0; - $_etype1230 = 0; - $xfer += $input->readListBegin($_etype1230, $_size1227); - for ($_i1231 = 0; $_i1231 < $_size1227; ++$_i1231) + $_size1290 = 0; + $_etype1293 = 0; + $xfer += $input->readListBegin($_etype1293, $_size1290); + for ($_i1294 = 0; $_i1294 < $_size1290; ++$_i1294) { - $elem1232 = null; - $elem1232 = new \metastore\ExtendedTableInfo(); - $xfer += $elem1232->read($input); - $this->success []= $elem1232; + $elem1295 = null; + $elem1295 = new \metastore\ExtendedTableInfo(); + $xfer += $elem1295->read($input); + $this->success []= $elem1295; } $xfer += $input->readListEnd(); } else { @@ -25090,9 +25952,9 @@ class ThriftHiveMetastore_get_tables_ext_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1233) + foreach ($this->success as $iter1296) { - $xfer += $iter1233->write($output); + $xfer += $iter1296->write($output); } } $output->writeListEnd(); @@ -26297,14 +27159,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1234 = 0; - $_etype1237 = 0; - $xfer += $input->readListBegin($_etype1237, $_size1234); - for ($_i1238 = 0; $_i1238 < $_size1234; ++$_i1238) + $_size1297 = 0; + $_etype1300 = 0; + $xfer += $input->readListBegin($_etype1300, $_size1297); + for ($_i1301 = 0; $_i1301 < $_size1297; ++$_i1301) { - $elem1239 = null; - $xfer += $input->readString($elem1239); - $this->success []= $elem1239; + $elem1302 = null; + $xfer += $input->readString($elem1302); + $this->success []= $elem1302; } $xfer += $input->readListEnd(); } else { @@ -26356,9 +27218,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1240) + foreach ($this->success as $iter1303) { - $xfer += $output->writeString($iter1240); + $xfer += $output->writeString($iter1303); } } $output->writeListEnd(); @@ -27881,15 +28743,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1241 = 0; - $_etype1244 = 0; - $xfer += $input->readListBegin($_etype1244, $_size1241); - for ($_i1245 = 0; $_i1245 < $_size1241; ++$_i1245) + $_size1304 = 0; + $_etype1307 = 0; + $xfer += $input->readListBegin($_etype1307, $_size1304); + for ($_i1308 = 0; $_i1308 < $_size1304; ++$_i1308) { - $elem1246 = null; - $elem1246 = new \metastore\Partition(); - $xfer += $elem1246->read($input); - $this->new_parts []= $elem1246; + $elem1309 = null; + $elem1309 = new \metastore\Partition(); + $xfer += $elem1309->read($input); + $this->new_parts []= $elem1309; } $xfer += $input->readListEnd(); } else { @@ -27917,9 +28779,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1247) + foreach ($this->new_parts as $iter1310) { - $xfer += $iter1247->write($output); + $xfer += $iter1310->write($output); } } $output->writeListEnd(); @@ -28134,15 +28996,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1248 = 0; - $_etype1251 = 0; - $xfer += $input->readListBegin($_etype1251, $_size1248); - for ($_i1252 = 0; $_i1252 < $_size1248; ++$_i1252) + $_size1311 = 0; + $_etype1314 = 0; + $xfer += $input->readListBegin($_etype1314, $_size1311); + for ($_i1315 = 0; $_i1315 < $_size1311; ++$_i1315) { - $elem1253 = null; - $elem1253 = new \metastore\PartitionSpec(); - $xfer += $elem1253->read($input); - $this->new_parts []= $elem1253; + $elem1316 = null; + $elem1316 = new \metastore\PartitionSpec(); + $xfer += $elem1316->read($input); + $this->new_parts []= $elem1316; } $xfer += $input->readListEnd(); } else { @@ -28170,9 +29032,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1254) + foreach ($this->new_parts as $iter1317) { - $xfer += $iter1254->write($output); + $xfer += $iter1317->write($output); } } $output->writeListEnd(); @@ -28422,14 +29284,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1255 = 0; - $_etype1258 = 0; - $xfer += $input->readListBegin($_etype1258, $_size1255); - for ($_i1259 = 0; $_i1259 < $_size1255; ++$_i1259) + $_size1318 = 0; + $_etype1321 = 0; + $xfer += $input->readListBegin($_etype1321, $_size1318); + for ($_i1322 = 0; $_i1322 < $_size1318; ++$_i1322) { - $elem1260 = null; - $xfer += $input->readString($elem1260); - $this->part_vals []= $elem1260; + $elem1323 = null; + $xfer += $input->readString($elem1323); + $this->part_vals []= $elem1323; } $xfer += $input->readListEnd(); } else { @@ -28467,9 +29329,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1261) + foreach ($this->part_vals as $iter1324) { - $xfer += $output->writeString($iter1261); + $xfer += $output->writeString($iter1324); } } $output->writeListEnd(); @@ -28971,14 +29833,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1262 = 0; - $_etype1265 = 0; - $xfer += $input->readListBegin($_etype1265, $_size1262); - for ($_i1266 = 0; $_i1266 < $_size1262; ++$_i1266) + $_size1325 = 0; + $_etype1328 = 0; + $xfer += $input->readListBegin($_etype1328, $_size1325); + for ($_i1329 = 0; $_i1329 < $_size1325; ++$_i1329) { - $elem1267 = null; - $xfer += $input->readString($elem1267); - $this->part_vals []= $elem1267; + $elem1330 = null; + $xfer += $input->readString($elem1330); + $this->part_vals []= $elem1330; } $xfer += $input->readListEnd(); } else { @@ -29024,9 +29886,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1268) + foreach ($this->part_vals as $iter1331) { - $xfer += $output->writeString($iter1268); + $xfer += $output->writeString($iter1331); } } $output->writeListEnd(); @@ -29880,14 +30742,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1269 = 0; - $_etype1272 = 0; - $xfer += $input->readListBegin($_etype1272, $_size1269); - for ($_i1273 = 0; $_i1273 < $_size1269; ++$_i1273) + $_size1332 = 0; + $_etype1335 = 0; + $xfer += $input->readListBegin($_etype1335, $_size1332); + for ($_i1336 = 0; $_i1336 < $_size1332; ++$_i1336) { - $elem1274 = null; - $xfer += $input->readString($elem1274); - $this->part_vals []= $elem1274; + $elem1337 = null; + $xfer += $input->readString($elem1337); + $this->part_vals []= $elem1337; } $xfer += $input->readListEnd(); } else { @@ -29932,9 +30794,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1275) + foreach ($this->part_vals as $iter1338) { - $xfer += $output->writeString($iter1275); + $xfer += $output->writeString($iter1338); } } $output->writeListEnd(); @@ -30187,14 +31049,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1276 = 0; - $_etype1279 = 0; - $xfer += $input->readListBegin($_etype1279, $_size1276); - for ($_i1280 = 0; $_i1280 < $_size1276; ++$_i1280) + $_size1339 = 0; + $_etype1342 = 0; + $xfer += $input->readListBegin($_etype1342, $_size1339); + for ($_i1343 = 0; $_i1343 < $_size1339; ++$_i1343) { - $elem1281 = null; - $xfer += $input->readString($elem1281); - $this->part_vals []= $elem1281; + $elem1344 = null; + $xfer += $input->readString($elem1344); + $this->part_vals []= $elem1344; } $xfer += $input->readListEnd(); } else { @@ -30247,9 +31109,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1282) + foreach ($this->part_vals as $iter1345) { - $xfer += $output->writeString($iter1282); + $xfer += $output->writeString($iter1345); } } $output->writeListEnd(); @@ -31263,14 +32125,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1283 = 0; - $_etype1286 = 0; - $xfer += $input->readListBegin($_etype1286, $_size1283); - for ($_i1287 = 0; $_i1287 < $_size1283; ++$_i1287) + $_size1346 = 0; + $_etype1349 = 0; + $xfer += $input->readListBegin($_etype1349, $_size1346); + for ($_i1350 = 0; $_i1350 < $_size1346; ++$_i1350) { - $elem1288 = null; - $xfer += $input->readString($elem1288); - $this->part_vals []= $elem1288; + $elem1351 = null; + $xfer += $input->readString($elem1351); + $this->part_vals []= $elem1351; } $xfer += $input->readListEnd(); } else { @@ -31308,9 +32170,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1289) + foreach ($this->part_vals as $iter1352) { - $xfer += $output->writeString($iter1289); + $xfer += $output->writeString($iter1352); } } $output->writeListEnd(); @@ -31454,84 +32316,33 @@ class ThriftHiveMetastore_get_partition_result { } -class ThriftHiveMetastore_exchange_partition_args { +class ThriftHiveMetastore_get_partition_req_args { static $_TSPEC; /** - * @var array - */ - public $partitionSpecs = null; - /** - * @var string - */ - public $source_db = null; - /** - * @var string - */ - public $source_table_name = null; - /** - * @var string - */ - public $dest_db = null; - /** - * @var string + * @var \metastore\GetPartitionRequest */ - public $dest_table_name = null; + public $req = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'partitionSpecs', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, - ), - ), - 2 => array( - 'var' => 'source_db', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'source_table_name', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'dest_db', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'dest_table_name', - 'type' => TType::STRING, + 'var' => 'req', + 'type' => TType::STRUCT, + 'class' => '\metastore\GetPartitionRequest', ), ); } if (is_array($vals)) { - if (isset($vals['partitionSpecs'])) { - $this->partitionSpecs = $vals['partitionSpecs']; - } - if (isset($vals['source_db'])) { - $this->source_db = $vals['source_db']; - } - if (isset($vals['source_table_name'])) { - $this->source_table_name = $vals['source_table_name']; - } - if (isset($vals['dest_db'])) { - $this->dest_db = $vals['dest_db']; - } - if (isset($vals['dest_table_name'])) { - $this->dest_table_name = $vals['dest_table_name']; + if (isset($vals['req'])) { + $this->req = $vals['req']; } } } public function getName() { - return 'ThriftHiveMetastore_exchange_partition_args'; + return 'ThriftHiveMetastore_get_partition_req_args'; } public function read($input) @@ -31550,49 +32361,9 @@ class ThriftHiveMetastore_exchange_partition_args { switch ($fid) { case 1: - if ($ftype == TType::MAP) { - $this->partitionSpecs = array(); - $_size1290 = 0; - $_ktype1291 = 0; - $_vtype1292 = 0; - $xfer += $input->readMapBegin($_ktype1291, $_vtype1292, $_size1290); - for ($_i1294 = 0; $_i1294 < $_size1290; ++$_i1294) - { - $key1295 = ''; - $val1296 = ''; - $xfer += $input->readString($key1295); - $xfer += $input->readString($val1296); - $this->partitionSpecs[$key1295] = $val1296; - } - $xfer += $input->readMapEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->source_db); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->source_table_name); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dest_db); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dest_table_name); + if ($ftype == TType::STRUCT) { + $this->req = new \metastore\GetPartitionRequest(); + $xfer += $this->req->read($input); } else { $xfer += $input->skip($ftype); } @@ -31609,43 +32380,13 @@ class ThriftHiveMetastore_exchange_partition_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partition_args'); - if ($this->partitionSpecs !== null) { - if (!is_array($this->partitionSpecs)) { + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_req_args'); + if ($this->req !== null) { + if (!is_object($this->req)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('partitionSpecs', TType::MAP, 1); - { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); - { - foreach ($this->partitionSpecs as $kiter1297 => $viter1298) - { - $xfer += $output->writeString($kiter1297); - $xfer += $output->writeString($viter1298); - } - } - $output->writeMapEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->source_db !== null) { - $xfer += $output->writeFieldBegin('source_db', TType::STRING, 2); - $xfer += $output->writeString($this->source_db); - $xfer += $output->writeFieldEnd(); - } - if ($this->source_table_name !== null) { - $xfer += $output->writeFieldBegin('source_table_name', TType::STRING, 3); - $xfer += $output->writeString($this->source_table_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->dest_db !== null) { - $xfer += $output->writeFieldBegin('dest_db', TType::STRING, 4); - $xfer += $output->writeString($this->dest_db); - $xfer += $output->writeFieldEnd(); - } - if ($this->dest_table_name !== null) { - $xfer += $output->writeFieldBegin('dest_table_name', TType::STRING, 5); - $xfer += $output->writeString($this->dest_table_name); + $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); + $xfer += $this->req->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -31655,11 +32396,11 @@ class ThriftHiveMetastore_exchange_partition_args { } -class ThriftHiveMetastore_exchange_partition_result { +class ThriftHiveMetastore_get_partition_req_result { static $_TSPEC; /** - * @var \metastore\Partition + * @var \metastore\GetPartitionResponse */ public $success = null; /** @@ -31670,14 +32411,6 @@ class ThriftHiveMetastore_exchange_partition_result { * @var \metastore\NoSuchObjectException */ public $o2 = null; - /** - * @var \metastore\InvalidObjectException - */ - public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ - public $o4 = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -31685,7 +32418,7 @@ class ThriftHiveMetastore_exchange_partition_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => '\metastore\Partition', + 'class' => '\metastore\GetPartitionResponse', ), 1 => array( 'var' => 'o1', @@ -31697,16 +32430,6 @@ class ThriftHiveMetastore_exchange_partition_result { 'type' => TType::STRUCT, 'class' => '\metastore\NoSuchObjectException', ), - 3 => array( - 'var' => 'o3', - 'type' => TType::STRUCT, - 'class' => '\metastore\InvalidObjectException', - ), - 4 => array( - 'var' => 'o4', - 'type' => TType::STRUCT, - 'class' => '\metastore\InvalidInputException', - ), ); } if (is_array($vals)) { @@ -31719,17 +32442,11 @@ class ThriftHiveMetastore_exchange_partition_result { if (isset($vals['o2'])) { $this->o2 = $vals['o2']; } - if (isset($vals['o3'])) { - $this->o3 = $vals['o3']; - } - if (isset($vals['o4'])) { - $this->o4 = $vals['o4']; - } } } public function getName() { - return 'ThriftHiveMetastore_exchange_partition_result'; + return 'ThriftHiveMetastore_get_partition_req_result'; } public function read($input) @@ -31749,7 +32466,7 @@ class ThriftHiveMetastore_exchange_partition_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new \metastore\Partition(); + $this->success = new \metastore\GetPartitionResponse(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -31771,22 +32488,6 @@ class ThriftHiveMetastore_exchange_partition_result { $xfer += $input->skip($ftype); } break; - case 3: - if ($ftype == TType::STRUCT) { - $this->o3 = new \metastore\InvalidObjectException(); - $xfer += $this->o3->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRUCT) { - $this->o4 = new \metastore\InvalidInputException(); - $xfer += $this->o4->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -31799,7 +32500,7 @@ class ThriftHiveMetastore_exchange_partition_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partition_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_req_result'); if ($this->success !== null) { if (!is_object($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -31818,16 +32519,6 @@ class ThriftHiveMetastore_exchange_partition_result { $xfer += $this->o2->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->o3 !== null) { - $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3); - $xfer += $this->o3->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->o4 !== null) { - $xfer += $output->writeFieldBegin('o4', TType::STRUCT, 4); - $xfer += $this->o4->write($output); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -31835,7 +32526,7 @@ class ThriftHiveMetastore_exchange_partition_result { } -class ThriftHiveMetastore_exchange_partitions_args { +class ThriftHiveMetastore_exchange_partition_args { static $_TSPEC; /** @@ -31912,7 +32603,7 @@ class ThriftHiveMetastore_exchange_partitions_args { } public function getName() { - return 'ThriftHiveMetastore_exchange_partitions_args'; + return 'ThriftHiveMetastore_exchange_partition_args'; } public function read($input) @@ -31933,17 +32624,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1299 = 0; - $_ktype1300 = 0; - $_vtype1301 = 0; - $xfer += $input->readMapBegin($_ktype1300, $_vtype1301, $_size1299); - for ($_i1303 = 0; $_i1303 < $_size1299; ++$_i1303) + $_size1353 = 0; + $_ktype1354 = 0; + $_vtype1355 = 0; + $xfer += $input->readMapBegin($_ktype1354, $_vtype1355, $_size1353); + for ($_i1357 = 0; $_i1357 < $_size1353; ++$_i1357) { - $key1304 = ''; - $val1305 = ''; - $xfer += $input->readString($key1304); - $xfer += $input->readString($val1305); - $this->partitionSpecs[$key1304] = $val1305; + $key1358 = ''; + $val1359 = ''; + $xfer += $input->readString($key1358); + $xfer += $input->readString($val1359); + $this->partitionSpecs[$key1358] = $val1359; } $xfer += $input->readMapEnd(); } else { @@ -31990,7 +32681,7 @@ class ThriftHiveMetastore_exchange_partitions_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partition_args'); if ($this->partitionSpecs !== null) { if (!is_array($this->partitionSpecs)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -31999,10 +32690,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1306 => $viter1307) + foreach ($this->partitionSpecs as $kiter1360 => $viter1361) { - $xfer += $output->writeString($kiter1306); - $xfer += $output->writeString($viter1307); + $xfer += $output->writeString($kiter1360); + $xfer += $output->writeString($viter1361); } } $output->writeMapEnd(); @@ -32036,11 +32727,11 @@ class ThriftHiveMetastore_exchange_partitions_args { } -class ThriftHiveMetastore_exchange_partitions_result { +class ThriftHiveMetastore_exchange_partition_result { static $_TSPEC; /** - * @var \metastore\Partition[] + * @var \metastore\Partition */ public $success = null; /** @@ -32065,12 +32756,8 @@ class ThriftHiveMetastore_exchange_partitions_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\Partition', - ), + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', ), 1 => array( 'var' => 'o1', @@ -32114,7 +32801,7 @@ class ThriftHiveMetastore_exchange_partitions_result { } public function getName() { - return 'ThriftHiveMetastore_exchange_partitions_result'; + return 'ThriftHiveMetastore_exchange_partition_result'; } public function read($input) @@ -32133,19 +32820,9 @@ class ThriftHiveMetastore_exchange_partitions_result { switch ($fid) { case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size1308 = 0; - $_etype1311 = 0; - $xfer += $input->readListBegin($_etype1311, $_size1308); - for ($_i1312 = 0; $_i1312 < $_size1308; ++$_i1312) - { - $elem1313 = null; - $elem1313 = new \metastore\Partition(); - $xfer += $elem1313->read($input); - $this->success []= $elem1313; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRUCT) { + $this->success = new \metastore\Partition(); + $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); } @@ -32194,22 +32871,13 @@ class ThriftHiveMetastore_exchange_partitions_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partition_result'); if ($this->success !== null) { - if (!is_array($this->success)) { + if (!is_object($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter1314) - { - $xfer += $iter1314->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -32239,84 +32907,84 @@ class ThriftHiveMetastore_exchange_partitions_result { } -class ThriftHiveMetastore_get_partition_with_auth_args { +class ThriftHiveMetastore_exchange_partitions_args { static $_TSPEC; /** - * @var string + * @var array */ - public $db_name = null; + public $partitionSpecs = null; /** * @var string */ - public $tbl_name = null; + public $source_db = null; /** - * @var string[] + * @var string */ - public $part_vals = null; + public $source_table_name = null; /** * @var string */ - public $user_name = null; + public $dest_db = null; /** - * @var string[] + * @var string */ - public $group_names = null; + public $dest_table_name = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'db_name', - 'type' => TType::STRING, + 'var' => 'partitionSpecs', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), ), 2 => array( - 'var' => 'tbl_name', + 'var' => 'source_db', 'type' => TType::STRING, ), 3 => array( - 'var' => 'part_vals', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), + 'var' => 'source_table_name', + 'type' => TType::STRING, ), 4 => array( - 'var' => 'user_name', + 'var' => 'dest_db', 'type' => TType::STRING, ), 5 => array( - 'var' => 'group_names', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), + 'var' => 'dest_table_name', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['db_name'])) { - $this->db_name = $vals['db_name']; + if (isset($vals['partitionSpecs'])) { + $this->partitionSpecs = $vals['partitionSpecs']; } - if (isset($vals['tbl_name'])) { - $this->tbl_name = $vals['tbl_name']; + if (isset($vals['source_db'])) { + $this->source_db = $vals['source_db']; } - if (isset($vals['part_vals'])) { - $this->part_vals = $vals['part_vals']; + if (isset($vals['source_table_name'])) { + $this->source_table_name = $vals['source_table_name']; } - if (isset($vals['user_name'])) { - $this->user_name = $vals['user_name']; + if (isset($vals['dest_db'])) { + $this->dest_db = $vals['dest_db']; } - if (isset($vals['group_names'])) { - $this->group_names = $vals['group_names']; + if (isset($vals['dest_table_name'])) { + $this->dest_table_name = $vals['dest_table_name']; } } } public function getName() { - return 'ThriftHiveMetastore_get_partition_with_auth_args'; + return 'ThriftHiveMetastore_exchange_partitions_args'; } public function read($input) @@ -32335,56 +33003,49 @@ class ThriftHiveMetastore_get_partition_with_auth_args { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->db_name); + if ($ftype == TType::MAP) { + $this->partitionSpecs = array(); + $_size1362 = 0; + $_ktype1363 = 0; + $_vtype1364 = 0; + $xfer += $input->readMapBegin($_ktype1363, $_vtype1364, $_size1362); + for ($_i1366 = 0; $_i1366 < $_size1362; ++$_i1366) + { + $key1367 = ''; + $val1368 = ''; + $xfer += $input->readString($key1367); + $xfer += $input->readString($val1368); + $this->partitionSpecs[$key1367] = $val1368; + } + $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tbl_name); + $xfer += $input->readString($this->source_db); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::LST) { - $this->part_vals = array(); - $_size1315 = 0; - $_etype1318 = 0; - $xfer += $input->readListBegin($_etype1318, $_size1315); - for ($_i1319 = 0; $_i1319 < $_size1315; ++$_i1319) - { - $elem1320 = null; - $xfer += $input->readString($elem1320); - $this->part_vals []= $elem1320; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->source_table_name); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->user_name); + $xfer += $input->readString($this->dest_db); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::LST) { - $this->group_names = array(); - $_size1321 = 0; - $_etype1324 = 0; - $xfer += $input->readListBegin($_etype1324, $_size1321); - for ($_i1325 = 0; $_i1325 < $_size1321; ++$_i1325) - { - $elem1326 = null; - $xfer += $input->readString($elem1326); - $this->group_names []= $elem1326; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dest_table_name); } else { $xfer += $input->skip($ftype); } @@ -32401,54 +33062,43 @@ class ThriftHiveMetastore_get_partition_with_auth_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_with_auth_args'); - if ($this->db_name !== null) { - $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); - $xfer += $output->writeString($this->db_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->tbl_name !== null) { - $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2); - $xfer += $output->writeString($this->tbl_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->part_vals !== null) { - if (!is_array($this->part_vals)) { + $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_args'); + if ($this->partitionSpecs !== null) { + if (!is_array($this->partitionSpecs)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3); + $xfer += $output->writeFieldBegin('partitionSpecs', TType::MAP, 1); { - $output->writeListBegin(TType::STRING, count($this->part_vals)); + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->part_vals as $iter1327) + foreach ($this->partitionSpecs as $kiter1369 => $viter1370) { - $xfer += $output->writeString($iter1327); + $xfer += $output->writeString($kiter1369); + $xfer += $output->writeString($viter1370); } } - $output->writeListEnd(); + $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } - if ($this->user_name !== null) { - $xfer += $output->writeFieldBegin('user_name', TType::STRING, 4); - $xfer += $output->writeString($this->user_name); + if ($this->source_db !== null) { + $xfer += $output->writeFieldBegin('source_db', TType::STRING, 2); + $xfer += $output->writeString($this->source_db); $xfer += $output->writeFieldEnd(); } - if ($this->group_names !== null) { - if (!is_array($this->group_names)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('group_names', TType::LST, 5); - { - $output->writeListBegin(TType::STRING, count($this->group_names)); - { - foreach ($this->group_names as $iter1328) - { - $xfer += $output->writeString($iter1328); - } - } - $output->writeListEnd(); - } + if ($this->source_table_name !== null) { + $xfer += $output->writeFieldBegin('source_table_name', TType::STRING, 3); + $xfer += $output->writeString($this->source_table_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->dest_db !== null) { + $xfer += $output->writeFieldBegin('dest_db', TType::STRING, 4); + $xfer += $output->writeString($this->dest_db); + $xfer += $output->writeFieldEnd(); + } + if ($this->dest_table_name !== null) { + $xfer += $output->writeFieldBegin('dest_table_name', TType::STRING, 5); + $xfer += $output->writeString($this->dest_table_name); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -32458,11 +33108,11 @@ class ThriftHiveMetastore_get_partition_with_auth_args { } -class ThriftHiveMetastore_get_partition_with_auth_result { +class ThriftHiveMetastore_exchange_partitions_result { static $_TSPEC; /** - * @var \metastore\Partition + * @var \metastore\Partition[] */ public $success = null; /** @@ -32473,14 +33123,26 @@ class ThriftHiveMetastore_get_partition_with_auth_result { * @var \metastore\NoSuchObjectException */ public $o2 = null; + /** + * @var \metastore\InvalidObjectException + */ + public $o3 = null; + /** + * @var \metastore\InvalidInputException + */ + public $o4 = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::STRUCT, - 'class' => '\metastore\Partition', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), ), 1 => array( 'var' => 'o1', @@ -32492,6 +33154,16 @@ class ThriftHiveMetastore_get_partition_with_auth_result { 'type' => TType::STRUCT, 'class' => '\metastore\NoSuchObjectException', ), + 3 => array( + 'var' => 'o3', + 'type' => TType::STRUCT, + 'class' => '\metastore\InvalidObjectException', + ), + 4 => array( + 'var' => 'o4', + 'type' => TType::STRUCT, + 'class' => '\metastore\InvalidInputException', + ), ); } if (is_array($vals)) { @@ -32504,11 +33176,17 @@ class ThriftHiveMetastore_get_partition_with_auth_result { if (isset($vals['o2'])) { $this->o2 = $vals['o2']; } + if (isset($vals['o3'])) { + $this->o3 = $vals['o3']; + } + if (isset($vals['o4'])) { + $this->o4 = $vals['o4']; + } } } public function getName() { - return 'ThriftHiveMetastore_get_partition_with_auth_result'; + return 'ThriftHiveMetastore_exchange_partitions_result'; } public function read($input) @@ -32527,9 +33205,19 @@ class ThriftHiveMetastore_get_partition_with_auth_result { switch ($fid) { case 0: - if ($ftype == TType::STRUCT) { - $this->success = new \metastore\Partition(); - $xfer += $this->success->read($input); + if ($ftype == TType::LST) { + $this->success = array(); + $_size1371 = 0; + $_etype1374 = 0; + $xfer += $input->readListBegin($_etype1374, $_size1371); + for ($_i1375 = 0; $_i1375 < $_size1371; ++$_i1375) + { + $elem1376 = null; + $elem1376 = new \metastore\Partition(); + $xfer += $elem1376->read($input); + $this->success []= $elem1376; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -32550,6 +33238,22 @@ class ThriftHiveMetastore_get_partition_with_auth_result { $xfer += $input->skip($ftype); } break; + case 3: + if ($ftype == TType::STRUCT) { + $this->o3 = new \metastore\InvalidObjectException(); + $xfer += $this->o3->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRUCT) { + $this->o4 = new \metastore\InvalidInputException(); + $xfer += $this->o4->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -32562,13 +33266,22 @@ class ThriftHiveMetastore_get_partition_with_auth_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_with_auth_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_result'); if ($this->success !== null) { - if (!is_object($this->success)) { + if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); - $xfer += $this->success->write($output); + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter1377) + { + $xfer += $iter1377->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -32581,6 +33294,16 @@ class ThriftHiveMetastore_get_partition_with_auth_result { $xfer += $this->o2->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->o3 !== null) { + $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3); + $xfer += $this->o3->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o4 !== null) { + $xfer += $output->writeFieldBegin('o4', TType::STRUCT, 4); + $xfer += $this->o4->write($output); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -32588,7 +33311,7 @@ class ThriftHiveMetastore_get_partition_with_auth_result { } -class ThriftHiveMetastore_get_partition_by_name_args { +class ThriftHiveMetastore_get_partition_with_auth_args { static $_TSPEC; /** @@ -32599,10 +33322,18 @@ class ThriftHiveMetastore_get_partition_by_name_args { * @var string */ public $tbl_name = null; + /** + * @var string[] + */ + public $part_vals = null; /** * @var string */ - public $part_name = null; + public $user_name = null; + /** + * @var string[] + */ + public $group_names = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -32616,9 +33347,25 @@ class ThriftHiveMetastore_get_partition_by_name_args { 'type' => TType::STRING, ), 3 => array( - 'var' => 'part_name', + 'var' => 'part_vals', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 4 => array( + 'var' => 'user_name', 'type' => TType::STRING, ), + 5 => array( + 'var' => 'group_names', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), ); } if (is_array($vals)) { @@ -32628,14 +33375,20 @@ class ThriftHiveMetastore_get_partition_by_name_args { if (isset($vals['tbl_name'])) { $this->tbl_name = $vals['tbl_name']; } - if (isset($vals['part_name'])) { - $this->part_name = $vals['part_name']; + if (isset($vals['part_vals'])) { + $this->part_vals = $vals['part_vals']; + } + if (isset($vals['user_name'])) { + $this->user_name = $vals['user_name']; + } + if (isset($vals['group_names'])) { + $this->group_names = $vals['group_names']; } } } public function getName() { - return 'ThriftHiveMetastore_get_partition_by_name_args'; + return 'ThriftHiveMetastore_get_partition_with_auth_args'; } public function read($input) @@ -32668,8 +33421,42 @@ class ThriftHiveMetastore_get_partition_by_name_args { } break; case 3: + if ($ftype == TType::LST) { + $this->part_vals = array(); + $_size1378 = 0; + $_etype1381 = 0; + $xfer += $input->readListBegin($_etype1381, $_size1378); + for ($_i1382 = 0; $_i1382 < $_size1378; ++$_i1382) + { + $elem1383 = null; + $xfer += $input->readString($elem1383); + $this->part_vals []= $elem1383; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->part_name); + $xfer += $input->readString($this->user_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::LST) { + $this->group_names = array(); + $_size1384 = 0; + $_etype1387 = 0; + $xfer += $input->readListBegin($_etype1387, $_size1384); + for ($_i1388 = 0; $_i1388 < $_size1384; ++$_i1388) + { + $elem1389 = null; + $xfer += $input->readString($elem1389); + $this->group_names []= $elem1389; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -32686,7 +33473,7 @@ class ThriftHiveMetastore_get_partition_by_name_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_by_name_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_with_auth_args'); if ($this->db_name !== null) { $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); $xfer += $output->writeString($this->db_name); @@ -32697,9 +33484,43 @@ class ThriftHiveMetastore_get_partition_by_name_args { $xfer += $output->writeString($this->tbl_name); $xfer += $output->writeFieldEnd(); } - if ($this->part_name !== null) { - $xfer += $output->writeFieldBegin('part_name', TType::STRING, 3); - $xfer += $output->writeString($this->part_name); + if ($this->part_vals !== null) { + if (!is_array($this->part_vals)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3); + { + $output->writeListBegin(TType::STRING, count($this->part_vals)); + { + foreach ($this->part_vals as $iter1390) + { + $xfer += $output->writeString($iter1390); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->user_name !== null) { + $xfer += $output->writeFieldBegin('user_name', TType::STRING, 4); + $xfer += $output->writeString($this->user_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->group_names !== null) { + if (!is_array($this->group_names)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('group_names', TType::LST, 5); + { + $output->writeListBegin(TType::STRING, count($this->group_names)); + { + foreach ($this->group_names as $iter1391) + { + $xfer += $output->writeString($iter1391); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -32709,7 +33530,7 @@ class ThriftHiveMetastore_get_partition_by_name_args { } -class ThriftHiveMetastore_get_partition_by_name_result { +class ThriftHiveMetastore_get_partition_with_auth_result { static $_TSPEC; /** @@ -32759,7 +33580,7 @@ class ThriftHiveMetastore_get_partition_by_name_result { } public function getName() { - return 'ThriftHiveMetastore_get_partition_by_name_result'; + return 'ThriftHiveMetastore_get_partition_with_auth_result'; } public function read($input) @@ -32813,7 +33634,7 @@ class ThriftHiveMetastore_get_partition_by_name_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_by_name_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_with_auth_result'); if ($this->success !== null) { if (!is_object($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -32839,7 +33660,7 @@ class ThriftHiveMetastore_get_partition_by_name_result { } -class ThriftHiveMetastore_get_partitions_args { +class ThriftHiveMetastore_get_partition_by_name_args { static $_TSPEC; /** @@ -32851,9 +33672,9 @@ class ThriftHiveMetastore_get_partitions_args { */ public $tbl_name = null; /** - * @var int + * @var string */ - public $max_parts = -1; + public $part_name = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -32867,8 +33688,8 @@ class ThriftHiveMetastore_get_partitions_args { 'type' => TType::STRING, ), 3 => array( - 'var' => 'max_parts', - 'type' => TType::I16, + 'var' => 'part_name', + 'type' => TType::STRING, ), ); } @@ -32879,14 +33700,14 @@ class ThriftHiveMetastore_get_partitions_args { if (isset($vals['tbl_name'])) { $this->tbl_name = $vals['tbl_name']; } - if (isset($vals['max_parts'])) { - $this->max_parts = $vals['max_parts']; + if (isset($vals['part_name'])) { + $this->part_name = $vals['part_name']; } } } public function getName() { - return 'ThriftHiveMetastore_get_partitions_args'; + return 'ThriftHiveMetastore_get_partition_by_name_args'; } public function read($input) @@ -32919,8 +33740,8 @@ class ThriftHiveMetastore_get_partitions_args { } break; case 3: - if ($ftype == TType::I16) { - $xfer += $input->readI16($this->max_parts); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->part_name); } else { $xfer += $input->skip($ftype); } @@ -32937,7 +33758,7 @@ class ThriftHiveMetastore_get_partitions_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_by_name_args'); if ($this->db_name !== null) { $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); $xfer += $output->writeString($this->db_name); @@ -32948,9 +33769,9 @@ class ThriftHiveMetastore_get_partitions_args { $xfer += $output->writeString($this->tbl_name); $xfer += $output->writeFieldEnd(); } - if ($this->max_parts !== null) { - $xfer += $output->writeFieldBegin('max_parts', TType::I16, 3); - $xfer += $output->writeI16($this->max_parts); + if ($this->part_name !== null) { + $xfer += $output->writeFieldBegin('part_name', TType::STRING, 3); + $xfer += $output->writeString($this->part_name); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -32960,19 +33781,19 @@ class ThriftHiveMetastore_get_partitions_args { } -class ThriftHiveMetastore_get_partitions_result { +class ThriftHiveMetastore_get_partition_by_name_result { static $_TSPEC; /** - * @var \metastore\Partition[] + * @var \metastore\Partition */ public $success = null; /** - * @var \metastore\NoSuchObjectException + * @var \metastore\MetaException */ public $o1 = null; /** - * @var \metastore\MetaException + * @var \metastore\NoSuchObjectException */ public $o2 = null; @@ -32981,22 +33802,18 @@ class ThriftHiveMetastore_get_partitions_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\Partition', - ), + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => '\metastore\NoSuchObjectException', + 'class' => '\metastore\MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => '\metastore\MetaException', + 'class' => '\metastore\NoSuchObjectException', ), ); } @@ -33014,7 +33831,7 @@ class ThriftHiveMetastore_get_partitions_result { } public function getName() { - return 'ThriftHiveMetastore_get_partitions_result'; + return 'ThriftHiveMetastore_get_partition_by_name_result'; } public function read($input) @@ -33033,26 +33850,16 @@ class ThriftHiveMetastore_get_partitions_result { switch ($fid) { case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size1329 = 0; - $_etype1332 = 0; - $xfer += $input->readListBegin($_etype1332, $_size1329); - for ($_i1333 = 0; $_i1333 < $_size1329; ++$_i1333) - { - $elem1334 = null; - $elem1334 = new \metastore\Partition(); - $xfer += $elem1334->read($input); - $this->success []= $elem1334; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRUCT) { + $this->success = new \metastore\Partition(); + $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); } break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new \metastore\NoSuchObjectException(); + $this->o1 = new \metastore\MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -33060,7 +33867,7 @@ class ThriftHiveMetastore_get_partitions_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new \metastore\MetaException(); + $this->o2 = new \metastore\NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -33078,22 +33885,13 @@ class ThriftHiveMetastore_get_partitions_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_by_name_result'); if ($this->success !== null) { - if (!is_array($this->success)) { + if (!is_object($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter1335) - { - $xfer += $iter1335->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -33113,7 +33911,7 @@ class ThriftHiveMetastore_get_partitions_result { } -class ThriftHiveMetastore_get_partitions_with_auth_args { +class ThriftHiveMetastore_get_partitions_args { static $_TSPEC; /** @@ -33128,14 +33926,6 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { * @var int */ public $max_parts = -1; - /** - * @var string - */ - public $user_name = null; - /** - * @var string[] - */ - public $group_names = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -33152,18 +33942,6 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { 'var' => 'max_parts', 'type' => TType::I16, ), - 4 => array( - 'var' => 'user_name', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'group_names', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), - ), ); } if (is_array($vals)) { @@ -33176,17 +33954,11 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { if (isset($vals['max_parts'])) { $this->max_parts = $vals['max_parts']; } - if (isset($vals['user_name'])) { - $this->user_name = $vals['user_name']; - } - if (isset($vals['group_names'])) { - $this->group_names = $vals['group_names']; - } } } public function getName() { - return 'ThriftHiveMetastore_get_partitions_with_auth_args'; + return 'ThriftHiveMetastore_get_partitions_args'; } public function read($input) @@ -33225,30 +33997,6 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { $xfer += $input->skip($ftype); } break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->user_name); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::LST) { - $this->group_names = array(); - $_size1336 = 0; - $_etype1339 = 0; - $xfer += $input->readListBegin($_etype1339, $_size1336); - for ($_i1340 = 0; $_i1340 < $_size1336; ++$_i1340) - { - $elem1341 = null; - $xfer += $input->readString($elem1341); - $this->group_names []= $elem1341; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -33261,7 +34009,7 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_with_auth_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_args'); if ($this->db_name !== null) { $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); $xfer += $output->writeString($this->db_name); @@ -33277,28 +34025,6 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { $xfer += $output->writeI16($this->max_parts); $xfer += $output->writeFieldEnd(); } - if ($this->user_name !== null) { - $xfer += $output->writeFieldBegin('user_name', TType::STRING, 4); - $xfer += $output->writeString($this->user_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->group_names !== null) { - if (!is_array($this->group_names)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('group_names', TType::LST, 5); - { - $output->writeListBegin(TType::STRING, count($this->group_names)); - { - foreach ($this->group_names as $iter1342) - { - $xfer += $output->writeString($iter1342); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -33306,7 +34032,7 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { } -class ThriftHiveMetastore_get_partitions_with_auth_result { +class ThriftHiveMetastore_get_partitions_result { static $_TSPEC; /** @@ -33360,7 +34086,7 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { } public function getName() { - return 'ThriftHiveMetastore_get_partitions_with_auth_result'; + return 'ThriftHiveMetastore_get_partitions_result'; } public function read($input) @@ -33381,15 +34107,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1343 = 0; - $_etype1346 = 0; - $xfer += $input->readListBegin($_etype1346, $_size1343); - for ($_i1347 = 0; $_i1347 < $_size1343; ++$_i1347) + $_size1392 = 0; + $_etype1395 = 0; + $xfer += $input->readListBegin($_etype1395, $_size1392); + for ($_i1396 = 0; $_i1396 < $_size1392; ++$_i1396) { - $elem1348 = null; - $elem1348 = new \metastore\Partition(); - $xfer += $elem1348->read($input); - $this->success []= $elem1348; + $elem1397 = null; + $elem1397 = new \metastore\Partition(); + $xfer += $elem1397->read($input); + $this->success []= $elem1397; } $xfer += $input->readListEnd(); } else { @@ -33424,7 +34150,7 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_with_auth_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -33433,9 +34159,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1349) + foreach ($this->success as $iter1398) { - $xfer += $iter1349->write($output); + $xfer += $iter1398->write($output); } } $output->writeListEnd(); @@ -33459,54 +34185,33 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { } -class ThriftHiveMetastore_get_partitions_pspec_args { +class ThriftHiveMetastore_get_partitions_req_args { static $_TSPEC; /** - * @var string - */ - public $db_name = null; - /** - * @var string + * @var \metastore\PartitionsRequest */ - public $tbl_name = null; - /** - * @var int - */ - public $max_parts = -1; + public $req = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'db_name', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'tbl_name', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'max_parts', - 'type' => TType::I32, + 'var' => 'req', + 'type' => TType::STRUCT, + 'class' => '\metastore\PartitionsRequest', ), ); } if (is_array($vals)) { - if (isset($vals['db_name'])) { - $this->db_name = $vals['db_name']; - } - if (isset($vals['tbl_name'])) { - $this->tbl_name = $vals['tbl_name']; - } - if (isset($vals['max_parts'])) { - $this->max_parts = $vals['max_parts']; + if (isset($vals['req'])) { + $this->req = $vals['req']; } } } public function getName() { - return 'ThriftHiveMetastore_get_partitions_pspec_args'; + return 'ThriftHiveMetastore_get_partitions_req_args'; } public function read($input) @@ -33525,22 +34230,9 @@ class ThriftHiveMetastore_get_partitions_pspec_args { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->db_name); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tbl_name); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->max_parts); + if ($ftype == TType::STRUCT) { + $this->req = new \metastore\PartitionsRequest(); + $xfer += $this->req->read($input); } else { $xfer += $input->skip($ftype); } @@ -33557,20 +34249,13 @@ class ThriftHiveMetastore_get_partitions_pspec_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_pspec_args'); - if ($this->db_name !== null) { - $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); - $xfer += $output->writeString($this->db_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->tbl_name !== null) { - $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2); - $xfer += $output->writeString($this->tbl_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->max_parts !== null) { - $xfer += $output->writeFieldBegin('max_parts', TType::I32, 3); - $xfer += $output->writeI32($this->max_parts); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_req_args'); + if ($this->req !== null) { + if (!is_object($this->req)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); + $xfer += $this->req->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -33580,11 +34265,11 @@ class ThriftHiveMetastore_get_partitions_pspec_args { } -class ThriftHiveMetastore_get_partitions_pspec_result { +class ThriftHiveMetastore_get_partitions_req_result { static $_TSPEC; /** - * @var \metastore\PartitionSpec[] + * @var \metastore\PartitionsResponse */ public $success = null; /** @@ -33601,12 +34286,8 @@ class ThriftHiveMetastore_get_partitions_pspec_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\PartitionSpec', - ), + 'type' => TType::STRUCT, + 'class' => '\metastore\PartitionsResponse', ), 1 => array( 'var' => 'o1', @@ -33634,7 +34315,7 @@ class ThriftHiveMetastore_get_partitions_pspec_result { } public function getName() { - return 'ThriftHiveMetastore_get_partitions_pspec_result'; + return 'ThriftHiveMetastore_get_partitions_req_result'; } public function read($input) @@ -33653,19 +34334,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { switch ($fid) { case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size1350 = 0; - $_etype1353 = 0; - $xfer += $input->readListBegin($_etype1353, $_size1350); - for ($_i1354 = 0; $_i1354 < $_size1350; ++$_i1354) - { - $elem1355 = null; - $elem1355 = new \metastore\PartitionSpec(); - $xfer += $elem1355->read($input); - $this->success []= $elem1355; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRUCT) { + $this->success = new \metastore\PartitionsResponse(); + $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); } @@ -33698,22 +34369,13 @@ class ThriftHiveMetastore_get_partitions_pspec_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_pspec_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_req_result'); if ($this->success !== null) { - if (!is_array($this->success)) { + if (!is_object($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter1356) - { - $xfer += $iter1356->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -33733,7 +34395,7 @@ class ThriftHiveMetastore_get_partitions_pspec_result { } -class ThriftHiveMetastore_get_partition_names_args { +class ThriftHiveMetastore_get_partitions_with_auth_args { static $_TSPEC; /** @@ -33748,6 +34410,14 @@ class ThriftHiveMetastore_get_partition_names_args { * @var int */ public $max_parts = -1; + /** + * @var string + */ + public $user_name = null; + /** + * @var string[] + */ + public $group_names = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -33764,6 +34434,18 @@ class ThriftHiveMetastore_get_partition_names_args { 'var' => 'max_parts', 'type' => TType::I16, ), + 4 => array( + 'var' => 'user_name', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'group_names', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), ); } if (is_array($vals)) { @@ -33776,11 +34458,17 @@ class ThriftHiveMetastore_get_partition_names_args { if (isset($vals['max_parts'])) { $this->max_parts = $vals['max_parts']; } + if (isset($vals['user_name'])) { + $this->user_name = $vals['user_name']; + } + if (isset($vals['group_names'])) { + $this->group_names = $vals['group_names']; + } } } public function getName() { - return 'ThriftHiveMetastore_get_partition_names_args'; + return 'ThriftHiveMetastore_get_partitions_with_auth_args'; } public function read($input) @@ -33819,6 +34507,30 @@ class ThriftHiveMetastore_get_partition_names_args { $xfer += $input->skip($ftype); } break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->user_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::LST) { + $this->group_names = array(); + $_size1399 = 0; + $_etype1402 = 0; + $xfer += $input->readListBegin($_etype1402, $_size1399); + for ($_i1403 = 0; $_i1403 < $_size1399; ++$_i1403) + { + $elem1404 = null; + $xfer += $input->readString($elem1404); + $this->group_names []= $elem1404; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -33831,7 +34543,7 @@ class ThriftHiveMetastore_get_partition_names_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_names_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_with_auth_args'); if ($this->db_name !== null) { $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); $xfer += $output->writeString($this->db_name); @@ -33847,6 +34559,28 @@ class ThriftHiveMetastore_get_partition_names_args { $xfer += $output->writeI16($this->max_parts); $xfer += $output->writeFieldEnd(); } + if ($this->user_name !== null) { + $xfer += $output->writeFieldBegin('user_name', TType::STRING, 4); + $xfer += $output->writeString($this->user_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->group_names !== null) { + if (!is_array($this->group_names)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('group_names', TType::LST, 5); + { + $output->writeListBegin(TType::STRING, count($this->group_names)); + { + foreach ($this->group_names as $iter1405) + { + $xfer += $output->writeString($iter1405); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -33854,11 +34588,11 @@ class ThriftHiveMetastore_get_partition_names_args { } -class ThriftHiveMetastore_get_partition_names_result { +class ThriftHiveMetastore_get_partitions_with_auth_result { static $_TSPEC; /** - * @var string[] + * @var \metastore\Partition[] */ public $success = null; /** @@ -33876,9 +34610,10 @@ class ThriftHiveMetastore_get_partition_names_result { 0 => array( 'var' => 'success', 'type' => TType::LST, - 'etype' => TType::STRING, + 'etype' => TType::STRUCT, 'elem' => array( - 'type' => TType::STRING, + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', ), ), 1 => array( @@ -33907,7 +34642,7 @@ class ThriftHiveMetastore_get_partition_names_result { } public function getName() { - return 'ThriftHiveMetastore_get_partition_names_result'; + return 'ThriftHiveMetastore_get_partitions_with_auth_result'; } public function read($input) @@ -33928,14 +34663,15 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1357 = 0; - $_etype1360 = 0; - $xfer += $input->readListBegin($_etype1360, $_size1357); - for ($_i1361 = 0; $_i1361 < $_size1357; ++$_i1361) + $_size1406 = 0; + $_etype1409 = 0; + $xfer += $input->readListBegin($_etype1409, $_size1406); + for ($_i1410 = 0; $_i1410 < $_size1406; ++$_i1410) { - $elem1362 = null; - $xfer += $input->readString($elem1362); - $this->success []= $elem1362; + $elem1411 = null; + $elem1411 = new \metastore\Partition(); + $xfer += $elem1411->read($input); + $this->success []= $elem1411; } $xfer += $input->readListEnd(); } else { @@ -33970,18 +34706,18 @@ class ThriftHiveMetastore_get_partition_names_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_names_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_with_auth_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('success', TType::LST, 0); { - $output->writeListBegin(TType::STRING, count($this->success)); + $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1363) + foreach ($this->success as $iter1412) { - $xfer += $output->writeString($iter1363); + $xfer += $iter1412->write($output); } } $output->writeListEnd(); @@ -34005,33 +34741,54 @@ class ThriftHiveMetastore_get_partition_names_result { } -class ThriftHiveMetastore_get_partition_values_args { +class ThriftHiveMetastore_get_partitions_pspec_args { static $_TSPEC; /** - * @var \metastore\PartitionValuesRequest + * @var string */ - public $request = null; + public $db_name = null; + /** + * @var string + */ + public $tbl_name = null; + /** + * @var int + */ + public $max_parts = -1; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'request', - 'type' => TType::STRUCT, - 'class' => '\metastore\PartitionValuesRequest', + 'var' => 'db_name', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tbl_name', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'max_parts', + 'type' => TType::I32, ), ); } if (is_array($vals)) { - if (isset($vals['request'])) { - $this->request = $vals['request']; + if (isset($vals['db_name'])) { + $this->db_name = $vals['db_name']; + } + if (isset($vals['tbl_name'])) { + $this->tbl_name = $vals['tbl_name']; + } + if (isset($vals['max_parts'])) { + $this->max_parts = $vals['max_parts']; } } } public function getName() { - return 'ThriftHiveMetastore_get_partition_values_args'; + return 'ThriftHiveMetastore_get_partitions_pspec_args'; } public function read($input) @@ -34050,9 +34807,22 @@ class ThriftHiveMetastore_get_partition_values_args { switch ($fid) { case 1: - if ($ftype == TType::STRUCT) { - $this->request = new \metastore\PartitionValuesRequest(); - $xfer += $this->request->read($input); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->db_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tbl_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->max_parts); } else { $xfer += $input->skip($ftype); } @@ -34069,13 +34839,20 @@ class ThriftHiveMetastore_get_partition_values_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_values_args'); - if ($this->request !== null) { - if (!is_object($this->request)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('request', TType::STRUCT, 1); - $xfer += $this->request->write($output); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_pspec_args'); + if ($this->db_name !== null) { + $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); + $xfer += $output->writeString($this->db_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->tbl_name !== null) { + $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2); + $xfer += $output->writeString($this->tbl_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->max_parts !== null) { + $xfer += $output->writeFieldBegin('max_parts', TType::I32, 3); + $xfer += $output->writeI32($this->max_parts); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -34085,19 +34862,19 @@ class ThriftHiveMetastore_get_partition_values_args { } -class ThriftHiveMetastore_get_partition_values_result { +class ThriftHiveMetastore_get_partitions_pspec_result { static $_TSPEC; /** - * @var \metastore\PartitionValuesResponse + * @var \metastore\PartitionSpec[] */ public $success = null; /** - * @var \metastore\MetaException + * @var \metastore\NoSuchObjectException */ public $o1 = null; /** - * @var \metastore\NoSuchObjectException + * @var \metastore\MetaException */ public $o2 = null; @@ -34106,18 +34883,22 @@ class ThriftHiveMetastore_get_partition_values_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::STRUCT, - 'class' => '\metastore\PartitionValuesResponse', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\PartitionSpec', + ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => '\metastore\MetaException', + 'class' => '\metastore\NoSuchObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => '\metastore\NoSuchObjectException', + 'class' => '\metastore\MetaException', ), ); } @@ -34135,7 +34916,7 @@ class ThriftHiveMetastore_get_partition_values_result { } public function getName() { - return 'ThriftHiveMetastore_get_partition_values_result'; + return 'ThriftHiveMetastore_get_partitions_pspec_result'; } public function read($input) @@ -34154,16 +34935,26 @@ class ThriftHiveMetastore_get_partition_values_result { switch ($fid) { case 0: - if ($ftype == TType::STRUCT) { - $this->success = new \metastore\PartitionValuesResponse(); - $xfer += $this->success->read($input); + if ($ftype == TType::LST) { + $this->success = array(); + $_size1413 = 0; + $_etype1416 = 0; + $xfer += $input->readListBegin($_etype1416, $_size1413); + for ($_i1417 = 0; $_i1417 < $_size1413; ++$_i1417) + { + $elem1418 = null; + $elem1418 = new \metastore\PartitionSpec(); + $xfer += $elem1418->read($input); + $this->success []= $elem1418; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new \metastore\MetaException(); + $this->o1 = new \metastore\NoSuchObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -34171,7 +34962,7 @@ class ThriftHiveMetastore_get_partition_values_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new \metastore\NoSuchObjectException(); + $this->o2 = new \metastore\MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -34189,13 +34980,22 @@ class ThriftHiveMetastore_get_partition_values_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_values_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_pspec_result'); if ($this->success !== null) { - if (!is_object($this->success)) { + if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); - $xfer += $this->success->write($output); + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter1419) + { + $xfer += $iter1419->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -34215,7 +35015,7 @@ class ThriftHiveMetastore_get_partition_values_result { } -class ThriftHiveMetastore_get_partitions_ps_args { +class ThriftHiveMetastore_get_partition_names_args { static $_TSPEC; /** @@ -34226,10 +35026,6 @@ class ThriftHiveMetastore_get_partitions_ps_args { * @var string */ public $tbl_name = null; - /** - * @var string[] - */ - public $part_vals = null; /** * @var int */ @@ -34247,14 +35043,6 @@ class ThriftHiveMetastore_get_partitions_ps_args { 'type' => TType::STRING, ), 3 => array( - 'var' => 'part_vals', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), - ), - 4 => array( 'var' => 'max_parts', 'type' => TType::I16, ), @@ -34267,9 +35055,6 @@ class ThriftHiveMetastore_get_partitions_ps_args { if (isset($vals['tbl_name'])) { $this->tbl_name = $vals['tbl_name']; } - if (isset($vals['part_vals'])) { - $this->part_vals = $vals['part_vals']; - } if (isset($vals['max_parts'])) { $this->max_parts = $vals['max_parts']; } @@ -34277,7 +35062,853 @@ class ThriftHiveMetastore_get_partitions_ps_args { } public function getName() { - return 'ThriftHiveMetastore_get_partitions_ps_args'; + return 'ThriftHiveMetastore_get_partition_names_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->db_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tbl_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I16) { + $xfer += $input->readI16($this->max_parts); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_names_args'); + if ($this->db_name !== null) { + $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); + $xfer += $output->writeString($this->db_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->tbl_name !== null) { + $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2); + $xfer += $output->writeString($this->tbl_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->max_parts !== null) { + $xfer += $output->writeFieldBegin('max_parts', TType::I16, 3); + $xfer += $output->writeI16($this->max_parts); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partition_names_result { + static $_TSPEC; + + /** + * @var string[] + */ + public $success = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o1 = null; + /** + * @var \metastore\MetaException + */ + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partition_names_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size1420 = 0; + $_etype1423 = 0; + $xfer += $input->readListBegin($_etype1423, $_size1420); + for ($_i1424 = 0; $_i1424 < $_size1420; ++$_i1424) + { + $elem1425 = null; + $xfer += $input->readString($elem1425); + $this->success []= $elem1425; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\NoSuchObjectException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\MetaException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_names_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRING, count($this->success)); + { + foreach ($this->success as $iter1426) + { + $xfer += $output->writeString($iter1426); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partition_values_args { + static $_TSPEC; + + /** + * @var \metastore\PartitionValuesRequest + */ + public $request = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'request', + 'type' => TType::STRUCT, + 'class' => '\metastore\PartitionValuesRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['request'])) { + $this->request = $vals['request']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partition_values_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->request = new \metastore\PartitionValuesRequest(); + $xfer += $this->request->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_values_args'); + if ($this->request !== null) { + if (!is_object($this->request)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('request', TType::STRUCT, 1); + $xfer += $this->request->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partition_values_result { + static $_TSPEC; + + /** + * @var \metastore\PartitionValuesResponse + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\PartitionValuesResponse', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partition_values_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::STRUCT) { + $this->success = new \metastore\PartitionValuesResponse(); + $xfer += $this->success->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\NoSuchObjectException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_values_result'); + if ($this->success !== null) { + if (!is_object($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partitions_ps_args { + static $_TSPEC; + + /** + * @var string + */ + public $db_name = null; + /** + * @var string + */ + public $tbl_name = null; + /** + * @var string[] + */ + public $part_vals = null; + /** + * @var int + */ + public $max_parts = -1; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'db_name', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tbl_name', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'part_vals', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 4 => array( + 'var' => 'max_parts', + 'type' => TType::I16, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['db_name'])) { + $this->db_name = $vals['db_name']; + } + if (isset($vals['tbl_name'])) { + $this->tbl_name = $vals['tbl_name']; + } + if (isset($vals['part_vals'])) { + $this->part_vals = $vals['part_vals']; + } + if (isset($vals['max_parts'])) { + $this->max_parts = $vals['max_parts']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partitions_ps_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->db_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tbl_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::LST) { + $this->part_vals = array(); + $_size1427 = 0; + $_etype1430 = 0; + $xfer += $input->readListBegin($_etype1430, $_size1427); + for ($_i1431 = 0; $_i1431 < $_size1427; ++$_i1431) + { + $elem1432 = null; + $xfer += $input->readString($elem1432); + $this->part_vals []= $elem1432; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I16) { + $xfer += $input->readI16($this->max_parts); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_args'); + if ($this->db_name !== null) { + $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); + $xfer += $output->writeString($this->db_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->tbl_name !== null) { + $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2); + $xfer += $output->writeString($this->tbl_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->part_vals !== null) { + if (!is_array($this->part_vals)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3); + { + $output->writeListBegin(TType::STRING, count($this->part_vals)); + { + foreach ($this->part_vals as $iter1433) + { + $xfer += $output->writeString($iter1433); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->max_parts !== null) { + $xfer += $output->writeFieldBegin('max_parts', TType::I16, 4); + $xfer += $output->writeI16($this->max_parts); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partitions_ps_result { + static $_TSPEC; + + /** + * @var \metastore\Partition[] + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partitions_ps_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size1434 = 0; + $_etype1437 = 0; + $xfer += $input->readListBegin($_etype1437, $_size1434); + for ($_i1438 = 0; $_i1438 < $_size1434; ++$_i1438) + { + $elem1439 = null; + $elem1439 = new \metastore\Partition(); + $xfer += $elem1439->read($input); + $this->success []= $elem1439; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\NoSuchObjectException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter1440) + { + $xfer += $iter1440->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partitions_ps_with_auth_args { + static $_TSPEC; + + /** + * @var string + */ + public $db_name = null; + /** + * @var string + */ + public $tbl_name = null; + /** + * @var string[] + */ + public $part_vals = null; + /** + * @var int + */ + public $max_parts = -1; + /** + * @var string + */ + public $user_name = null; + /** + * @var string[] + */ + public $group_names = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'db_name', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tbl_name', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'part_vals', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 4 => array( + 'var' => 'max_parts', + 'type' => TType::I16, + ), + 5 => array( + 'var' => 'user_name', + 'type' => TType::STRING, + ), + 6 => array( + 'var' => 'group_names', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['db_name'])) { + $this->db_name = $vals['db_name']; + } + if (isset($vals['tbl_name'])) { + $this->tbl_name = $vals['tbl_name']; + } + if (isset($vals['part_vals'])) { + $this->part_vals = $vals['part_vals']; + } + if (isset($vals['max_parts'])) { + $this->max_parts = $vals['max_parts']; + } + if (isset($vals['user_name'])) { + $this->user_name = $vals['user_name']; + } + if (isset($vals['group_names'])) { + $this->group_names = $vals['group_names']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partitions_ps_with_auth_args'; } public function read($input) @@ -34312,14 +35943,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1364 = 0; - $_etype1367 = 0; - $xfer += $input->readListBegin($_etype1367, $_size1364); - for ($_i1368 = 0; $_i1368 < $_size1364; ++$_i1368) + $_size1441 = 0; + $_etype1444 = 0; + $xfer += $input->readListBegin($_etype1444, $_size1441); + for ($_i1445 = 0; $_i1445 < $_size1441; ++$_i1445) { - $elem1369 = null; - $xfer += $input->readString($elem1369); - $this->part_vals []= $elem1369; + $elem1446 = null; + $xfer += $input->readString($elem1446); + $this->part_vals []= $elem1446; } $xfer += $input->readListEnd(); } else { @@ -34333,6 +35964,30 @@ class ThriftHiveMetastore_get_partitions_ps_args { $xfer += $input->skip($ftype); } break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->user_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::LST) { + $this->group_names = array(); + $_size1447 = 0; + $_etype1450 = 0; + $xfer += $input->readListBegin($_etype1450, $_size1447); + for ($_i1451 = 0; $_i1451 < $_size1447; ++$_i1451) + { + $elem1452 = null; + $xfer += $input->readString($elem1452); + $this->group_names []= $elem1452; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -34345,7 +36000,7 @@ class ThriftHiveMetastore_get_partitions_ps_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_with_auth_args'); if ($this->db_name !== null) { $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); $xfer += $output->writeString($this->db_name); @@ -34364,9 +36019,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1370) + foreach ($this->part_vals as $iter1453) { - $xfer += $output->writeString($iter1370); + $xfer += $output->writeString($iter1453); } } $output->writeListEnd(); @@ -34378,6 +36033,28 @@ class ThriftHiveMetastore_get_partitions_ps_args { $xfer += $output->writeI16($this->max_parts); $xfer += $output->writeFieldEnd(); } + if ($this->user_name !== null) { + $xfer += $output->writeFieldBegin('user_name', TType::STRING, 5); + $xfer += $output->writeString($this->user_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->group_names !== null) { + if (!is_array($this->group_names)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('group_names', TType::LST, 6); + { + $output->writeListBegin(TType::STRING, count($this->group_names)); + { + foreach ($this->group_names as $iter1454) + { + $xfer += $output->writeString($iter1454); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -34385,7 +36062,7 @@ class ThriftHiveMetastore_get_partitions_ps_args { } -class ThriftHiveMetastore_get_partitions_ps_result { +class ThriftHiveMetastore_get_partitions_ps_with_auth_result { static $_TSPEC; /** @@ -34393,11 +36070,11 @@ class ThriftHiveMetastore_get_partitions_ps_result { */ public $success = null; /** - * @var \metastore\MetaException + * @var \metastore\NoSuchObjectException */ public $o1 = null; /** - * @var \metastore\NoSuchObjectException + * @var \metastore\MetaException */ public $o2 = null; @@ -34416,12 +36093,12 @@ class ThriftHiveMetastore_get_partitions_ps_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => '\metastore\MetaException', + 'class' => '\metastore\NoSuchObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => '\metastore\NoSuchObjectException', + 'class' => '\metastore\MetaException', ), ); } @@ -34439,7 +36116,7 @@ class ThriftHiveMetastore_get_partitions_ps_result { } public function getName() { - return 'ThriftHiveMetastore_get_partitions_ps_result'; + return 'ThriftHiveMetastore_get_partitions_ps_with_auth_result'; } public function read($input) @@ -34460,15 +36137,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1371 = 0; - $_etype1374 = 0; - $xfer += $input->readListBegin($_etype1374, $_size1371); - for ($_i1375 = 0; $_i1375 < $_size1371; ++$_i1375) + $_size1455 = 0; + $_etype1458 = 0; + $xfer += $input->readListBegin($_etype1458, $_size1455); + for ($_i1459 = 0; $_i1459 < $_size1455; ++$_i1459) { - $elem1376 = null; - $elem1376 = new \metastore\Partition(); - $xfer += $elem1376->read($input); - $this->success []= $elem1376; + $elem1460 = null; + $elem1460 = new \metastore\Partition(); + $xfer += $elem1460->read($input); + $this->success []= $elem1460; } $xfer += $input->readListEnd(); } else { @@ -34477,7 +36154,7 @@ class ThriftHiveMetastore_get_partitions_ps_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new \metastore\MetaException(); + $this->o1 = new \metastore\NoSuchObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -34485,7 +36162,7 @@ class ThriftHiveMetastore_get_partitions_ps_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new \metastore\NoSuchObjectException(); + $this->o2 = new \metastore\MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -34503,7 +36180,7 @@ class ThriftHiveMetastore_get_partitions_ps_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_with_auth_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -34512,9 +36189,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1377) + foreach ($this->success as $iter1461) { - $xfer += $iter1377->write($output); + $xfer += $iter1461->write($output); } } $output->writeListEnd(); @@ -34538,7 +36215,217 @@ class ThriftHiveMetastore_get_partitions_ps_result { } -class ThriftHiveMetastore_get_partitions_ps_with_auth_args { +class ThriftHiveMetastore_get_partitions_ps_with_auth_req_args { + static $_TSPEC; + + /** + * @var \metastore\GetPartitionsPsWithAuthRequest + */ + public $req = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'req', + 'type' => TType::STRUCT, + 'class' => '\metastore\GetPartitionsPsWithAuthRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['req'])) { + $this->req = $vals['req']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partitions_ps_with_auth_req_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->req = new \metastore\GetPartitionsPsWithAuthRequest(); + $xfer += $this->req->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_with_auth_req_args'); + if ($this->req !== null) { + if (!is_object($this->req)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); + $xfer += $this->req->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partitions_ps_with_auth_req_result { + static $_TSPEC; + + /** + * @var \metastore\GetPartitionsPsWithAuthResponse + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\GetPartitionsPsWithAuthResponse', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partitions_ps_with_auth_req_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::STRUCT) { + $this->success = new \metastore\GetPartitionsPsWithAuthResponse(); + $xfer += $this->success->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\NoSuchObjectException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_with_auth_req_result'); + if ($this->success !== null) { + if (!is_object($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partition_names_ps_args { static $_TSPEC; /** @@ -34557,14 +36444,6 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { * @var int */ public $max_parts = -1; - /** - * @var string - */ - public $user_name = null; - /** - * @var string[] - */ - public $group_names = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -34589,18 +36468,6 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { 'var' => 'max_parts', 'type' => TType::I16, ), - 5 => array( - 'var' => 'user_name', - 'type' => TType::STRING, - ), - 6 => array( - 'var' => 'group_names', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), - ), ); } if (is_array($vals)) { @@ -34616,17 +36483,11 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { if (isset($vals['max_parts'])) { $this->max_parts = $vals['max_parts']; } - if (isset($vals['user_name'])) { - $this->user_name = $vals['user_name']; - } - if (isset($vals['group_names'])) { - $this->group_names = $vals['group_names']; - } } } public function getName() { - return 'ThriftHiveMetastore_get_partitions_ps_with_auth_args'; + return 'ThriftHiveMetastore_get_partition_names_ps_args'; } public function read($input) @@ -34661,14 +36522,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1378 = 0; - $_etype1381 = 0; - $xfer += $input->readListBegin($_etype1381, $_size1378); - for ($_i1382 = 0; $_i1382 < $_size1378; ++$_i1382) + $_size1462 = 0; + $_etype1465 = 0; + $xfer += $input->readListBegin($_etype1465, $_size1462); + for ($_i1466 = 0; $_i1466 < $_size1462; ++$_i1466) { - $elem1383 = null; - $xfer += $input->readString($elem1383); - $this->part_vals []= $elem1383; + $elem1467 = null; + $xfer += $input->readString($elem1467); + $this->part_vals []= $elem1467; } $xfer += $input->readListEnd(); } else { @@ -34682,30 +36543,6 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { $xfer += $input->skip($ftype); } break; - case 5: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->user_name); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::LST) { - $this->group_names = array(); - $_size1384 = 0; - $_etype1387 = 0; - $xfer += $input->readListBegin($_etype1387, $_size1384); - for ($_i1388 = 0; $_i1388 < $_size1384; ++$_i1388) - { - $elem1389 = null; - $xfer += $input->readString($elem1389); - $this->group_names []= $elem1389; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -34718,7 +36555,7 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_with_auth_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_names_ps_args'); if ($this->db_name !== null) { $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); $xfer += $output->writeString($this->db_name); @@ -34737,9 +36574,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1390) + foreach ($this->part_vals as $iter1468) { - $xfer += $output->writeString($iter1390); + $xfer += $output->writeString($iter1468); } } $output->writeListEnd(); @@ -34751,28 +36588,6 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { $xfer += $output->writeI16($this->max_parts); $xfer += $output->writeFieldEnd(); } - if ($this->user_name !== null) { - $xfer += $output->writeFieldBegin('user_name', TType::STRING, 5); - $xfer += $output->writeString($this->user_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->group_names !== null) { - if (!is_array($this->group_names)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('group_names', TType::LST, 6); - { - $output->writeListBegin(TType::STRING, count($this->group_names)); - { - foreach ($this->group_names as $iter1391) - { - $xfer += $output->writeString($iter1391); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -34780,19 +36595,19 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { } -class ThriftHiveMetastore_get_partitions_ps_with_auth_result { +class ThriftHiveMetastore_get_partition_names_ps_result { static $_TSPEC; /** - * @var \metastore\Partition[] + * @var string[] */ public $success = null; /** - * @var \metastore\NoSuchObjectException + * @var \metastore\MetaException */ public $o1 = null; /** - * @var \metastore\MetaException + * @var \metastore\NoSuchObjectException */ public $o2 = null; @@ -34802,21 +36617,20 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { 0 => array( 'var' => 'success', 'type' => TType::LST, - 'etype' => TType::STRUCT, + 'etype' => TType::STRING, 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\Partition', + 'type' => TType::STRING, ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => '\metastore\NoSuchObjectException', + 'class' => '\metastore\MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => '\metastore\MetaException', + 'class' => '\metastore\NoSuchObjectException', ), ); } @@ -34834,7 +36648,7 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { } public function getName() { - return 'ThriftHiveMetastore_get_partitions_ps_with_auth_result'; + return 'ThriftHiveMetastore_get_partition_names_ps_result'; } public function read($input) @@ -34855,15 +36669,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1392 = 0; - $_etype1395 = 0; - $xfer += $input->readListBegin($_etype1395, $_size1392); - for ($_i1396 = 0; $_i1396 < $_size1392; ++$_i1396) + $_size1469 = 0; + $_etype1472 = 0; + $xfer += $input->readListBegin($_etype1472, $_size1469); + for ($_i1473 = 0; $_i1473 < $_size1469; ++$_i1473) { - $elem1397 = null; - $elem1397 = new \metastore\Partition(); - $xfer += $elem1397->read($input); - $this->success []= $elem1397; + $elem1474 = null; + $xfer += $input->readString($elem1474); + $this->success []= $elem1474; } $xfer += $input->readListEnd(); } else { @@ -34872,7 +36685,7 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new \metastore\NoSuchObjectException(); + $this->o1 = new \metastore\MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -34880,7 +36693,7 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new \metastore\MetaException(); + $this->o2 = new \metastore\NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -34898,18 +36711,18 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_with_auth_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_names_ps_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('success', TType::LST, 0); { - $output->writeListBegin(TType::STRUCT, count($this->success)); + $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1398) + foreach ($this->success as $iter1475) { - $xfer += $iter1398->write($output); + $xfer += $output->writeString($iter1475); } } $output->writeListEnd(); @@ -34933,69 +36746,33 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { } -class ThriftHiveMetastore_get_partition_names_ps_args { +class ThriftHiveMetastore_get_partition_names_ps_req_args { static $_TSPEC; /** - * @var string - */ - public $db_name = null; - /** - * @var string - */ - public $tbl_name = null; - /** - * @var string[] - */ - public $part_vals = null; - /** - * @var int + * @var \metastore\GetPartitionNamesPsRequest */ - public $max_parts = -1; + public $req = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'db_name', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'tbl_name', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'part_vals', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), - ), - 4 => array( - 'var' => 'max_parts', - 'type' => TType::I16, + 'var' => 'req', + 'type' => TType::STRUCT, + 'class' => '\metastore\GetPartitionNamesPsRequest', ), ); } if (is_array($vals)) { - if (isset($vals['db_name'])) { - $this->db_name = $vals['db_name']; - } - if (isset($vals['tbl_name'])) { - $this->tbl_name = $vals['tbl_name']; - } - if (isset($vals['part_vals'])) { - $this->part_vals = $vals['part_vals']; - } - if (isset($vals['max_parts'])) { - $this->max_parts = $vals['max_parts']; + if (isset($vals['req'])) { + $this->req = $vals['req']; } } } public function getName() { - return 'ThriftHiveMetastore_get_partition_names_ps_args'; + return 'ThriftHiveMetastore_get_partition_names_ps_req_args'; } public function read($input) @@ -35014,39 +36791,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->db_name); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tbl_name); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::LST) { - $this->part_vals = array(); - $_size1399 = 0; - $_etype1402 = 0; - $xfer += $input->readListBegin($_etype1402, $_size1399); - for ($_i1403 = 0; $_i1403 < $_size1399; ++$_i1403) - { - $elem1404 = null; - $xfer += $input->readString($elem1404); - $this->part_vals []= $elem1404; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::I16) { - $xfer += $input->readI16($this->max_parts); + if ($ftype == TType::STRUCT) { + $this->req = new \metastore\GetPartitionNamesPsRequest(); + $xfer += $this->req->read($input); } else { $xfer += $input->skip($ftype); } @@ -35063,37 +36810,13 @@ class ThriftHiveMetastore_get_partition_names_ps_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_names_ps_args'); - if ($this->db_name !== null) { - $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); - $xfer += $output->writeString($this->db_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->tbl_name !== null) { - $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2); - $xfer += $output->writeString($this->tbl_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->part_vals !== null) { - if (!is_array($this->part_vals)) { + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_names_ps_req_args'); + if ($this->req !== null) { + if (!is_object($this->req)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3); - { - $output->writeListBegin(TType::STRING, count($this->part_vals)); - { - foreach ($this->part_vals as $iter1405) - { - $xfer += $output->writeString($iter1405); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->max_parts !== null) { - $xfer += $output->writeFieldBegin('max_parts', TType::I16, 4); - $xfer += $output->writeI16($this->max_parts); + $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); + $xfer += $this->req->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -35103,11 +36826,11 @@ class ThriftHiveMetastore_get_partition_names_ps_args { } -class ThriftHiveMetastore_get_partition_names_ps_result { +class ThriftHiveMetastore_get_partition_names_ps_req_result { static $_TSPEC; /** - * @var string[] + * @var \metastore\GetPartitionNamesPsResponse */ public $success = null; /** @@ -35124,11 +36847,8 @@ class ThriftHiveMetastore_get_partition_names_ps_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), + 'type' => TType::STRUCT, + 'class' => '\metastore\GetPartitionNamesPsResponse', ), 1 => array( 'var' => 'o1', @@ -35156,7 +36876,7 @@ class ThriftHiveMetastore_get_partition_names_ps_result { } public function getName() { - return 'ThriftHiveMetastore_get_partition_names_ps_result'; + return 'ThriftHiveMetastore_get_partition_names_ps_req_result'; } public function read($input) @@ -35175,18 +36895,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { switch ($fid) { case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size1406 = 0; - $_etype1409 = 0; - $xfer += $input->readListBegin($_etype1409, $_size1406); - for ($_i1410 = 0; $_i1410 < $_size1406; ++$_i1410) - { - $elem1411 = null; - $xfer += $input->readString($elem1411); - $this->success []= $elem1411; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRUCT) { + $this->success = new \metastore\GetPartitionNamesPsResponse(); + $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); } @@ -35219,22 +36930,13 @@ class ThriftHiveMetastore_get_partition_names_ps_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_names_ps_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_names_ps_req_result'); if ($this->success !== null) { - if (!is_array($this->success)) { + if (!is_object($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRING, count($this->success)); - { - foreach ($this->success as $iter1412) - { - $xfer += $output->writeString($iter1412); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -35408,14 +37110,14 @@ class ThriftHiveMetastore_get_partition_names_req_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1413 = 0; - $_etype1416 = 0; - $xfer += $input->readListBegin($_etype1416, $_size1413); - for ($_i1417 = 0; $_i1417 < $_size1413; ++$_i1417) + $_size1476 = 0; + $_etype1479 = 0; + $xfer += $input->readListBegin($_etype1479, $_size1476); + for ($_i1480 = 0; $_i1480 < $_size1476; ++$_i1480) { - $elem1418 = null; - $xfer += $input->readString($elem1418); - $this->success []= $elem1418; + $elem1481 = null; + $xfer += $input->readString($elem1481); + $this->success []= $elem1481; } $xfer += $input->readListEnd(); } else { @@ -35459,9 +37161,9 @@ class ThriftHiveMetastore_get_partition_names_req_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1419) + foreach ($this->success as $iter1482) { - $xfer += $output->writeString($iter1419); + $xfer += $output->writeString($iter1482); } } $output->writeListEnd(); @@ -35704,15 +37406,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1420 = 0; - $_etype1423 = 0; - $xfer += $input->readListBegin($_etype1423, $_size1420); - for ($_i1424 = 0; $_i1424 < $_size1420; ++$_i1424) + $_size1483 = 0; + $_etype1486 = 0; + $xfer += $input->readListBegin($_etype1486, $_size1483); + for ($_i1487 = 0; $_i1487 < $_size1483; ++$_i1487) { - $elem1425 = null; - $elem1425 = new \metastore\Partition(); - $xfer += $elem1425->read($input); - $this->success []= $elem1425; + $elem1488 = null; + $elem1488 = new \metastore\Partition(); + $xfer += $elem1488->read($input); + $this->success []= $elem1488; } $xfer += $input->readListEnd(); } else { @@ -35756,9 +37458,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1426) + foreach ($this->success as $iter1489) { - $xfer += $iter1426->write($output); + $xfer += $iter1489->write($output); } } $output->writeListEnd(); @@ -36001,15 +37703,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1427 = 0; - $_etype1430 = 0; - $xfer += $input->readListBegin($_etype1430, $_size1427); - for ($_i1431 = 0; $_i1431 < $_size1427; ++$_i1431) + $_size1490 = 0; + $_etype1493 = 0; + $xfer += $input->readListBegin($_etype1493, $_size1490); + for ($_i1494 = 0; $_i1494 < $_size1490; ++$_i1494) { - $elem1432 = null; - $elem1432 = new \metastore\PartitionSpec(); - $xfer += $elem1432->read($input); - $this->success []= $elem1432; + $elem1495 = null; + $elem1495 = new \metastore\PartitionSpec(); + $xfer += $elem1495->read($input); + $this->success []= $elem1495; } $xfer += $input->readListEnd(); } else { @@ -36053,9 +37755,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1433) + foreach ($this->success as $iter1496) { - $xfer += $iter1433->write($output); + $xfer += $iter1496->write($output); } } $output->writeListEnd(); @@ -36831,14 +38533,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size1434 = 0; - $_etype1437 = 0; - $xfer += $input->readListBegin($_etype1437, $_size1434); - for ($_i1438 = 0; $_i1438 < $_size1434; ++$_i1438) + $_size1497 = 0; + $_etype1500 = 0; + $xfer += $input->readListBegin($_etype1500, $_size1497); + for ($_i1501 = 0; $_i1501 < $_size1497; ++$_i1501) { - $elem1439 = null; - $xfer += $input->readString($elem1439); - $this->names []= $elem1439; + $elem1502 = null; + $xfer += $input->readString($elem1502); + $this->names []= $elem1502; } $xfer += $input->readListEnd(); } else { @@ -36876,9 +38578,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1440) + foreach ($this->names as $iter1503) { - $xfer += $output->writeString($iter1440); + $xfer += $output->writeString($iter1503); } } $output->writeListEnd(); @@ -36967,15 +38669,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1441 = 0; - $_etype1444 = 0; - $xfer += $input->readListBegin($_etype1444, $_size1441); - for ($_i1445 = 0; $_i1445 < $_size1441; ++$_i1445) + $_size1504 = 0; + $_etype1507 = 0; + $xfer += $input->readListBegin($_etype1507, $_size1504); + for ($_i1508 = 0; $_i1508 < $_size1504; ++$_i1508) { - $elem1446 = null; - $elem1446 = new \metastore\Partition(); - $xfer += $elem1446->read($input); - $this->success []= $elem1446; + $elem1509 = null; + $elem1509 = new \metastore\Partition(); + $xfer += $elem1509->read($input); + $this->success []= $elem1509; } $xfer += $input->readListEnd(); } else { @@ -37019,9 +38721,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1447) + foreach ($this->success as $iter1510) { - $xfer += $iter1447->write($output); + $xfer += $iter1510->write($output); } } $output->writeListEnd(); @@ -37570,15 +39272,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1448 = 0; - $_etype1451 = 0; - $xfer += $input->readListBegin($_etype1451, $_size1448); - for ($_i1452 = 0; $_i1452 < $_size1448; ++$_i1452) + $_size1511 = 0; + $_etype1514 = 0; + $xfer += $input->readListBegin($_etype1514, $_size1511); + for ($_i1515 = 0; $_i1515 < $_size1511; ++$_i1515) { - $elem1453 = null; - $elem1453 = new \metastore\Partition(); - $xfer += $elem1453->read($input); - $this->new_parts []= $elem1453; + $elem1516 = null; + $elem1516 = new \metastore\Partition(); + $xfer += $elem1516->read($input); + $this->new_parts []= $elem1516; } $xfer += $input->readListEnd(); } else { @@ -37616,9 +39318,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1454) + foreach ($this->new_parts as $iter1517) { - $xfer += $iter1454->write($output); + $xfer += $iter1517->write($output); } } $output->writeListEnd(); @@ -37833,15 +39535,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1455 = 0; - $_etype1458 = 0; - $xfer += $input->readListBegin($_etype1458, $_size1455); - for ($_i1459 = 0; $_i1459 < $_size1455; ++$_i1459) + $_size1518 = 0; + $_etype1521 = 0; + $xfer += $input->readListBegin($_etype1521, $_size1518); + for ($_i1522 = 0; $_i1522 < $_size1518; ++$_i1522) { - $elem1460 = null; - $elem1460 = new \metastore\Partition(); - $xfer += $elem1460->read($input); - $this->new_parts []= $elem1460; + $elem1523 = null; + $elem1523 = new \metastore\Partition(); + $xfer += $elem1523->read($input); + $this->new_parts []= $elem1523; } $xfer += $input->readListEnd(); } else { @@ -37887,9 +39589,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1461) + foreach ($this->new_parts as $iter1524) { - $xfer += $iter1461->write($output); + $xfer += $iter1524->write($output); } } $output->writeListEnd(); @@ -38577,14 +40279,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1462 = 0; - $_etype1465 = 0; - $xfer += $input->readListBegin($_etype1465, $_size1462); - for ($_i1466 = 0; $_i1466 < $_size1462; ++$_i1466) + $_size1525 = 0; + $_etype1528 = 0; + $xfer += $input->readListBegin($_etype1528, $_size1525); + for ($_i1529 = 0; $_i1529 < $_size1525; ++$_i1529) { - $elem1467 = null; - $xfer += $input->readString($elem1467); - $this->part_vals []= $elem1467; + $elem1530 = null; + $xfer += $input->readString($elem1530); + $this->part_vals []= $elem1530; } $xfer += $input->readListEnd(); } else { @@ -38630,9 +40332,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1468) + foreach ($this->part_vals as $iter1531) { - $xfer += $output->writeString($iter1468); + $xfer += $output->writeString($iter1531); } } $output->writeListEnd(); @@ -39027,14 +40729,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1469 = 0; - $_etype1472 = 0; - $xfer += $input->readListBegin($_etype1472, $_size1469); - for ($_i1473 = 0; $_i1473 < $_size1469; ++$_i1473) + $_size1532 = 0; + $_etype1535 = 0; + $xfer += $input->readListBegin($_etype1535, $_size1532); + for ($_i1536 = 0; $_i1536 < $_size1532; ++$_i1536) { - $elem1474 = null; - $xfer += $input->readString($elem1474); - $this->part_vals []= $elem1474; + $elem1537 = null; + $xfer += $input->readString($elem1537); + $this->part_vals []= $elem1537; } $xfer += $input->readListEnd(); } else { @@ -39069,9 +40771,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1475) + foreach ($this->part_vals as $iter1538) { - $xfer += $output->writeString($iter1475); + $xfer += $output->writeString($iter1538); } } $output->writeListEnd(); @@ -39525,14 +41227,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1476 = 0; - $_etype1479 = 0; - $xfer += $input->readListBegin($_etype1479, $_size1476); - for ($_i1480 = 0; $_i1480 < $_size1476; ++$_i1480) + $_size1539 = 0; + $_etype1542 = 0; + $xfer += $input->readListBegin($_etype1542, $_size1539); + for ($_i1543 = 0; $_i1543 < $_size1539; ++$_i1543) { - $elem1481 = null; - $xfer += $input->readString($elem1481); - $this->success []= $elem1481; + $elem1544 = null; + $xfer += $input->readString($elem1544); + $this->success []= $elem1544; } $xfer += $input->readListEnd(); } else { @@ -39568,9 +41270,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1482) + foreach ($this->success as $iter1545) { - $xfer += $output->writeString($iter1482); + $xfer += $output->writeString($iter1545); } } $output->writeListEnd(); @@ -39730,17 +41432,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1483 = 0; - $_ktype1484 = 0; - $_vtype1485 = 0; - $xfer += $input->readMapBegin($_ktype1484, $_vtype1485, $_size1483); - for ($_i1487 = 0; $_i1487 < $_size1483; ++$_i1487) + $_size1546 = 0; + $_ktype1547 = 0; + $_vtype1548 = 0; + $xfer += $input->readMapBegin($_ktype1547, $_vtype1548, $_size1546); + for ($_i1550 = 0; $_i1550 < $_size1546; ++$_i1550) { - $key1488 = ''; - $val1489 = ''; - $xfer += $input->readString($key1488); - $xfer += $input->readString($val1489); - $this->success[$key1488] = $val1489; + $key1551 = ''; + $val1552 = ''; + $xfer += $input->readString($key1551); + $xfer += $input->readString($val1552); + $this->success[$key1551] = $val1552; } $xfer += $input->readMapEnd(); } else { @@ -39776,10 +41478,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1490 => $viter1491) + foreach ($this->success as $kiter1553 => $viter1554) { - $xfer += $output->writeString($kiter1490); - $xfer += $output->writeString($viter1491); + $xfer += $output->writeString($kiter1553); + $xfer += $output->writeString($viter1554); } } $output->writeMapEnd(); @@ -39899,17 +41601,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1492 = 0; - $_ktype1493 = 0; - $_vtype1494 = 0; - $xfer += $input->readMapBegin($_ktype1493, $_vtype1494, $_size1492); - for ($_i1496 = 0; $_i1496 < $_size1492; ++$_i1496) + $_size1555 = 0; + $_ktype1556 = 0; + $_vtype1557 = 0; + $xfer += $input->readMapBegin($_ktype1556, $_vtype1557, $_size1555); + for ($_i1559 = 0; $_i1559 < $_size1555; ++$_i1559) { - $key1497 = ''; - $val1498 = ''; - $xfer += $input->readString($key1497); - $xfer += $input->readString($val1498); - $this->part_vals[$key1497] = $val1498; + $key1560 = ''; + $val1561 = ''; + $xfer += $input->readString($key1560); + $xfer += $input->readString($val1561); + $this->part_vals[$key1560] = $val1561; } $xfer += $input->readMapEnd(); } else { @@ -39954,10 +41656,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1499 => $viter1500) + foreach ($this->part_vals as $kiter1562 => $viter1563) { - $xfer += $output->writeString($kiter1499); - $xfer += $output->writeString($viter1500); + $xfer += $output->writeString($kiter1562); + $xfer += $output->writeString($viter1563); } } $output->writeMapEnd(); @@ -40279,17 +41981,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1501 = 0; - $_ktype1502 = 0; - $_vtype1503 = 0; - $xfer += $input->readMapBegin($_ktype1502, $_vtype1503, $_size1501); - for ($_i1505 = 0; $_i1505 < $_size1501; ++$_i1505) + $_size1564 = 0; + $_ktype1565 = 0; + $_vtype1566 = 0; + $xfer += $input->readMapBegin($_ktype1565, $_vtype1566, $_size1564); + for ($_i1568 = 0; $_i1568 < $_size1564; ++$_i1568) { - $key1506 = ''; - $val1507 = ''; - $xfer += $input->readString($key1506); - $xfer += $input->readString($val1507); - $this->part_vals[$key1506] = $val1507; + $key1569 = ''; + $val1570 = ''; + $xfer += $input->readString($key1569); + $xfer += $input->readString($val1570); + $this->part_vals[$key1569] = $val1570; } $xfer += $input->readMapEnd(); } else { @@ -40334,10 +42036,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1508 => $viter1509) + foreach ($this->part_vals as $kiter1571 => $viter1572) { - $xfer += $output->writeString($kiter1508); - $xfer += $output->writeString($viter1509); + $xfer += $output->writeString($kiter1571); + $xfer += $output->writeString($viter1572); } } $output->writeMapEnd(); @@ -45862,14 +47564,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1510 = 0; - $_etype1513 = 0; - $xfer += $input->readListBegin($_etype1513, $_size1510); - for ($_i1514 = 0; $_i1514 < $_size1510; ++$_i1514) + $_size1573 = 0; + $_etype1576 = 0; + $xfer += $input->readListBegin($_etype1576, $_size1573); + for ($_i1577 = 0; $_i1577 < $_size1573; ++$_i1577) { - $elem1515 = null; - $xfer += $input->readString($elem1515); - $this->success []= $elem1515; + $elem1578 = null; + $xfer += $input->readString($elem1578); + $this->success []= $elem1578; } $xfer += $input->readListEnd(); } else { @@ -45905,9 +47607,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1516) + foreach ($this->success as $iter1579) { - $xfer += $output->writeString($iter1516); + $xfer += $output->writeString($iter1579); } } $output->writeListEnd(); @@ -46776,14 +48478,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1517 = 0; - $_etype1520 = 0; - $xfer += $input->readListBegin($_etype1520, $_size1517); - for ($_i1521 = 0; $_i1521 < $_size1517; ++$_i1521) + $_size1580 = 0; + $_etype1583 = 0; + $xfer += $input->readListBegin($_etype1583, $_size1580); + for ($_i1584 = 0; $_i1584 < $_size1580; ++$_i1584) { - $elem1522 = null; - $xfer += $input->readString($elem1522); - $this->success []= $elem1522; + $elem1585 = null; + $xfer += $input->readString($elem1585); + $this->success []= $elem1585; } $xfer += $input->readListEnd(); } else { @@ -46819,9 +48521,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1523) + foreach ($this->success as $iter1586) { - $xfer += $output->writeString($iter1523); + $xfer += $output->writeString($iter1586); } } $output->writeListEnd(); @@ -47512,15 +49214,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1524 = 0; - $_etype1527 = 0; - $xfer += $input->readListBegin($_etype1527, $_size1524); - for ($_i1528 = 0; $_i1528 < $_size1524; ++$_i1528) + $_size1587 = 0; + $_etype1590 = 0; + $xfer += $input->readListBegin($_etype1590, $_size1587); + for ($_i1591 = 0; $_i1591 < $_size1587; ++$_i1591) { - $elem1529 = null; - $elem1529 = new \metastore\Role(); - $xfer += $elem1529->read($input); - $this->success []= $elem1529; + $elem1592 = null; + $elem1592 = new \metastore\Role(); + $xfer += $elem1592->read($input); + $this->success []= $elem1592; } $xfer += $input->readListEnd(); } else { @@ -47556,9 +49258,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1530) + foreach ($this->success as $iter1593) { - $xfer += $iter1530->write($output); + $xfer += $iter1593->write($output); } } $output->writeListEnd(); @@ -48220,14 +49922,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1531 = 0; - $_etype1534 = 0; - $xfer += $input->readListBegin($_etype1534, $_size1531); - for ($_i1535 = 0; $_i1535 < $_size1531; ++$_i1535) + $_size1594 = 0; + $_etype1597 = 0; + $xfer += $input->readListBegin($_etype1597, $_size1594); + for ($_i1598 = 0; $_i1598 < $_size1594; ++$_i1598) { - $elem1536 = null; - $xfer += $input->readString($elem1536); - $this->group_names []= $elem1536; + $elem1599 = null; + $xfer += $input->readString($elem1599); + $this->group_names []= $elem1599; } $xfer += $input->readListEnd(); } else { @@ -48268,9 +49970,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1537) + foreach ($this->group_names as $iter1600) { - $xfer += $output->writeString($iter1537); + $xfer += $output->writeString($iter1600); } } $output->writeListEnd(); @@ -48578,15 +50280,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1538 = 0; - $_etype1541 = 0; - $xfer += $input->readListBegin($_etype1541, $_size1538); - for ($_i1542 = 0; $_i1542 < $_size1538; ++$_i1542) + $_size1601 = 0; + $_etype1604 = 0; + $xfer += $input->readListBegin($_etype1604, $_size1601); + for ($_i1605 = 0; $_i1605 < $_size1601; ++$_i1605) { - $elem1543 = null; - $elem1543 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1543->read($input); - $this->success []= $elem1543; + $elem1606 = null; + $elem1606 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1606->read($input); + $this->success []= $elem1606; } $xfer += $input->readListEnd(); } else { @@ -48622,9 +50324,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1544) + foreach ($this->success as $iter1607) { - $xfer += $iter1544->write($output); + $xfer += $iter1607->write($output); } } $output->writeListEnd(); @@ -49492,14 +51194,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1545 = 0; - $_etype1548 = 0; - $xfer += $input->readListBegin($_etype1548, $_size1545); - for ($_i1549 = 0; $_i1549 < $_size1545; ++$_i1549) + $_size1608 = 0; + $_etype1611 = 0; + $xfer += $input->readListBegin($_etype1611, $_size1608); + for ($_i1612 = 0; $_i1612 < $_size1608; ++$_i1612) { - $elem1550 = null; - $xfer += $input->readString($elem1550); - $this->group_names []= $elem1550; + $elem1613 = null; + $xfer += $input->readString($elem1613); + $this->group_names []= $elem1613; } $xfer += $input->readListEnd(); } else { @@ -49532,9 +51234,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1551) + foreach ($this->group_names as $iter1614) { - $xfer += $output->writeString($iter1551); + $xfer += $output->writeString($iter1614); } } $output->writeListEnd(); @@ -49610,14 +51312,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1552 = 0; - $_etype1555 = 0; - $xfer += $input->readListBegin($_etype1555, $_size1552); - for ($_i1556 = 0; $_i1556 < $_size1552; ++$_i1556) + $_size1615 = 0; + $_etype1618 = 0; + $xfer += $input->readListBegin($_etype1618, $_size1615); + for ($_i1619 = 0; $_i1619 < $_size1615; ++$_i1619) { - $elem1557 = null; - $xfer += $input->readString($elem1557); - $this->success []= $elem1557; + $elem1620 = null; + $xfer += $input->readString($elem1620); + $this->success []= $elem1620; } $xfer += $input->readListEnd(); } else { @@ -49653,9 +51355,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1558) + foreach ($this->success as $iter1621) { - $xfer += $output->writeString($iter1558); + $xfer += $output->writeString($iter1621); } } $output->writeListEnd(); @@ -50772,14 +52474,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1559 = 0; - $_etype1562 = 0; - $xfer += $input->readListBegin($_etype1562, $_size1559); - for ($_i1563 = 0; $_i1563 < $_size1559; ++$_i1563) + $_size1622 = 0; + $_etype1625 = 0; + $xfer += $input->readListBegin($_etype1625, $_size1622); + for ($_i1626 = 0; $_i1626 < $_size1622; ++$_i1626) { - $elem1564 = null; - $xfer += $input->readString($elem1564); - $this->success []= $elem1564; + $elem1627 = null; + $xfer += $input->readString($elem1627); + $this->success []= $elem1627; } $xfer += $input->readListEnd(); } else { @@ -50807,9 +52509,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1565) + foreach ($this->success as $iter1628) { - $xfer += $output->writeString($iter1565); + $xfer += $output->writeString($iter1628); } } $output->writeListEnd(); @@ -51448,14 +53150,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1566 = 0; - $_etype1569 = 0; - $xfer += $input->readListBegin($_etype1569, $_size1566); - for ($_i1570 = 0; $_i1570 < $_size1566; ++$_i1570) + $_size1629 = 0; + $_etype1632 = 0; + $xfer += $input->readListBegin($_etype1632, $_size1629); + for ($_i1633 = 0; $_i1633 < $_size1629; ++$_i1633) { - $elem1571 = null; - $xfer += $input->readString($elem1571); - $this->success []= $elem1571; + $elem1634 = null; + $xfer += $input->readString($elem1634); + $this->success []= $elem1634; } $xfer += $input->readListEnd(); } else { @@ -51483,9 +53185,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1572) + foreach ($this->success as $iter1635) { - $xfer += $output->writeString($iter1572); + $xfer += $output->writeString($iter1635); } } $output->writeListEnd(); @@ -55239,14 +56941,14 @@ class ThriftHiveMetastore_find_columns_with_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1573 = 0; - $_etype1576 = 0; - $xfer += $input->readListBegin($_etype1576, $_size1573); - for ($_i1577 = 0; $_i1577 < $_size1573; ++$_i1577) + $_size1636 = 0; + $_etype1639 = 0; + $xfer += $input->readListBegin($_etype1639, $_size1636); + for ($_i1640 = 0; $_i1640 < $_size1636; ++$_i1640) { - $elem1578 = null; - $xfer += $input->readString($elem1578); - $this->success []= $elem1578; + $elem1641 = null; + $xfer += $input->readString($elem1641); + $this->success []= $elem1641; } $xfer += $input->readListEnd(); } else { @@ -55274,9 +56976,9 @@ class ThriftHiveMetastore_find_columns_with_stats_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1579) + foreach ($this->success as $iter1642) { - $xfer += $output->writeString($iter1579); + $xfer += $output->writeString($iter1642); } } $output->writeListEnd(); @@ -63447,15 +65149,15 @@ class ThriftHiveMetastore_get_schema_all_versions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1580 = 0; - $_etype1583 = 0; - $xfer += $input->readListBegin($_etype1583, $_size1580); - for ($_i1584 = 0; $_i1584 < $_size1580; ++$_i1584) + $_size1643 = 0; + $_etype1646 = 0; + $xfer += $input->readListBegin($_etype1646, $_size1643); + for ($_i1647 = 0; $_i1647 < $_size1643; ++$_i1647) { - $elem1585 = null; - $elem1585 = new \metastore\SchemaVersion(); - $xfer += $elem1585->read($input); - $this->success []= $elem1585; + $elem1648 = null; + $elem1648 = new \metastore\SchemaVersion(); + $xfer += $elem1648->read($input); + $this->success []= $elem1648; } $xfer += $input->readListEnd(); } else { @@ -63499,9 +65201,9 @@ class ThriftHiveMetastore_get_schema_all_versions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1586) + foreach ($this->success as $iter1649) { - $xfer += $iter1586->write($output); + $xfer += $iter1649->write($output); } } $output->writeListEnd(); @@ -65370,15 +67072,15 @@ class ThriftHiveMetastore_get_runtime_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1587 = 0; - $_etype1590 = 0; - $xfer += $input->readListBegin($_etype1590, $_size1587); - for ($_i1591 = 0; $_i1591 < $_size1587; ++$_i1591) + $_size1650 = 0; + $_etype1653 = 0; + $xfer += $input->readListBegin($_etype1653, $_size1650); + for ($_i1654 = 0; $_i1654 < $_size1650; ++$_i1654) { - $elem1592 = null; - $elem1592 = new \metastore\RuntimeStat(); - $xfer += $elem1592->read($input); - $this->success []= $elem1592; + $elem1655 = null; + $elem1655 = new \metastore\RuntimeStat(); + $xfer += $elem1655->read($input); + $this->success []= $elem1655; } $xfer += $input->readListEnd(); } else { @@ -65414,9 +67116,9 @@ class ThriftHiveMetastore_get_runtime_stats_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1593) + foreach ($this->success as $iter1656) { - $xfer += $iter1593->write($output); + $xfer += $iter1656->write($output); } } $output->writeListEnd(); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php index b1f99036a0..2d1744c374 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php +++ standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php @@ -14402,6 +14402,14 @@ class PartitionsByExprRequest { * @var string */ public $order = null; + /** + * @var string + */ + public $validWriteIdList = null; + /** + * @var int + */ + public $tableId = -1; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -14434,6 +14442,14 @@ class PartitionsByExprRequest { 'var' => 'order', 'type' => TType::STRING, ), + 8 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), + 9 => array( + 'var' => 'tableId', + 'type' => TType::I64, + ), ); } if (is_array($vals)) { @@ -14458,6 +14474,12 @@ class PartitionsByExprRequest { if (isset($vals['order'])) { $this->order = $vals['order']; } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } + if (isset($vals['tableId'])) { + $this->tableId = $vals['tableId']; + } } } @@ -14529,6 +14551,20 @@ class PartitionsByExprRequest { $xfer += $input->skip($ftype); } break; + case 8: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; + case 9: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->tableId); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -14577,6 +14613,16 @@ class PartitionsByExprRequest { $xfer += $output->writeString($this->order); $xfer += $output->writeFieldEnd(); } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 8); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableId !== null) { + $xfer += $output->writeFieldBegin('tableId', TType::I64, 9); + $xfer += $output->writeI64($this->tableId); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -14894,6 +14940,10 @@ class TableStatsRequest { * @var string */ public $engine = null; + /** + * @var int + */ + public $tableId = -1; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -14926,6 +14976,10 @@ class TableStatsRequest { 'var' => 'engine', 'type' => TType::STRING, ), + 7 => array( + 'var' => 'tableId', + 'type' => TType::I64, + ), ); } if (is_array($vals)) { @@ -14947,6 +15001,9 @@ class TableStatsRequest { if (isset($vals['engine'])) { $this->engine = $vals['engine']; } + if (isset($vals['tableId'])) { + $this->tableId = $vals['tableId']; + } } } @@ -15021,6 +15078,13 @@ class TableStatsRequest { $xfer += $input->skip($ftype); } break; + case 7: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->tableId); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -15076,6 +15140,11 @@ class TableStatsRequest { $xfer += $output->writeString($this->engine); $xfer += $output->writeFieldEnd(); } + if ($this->tableId !== null) { + $xfer += $output->writeFieldBegin('tableId', TType::I64, 7); + $xfer += $output->writeI64($this->tableId); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -16376,6 +16445,10 @@ class PartitionValuesRequest { * @var string */ public $catName = null; + /** + * @var string + */ + public $validWriteIdList = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -16426,6 +16499,10 @@ class PartitionValuesRequest { 'var' => 'catName', 'type' => TType::STRING, ), + 10 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -16456,6 +16533,9 @@ class PartitionValuesRequest { if (isset($vals['catName'])) { $this->catName = $vals['catName']; } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } } } @@ -16563,6 +16643,13 @@ class PartitionValuesRequest { $xfer += $input->skip($ftype); } break; + case 10: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -16645,6 +16732,11 @@ class PartitionValuesRequest { $xfer += $output->writeString($this->catName); $xfer += $output->writeFieldEnd(); } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 10); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -16887,6 +16979,10 @@ class GetPartitionsByNamesRequest { * @var string */ public $engine = null; + /** + * @var string + */ + public $validWriteIdList = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -16927,6 +17023,10 @@ class GetPartitionsByNamesRequest { 'var' => 'engine', 'type' => TType::STRING, ), + 8 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -16951,6 +17051,9 @@ class GetPartitionsByNamesRequest { if (isset($vals['engine'])) { $this->engine = $vals['engine']; } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } } } @@ -17042,6 +17145,13 @@ class GetPartitionsByNamesRequest { $xfer += $input->skip($ftype); } break; + case 8: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -17114,6 +17224,11 @@ class GetPartitionsByNamesRequest { $xfer += $output->writeString($this->engine); $xfer += $output->writeFieldEnd(); } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 8); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -27317,6 +27432,10 @@ class GetTableRequest { * @var string */ public $engine = null; + /** + * @var int + */ + public $tableId = -1; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -27362,6 +27481,10 @@ class GetTableRequest { 'var' => 'engine', 'type' => TType::STRING, ), + 11 => array( + 'var' => 'tableId', + 'type' => TType::I64, + ), ); } if (is_array($vals)) { @@ -27392,6 +27515,9 @@ class GetTableRequest { if (isset($vals['engine'])) { $this->engine = $vals['engine']; } + if (isset($vals['tableId'])) { + $this->tableId = $vals['tableId']; + } } } @@ -27488,6 +27614,13 @@ class GetTableRequest { $xfer += $input->skip($ftype); } break; + case 11: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->tableId); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -27561,6 +27694,11 @@ class GetTableRequest { $xfer += $output->writeString($this->engine); $xfer += $output->writeFieldEnd(); } + if ($this->tableId !== null) { + $xfer += $output->writeFieldBegin('tableId', TType::I64, 11); + $xfer += $output->writeI64($this->tableId); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -37719,6 +37857,10 @@ class GetPartitionsRequest { * @var string */ public $processorIdentifier = null; + /** + * @var string + */ + public $validWriteIdList = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -37773,6 +37915,10 @@ class GetPartitionsRequest { 'var' => 'processorIdentifier', 'type' => TType::STRING, ), + 11 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -37806,6 +37952,9 @@ class GetPartitionsRequest { if (isset($vals['processorIdentifier'])) { $this->processorIdentifier = $vals['processorIdentifier']; } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } } } @@ -37920,6 +38069,13 @@ class GetPartitionsRequest { $xfer += $input->skip($ftype); } break; + case 11: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -38013,6 +38169,1812 @@ class GetPartitionsRequest { $xfer += $output->writeString($this->processorIdentifier); $xfer += $output->writeFieldEnd(); } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 11); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetFieldsRequest { + static $_TSPEC; + + /** + * @var string + */ + public $dbName = null; + /** + * @var string + */ + public $tblName = null; + /** + * @var \metastore\EnvironmentContext + */ + public $envContext = null; + /** + * @var string + */ + public $validWriteIdList = null; + /** + * @var int + */ + public $tableId = -1; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'dbName', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tblName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'envContext', + 'type' => TType::STRUCT, + 'class' => '\metastore\EnvironmentContext', + ), + 4 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'tableId', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + if (isset($vals['tblName'])) { + $this->tblName = $vals['tblName']; + } + if (isset($vals['envContext'])) { + $this->envContext = $vals['envContext']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } + if (isset($vals['tableId'])) { + $this->tableId = $vals['tableId']; + } + } + } + + public function getName() { + return 'GetFieldsRequest'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tblName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->envContext = new \metastore\EnvironmentContext(); + $xfer += $this->envContext->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->tableId); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('GetFieldsRequest'); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); + $xfer += $output->writeString($this->dbName); + $xfer += $output->writeFieldEnd(); + } + if ($this->tblName !== null) { + $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2); + $xfer += $output->writeString($this->tblName); + $xfer += $output->writeFieldEnd(); + } + if ($this->envContext !== null) { + if (!is_object($this->envContext)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('envContext', TType::STRUCT, 3); + $xfer += $this->envContext->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 4); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableId !== null) { + $xfer += $output->writeFieldBegin('tableId', TType::I64, 5); + $xfer += $output->writeI64($this->tableId); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetFieldsResponse { + static $_TSPEC; + + /** + * @var \metastore\FieldSchema[] + */ + public $fields = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'fields', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\FieldSchema', + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['fields'])) { + $this->fields = $vals['fields']; + } + } + } + + public function getName() { + return 'GetFieldsResponse'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::LST) { + $this->fields = array(); + $_size1064 = 0; + $_etype1067 = 0; + $xfer += $input->readListBegin($_etype1067, $_size1064); + for ($_i1068 = 0; $_i1068 < $_size1064; ++$_i1068) + { + $elem1069 = null; + $elem1069 = new \metastore\FieldSchema(); + $xfer += $elem1069->read($input); + $this->fields []= $elem1069; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('GetFieldsResponse'); + if ($this->fields !== null) { + if (!is_array($this->fields)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('fields', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->fields)); + { + foreach ($this->fields as $iter1070) + { + $xfer += $iter1070->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetSchemaRequest { + static $_TSPEC; + + /** + * @var string + */ + public $dbName = null; + /** + * @var string + */ + public $tblName = null; + /** + * @var \metastore\EnvironmentContext + */ + public $envContext = null; + /** + * @var string + */ + public $validWriteIdList = null; + /** + * @var int + */ + public $tableId = -1; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'dbName', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tblName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'envContext', + 'type' => TType::STRUCT, + 'class' => '\metastore\EnvironmentContext', + ), + 4 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'tableId', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + if (isset($vals['tblName'])) { + $this->tblName = $vals['tblName']; + } + if (isset($vals['envContext'])) { + $this->envContext = $vals['envContext']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } + if (isset($vals['tableId'])) { + $this->tableId = $vals['tableId']; + } + } + } + + public function getName() { + return 'GetSchemaRequest'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tblName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->envContext = new \metastore\EnvironmentContext(); + $xfer += $this->envContext->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->tableId); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('GetSchemaRequest'); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); + $xfer += $output->writeString($this->dbName); + $xfer += $output->writeFieldEnd(); + } + if ($this->tblName !== null) { + $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2); + $xfer += $output->writeString($this->tblName); + $xfer += $output->writeFieldEnd(); + } + if ($this->envContext !== null) { + if (!is_object($this->envContext)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('envContext', TType::STRUCT, 3); + $xfer += $this->envContext->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 4); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableId !== null) { + $xfer += $output->writeFieldBegin('tableId', TType::I64, 5); + $xfer += $output->writeI64($this->tableId); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetSchemaResponse { + static $_TSPEC; + + /** + * @var \metastore\FieldSchema[] + */ + public $fields = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'fields', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\FieldSchema', + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['fields'])) { + $this->fields = $vals['fields']; + } + } + } + + public function getName() { + return 'GetSchemaResponse'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::LST) { + $this->fields = array(); + $_size1071 = 0; + $_etype1074 = 0; + $xfer += $input->readListBegin($_etype1074, $_size1071); + for ($_i1075 = 0; $_i1075 < $_size1071; ++$_i1075) + { + $elem1076 = null; + $elem1076 = new \metastore\FieldSchema(); + $xfer += $elem1076->read($input); + $this->fields []= $elem1076; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('GetSchemaResponse'); + if ($this->fields !== null) { + if (!is_array($this->fields)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('fields', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->fields)); + { + foreach ($this->fields as $iter1077) + { + $xfer += $iter1077->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetPartitionRequest { + static $_TSPEC; + + /** + * @var string + */ + public $dbName = null; + /** + * @var string + */ + public $tblName = null; + /** + * @var string[] + */ + public $partVals = null; + /** + * @var string + */ + public $validWriteIdList = null; + /** + * @var int + */ + public $tableId = -1; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'dbName', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tblName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'partVals', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 4 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'tableId', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + if (isset($vals['tblName'])) { + $this->tblName = $vals['tblName']; + } + if (isset($vals['partVals'])) { + $this->partVals = $vals['partVals']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } + if (isset($vals['tableId'])) { + $this->tableId = $vals['tableId']; + } + } + } + + public function getName() { + return 'GetPartitionRequest'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tblName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::LST) { + $this->partVals = array(); + $_size1078 = 0; + $_etype1081 = 0; + $xfer += $input->readListBegin($_etype1081, $_size1078); + for ($_i1082 = 0; $_i1082 < $_size1078; ++$_i1082) + { + $elem1083 = null; + $xfer += $input->readString($elem1083); + $this->partVals []= $elem1083; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->tableId); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('GetPartitionRequest'); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); + $xfer += $output->writeString($this->dbName); + $xfer += $output->writeFieldEnd(); + } + if ($this->tblName !== null) { + $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2); + $xfer += $output->writeString($this->tblName); + $xfer += $output->writeFieldEnd(); + } + if ($this->partVals !== null) { + if (!is_array($this->partVals)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partVals', TType::LST, 3); + { + $output->writeListBegin(TType::STRING, count($this->partVals)); + { + foreach ($this->partVals as $iter1084) + { + $xfer += $output->writeString($iter1084); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 4); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableId !== null) { + $xfer += $output->writeFieldBegin('tableId', TType::I64, 5); + $xfer += $output->writeI64($this->tableId); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetPartitionResponse { + static $_TSPEC; + + /** + * @var \metastore\Partition + */ + public $partition = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'partition', + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['partition'])) { + $this->partition = $vals['partition']; + } + } + } + + public function getName() { + return 'GetPartitionResponse'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->partition = new \metastore\Partition(); + $xfer += $this->partition->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('GetPartitionResponse'); + if ($this->partition !== null) { + if (!is_object($this->partition)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partition', TType::STRUCT, 1); + $xfer += $this->partition->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class PartitionsRequest { + static $_TSPEC; + + /** + * @var string + */ + public $dbName = null; + /** + * @var string + */ + public $tblName = null; + /** + * @var int + */ + public $maxParts = -1; + /** + * @var string + */ + public $validWriteIdList = null; + /** + * @var int + */ + public $tableId = -1; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'dbName', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tblName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'maxParts', + 'type' => TType::I16, + ), + 4 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'tableId', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + if (isset($vals['tblName'])) { + $this->tblName = $vals['tblName']; + } + if (isset($vals['maxParts'])) { + $this->maxParts = $vals['maxParts']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } + if (isset($vals['tableId'])) { + $this->tableId = $vals['tableId']; + } + } + } + + public function getName() { + return 'PartitionsRequest'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tblName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I16) { + $xfer += $input->readI16($this->maxParts); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->tableId); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('PartitionsRequest'); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); + $xfer += $output->writeString($this->dbName); + $xfer += $output->writeFieldEnd(); + } + if ($this->tblName !== null) { + $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2); + $xfer += $output->writeString($this->tblName); + $xfer += $output->writeFieldEnd(); + } + if ($this->maxParts !== null) { + $xfer += $output->writeFieldBegin('maxParts', TType::I16, 3); + $xfer += $output->writeI16($this->maxParts); + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 4); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableId !== null) { + $xfer += $output->writeFieldBegin('tableId', TType::I64, 5); + $xfer += $output->writeI64($this->tableId); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class PartitionsResponse { + static $_TSPEC; + + /** + * @var \metastore\Partition[] + */ + public $partitions = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'partitions', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['partitions'])) { + $this->partitions = $vals['partitions']; + } + } + } + + public function getName() { + return 'PartitionsResponse'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::LST) { + $this->partitions = array(); + $_size1085 = 0; + $_etype1088 = 0; + $xfer += $input->readListBegin($_etype1088, $_size1085); + for ($_i1089 = 0; $_i1089 < $_size1085; ++$_i1089) + { + $elem1090 = null; + $elem1090 = new \metastore\Partition(); + $xfer += $elem1090->read($input); + $this->partitions []= $elem1090; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('PartitionsResponse'); + if ($this->partitions !== null) { + if (!is_array($this->partitions)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitions', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->partitions)); + { + foreach ($this->partitions as $iter1091) + { + $xfer += $iter1091->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetPartitionNamesPsRequest { + static $_TSPEC; + + /** + * @var string + */ + public $dbName = null; + /** + * @var string + */ + public $tblName = null; + /** + * @var string[] + */ + public $partValues = null; + /** + * @var int + */ + public $maxParts = -1; + /** + * @var string + */ + public $validWriteIdList = null; + /** + * @var int + */ + public $tableId = -1; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'dbName', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tblName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'partValues', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 4 => array( + 'var' => 'maxParts', + 'type' => TType::I16, + ), + 5 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), + 6 => array( + 'var' => 'tableId', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + if (isset($vals['tblName'])) { + $this->tblName = $vals['tblName']; + } + if (isset($vals['partValues'])) { + $this->partValues = $vals['partValues']; + } + if (isset($vals['maxParts'])) { + $this->maxParts = $vals['maxParts']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } + if (isset($vals['tableId'])) { + $this->tableId = $vals['tableId']; + } + } + } + + public function getName() { + return 'GetPartitionNamesPsRequest'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tblName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::LST) { + $this->partValues = array(); + $_size1092 = 0; + $_etype1095 = 0; + $xfer += $input->readListBegin($_etype1095, $_size1092); + for ($_i1096 = 0; $_i1096 < $_size1092; ++$_i1096) + { + $elem1097 = null; + $xfer += $input->readString($elem1097); + $this->partValues []= $elem1097; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I16) { + $xfer += $input->readI16($this->maxParts); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->tableId); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('GetPartitionNamesPsRequest'); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); + $xfer += $output->writeString($this->dbName); + $xfer += $output->writeFieldEnd(); + } + if ($this->tblName !== null) { + $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2); + $xfer += $output->writeString($this->tblName); + $xfer += $output->writeFieldEnd(); + } + if ($this->partValues !== null) { + if (!is_array($this->partValues)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partValues', TType::LST, 3); + { + $output->writeListBegin(TType::STRING, count($this->partValues)); + { + foreach ($this->partValues as $iter1098) + { + $xfer += $output->writeString($iter1098); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->maxParts !== null) { + $xfer += $output->writeFieldBegin('maxParts', TType::I16, 4); + $xfer += $output->writeI16($this->maxParts); + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 5); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableId !== null) { + $xfer += $output->writeFieldBegin('tableId', TType::I64, 6); + $xfer += $output->writeI64($this->tableId); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetPartitionNamesPsResponse { + static $_TSPEC; + + /** + * @var string[] + */ + public $names = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'names', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['names'])) { + $this->names = $vals['names']; + } + } + } + + public function getName() { + return 'GetPartitionNamesPsResponse'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::LST) { + $this->names = array(); + $_size1099 = 0; + $_etype1102 = 0; + $xfer += $input->readListBegin($_etype1102, $_size1099); + for ($_i1103 = 0; $_i1103 < $_size1099; ++$_i1103) + { + $elem1104 = null; + $xfer += $input->readString($elem1104); + $this->names []= $elem1104; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('GetPartitionNamesPsResponse'); + if ($this->names !== null) { + if (!is_array($this->names)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('names', TType::LST, 1); + { + $output->writeListBegin(TType::STRING, count($this->names)); + { + foreach ($this->names as $iter1105) + { + $xfer += $output->writeString($iter1105); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetPartitionsPsWithAuthRequest { + static $_TSPEC; + + /** + * @var string + */ + public $dbName = null; + /** + * @var string + */ + public $tblName = null; + /** + * @var string[] + */ + public $partVals = null; + /** + * @var int + */ + public $maxParts = -1; + /** + * @var string + */ + public $userName = null; + /** + * @var string[] + */ + public $groupNames = null; + /** + * @var string + */ + public $validWriteIdList = null; + /** + * @var int + */ + public $tableId = -1; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'dbName', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tblName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'partVals', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 4 => array( + 'var' => 'maxParts', + 'type' => TType::I16, + ), + 5 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 6 => array( + 'var' => 'groupNames', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 7 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), + 8 => array( + 'var' => 'tableId', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + if (isset($vals['tblName'])) { + $this->tblName = $vals['tblName']; + } + if (isset($vals['partVals'])) { + $this->partVals = $vals['partVals']; + } + if (isset($vals['maxParts'])) { + $this->maxParts = $vals['maxParts']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } + if (isset($vals['groupNames'])) { + $this->groupNames = $vals['groupNames']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } + if (isset($vals['tableId'])) { + $this->tableId = $vals['tableId']; + } + } + } + + public function getName() { + return 'GetPartitionsPsWithAuthRequest'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tblName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::LST) { + $this->partVals = array(); + $_size1106 = 0; + $_etype1109 = 0; + $xfer += $input->readListBegin($_etype1109, $_size1106); + for ($_i1110 = 0; $_i1110 < $_size1106; ++$_i1110) + { + $elem1111 = null; + $xfer += $input->readString($elem1111); + $this->partVals []= $elem1111; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I16) { + $xfer += $input->readI16($this->maxParts); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::LST) { + $this->groupNames = array(); + $_size1112 = 0; + $_etype1115 = 0; + $xfer += $input->readListBegin($_etype1115, $_size1112); + for ($_i1116 = 0; $_i1116 < $_size1112; ++$_i1116) + { + $elem1117 = null; + $xfer += $input->readString($elem1117); + $this->groupNames []= $elem1117; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->tableId); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('GetPartitionsPsWithAuthRequest'); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); + $xfer += $output->writeString($this->dbName); + $xfer += $output->writeFieldEnd(); + } + if ($this->tblName !== null) { + $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2); + $xfer += $output->writeString($this->tblName); + $xfer += $output->writeFieldEnd(); + } + if ($this->partVals !== null) { + if (!is_array($this->partVals)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partVals', TType::LST, 3); + { + $output->writeListBegin(TType::STRING, count($this->partVals)); + { + foreach ($this->partVals as $iter1118) + { + $xfer += $output->writeString($iter1118); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->maxParts !== null) { + $xfer += $output->writeFieldBegin('maxParts', TType::I16, 4); + $xfer += $output->writeI16($this->maxParts); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 5); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } + if ($this->groupNames !== null) { + if (!is_array($this->groupNames)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('groupNames', TType::LST, 6); + { + $output->writeListBegin(TType::STRING, count($this->groupNames)); + { + foreach ($this->groupNames as $iter1119) + { + $xfer += $output->writeString($iter1119); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 7); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableId !== null) { + $xfer += $output->writeFieldBegin('tableId', TType::I64, 8); + $xfer += $output->writeI64($this->tableId); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetPartitionsPsWithAuthResponse { + static $_TSPEC; + + /** + * @var \metastore\Partition[] + */ + public $partitions = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'partitions', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['partitions'])) { + $this->partitions = $vals['partitions']; + } + } + } + + public function getName() { + return 'GetPartitionsPsWithAuthResponse'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::LST) { + $this->partitions = array(); + $_size1120 = 0; + $_etype1123 = 0; + $xfer += $input->readListBegin($_etype1123, $_size1120); + for ($_i1124 = 0; $_i1124 < $_size1120; ++$_i1124) + { + $elem1125 = null; + $elem1125 = new \metastore\Partition(); + $xfer += $elem1125->read($input); + $this->partitions []= $elem1125; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('GetPartitionsPsWithAuthResponse'); + if ($this->partitions !== null) { + if (!is_array($this->partitions)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitions', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->partitions)); + { + foreach ($this->partitions as $iter1126) + { + $xfer += $iter1126->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index 100a62206e..df031e73c5 100755 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -44,8 +44,10 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' get_type_all(string name)') print(' get_fields(string db_name, string table_name)') print(' get_fields_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)') + print(' GetFieldsResponse get_fields_req(GetFieldsRequest req)') print(' get_schema(string db_name, string table_name)') print(' get_schema_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)') + print(' GetSchemaResponse get_schema_req(GetSchemaRequest req)') print(' void create_table(Table tbl)') print(' void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)') print(' void create_table_with_constraints(Table tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints)') @@ -94,18 +96,22 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' bool drop_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, bool deleteData, EnvironmentContext environment_context)') print(' DropPartitionsResult drop_partitions_req(DropPartitionsRequest req)') print(' Partition get_partition(string db_name, string tbl_name, part_vals)') + print(' GetPartitionResponse get_partition_req(GetPartitionRequest req)') print(' Partition exchange_partition( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') print(' exchange_partitions( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') print(' Partition get_partition_with_auth(string db_name, string tbl_name, part_vals, string user_name, group_names)') print(' Partition get_partition_by_name(string db_name, string tbl_name, string part_name)') print(' get_partitions(string db_name, string tbl_name, i16 max_parts)') + print(' PartitionsResponse get_partitions_req(PartitionsRequest req)') print(' get_partitions_with_auth(string db_name, string tbl_name, i16 max_parts, string user_name, group_names)') print(' get_partitions_pspec(string db_name, string tbl_name, i32 max_parts)') print(' get_partition_names(string db_name, string tbl_name, i16 max_parts)') print(' PartitionValuesResponse get_partition_values(PartitionValuesRequest request)') print(' get_partitions_ps(string db_name, string tbl_name, part_vals, i16 max_parts)') print(' get_partitions_ps_with_auth(string db_name, string tbl_name, part_vals, i16 max_parts, string user_name, group_names)') + print(' GetPartitionsPsWithAuthResponse get_partitions_ps_with_auth_req(GetPartitionsPsWithAuthRequest req)') print(' get_partition_names_ps(string db_name, string tbl_name, part_vals, i16 max_parts)') + print(' GetPartitionNamesPsResponse get_partition_names_ps_req(GetPartitionNamesPsRequest req)') print(' get_partition_names_req(PartitionsByExprRequest req)') print(' get_partitions_by_filter(string db_name, string tbl_name, string filter, i16 max_parts)') print(' get_part_specs_by_filter(string db_name, string tbl_name, string filter, i32 max_parts)') @@ -446,6 +452,12 @@ elif cmd == 'get_fields_with_environment_context': sys.exit(1) pp.pprint(client.get_fields_with_environment_context(args[0],args[1],eval(args[2]),)) +elif cmd == 'get_fields_req': + if len(args) != 1: + print('get_fields_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_fields_req(eval(args[0]),)) + elif cmd == 'get_schema': if len(args) != 2: print('get_schema requires 2 args') @@ -458,6 +470,12 @@ elif cmd == 'get_schema_with_environment_context': sys.exit(1) pp.pprint(client.get_schema_with_environment_context(args[0],args[1],eval(args[2]),)) +elif cmd == 'get_schema_req': + if len(args) != 1: + print('get_schema_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_schema_req(eval(args[0]),)) + elif cmd == 'create_table': if len(args) != 1: print('create_table requires 1 args') @@ -746,6 +764,12 @@ elif cmd == 'get_partition': sys.exit(1) pp.pprint(client.get_partition(args[0],args[1],eval(args[2]),)) +elif cmd == 'get_partition_req': + if len(args) != 1: + print('get_partition_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_partition_req(eval(args[0]),)) + elif cmd == 'exchange_partition': if len(args) != 5: print('exchange_partition requires 5 args') @@ -776,6 +800,12 @@ elif cmd == 'get_partitions': sys.exit(1) pp.pprint(client.get_partitions(args[0],args[1],eval(args[2]),)) +elif cmd == 'get_partitions_req': + if len(args) != 1: + print('get_partitions_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_partitions_req(eval(args[0]),)) + elif cmd == 'get_partitions_with_auth': if len(args) != 5: print('get_partitions_with_auth requires 5 args') @@ -812,12 +842,24 @@ elif cmd == 'get_partitions_ps_with_auth': sys.exit(1) pp.pprint(client.get_partitions_ps_with_auth(args[0],args[1],eval(args[2]),eval(args[3]),args[4],eval(args[5]),)) +elif cmd == 'get_partitions_ps_with_auth_req': + if len(args) != 1: + print('get_partitions_ps_with_auth_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_partitions_ps_with_auth_req(eval(args[0]),)) + elif cmd == 'get_partition_names_ps': if len(args) != 4: print('get_partition_names_ps requires 4 args') sys.exit(1) pp.pprint(client.get_partition_names_ps(args[0],args[1],eval(args[2]),eval(args[3]),)) +elif cmd == 'get_partition_names_ps_req': + if len(args) != 1: + print('get_partition_names_ps_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_partition_names_ps_req(eval(args[0]),)) + elif cmd == 'get_partition_names_req': if len(args) != 1: print('get_partition_names_req requires 1 args') diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index a892606e61..1e57a85e0d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -162,6 +162,13 @@ def get_fields_with_environment_context(self, db_name, table_name, environment_c """ pass + def get_fields_req(self, req): + """ + Parameters: + - req + """ + pass + def get_schema(self, db_name, table_name): """ Parameters: @@ -179,6 +186,13 @@ def get_schema_with_environment_context(self, db_name, table_name, environment_c """ pass + def get_schema_req(self, req): + """ + Parameters: + - req + """ + pass + def create_table(self, tbl): """ Parameters: @@ -573,6 +587,13 @@ def get_partition(self, db_name, tbl_name, part_vals): """ pass + def get_partition_req(self, req): + """ + Parameters: + - req + """ + pass + def exchange_partition(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name): """ Parameters: @@ -624,6 +645,13 @@ def get_partitions(self, db_name, tbl_name, max_parts): """ pass + def get_partitions_req(self, req): + """ + Parameters: + - req + """ + pass + def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names): """ Parameters: @@ -682,6 +710,13 @@ def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, u """ pass + def get_partitions_ps_with_auth_req(self, req): + """ + Parameters: + - req + """ + pass + def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts): """ Parameters: @@ -692,6 +727,13 @@ def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts): """ pass + def get_partition_names_ps_req(self, req): + """ + Parameters: + - req + """ + pass + def get_partition_names_req(self, req): """ Parameters: @@ -2487,6 +2529,43 @@ def recv_get_fields_with_environment_context(self): raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields_with_environment_context failed: unknown result") + def get_fields_req(self, req): + """ + Parameters: + - req + """ + self.send_get_fields_req(req) + return self.recv_get_fields_req() + + def send_get_fields_req(self, req): + self._oprot.writeMessageBegin('get_fields_req', TMessageType.CALL, self._seqid) + args = get_fields_req_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_fields_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_fields_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + if result.o3 is not None: + raise result.o3 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields_req failed: unknown result") + def get_schema(self, db_name, table_name): """ Parameters: @@ -2567,6 +2646,43 @@ def recv_get_schema_with_environment_context(self): raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema_with_environment_context failed: unknown result") + def get_schema_req(self, req): + """ + Parameters: + - req + """ + self.send_get_schema_req(req) + return self.recv_get_schema_req() + + def send_get_schema_req(self, req): + self._oprot.writeMessageBegin('get_schema_req', TMessageType.CALL, self._seqid) + args = get_schema_req_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_schema_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_schema_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + if result.o3 is not None: + raise result.o3 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema_req failed: unknown result") + def create_table(self, tbl): """ Parameters: @@ -4350,6 +4466,41 @@ def recv_get_partition(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition failed: unknown result") + def get_partition_req(self, req): + """ + Parameters: + - req + """ + self.send_get_partition_req(req) + return self.recv_get_partition_req() + + def send_get_partition_req(self, req): + self._oprot.writeMessageBegin('get_partition_req', TMessageType.CALL, self._seqid) + args = get_partition_req_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_partition_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_partition_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_req failed: unknown result") + def exchange_partition(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name): """ Parameters: @@ -4565,6 +4716,41 @@ def recv_get_partitions(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions failed: unknown result") + def get_partitions_req(self, req): + """ + Parameters: + - req + """ + self.send_get_partitions_req(req) + return self.recv_get_partitions_req() + + def send_get_partitions_req(self, req): + self._oprot.writeMessageBegin('get_partitions_req', TMessageType.CALL, self._seqid) + args = get_partitions_req_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_partitions_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_partitions_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_req failed: unknown result") + def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names): """ Parameters: @@ -4807,6 +4993,41 @@ def recv_get_partitions_ps_with_auth(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result") + def get_partitions_ps_with_auth_req(self, req): + """ + Parameters: + - req + """ + self.send_get_partitions_ps_with_auth_req(req) + return self.recv_get_partitions_ps_with_auth_req() + + def send_get_partitions_ps_with_auth_req(self, req): + self._oprot.writeMessageBegin('get_partitions_ps_with_auth_req', TMessageType.CALL, self._seqid) + args = get_partitions_ps_with_auth_req_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_partitions_ps_with_auth_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_partitions_ps_with_auth_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth_req failed: unknown result") + def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts): """ Parameters: @@ -4848,6 +5069,41 @@ def recv_get_partition_names_ps(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names_ps failed: unknown result") + def get_partition_names_ps_req(self, req): + """ + Parameters: + - req + """ + self.send_get_partition_names_ps_req(req) + return self.recv_get_partition_names_ps_req() + + def send_get_partition_names_ps_req(self, req): + self._oprot.writeMessageBegin('get_partition_names_ps_req', TMessageType.CALL, self._seqid) + args = get_partition_names_ps_req_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_partition_names_ps_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_partition_names_ps_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names_ps_req failed: unknown result") + def get_partition_names_req(self, req): """ Parameters: @@ -10086,8 +10342,10 @@ def __init__(self, handler): self._processMap["get_type_all"] = Processor.process_get_type_all self._processMap["get_fields"] = Processor.process_get_fields self._processMap["get_fields_with_environment_context"] = Processor.process_get_fields_with_environment_context + self._processMap["get_fields_req"] = Processor.process_get_fields_req self._processMap["get_schema"] = Processor.process_get_schema self._processMap["get_schema_with_environment_context"] = Processor.process_get_schema_with_environment_context + self._processMap["get_schema_req"] = Processor.process_get_schema_req self._processMap["create_table"] = Processor.process_create_table self._processMap["create_table_with_environment_context"] = Processor.process_create_table_with_environment_context self._processMap["create_table_with_constraints"] = Processor.process_create_table_with_constraints @@ -10136,18 +10394,22 @@ def __init__(self, handler): self._processMap["drop_partition_by_name_with_environment_context"] = Processor.process_drop_partition_by_name_with_environment_context self._processMap["drop_partitions_req"] = Processor.process_drop_partitions_req self._processMap["get_partition"] = Processor.process_get_partition + self._processMap["get_partition_req"] = Processor.process_get_partition_req self._processMap["exchange_partition"] = Processor.process_exchange_partition self._processMap["exchange_partitions"] = Processor.process_exchange_partitions self._processMap["get_partition_with_auth"] = Processor.process_get_partition_with_auth self._processMap["get_partition_by_name"] = Processor.process_get_partition_by_name self._processMap["get_partitions"] = Processor.process_get_partitions + self._processMap["get_partitions_req"] = Processor.process_get_partitions_req self._processMap["get_partitions_with_auth"] = Processor.process_get_partitions_with_auth self._processMap["get_partitions_pspec"] = Processor.process_get_partitions_pspec self._processMap["get_partition_names"] = Processor.process_get_partition_names self._processMap["get_partition_values"] = Processor.process_get_partition_values self._processMap["get_partitions_ps"] = Processor.process_get_partitions_ps self._processMap["get_partitions_ps_with_auth"] = Processor.process_get_partitions_ps_with_auth + self._processMap["get_partitions_ps_with_auth_req"] = Processor.process_get_partitions_ps_with_auth_req self._processMap["get_partition_names_ps"] = Processor.process_get_partition_names_ps + self._processMap["get_partition_names_ps_req"] = Processor.process_get_partition_names_ps_req self._processMap["get_partition_names_req"] = Processor.process_get_partition_names_req self._processMap["get_partitions_by_filter"] = Processor.process_get_partitions_by_filter self._processMap["get_part_specs_by_filter"] = Processor.process_get_part_specs_by_filter @@ -10821,6 +11083,34 @@ def process_get_fields_with_environment_context(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_fields_req(self, seqid, iprot, oprot): + args = get_fields_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_fields_req_result() + try: + result.success = self._handler.get_fields_req(args.req) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except UnknownTableException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except UnknownDBException as o3: + msg_type = TMessageType.REPLY + result.o3 = o3 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_fields_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_schema(self, seqid, iprot, oprot): args = get_schema_args() args.read(iprot) @@ -10877,6 +11167,34 @@ def process_get_schema_with_environment_context(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_schema_req(self, seqid, iprot, oprot): + args = get_schema_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_schema_req_result() + try: + result.success = self._handler.get_schema_req(args.req) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except UnknownTableException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except UnknownDBException as o3: + msg_type = TMessageType.REPLY + result.o3 = o3 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_schema_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_create_table(self, seqid, iprot, oprot): args = create_table_args() args.read(iprot) @@ -12107,6 +12425,31 @@ def process_get_partition(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_partition_req(self, seqid, iprot, oprot): + args = get_partition_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_partition_req_result() + try: + result.success = self._handler.get_partition_req(args.req) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except NoSuchObjectException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_partition_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_exchange_partition(self, seqid, iprot, oprot): args = exchange_partition_args() args.read(iprot) @@ -12244,6 +12587,31 @@ def process_get_partitions(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_partitions_req(self, seqid, iprot, oprot): + args = get_partitions_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_partitions_req_result() + try: + result.success = self._handler.get_partitions_req(args.req) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except NoSuchObjectException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except MetaException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_partitions_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_partitions_with_auth(self, seqid, iprot, oprot): args = get_partitions_with_auth_args() args.read(iprot) @@ -12394,6 +12762,31 @@ def process_get_partitions_ps_with_auth(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_partitions_ps_with_auth_req(self, seqid, iprot, oprot): + args = get_partitions_ps_with_auth_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_partitions_ps_with_auth_req_result() + try: + result.success = self._handler.get_partitions_ps_with_auth_req(args.req) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except NoSuchObjectException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_partitions_ps_with_auth_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_partition_names_ps(self, seqid, iprot, oprot): args = get_partition_names_ps_args() args.read(iprot) @@ -12419,6 +12812,31 @@ def process_get_partition_names_ps(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_partition_names_ps_req(self, seqid, iprot, oprot): + args = get_partition_names_ps_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_partition_names_ps_req_result() + try: + result.success = self._handler.get_partition_names_ps_req(args.req) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except NoSuchObjectException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_partition_names_ps_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_partition_names_req(self, seqid, iprot, oprot): args = get_partition_names_req_args() args.read(iprot) @@ -17856,10 +18274,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1064, _size1061) = iprot.readListBegin() - for _i1065 in xrange(_size1061): - _elem1066 = iprot.readString() - self.success.append(_elem1066) + (_etype1127, _size1124) = iprot.readListBegin() + for _i1128 in xrange(_size1124): + _elem1129 = iprot.readString() + self.success.append(_elem1129) iprot.readListEnd() else: iprot.skip(ftype) @@ -17882,8 +18300,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1067 in self.success: - oprot.writeString(iter1067) + for iter1130 in self.success: + oprot.writeString(iter1130) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17988,10 +18406,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1071, _size1068) = iprot.readListBegin() - for _i1072 in xrange(_size1068): - _elem1073 = iprot.readString() - self.success.append(_elem1073) + (_etype1134, _size1131) = iprot.readListBegin() + for _i1135 in xrange(_size1131): + _elem1136 = iprot.readString() + self.success.append(_elem1136) iprot.readListEnd() else: iprot.skip(ftype) @@ -18014,8 +18432,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1074 in self.success: - oprot.writeString(iter1074) + for iter1137 in self.success: + oprot.writeString(iter1137) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18785,12 +19203,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1076, _vtype1077, _size1075 ) = iprot.readMapBegin() - for _i1079 in xrange(_size1075): - _key1080 = iprot.readString() - _val1081 = Type() - _val1081.read(iprot) - self.success[_key1080] = _val1081 + (_ktype1139, _vtype1140, _size1138 ) = iprot.readMapBegin() + for _i1142 in xrange(_size1138): + _key1143 = iprot.readString() + _val1144 = Type() + _val1144.read(iprot) + self.success[_key1143] = _val1144 iprot.readMapEnd() else: iprot.skip(ftype) @@ -18813,9 +19231,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) - for kiter1082,viter1083 in self.success.items(): - oprot.writeString(kiter1082) - viter1083.write(oprot) + for kiter1145,viter1146 in self.success.items(): + oprot.writeString(kiter1145) + viter1146.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -18958,11 +19376,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1087, _size1084) = iprot.readListBegin() - for _i1088 in xrange(_size1084): - _elem1089 = FieldSchema() - _elem1089.read(iprot) - self.success.append(_elem1089) + (_etype1150, _size1147) = iprot.readListBegin() + for _i1151 in xrange(_size1147): + _elem1152 = FieldSchema() + _elem1152.read(iprot) + self.success.append(_elem1152) iprot.readListEnd() else: iprot.skip(ftype) @@ -18997,8 +19415,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1090 in self.success: - iter1090.write(oprot) + for iter1153 in self.success: + iter1153.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19165,11 +19583,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1094, _size1091) = iprot.readListBegin() - for _i1095 in xrange(_size1091): - _elem1096 = FieldSchema() - _elem1096.read(iprot) - self.success.append(_elem1096) + (_etype1157, _size1154) = iprot.readListBegin() + for _i1158 in xrange(_size1154): + _elem1159 = FieldSchema() + _elem1159.read(iprot) + self.success.append(_elem1159) iprot.readListEnd() else: iprot.skip(ftype) @@ -19204,8 +19622,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1097 in self.success: - iter1097.write(oprot) + for iter1160 in self.success: + iter1160.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19246,218 +19664,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_schema_args: - """ - Attributes: - - db_name - - table_name - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'db_name', None, None, ), # 1 - (2, TType.STRING, 'table_name', None, None, ), # 2 - ) - - def __init__(self, db_name=None, table_name=None,): - self.db_name = db_name - self.table_name = table_name - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRING: - self.db_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.table_name = iprot.readString() - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('get_schema_args') - if self.db_name is not None: - oprot.writeFieldBegin('db_name', TType.STRING, 1) - oprot.writeString(self.db_name) - oprot.writeFieldEnd() - if self.table_name is not None: - oprot.writeFieldBegin('table_name', TType.STRING, 2) - oprot.writeString(self.table_name) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.table_name) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class get_schema_result: +class get_fields_req_args: """ Attributes: - - success - - o1 - - o2 - - o3 - """ - - thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3 - ) - - def __init__(self, success=None, o1=None, o2=None, o3=None,): - self.success = success - self.o1 = o1 - self.o2 = o2 - self.o3 = o3 - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1101, _size1098) = iprot.readListBegin() - for _i1102 in xrange(_size1098): - _elem1103 = FieldSchema() - _elem1103.read(iprot) - self.success.append(_elem1103) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = MetaException() - self.o1.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = UnknownTableException() - self.o2.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = UnknownDBException() - self.o3.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('get_schema_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1104 in self.success: - iter1104.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.o1 is not None: - oprot.writeFieldBegin('o1', TType.STRUCT, 1) - self.o1.write(oprot) - oprot.writeFieldEnd() - if self.o2 is not None: - oprot.writeFieldBegin('o2', TType.STRUCT, 2) - self.o2.write(oprot) - oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class get_schema_with_environment_context_args: - """ - Attributes: - - db_name - - table_name - - environment_context + - req """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'db_name', None, None, ), # 1 - (2, TType.STRING, 'table_name', None, None, ), # 2 - (3, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 3 + (1, TType.STRUCT, 'req', (GetFieldsRequest, GetFieldsRequest.thrift_spec), None, ), # 1 ) - def __init__(self, db_name=None, table_name=None, environment_context=None,): - self.db_name = db_name - self.table_name = table_name - self.environment_context = environment_context + def __init__(self, req=None,): + self.req = req def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -19469,19 +19688,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.table_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: if ftype == TType.STRUCT: - self.environment_context = EnvironmentContext() - self.environment_context.read(iprot) + self.req = GetFieldsRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -19493,18 +19702,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_schema_with_environment_context_args') - if self.db_name is not None: - oprot.writeFieldBegin('db_name', TType.STRING, 1) - oprot.writeString(self.db_name) - oprot.writeFieldEnd() - if self.table_name is not None: - oprot.writeFieldBegin('table_name', TType.STRING, 2) - oprot.writeString(self.table_name) - oprot.writeFieldEnd() - if self.environment_context is not None: - oprot.writeFieldBegin('environment_context', TType.STRUCT, 3) - self.environment_context.write(oprot) + oprot.writeStructBegin('get_fields_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -19515,9 +19716,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.table_name) - value = (value * 31) ^ hash(self.environment_context) + value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -19531,7 +19730,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_schema_with_environment_context_result: +class get_fields_req_result: """ Attributes: - success @@ -19541,7 +19740,7 @@ class get_schema_with_environment_context_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 0 + (0, TType.STRUCT, 'success', (GetFieldsResponse, GetFieldsResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3 @@ -19563,14 +19762,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1108, _size1105) = iprot.readListBegin() - for _i1109 in xrange(_size1105): - _elem1110 = FieldSchema() - _elem1110.read(iprot) - self.success.append(_elem1110) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = GetFieldsResponse() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: @@ -19600,13 +19794,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_schema_with_environment_context_result') + oprot.writeStructBegin('get_fields_req_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1111 in self.success: - iter1111.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -19646,19 +19837,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_table_args: +class get_schema_args: """ Attributes: - - tbl + - db_name + - table_name """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'tbl', (Table, Table.thrift_spec), None, ), # 1 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'table_name', None, None, ), # 2 ) - def __init__(self, tbl=None,): - self.tbl = tbl + def __init__(self, db_name=None, table_name=None,): + self.db_name = db_name + self.table_name = table_name def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -19670,9 +19864,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.tbl = Table() - self.tbl.read(iprot) + if ftype == TType.STRING: + self.db_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.table_name = iprot.readString() else: iprot.skip(ftype) else: @@ -19684,10 +19882,14 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('create_table_args') - if self.tbl is not None: - oprot.writeFieldBegin('tbl', TType.STRUCT, 1) - self.tbl.write(oprot) + oprot.writeStructBegin('get_schema_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) + oprot.writeFieldEnd() + if self.table_name is not None: + oprot.writeFieldBegin('table_name', TType.STRING, 2) + oprot.writeString(self.table_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -19698,7 +19900,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.tbl) + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.table_name) return value def __repr__(self): @@ -19712,28 +19915,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_table_result: +class get_schema_result: """ Attributes: + - success - o1 - o2 - o3 - - o4 """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4 + (0, TType.LIST, 'success', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3 ) - def __init__(self, o1=None, o2=None, o3=None, o4=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None,): + self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 - self.o4 = o4 def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -19744,30 +19946,35 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype1164, _size1161) = iprot.readListBegin() + for _i1165 in xrange(_size1161): + _elem1166 = FieldSchema() + _elem1166.read(iprot) + self.success.append(_elem1166) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: if ftype == TType.STRUCT: - self.o1 = AlreadyExistsException() + self.o1 = MetaException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidObjectException() + self.o2 = UnknownTableException() self.o2.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: - self.o3 = MetaException() + self.o3 = UnknownDBException() self.o3.read(iprot) else: iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = NoSuchObjectException() - self.o4.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -19777,7 +19984,14 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('create_table_result') + oprot.writeStructBegin('get_schema_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1167 in self.success: + iter1167.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -19790,10 +20004,6 @@ def write(self, oprot): oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin('o4', TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -19803,10 +20013,10 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -19820,21 +20030,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_table_with_environment_context_args: +class get_schema_with_environment_context_args: """ Attributes: - - tbl + - db_name + - table_name - environment_context """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'tbl', (Table, Table.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 2 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'table_name', None, None, ), # 2 + (3, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 3 ) - def __init__(self, tbl=None, environment_context=None,): - self.tbl = tbl + def __init__(self, db_name=None, table_name=None, environment_context=None,): + self.db_name = db_name + self.table_name = table_name self.environment_context = environment_context def read(self, iprot): @@ -19847,12 +20060,16 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.tbl = Table() - self.tbl.read(iprot) + if ftype == TType.STRING: + self.db_name = iprot.readString() else: iprot.skip(ftype) elif fid == 2: + if ftype == TType.STRING: + self.table_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: if ftype == TType.STRUCT: self.environment_context = EnvironmentContext() self.environment_context.read(iprot) @@ -19867,13 +20084,17 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('create_table_with_environment_context_args') - if self.tbl is not None: - oprot.writeFieldBegin('tbl', TType.STRUCT, 1) - self.tbl.write(oprot) + oprot.writeStructBegin('get_schema_with_environment_context_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) + oprot.writeFieldEnd() + if self.table_name is not None: + oprot.writeFieldBegin('table_name', TType.STRING, 2) + oprot.writeString(self.table_name) oprot.writeFieldEnd() if self.environment_context is not None: - oprot.writeFieldBegin('environment_context', TType.STRUCT, 2) + oprot.writeFieldBegin('environment_context', TType.STRUCT, 3) self.environment_context.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19885,7 +20106,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.tbl) + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.table_name) value = (value * 31) ^ hash(self.environment_context) return value @@ -19900,28 +20122,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_table_with_environment_context_result: +class get_schema_with_environment_context_result: """ Attributes: + - success - o1 - o2 - o3 - - o4 """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4 + (0, TType.LIST, 'success', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3 ) - def __init__(self, o1=None, o2=None, o3=None, o4=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None,): + self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 - self.o4 = o4 def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -19932,30 +20153,35 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype1171, _size1168) = iprot.readListBegin() + for _i1172 in xrange(_size1168): + _elem1173 = FieldSchema() + _elem1173.read(iprot) + self.success.append(_elem1173) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: if ftype == TType.STRUCT: - self.o1 = AlreadyExistsException() + self.o1 = MetaException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidObjectException() + self.o2 = UnknownTableException() self.o2.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: - self.o3 = MetaException() + self.o3 = UnknownDBException() self.o3.read(iprot) else: iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = NoSuchObjectException() - self.o4.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -19965,7 +20191,14 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('create_table_with_environment_context_result') + oprot.writeStructBegin('get_schema_with_environment_context_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1174 in self.success: + iter1174.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -19978,10 +20211,6 @@ def write(self, oprot): oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin('o4', TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -19991,10 +20220,10 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -20008,37 +20237,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_table_with_constraints_args: +class get_schema_req_args: """ Attributes: - - tbl - - primaryKeys - - foreignKeys - - uniqueConstraints - - notNullConstraints - - defaultConstraints - - checkConstraints + - req """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'tbl', (Table, Table.thrift_spec), None, ), # 1 - (2, TType.LIST, 'primaryKeys', (TType.STRUCT,(SQLPrimaryKey, SQLPrimaryKey.thrift_spec)), None, ), # 2 - (3, TType.LIST, 'foreignKeys', (TType.STRUCT,(SQLForeignKey, SQLForeignKey.thrift_spec)), None, ), # 3 - (4, TType.LIST, 'uniqueConstraints', (TType.STRUCT,(SQLUniqueConstraint, SQLUniqueConstraint.thrift_spec)), None, ), # 4 - (5, TType.LIST, 'notNullConstraints', (TType.STRUCT,(SQLNotNullConstraint, SQLNotNullConstraint.thrift_spec)), None, ), # 5 - (6, TType.LIST, 'defaultConstraints', (TType.STRUCT,(SQLDefaultConstraint, SQLDefaultConstraint.thrift_spec)), None, ), # 6 - (7, TType.LIST, 'checkConstraints', (TType.STRUCT,(SQLCheckConstraint, SQLCheckConstraint.thrift_spec)), None, ), # 7 + (1, TType.STRUCT, 'req', (GetSchemaRequest, GetSchemaRequest.thrift_spec), None, ), # 1 ) - def __init__(self, tbl=None, primaryKeys=None, foreignKeys=None, uniqueConstraints=None, notNullConstraints=None, defaultConstraints=None, checkConstraints=None,): - self.tbl = tbl - self.primaryKeys = primaryKeys - self.foreignKeys = foreignKeys - self.uniqueConstraints = uniqueConstraints - self.notNullConstraints = notNullConstraints - self.defaultConstraints = defaultConstraints - self.checkConstraints = checkConstraints + def __init__(self, req=None,): + self.req = req def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -20051,74 +20262,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.tbl = Table() - self.tbl.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.LIST: - self.primaryKeys = [] - (_etype1115, _size1112) = iprot.readListBegin() - for _i1116 in xrange(_size1112): - _elem1117 = SQLPrimaryKey() - _elem1117.read(iprot) - self.primaryKeys.append(_elem1117) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.foreignKeys = [] - (_etype1121, _size1118) = iprot.readListBegin() - for _i1122 in xrange(_size1118): - _elem1123 = SQLForeignKey() - _elem1123.read(iprot) - self.foreignKeys.append(_elem1123) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.LIST: - self.uniqueConstraints = [] - (_etype1127, _size1124) = iprot.readListBegin() - for _i1128 in xrange(_size1124): - _elem1129 = SQLUniqueConstraint() - _elem1129.read(iprot) - self.uniqueConstraints.append(_elem1129) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.LIST: - self.notNullConstraints = [] - (_etype1133, _size1130) = iprot.readListBegin() - for _i1134 in xrange(_size1130): - _elem1135 = SQLNotNullConstraint() - _elem1135.read(iprot) - self.notNullConstraints.append(_elem1135) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.LIST: - self.defaultConstraints = [] - (_etype1139, _size1136) = iprot.readListBegin() - for _i1140 in xrange(_size1136): - _elem1141 = SQLDefaultConstraint() - _elem1141.read(iprot) - self.defaultConstraints.append(_elem1141) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 7: - if ftype == TType.LIST: - self.checkConstraints = [] - (_etype1145, _size1142) = iprot.readListBegin() - for _i1146 in xrange(_size1142): - _elem1147 = SQLCheckConstraint() - _elem1147.read(iprot) - self.checkConstraints.append(_elem1147) - iprot.readListEnd() + self.req = GetSchemaRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -20130,52 +20275,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('create_table_with_constraints_args') - if self.tbl is not None: - oprot.writeFieldBegin('tbl', TType.STRUCT, 1) - self.tbl.write(oprot) - oprot.writeFieldEnd() - if self.primaryKeys is not None: - oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) - oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter1148 in self.primaryKeys: - iter1148.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.foreignKeys is not None: - oprot.writeFieldBegin('foreignKeys', TType.LIST, 3) - oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter1149 in self.foreignKeys: - iter1149.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.uniqueConstraints is not None: - oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 4) - oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) - for iter1150 in self.uniqueConstraints: - iter1150.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.notNullConstraints is not None: - oprot.writeFieldBegin('notNullConstraints', TType.LIST, 5) - oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) - for iter1151 in self.notNullConstraints: - iter1151.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.defaultConstraints is not None: - oprot.writeFieldBegin('defaultConstraints', TType.LIST, 6) - oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) - for iter1152 in self.defaultConstraints: - iter1152.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.checkConstraints is not None: - oprot.writeFieldBegin('checkConstraints', TType.LIST, 7) - oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) - for iter1153 in self.checkConstraints: - iter1153.write(oprot) - oprot.writeListEnd() + oprot.writeStructBegin('get_schema_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -20186,13 +20289,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.tbl) - value = (value * 31) ^ hash(self.primaryKeys) - value = (value * 31) ^ hash(self.foreignKeys) - value = (value * 31) ^ hash(self.uniqueConstraints) - value = (value * 31) ^ hash(self.notNullConstraints) - value = (value * 31) ^ hash(self.defaultConstraints) - value = (value * 31) ^ hash(self.checkConstraints) + value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -20206,28 +20303,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_table_with_constraints_result: +class get_schema_req_result: """ Attributes: + - success - o1 - o2 - o3 - - o4 """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4 + (0, TType.STRUCT, 'success', (GetSchemaResponse, GetSchemaResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3 ) - def __init__(self, o1=None, o2=None, o3=None, o4=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None,): + self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 - self.o4 = o4 def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -20238,30 +20334,30 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: if ftype == TType.STRUCT: - self.o1 = AlreadyExistsException() + self.success = GetSchemaResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidObjectException() + self.o2 = UnknownTableException() self.o2.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: - self.o3 = MetaException() + self.o3 = UnknownDBException() self.o3.read(iprot) else: iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = NoSuchObjectException() - self.o4.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -20271,7 +20367,11 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('create_table_with_constraints_result') + oprot.writeStructBegin('get_schema_req_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -20284,10 +20384,6 @@ def write(self, oprot): oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin('o4', TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -20297,10 +20393,10 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -20314,19 +20410,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_table_req_args: +class create_table_args: """ Attributes: - - request + - tbl """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (CreateTableRequest, CreateTableRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'tbl', (Table, Table.thrift_spec), None, ), # 1 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, tbl=None,): + self.tbl = tbl def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -20339,8 +20435,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = CreateTableRequest() - self.request.read(iprot) + self.tbl = Table() + self.tbl.read(iprot) else: iprot.skip(ftype) else: @@ -20352,10 +20448,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('create_table_req_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('create_table_args') + if self.tbl is not None: + oprot.writeFieldBegin('tbl', TType.STRUCT, 1) + self.tbl.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -20366,7 +20462,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.tbl) return value def __repr__(self): @@ -20380,7 +20476,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_table_req_result: +class create_table_result: """ Attributes: - o1 @@ -20445,7 +20541,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('create_table_req_result') + oprot.writeStructBegin('create_table_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -20488,19 +20584,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_constraint_args: +class create_table_with_environment_context_args: """ Attributes: - - req + - tbl + - environment_context """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (DropConstraintRequest, DropConstraintRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'tbl', (Table, Table.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 2 ) - def __init__(self, req=None,): - self.req = req + def __init__(self, tbl=None, environment_context=None,): + self.tbl = tbl + self.environment_context = environment_context def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -20513,8 +20612,14 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = DropConstraintRequest() - self.req.read(iprot) + self.tbl = Table() + self.tbl.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.environment_context = EnvironmentContext() + self.environment_context.read(iprot) else: iprot.skip(ftype) else: @@ -20526,10 +20631,14 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('drop_constraint_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('create_table_with_environment_context_args') + if self.tbl is not None: + oprot.writeFieldBegin('tbl', TType.STRUCT, 1) + self.tbl.write(oprot) + oprot.writeFieldEnd() + if self.environment_context is not None: + oprot.writeFieldBegin('environment_context', TType.STRUCT, 2) + self.environment_context.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -20540,7 +20649,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) + value = (value * 31) ^ hash(self.tbl) + value = (value * 31) ^ hash(self.environment_context) return value def __repr__(self): @@ -20554,22 +20664,28 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_constraint_result: +class create_table_with_environment_context_result: """ Attributes: - o1 + - o2 - o3 + - o4 """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 2 + (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4 ) - def __init__(self, o1=None, o3=None,): + def __init__(self, o1=None, o2=None, o3=None, o4=None,): self.o1 = o1 + self.o2 = o2 self.o3 = o3 + self.o4 = o4 def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -20582,16 +20698,28 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = AlreadyExistsException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = InvalidObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: if ftype == TType.STRUCT: self.o3 = MetaException() self.o3.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = NoSuchObjectException() + self.o4.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -20601,15 +20729,23 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('drop_constraint_result') + oprot.writeStructBegin('create_table_with_environment_context_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 2) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -20620,7 +20756,9 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -20634,19 +20772,37 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_primary_key_args: +class create_table_with_constraints_args: """ Attributes: - - req + - tbl + - primaryKeys + - foreignKeys + - uniqueConstraints + - notNullConstraints + - defaultConstraints + - checkConstraints """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (AddPrimaryKeyRequest, AddPrimaryKeyRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'tbl', (Table, Table.thrift_spec), None, ), # 1 + (2, TType.LIST, 'primaryKeys', (TType.STRUCT,(SQLPrimaryKey, SQLPrimaryKey.thrift_spec)), None, ), # 2 + (3, TType.LIST, 'foreignKeys', (TType.STRUCT,(SQLForeignKey, SQLForeignKey.thrift_spec)), None, ), # 3 + (4, TType.LIST, 'uniqueConstraints', (TType.STRUCT,(SQLUniqueConstraint, SQLUniqueConstraint.thrift_spec)), None, ), # 4 + (5, TType.LIST, 'notNullConstraints', (TType.STRUCT,(SQLNotNullConstraint, SQLNotNullConstraint.thrift_spec)), None, ), # 5 + (6, TType.LIST, 'defaultConstraints', (TType.STRUCT,(SQLDefaultConstraint, SQLDefaultConstraint.thrift_spec)), None, ), # 6 + (7, TType.LIST, 'checkConstraints', (TType.STRUCT,(SQLCheckConstraint, SQLCheckConstraint.thrift_spec)), None, ), # 7 ) - def __init__(self, req=None,): - self.req = req + def __init__(self, tbl=None, primaryKeys=None, foreignKeys=None, uniqueConstraints=None, notNullConstraints=None, defaultConstraints=None, checkConstraints=None,): + self.tbl = tbl + self.primaryKeys = primaryKeys + self.foreignKeys = foreignKeys + self.uniqueConstraints = uniqueConstraints + self.notNullConstraints = notNullConstraints + self.defaultConstraints = defaultConstraints + self.checkConstraints = checkConstraints def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -20659,8 +20815,74 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = AddPrimaryKeyRequest() - self.req.read(iprot) + self.tbl = Table() + self.tbl.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.primaryKeys = [] + (_etype1178, _size1175) = iprot.readListBegin() + for _i1179 in xrange(_size1175): + _elem1180 = SQLPrimaryKey() + _elem1180.read(iprot) + self.primaryKeys.append(_elem1180) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.foreignKeys = [] + (_etype1184, _size1181) = iprot.readListBegin() + for _i1185 in xrange(_size1181): + _elem1186 = SQLForeignKey() + _elem1186.read(iprot) + self.foreignKeys.append(_elem1186) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.uniqueConstraints = [] + (_etype1190, _size1187) = iprot.readListBegin() + for _i1191 in xrange(_size1187): + _elem1192 = SQLUniqueConstraint() + _elem1192.read(iprot) + self.uniqueConstraints.append(_elem1192) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.notNullConstraints = [] + (_etype1196, _size1193) = iprot.readListBegin() + for _i1197 in xrange(_size1193): + _elem1198 = SQLNotNullConstraint() + _elem1198.read(iprot) + self.notNullConstraints.append(_elem1198) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.defaultConstraints = [] + (_etype1202, _size1199) = iprot.readListBegin() + for _i1203 in xrange(_size1199): + _elem1204 = SQLDefaultConstraint() + _elem1204.read(iprot) + self.defaultConstraints.append(_elem1204) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.LIST: + self.checkConstraints = [] + (_etype1208, _size1205) = iprot.readListBegin() + for _i1209 in xrange(_size1205): + _elem1210 = SQLCheckConstraint() + _elem1210.read(iprot) + self.checkConstraints.append(_elem1210) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -20672,10 +20894,52 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('add_primary_key_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('create_table_with_constraints_args') + if self.tbl is not None: + oprot.writeFieldBegin('tbl', TType.STRUCT, 1) + self.tbl.write(oprot) + oprot.writeFieldEnd() + if self.primaryKeys is not None: + oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) + for iter1211 in self.primaryKeys: + iter1211.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.foreignKeys is not None: + oprot.writeFieldBegin('foreignKeys', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) + for iter1212 in self.foreignKeys: + iter1212.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.uniqueConstraints is not None: + oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 4) + oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) + for iter1213 in self.uniqueConstraints: + iter1213.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.notNullConstraints is not None: + oprot.writeFieldBegin('notNullConstraints', TType.LIST, 5) + oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) + for iter1214 in self.notNullConstraints: + iter1214.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.defaultConstraints is not None: + oprot.writeFieldBegin('defaultConstraints', TType.LIST, 6) + oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) + for iter1215 in self.defaultConstraints: + iter1215.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.checkConstraints is not None: + oprot.writeFieldBegin('checkConstraints', TType.LIST, 7) + oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) + for iter1216 in self.checkConstraints: + iter1216.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -20686,7 +20950,13 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) + value = (value * 31) ^ hash(self.tbl) + value = (value * 31) ^ hash(self.primaryKeys) + value = (value * 31) ^ hash(self.foreignKeys) + value = (value * 31) ^ hash(self.uniqueConstraints) + value = (value * 31) ^ hash(self.notNullConstraints) + value = (value * 31) ^ hash(self.defaultConstraints) + value = (value * 31) ^ hash(self.checkConstraints) return value def __repr__(self): @@ -20700,22 +20970,28 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_primary_key_result: +class create_table_with_constraints_result: """ Attributes: - o1 - o2 + - o3 + - o4 """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4 ) - def __init__(self, o1=None, o2=None,): + def __init__(self, o1=None, o2=None, o3=None, o4=None,): self.o1 = o1 self.o2 = o2 + self.o3 = o3 + self.o4 = o4 def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -20728,16 +21004,28 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = AlreadyExistsException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException() + self.o2 = InvalidObjectException() self.o2.read(iprot) else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException() + self.o3.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = NoSuchObjectException() + self.o4.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -20747,7 +21035,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('add_primary_key_result') + oprot.writeStructBegin('create_table_with_constraints_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -20756,6 +21044,14 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -20767,6 +21063,8 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -20780,19 +21078,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_foreign_key_args: +class create_table_req_args: """ Attributes: - - req + - request """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (AddForeignKeyRequest, AddForeignKeyRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (CreateTableRequest, CreateTableRequest.thrift_spec), None, ), # 1 ) - def __init__(self, req=None,): - self.req = req + def __init__(self, request=None,): + self.request = request def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -20805,8 +21103,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = AddForeignKeyRequest() - self.req.read(iprot) + self.request = CreateTableRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -20818,10 +21116,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('add_foreign_key_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('create_table_req_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -20832,7 +21130,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -20846,22 +21144,28 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_foreign_key_result: +class create_table_req_result: """ Attributes: - o1 - o2 + - o3 + - o4 """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4 ) - def __init__(self, o1=None, o2=None,): + def __init__(self, o1=None, o2=None, o3=None, o4=None,): self.o1 = o1 self.o2 = o2 + self.o3 = o3 + self.o4 = o4 def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -20874,16 +21178,28 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = AlreadyExistsException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException() + self.o2 = InvalidObjectException() self.o2.read(iprot) else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException() + self.o3.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = NoSuchObjectException() + self.o4.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -20893,7 +21209,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('add_foreign_key_result') + oprot.writeStructBegin('create_table_req_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -20902,6 +21218,14 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -20913,6 +21237,8 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -20926,7 +21252,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_unique_constraint_args: +class drop_constraint_args: """ Attributes: - req @@ -20934,7 +21260,7 @@ class add_unique_constraint_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (AddUniqueConstraintRequest, AddUniqueConstraintRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'req', (DropConstraintRequest, DropConstraintRequest.thrift_spec), None, ), # 1 ) def __init__(self, req=None,): @@ -20951,7 +21277,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = AddUniqueConstraintRequest() + self.req = DropConstraintRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -20964,7 +21290,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('add_unique_constraint_args') + oprot.writeStructBegin('drop_constraint_args') if self.req is not None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -20992,22 +21318,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_unique_constraint_result: +class drop_constraint_result: """ Attributes: - o1 - - o2 + - o3 """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (2, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, o1=None, o2=None,): + def __init__(self, o1=None, o3=None,): self.o1 = o1 - self.o2 = o2 + self.o3 = o3 def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -21026,8 +21352,8 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException() - self.o2.read(iprot) + self.o3 = MetaException() + self.o3.read(iprot) else: iprot.skip(ftype) else: @@ -21039,14 +21365,14 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('add_unique_constraint_result') + oprot.writeStructBegin('drop_constraint_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 is not None: - oprot.writeFieldBegin('o2', TType.STRUCT, 2) - self.o2.write(oprot) + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 2) + self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -21058,7 +21384,7 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -21072,7 +21398,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_not_null_constraint_args: +class add_primary_key_args: """ Attributes: - req @@ -21080,7 +21406,7 @@ class add_not_null_constraint_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (AddNotNullConstraintRequest, AddNotNullConstraintRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'req', (AddPrimaryKeyRequest, AddPrimaryKeyRequest.thrift_spec), None, ), # 1 ) def __init__(self, req=None,): @@ -21097,7 +21423,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = AddNotNullConstraintRequest() + self.req = AddPrimaryKeyRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -21110,7 +21436,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('add_not_null_constraint_args') + oprot.writeStructBegin('add_primary_key_args') if self.req is not None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -21138,7 +21464,445 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_not_null_constraint_result: +class add_primary_key_result: + """ + Attributes: + - o1 + - o2 + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + ) + + def __init__(self, o1=None, o2=None,): + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = MetaException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('add_primary_key_result') + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class add_foreign_key_args: + """ + Attributes: + - req + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (AddForeignKeyRequest, AddForeignKeyRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, req=None,): + self.req = req + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.req = AddForeignKeyRequest() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('add_foreign_key_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.req) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class add_foreign_key_result: + """ + Attributes: + - o1 + - o2 + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + ) + + def __init__(self, o1=None, o2=None,): + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = MetaException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('add_foreign_key_result') + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class add_unique_constraint_args: + """ + Attributes: + - req + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (AddUniqueConstraintRequest, AddUniqueConstraintRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, req=None,): + self.req = req + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.req = AddUniqueConstraintRequest() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('add_unique_constraint_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.req) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class add_unique_constraint_result: + """ + Attributes: + - o1 + - o2 + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + ) + + def __init__(self, o1=None, o2=None,): + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = MetaException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('add_unique_constraint_result') + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class add_not_null_constraint_args: + """ + Attributes: + - req + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (AddNotNullConstraintRequest, AddNotNullConstraintRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, req=None,): + self.req = req + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.req = AddNotNullConstraintRequest() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('add_not_null_constraint_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.req) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class add_not_null_constraint_result: """ Attributes: - o1 @@ -21908,10 +22672,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype1157, _size1154) = iprot.readListBegin() - for _i1158 in xrange(_size1154): - _elem1159 = iprot.readString() - self.partNames.append(_elem1159) + (_etype1220, _size1217) = iprot.readListBegin() + for _i1221 in xrange(_size1217): + _elem1222 = iprot.readString() + self.partNames.append(_elem1222) iprot.readListEnd() else: iprot.skip(ftype) @@ -21936,8 +22700,8 @@ def write(self, oprot): if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter1160 in self.partNames: - oprot.writeString(iter1160) + for iter1223 in self.partNames: + oprot.writeString(iter1223) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22282,10 +23046,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1164, _size1161) = iprot.readListBegin() - for _i1165 in xrange(_size1161): - _elem1166 = iprot.readString() - self.success.append(_elem1166) + (_etype1227, _size1224) = iprot.readListBegin() + for _i1228 in xrange(_size1224): + _elem1229 = iprot.readString() + self.success.append(_elem1229) iprot.readListEnd() else: iprot.skip(ftype) @@ -22308,8 +23072,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1167 in self.success: - oprot.writeString(iter1167) + for iter1230 in self.success: + oprot.writeString(iter1230) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22459,10 +23223,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1171, _size1168) = iprot.readListBegin() - for _i1172 in xrange(_size1168): - _elem1173 = iprot.readString() - self.success.append(_elem1173) + (_etype1234, _size1231) = iprot.readListBegin() + for _i1235 in xrange(_size1231): + _elem1236 = iprot.readString() + self.success.append(_elem1236) iprot.readListEnd() else: iprot.skip(ftype) @@ -22485,8 +23249,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1174 in self.success: - oprot.writeString(iter1174) + for iter1237 in self.success: + oprot.writeString(iter1237) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22591,11 +23355,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1178, _size1175) = iprot.readListBegin() - for _i1179 in xrange(_size1175): - _elem1180 = Table() - _elem1180.read(iprot) - self.success.append(_elem1180) + (_etype1241, _size1238) = iprot.readListBegin() + for _i1242 in xrange(_size1238): + _elem1243 = Table() + _elem1243.read(iprot) + self.success.append(_elem1243) iprot.readListEnd() else: iprot.skip(ftype) @@ -22618,8 +23382,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1181 in self.success: - iter1181.write(oprot) + for iter1244 in self.success: + iter1244.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22743,10 +23507,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1185, _size1182) = iprot.readListBegin() - for _i1186 in xrange(_size1182): - _elem1187 = iprot.readString() - self.success.append(_elem1187) + (_etype1248, _size1245) = iprot.readListBegin() + for _i1249 in xrange(_size1245): + _elem1250 = iprot.readString() + self.success.append(_elem1250) iprot.readListEnd() else: iprot.skip(ftype) @@ -22769,8 +23533,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1188 in self.success: - oprot.writeString(iter1188) + for iter1251 in self.success: + oprot.writeString(iter1251) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22843,10 +23607,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype1192, _size1189) = iprot.readListBegin() - for _i1193 in xrange(_size1189): - _elem1194 = iprot.readString() - self.tbl_types.append(_elem1194) + (_etype1255, _size1252) = iprot.readListBegin() + for _i1256 in xrange(_size1252): + _elem1257 = iprot.readString() + self.tbl_types.append(_elem1257) iprot.readListEnd() else: iprot.skip(ftype) @@ -22871,8 +23635,8 @@ def write(self, oprot): if self.tbl_types is not None: oprot.writeFieldBegin('tbl_types', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.tbl_types)) - for iter1195 in self.tbl_types: - oprot.writeString(iter1195) + for iter1258 in self.tbl_types: + oprot.writeString(iter1258) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22928,11 +23692,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1199, _size1196) = iprot.readListBegin() - for _i1200 in xrange(_size1196): - _elem1201 = TableMeta() - _elem1201.read(iprot) - self.success.append(_elem1201) + (_etype1262, _size1259) = iprot.readListBegin() + for _i1263 in xrange(_size1259): + _elem1264 = TableMeta() + _elem1264.read(iprot) + self.success.append(_elem1264) iprot.readListEnd() else: iprot.skip(ftype) @@ -22955,8 +23719,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1202 in self.success: - iter1202.write(oprot) + for iter1265 in self.success: + iter1265.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23080,10 +23844,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1206, _size1203) = iprot.readListBegin() - for _i1207 in xrange(_size1203): - _elem1208 = iprot.readString() - self.success.append(_elem1208) + (_etype1269, _size1266) = iprot.readListBegin() + for _i1270 in xrange(_size1266): + _elem1271 = iprot.readString() + self.success.append(_elem1271) iprot.readListEnd() else: iprot.skip(ftype) @@ -23106,8 +23870,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1209 in self.success: - oprot.writeString(iter1209) + for iter1272 in self.success: + oprot.writeString(iter1272) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23343,10 +24107,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype1213, _size1210) = iprot.readListBegin() - for _i1214 in xrange(_size1210): - _elem1215 = iprot.readString() - self.tbl_names.append(_elem1215) + (_etype1276, _size1273) = iprot.readListBegin() + for _i1277 in xrange(_size1273): + _elem1278 = iprot.readString() + self.tbl_names.append(_elem1278) iprot.readListEnd() else: iprot.skip(ftype) @@ -23367,8 +24131,8 @@ def write(self, oprot): if self.tbl_names is not None: oprot.writeFieldBegin('tbl_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tbl_names)) - for iter1216 in self.tbl_names: - oprot.writeString(iter1216) + for iter1279 in self.tbl_names: + oprot.writeString(iter1279) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23420,11 +24184,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1220, _size1217) = iprot.readListBegin() - for _i1221 in xrange(_size1217): - _elem1222 = Table() - _elem1222.read(iprot) - self.success.append(_elem1222) + (_etype1283, _size1280) = iprot.readListBegin() + for _i1284 in xrange(_size1280): + _elem1285 = Table() + _elem1285.read(iprot) + self.success.append(_elem1285) iprot.readListEnd() else: iprot.skip(ftype) @@ -23441,8 +24205,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1223 in self.success: - iter1223.write(oprot) + for iter1286 in self.success: + iter1286.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23562,11 +24326,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1227, _size1224) = iprot.readListBegin() - for _i1228 in xrange(_size1224): - _elem1229 = ExtendedTableInfo() - _elem1229.read(iprot) - self.success.append(_elem1229) + (_etype1290, _size1287) = iprot.readListBegin() + for _i1291 in xrange(_size1287): + _elem1292 = ExtendedTableInfo() + _elem1292.read(iprot) + self.success.append(_elem1292) iprot.readListEnd() else: iprot.skip(ftype) @@ -23589,8 +24353,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1230 in self.success: - iter1230.write(oprot) + for iter1293 in self.success: + iter1293.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24463,10 +25227,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1234, _size1231) = iprot.readListBegin() - for _i1235 in xrange(_size1231): - _elem1236 = iprot.readString() - self.success.append(_elem1236) + (_etype1297, _size1294) = iprot.readListBegin() + for _i1298 in xrange(_size1294): + _elem1299 = iprot.readString() + self.success.append(_elem1299) iprot.readListEnd() else: iprot.skip(ftype) @@ -24501,8 +25265,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1237 in self.success: - oprot.writeString(iter1237) + for iter1300 in self.success: + oprot.writeString(iter1300) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25631,11 +26395,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1241, _size1238) = iprot.readListBegin() - for _i1242 in xrange(_size1238): - _elem1243 = Partition() - _elem1243.read(iprot) - self.new_parts.append(_elem1243) + (_etype1304, _size1301) = iprot.readListBegin() + for _i1305 in xrange(_size1301): + _elem1306 = Partition() + _elem1306.read(iprot) + self.new_parts.append(_elem1306) iprot.readListEnd() else: iprot.skip(ftype) @@ -25652,8 +26416,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter1244 in self.new_parts: - iter1244.write(oprot) + for iter1307 in self.new_parts: + iter1307.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25811,11 +26575,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1248, _size1245) = iprot.readListBegin() - for _i1249 in xrange(_size1245): - _elem1250 = PartitionSpec() - _elem1250.read(iprot) - self.new_parts.append(_elem1250) + (_etype1311, _size1308) = iprot.readListBegin() + for _i1312 in xrange(_size1308): + _elem1313 = PartitionSpec() + _elem1313.read(iprot) + self.new_parts.append(_elem1313) iprot.readListEnd() else: iprot.skip(ftype) @@ -25832,8 +26596,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter1251 in self.new_parts: - iter1251.write(oprot) + for iter1314 in self.new_parts: + iter1314.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26007,10 +26771,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1255, _size1252) = iprot.readListBegin() - for _i1256 in xrange(_size1252): - _elem1257 = iprot.readString() - self.part_vals.append(_elem1257) + (_etype1318, _size1315) = iprot.readListBegin() + for _i1319 in xrange(_size1315): + _elem1320 = iprot.readString() + self.part_vals.append(_elem1320) iprot.readListEnd() else: iprot.skip(ftype) @@ -26035,8 +26799,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1258 in self.part_vals: - oprot.writeString(iter1258) + for iter1321 in self.part_vals: + oprot.writeString(iter1321) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26389,10 +27153,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1262, _size1259) = iprot.readListBegin() - for _i1263 in xrange(_size1259): - _elem1264 = iprot.readString() - self.part_vals.append(_elem1264) + (_etype1325, _size1322) = iprot.readListBegin() + for _i1326 in xrange(_size1322): + _elem1327 = iprot.readString() + self.part_vals.append(_elem1327) iprot.readListEnd() else: iprot.skip(ftype) @@ -26423,8 +27187,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1265 in self.part_vals: - oprot.writeString(iter1265) + for iter1328 in self.part_vals: + oprot.writeString(iter1328) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -27019,10 +27783,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1269, _size1266) = iprot.readListBegin() - for _i1270 in xrange(_size1266): - _elem1271 = iprot.readString() - self.part_vals.append(_elem1271) + (_etype1332, _size1329) = iprot.readListBegin() + for _i1333 in xrange(_size1329): + _elem1334 = iprot.readString() + self.part_vals.append(_elem1334) iprot.readListEnd() else: iprot.skip(ftype) @@ -27052,8 +27816,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1272 in self.part_vals: - oprot.writeString(iter1272) + for iter1335 in self.part_vals: + oprot.writeString(iter1335) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -27226,10 +27990,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1276, _size1273) = iprot.readListBegin() - for _i1277 in xrange(_size1273): - _elem1278 = iprot.readString() - self.part_vals.append(_elem1278) + (_etype1339, _size1336) = iprot.readListBegin() + for _i1340 in xrange(_size1336): + _elem1341 = iprot.readString() + self.part_vals.append(_elem1341) iprot.readListEnd() else: iprot.skip(ftype) @@ -27265,8 +28029,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1279 in self.part_vals: - oprot.writeString(iter1279) + for iter1342 in self.part_vals: + oprot.writeString(iter1342) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -28003,10 +28767,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1283, _size1280) = iprot.readListBegin() - for _i1284 in xrange(_size1280): - _elem1285 = iprot.readString() - self.part_vals.append(_elem1285) + (_etype1346, _size1343) = iprot.readListBegin() + for _i1347 in xrange(_size1343): + _elem1348 = iprot.readString() + self.part_vals.append(_elem1348) iprot.readListEnd() else: iprot.skip(ftype) @@ -28031,8 +28795,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1286 in self.part_vals: - oprot.writeString(iter1286) + for iter1349 in self.part_vals: + oprot.writeString(iter1349) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28153,6 +28917,165 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_partition_req_args: + """ + Attributes: + - req + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (GetPartitionRequest, GetPartitionRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, req=None,): + self.req = req + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.req = GetPartitionRequest() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_partition_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.req) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_partition_req_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (GetPartitionResponse, GetPartitionResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + ) + + def __init__(self, success=None, o1=None, o2=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = GetPartitionResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_partition_req_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + class exchange_partition_args: """ Attributes: @@ -28191,11 +29114,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1288, _vtype1289, _size1287 ) = iprot.readMapBegin() - for _i1291 in xrange(_size1287): - _key1292 = iprot.readString() - _val1293 = iprot.readString() - self.partitionSpecs[_key1292] = _val1293 + (_ktype1351, _vtype1352, _size1350 ) = iprot.readMapBegin() + for _i1354 in xrange(_size1350): + _key1355 = iprot.readString() + _val1356 = iprot.readString() + self.partitionSpecs[_key1355] = _val1356 iprot.readMapEnd() else: iprot.skip(ftype) @@ -28232,9 +29155,9 @@ def write(self, oprot): if self.partitionSpecs is not None: oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter1294,viter1295 in self.partitionSpecs.items(): - oprot.writeString(kiter1294) - oprot.writeString(viter1295) + for kiter1357,viter1358 in self.partitionSpecs.items(): + oprot.writeString(kiter1357) + oprot.writeString(viter1358) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -28332,18 +29255,694 @@ def read(self, iprot): self.o2.read(iprot) else: iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = InvalidObjectException() - self.o3.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = InvalidInputException() - self.o4.read(iprot) - else: - iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = InvalidObjectException() + self.o3.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = InvalidInputException() + self.o4.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('exchange_partition_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class exchange_partitions_args: + """ + Attributes: + - partitionSpecs + - source_db + - source_table_name + - dest_db + - dest_table_name + """ + + thrift_spec = ( + None, # 0 + (1, TType.MAP, 'partitionSpecs', (TType.STRING,None,TType.STRING,None), None, ), # 1 + (2, TType.STRING, 'source_db', None, None, ), # 2 + (3, TType.STRING, 'source_table_name', None, None, ), # 3 + (4, TType.STRING, 'dest_db', None, None, ), # 4 + (5, TType.STRING, 'dest_table_name', None, None, ), # 5 + ) + + def __init__(self, partitionSpecs=None, source_db=None, source_table_name=None, dest_db=None, dest_table_name=None,): + self.partitionSpecs = partitionSpecs + self.source_db = source_db + self.source_table_name = source_table_name + self.dest_db = dest_db + self.dest_table_name = dest_table_name + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.MAP: + self.partitionSpecs = {} + (_ktype1360, _vtype1361, _size1359 ) = iprot.readMapBegin() + for _i1363 in xrange(_size1359): + _key1364 = iprot.readString() + _val1365 = iprot.readString() + self.partitionSpecs[_key1364] = _val1365 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.source_db = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.source_table_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.dest_db = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.dest_table_name = iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('exchange_partitions_args') + if self.partitionSpecs is not None: + oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) + for kiter1366,viter1367 in self.partitionSpecs.items(): + oprot.writeString(kiter1366) + oprot.writeString(viter1367) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.source_db is not None: + oprot.writeFieldBegin('source_db', TType.STRING, 2) + oprot.writeString(self.source_db) + oprot.writeFieldEnd() + if self.source_table_name is not None: + oprot.writeFieldBegin('source_table_name', TType.STRING, 3) + oprot.writeString(self.source_table_name) + oprot.writeFieldEnd() + if self.dest_db is not None: + oprot.writeFieldBegin('dest_db', TType.STRING, 4) + oprot.writeString(self.dest_db) + oprot.writeFieldEnd() + if self.dest_table_name is not None: + oprot.writeFieldBegin('dest_table_name', TType.STRING, 5) + oprot.writeString(self.dest_table_name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.partitionSpecs) + value = (value * 31) ^ hash(self.source_db) + value = (value * 31) ^ hash(self.source_table_name) + value = (value * 31) ^ hash(self.dest_db) + value = (value * 31) ^ hash(self.dest_table_name) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class exchange_partitions_result: + """ + Attributes: + - success + - o1 + - o2 + - o3 + - o4 + """ + + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4 + ) + + def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + self.o4 = o4 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype1371, _size1368) = iprot.readListBegin() + for _i1372 in xrange(_size1368): + _elem1373 = Partition() + _elem1373.read(iprot) + self.success.append(_elem1373) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = InvalidObjectException() + self.o3.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = InvalidInputException() + self.o4.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('exchange_partitions_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1374 in self.success: + iter1374.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_partition_with_auth_args: + """ + Attributes: + - db_name + - tbl_name + - part_vals + - user_name + - group_names + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3 + (4, TType.STRING, 'user_name', None, None, ), # 4 + (5, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 5 + ) + + def __init__(self, db_name=None, tbl_name=None, part_vals=None, user_name=None, group_names=None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.part_vals = part_vals + self.user_name = user_name + self.group_names = group_names + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.db_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.part_vals = [] + (_etype1378, _size1375) = iprot.readListBegin() + for _i1379 in xrange(_size1375): + _elem1380 = iprot.readString() + self.part_vals.append(_elem1380) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.user_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.group_names = [] + (_etype1384, _size1381) = iprot.readListBegin() + for _i1385 in xrange(_size1381): + _elem1386 = iprot.readString() + self.group_names.append(_elem1386) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_partition_with_auth_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name) + oprot.writeFieldEnd() + if self.part_vals is not None: + oprot.writeFieldBegin('part_vals', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.part_vals)) + for iter1387 in self.part_vals: + oprot.writeString(iter1387) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.user_name is not None: + oprot.writeFieldBegin('user_name', TType.STRING, 4) + oprot.writeString(self.user_name) + oprot.writeFieldEnd() + if self.group_names is not None: + oprot.writeFieldBegin('group_names', TType.LIST, 5) + oprot.writeListBegin(TType.STRING, len(self.group_names)) + for iter1388 in self.group_names: + oprot.writeString(iter1388) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_name) + value = (value * 31) ^ hash(self.part_vals) + value = (value * 31) ^ hash(self.user_name) + value = (value * 31) ^ hash(self.group_names) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_partition_with_auth_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + ) + + def __init__(self, success=None, o1=None, o2=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = Partition() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_partition_with_auth_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_partition_by_name_args: + """ + Attributes: + - db_name + - tbl_name + - part_name + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + (3, TType.STRING, 'part_name', None, None, ), # 3 + ) + + def __init__(self, db_name=None, tbl_name=None, part_name=None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.part_name = part_name + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.db_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.part_name = iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_partition_by_name_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name) + oprot.writeFieldEnd() + if self.part_name is not None: + oprot.writeFieldBegin('part_name', TType.STRING, 3) + oprot.writeString(self.part_name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_name) + value = (value * 31) ^ hash(self.part_name) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_partition_by_name_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + ) + + def __init__(self, success=None, o1=None, o2=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = Partition() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -28353,7 +29952,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('exchange_partition_result') + oprot.writeStructBegin('get_partition_by_name_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -28366,14 +29965,6 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin('o4', TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -28386,8 +29977,6 @@ def __hash__(self): value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -28401,31 +29990,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class exchange_partitions_args: +class get_partitions_args: """ Attributes: - - partitionSpecs - - source_db - - source_table_name - - dest_db - - dest_table_name + - db_name + - tbl_name + - max_parts """ thrift_spec = ( None, # 0 - (1, TType.MAP, 'partitionSpecs', (TType.STRING,None,TType.STRING,None), None, ), # 1 - (2, TType.STRING, 'source_db', None, None, ), # 2 - (3, TType.STRING, 'source_table_name', None, None, ), # 3 - (4, TType.STRING, 'dest_db', None, None, ), # 4 - (5, TType.STRING, 'dest_table_name', None, None, ), # 5 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + (3, TType.I16, 'max_parts', None, -1, ), # 3 ) - def __init__(self, partitionSpecs=None, source_db=None, source_table_name=None, dest_db=None, dest_table_name=None,): - self.partitionSpecs = partitionSpecs - self.source_db = source_db - self.source_table_name = source_table_name - self.dest_db = dest_db - self.dest_table_name = dest_table_name + def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4],): + self.db_name = db_name + self.tbl_name = tbl_name + self.max_parts = max_parts def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -28437,34 +30020,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.MAP: - self.partitionSpecs = {} - (_ktype1297, _vtype1298, _size1296 ) = iprot.readMapBegin() - for _i1300 in xrange(_size1296): - _key1301 = iprot.readString() - _val1302 = iprot.readString() - self.partitionSpecs[_key1301] = _val1302 - iprot.readMapEnd() + if ftype == TType.STRING: + self.db_name = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.source_db = iprot.readString() + self.tbl_name = iprot.readString() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRING: - self.source_table_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.dest_db = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRING: - self.dest_table_name = iprot.readString() + if ftype == TType.I16: + self.max_parts = iprot.readI16() else: iprot.skip(ftype) else: @@ -28476,30 +30043,18 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('exchange_partitions_args') - if self.partitionSpecs is not None: - oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) - oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter1303,viter1304 in self.partitionSpecs.items(): - oprot.writeString(kiter1303) - oprot.writeString(viter1304) - oprot.writeMapEnd() - oprot.writeFieldEnd() - if self.source_db is not None: - oprot.writeFieldBegin('source_db', TType.STRING, 2) - oprot.writeString(self.source_db) - oprot.writeFieldEnd() - if self.source_table_name is not None: - oprot.writeFieldBegin('source_table_name', TType.STRING, 3) - oprot.writeString(self.source_table_name) + oprot.writeStructBegin('get_partitions_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.dest_db is not None: - oprot.writeFieldBegin('dest_db', TType.STRING, 4) - oprot.writeString(self.dest_db) + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.dest_table_name is not None: - oprot.writeFieldBegin('dest_table_name', TType.STRING, 5) - oprot.writeString(self.dest_table_name) + if self.max_parts is not None: + oprot.writeFieldBegin('max_parts', TType.I16, 3) + oprot.writeI16(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -28510,11 +30065,9 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.partitionSpecs) - value = (value * 31) ^ hash(self.source_db) - value = (value * 31) ^ hash(self.source_table_name) - value = (value * 31) ^ hash(self.dest_db) - value = (value * 31) ^ hash(self.dest_table_name) + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_name) + value = (value * 31) ^ hash(self.max_parts) return value def __repr__(self): @@ -28528,30 +30081,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class exchange_partitions_result: +class get_partitions_result: """ Attributes: - success - o1 - o2 - - o3 - - o4 """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): + def __init__(self, success=None, o1=None, o2=None,): self.success = success self.o1 = o1 self.o2 = o2 - self.o3 = o3 - self.o4 = o4 def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -28565,38 +30112,26 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1308, _size1305) = iprot.readListBegin() - for _i1309 in xrange(_size1305): - _elem1310 = Partition() - _elem1310.read(iprot) - self.success.append(_elem1310) + (_etype1392, _size1389) = iprot.readListBegin() + for _i1393 in xrange(_size1389): + _elem1394 = Partition() + _elem1394.read(iprot) + self.success.append(_elem1394) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException() + self.o1 = NoSuchObjectException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException() + self.o2 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = InvalidObjectException() - self.o3.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = InvalidInputException() - self.o4.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -28606,12 +30141,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('exchange_partitions_result') + oprot.writeStructBegin('get_partitions_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1311 in self.success: - iter1311.write(oprot) + for iter1395 in self.success: + iter1395.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28622,14 +30157,6 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin('o4', TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -28642,8 +30169,6 @@ def __hash__(self): value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -28657,31 +30182,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partition_with_auth_args: +class get_partitions_req_args: """ Attributes: - - db_name - - tbl_name - - part_vals - - user_name - - group_names + - req """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'db_name', None, None, ), # 1 - (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3 - (4, TType.STRING, 'user_name', None, None, ), # 4 - (5, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 5 + (1, TType.STRUCT, 'req', (PartitionsRequest, PartitionsRequest.thrift_spec), None, ), # 1 ) - def __init__(self, db_name=None, tbl_name=None, part_vals=None, user_name=None, group_names=None,): - self.db_name = db_name - self.tbl_name = tbl_name - self.part_vals = part_vals - self.user_name = user_name - self.group_names = group_names + def __init__(self, req=None,): + self.req = req def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -28693,38 +30206,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.part_vals = [] - (_etype1315, _size1312) = iprot.readListBegin() - for _i1316 in xrange(_size1312): - _elem1317 = iprot.readString() - self.part_vals.append(_elem1317) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.user_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.LIST: - self.group_names = [] - (_etype1321, _size1318) = iprot.readListBegin() - for _i1322 in xrange(_size1318): - _elem1323 = iprot.readString() - self.group_names.append(_elem1323) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.req = PartitionsRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -28736,32 +30220,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partition_with_auth_args') - if self.db_name is not None: - oprot.writeFieldBegin('db_name', TType.STRING, 1) - oprot.writeString(self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin('tbl_name', TType.STRING, 2) - oprot.writeString(self.tbl_name) - oprot.writeFieldEnd() - if self.part_vals is not None: - oprot.writeFieldBegin('part_vals', TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1324 in self.part_vals: - oprot.writeString(iter1324) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.user_name is not None: - oprot.writeFieldBegin('user_name', TType.STRING, 4) - oprot.writeString(self.user_name) - oprot.writeFieldEnd() - if self.group_names is not None: - oprot.writeFieldBegin('group_names', TType.LIST, 5) - oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1325 in self.group_names: - oprot.writeString(iter1325) - oprot.writeListEnd() + oprot.writeStructBegin('get_partitions_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -28772,11 +30234,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) + value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -28790,7 +30248,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partition_with_auth_result: +class get_partitions_req_result: """ Attributes: - success @@ -28799,9 +30257,9 @@ class get_partition_with_auth_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + (0, TType.STRUCT, 'success', (PartitionsResponse, PartitionsResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) def __init__(self, success=None, o1=None, o2=None,): @@ -28820,19 +30278,19 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = Partition() + self.success = PartitionsResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException() + self.o1 = NoSuchObjectException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException() + self.o2 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) @@ -28845,7 +30303,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partition_with_auth_result') + oprot.writeStructBegin('get_partitions_req_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -28883,25 +30341,31 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partition_by_name_args: +class get_partitions_with_auth_args: """ Attributes: - db_name - tbl_name - - part_name + - max_parts + - user_name + - group_names """ thrift_spec = ( None, # 0 (1, TType.STRING, 'db_name', None, None, ), # 1 (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.STRING, 'part_name', None, None, ), # 3 + (3, TType.I16, 'max_parts', None, -1, ), # 3 + (4, TType.STRING, 'user_name', None, None, ), # 4 + (5, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 5 ) - def __init__(self, db_name=None, tbl_name=None, part_name=None,): + def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4], user_name=None, group_names=None,): self.db_name = db_name self.tbl_name = tbl_name - self.part_name = part_name + self.max_parts = max_parts + self.user_name = user_name + self.group_names = group_names def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -28923,8 +30387,23 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: + if ftype == TType.I16: + self.max_parts = iprot.readI16() + else: + iprot.skip(ftype) + elif fid == 4: if ftype == TType.STRING: - self.part_name = iprot.readString() + self.user_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.group_names = [] + (_etype1399, _size1396) = iprot.readListBegin() + for _i1400 in xrange(_size1396): + _elem1401 = iprot.readString() + self.group_names.append(_elem1401) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -28936,7 +30415,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partition_by_name_args') + oprot.writeStructBegin('get_partitions_with_auth_args') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -28945,9 +30424,20 @@ def write(self, oprot): oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_name is not None: - oprot.writeFieldBegin('part_name', TType.STRING, 3) - oprot.writeString(self.part_name) + if self.max_parts is not None: + oprot.writeFieldBegin('max_parts', TType.I16, 3) + oprot.writeI16(self.max_parts) + oprot.writeFieldEnd() + if self.user_name is not None: + oprot.writeFieldBegin('user_name', TType.STRING, 4) + oprot.writeString(self.user_name) + oprot.writeFieldEnd() + if self.group_names is not None: + oprot.writeFieldBegin('group_names', TType.LIST, 5) + oprot.writeListBegin(TType.STRING, len(self.group_names)) + for iter1402 in self.group_names: + oprot.writeString(iter1402) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -28960,7 +30450,9 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.db_name) value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) + value = (value * 31) ^ hash(self.max_parts) + value = (value * 31) ^ hash(self.user_name) + value = (value * 31) ^ hash(self.group_names) return value def __repr__(self): @@ -28974,7 +30466,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partition_by_name_result: +class get_partitions_with_auth_result: """ Attributes: - success @@ -28983,9 +30475,9 @@ class get_partition_by_name_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) def __init__(self, success=None, o1=None, o2=None,): @@ -29003,20 +30495,25 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = Partition() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1406, _size1403) = iprot.readListBegin() + for _i1407 in xrange(_size1403): + _elem1408 = Partition() + _elem1408.read(iprot) + self.success.append(_elem1408) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException() + self.o1 = NoSuchObjectException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException() + self.o2 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) @@ -29029,10 +30526,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partition_by_name_result') + oprot.writeStructBegin('get_partitions_with_auth_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1409 in self.success: + iter1409.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -29067,7 +30567,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_args: +class get_partitions_pspec_args: """ Attributes: - db_name @@ -29079,7 +30579,7 @@ class get_partitions_args: None, # 0 (1, TType.STRING, 'db_name', None, None, ), # 1 (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.I16, 'max_parts', None, -1, ), # 3 + (3, TType.I32, 'max_parts', None, -1, ), # 3 ) def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4],): @@ -29107,8 +30607,8 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.I16: - self.max_parts = iprot.readI16() + if ftype == TType.I32: + self.max_parts = iprot.readI32() else: iprot.skip(ftype) else: @@ -29120,7 +30620,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partitions_args') + oprot.writeStructBegin('get_partitions_pspec_args') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -29130,8 +30630,8 @@ def write(self, oprot): oprot.writeString(self.tbl_name) oprot.writeFieldEnd() if self.max_parts is not None: - oprot.writeFieldBegin('max_parts', TType.I16, 3) - oprot.writeI16(self.max_parts) + oprot.writeFieldBegin('max_parts', TType.I32, 3) + oprot.writeI32(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -29158,7 +30658,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_result: +class get_partitions_pspec_result: """ Attributes: - success @@ -29167,7 +30667,7 @@ class get_partitions_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(PartitionSpec, PartitionSpec.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) @@ -29189,11 +30689,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1329, _size1326) = iprot.readListBegin() - for _i1330 in xrange(_size1326): - _elem1331 = Partition() - _elem1331.read(iprot) - self.success.append(_elem1331) + (_etype1413, _size1410) = iprot.readListBegin() + for _i1414 in xrange(_size1410): + _elem1415 = PartitionSpec() + _elem1415.read(iprot) + self.success.append(_elem1415) iprot.readListEnd() else: iprot.skip(ftype) @@ -29218,12 +30718,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partitions_result') + oprot.writeStructBegin('get_partitions_pspec_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1332 in self.success: - iter1332.write(oprot) + for iter1416 in self.success: + iter1416.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29259,14 +30759,12 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_with_auth_args: +class get_partition_names_args: """ Attributes: - db_name - tbl_name - max_parts - - user_name - - group_names """ thrift_spec = ( @@ -29274,16 +30772,12 @@ class get_partitions_with_auth_args: (1, TType.STRING, 'db_name', None, None, ), # 1 (2, TType.STRING, 'tbl_name', None, None, ), # 2 (3, TType.I16, 'max_parts', None, -1, ), # 3 - (4, TType.STRING, 'user_name', None, None, ), # 4 - (5, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 5 ) - def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4], user_name=None, group_names=None,): + def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4],): self.db_name = db_name self.tbl_name = tbl_name self.max_parts = max_parts - self.user_name = user_name - self.group_names = group_names def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -29309,21 +30803,6 @@ def read(self, iprot): self.max_parts = iprot.readI16() else: iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.user_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.LIST: - self.group_names = [] - (_etype1336, _size1333) = iprot.readListBegin() - for _i1337 in xrange(_size1333): - _elem1338 = iprot.readString() - self.group_names.append(_elem1338) - iprot.readListEnd() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -29333,7 +30812,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partitions_with_auth_args') + oprot.writeStructBegin('get_partition_names_args') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -29346,17 +30825,6 @@ def write(self, oprot): oprot.writeFieldBegin('max_parts', TType.I16, 3) oprot.writeI16(self.max_parts) oprot.writeFieldEnd() - if self.user_name is not None: - oprot.writeFieldBegin('user_name', TType.STRING, 4) - oprot.writeString(self.user_name) - oprot.writeFieldEnd() - if self.group_names is not None: - oprot.writeFieldBegin('group_names', TType.LIST, 5) - oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1339 in self.group_names: - oprot.writeString(iter1339) - oprot.writeListEnd() - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -29369,8 +30837,6 @@ def __hash__(self): value = (value * 31) ^ hash(self.db_name) value = (value * 31) ^ hash(self.tbl_name) value = (value * 31) ^ hash(self.max_parts) - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) return value def __repr__(self): @@ -29384,7 +30850,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_with_auth_result: +class get_partition_names_result: """ Attributes: - success @@ -29393,7 +30859,7 @@ class get_partitions_with_auth_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) @@ -29415,11 +30881,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1343, _size1340) = iprot.readListBegin() - for _i1344 in xrange(_size1340): - _elem1345 = Partition() - _elem1345.read(iprot) - self.success.append(_elem1345) + (_etype1420, _size1417) = iprot.readListBegin() + for _i1421 in xrange(_size1417): + _elem1422 = iprot.readString() + self.success.append(_elem1422) iprot.readListEnd() else: iprot.skip(ftype) @@ -29444,12 +30909,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partitions_with_auth_result') + oprot.writeStructBegin('get_partition_names_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1346 in self.success: - iter1346.write(oprot) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1423 in self.success: + oprot.writeString(iter1423) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29485,25 +30950,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_pspec_args: +class get_partition_values_args: """ Attributes: - - db_name - - tbl_name - - max_parts + - request """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'db_name', None, None, ), # 1 - (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.I32, 'max_parts', None, -1, ), # 3 + (1, TType.STRUCT, 'request', (PartitionValuesRequest, PartitionValuesRequest.thrift_spec), None, ), # 1 ) - def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4],): - self.db_name = db_name - self.tbl_name = tbl_name - self.max_parts = max_parts + def __init__(self, request=None,): + self.request = request def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -29515,18 +30974,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.I32: - self.max_parts = iprot.readI32() + if ftype == TType.STRUCT: + self.request = PartitionValuesRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -29538,18 +30988,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partitions_pspec_args') - if self.db_name is not None: - oprot.writeFieldBegin('db_name', TType.STRING, 1) - oprot.writeString(self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin('tbl_name', TType.STRING, 2) - oprot.writeString(self.tbl_name) - oprot.writeFieldEnd() - if self.max_parts is not None: - oprot.writeFieldBegin('max_parts', TType.I32, 3) - oprot.writeI32(self.max_parts) + oprot.writeStructBegin('get_partition_values_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -29560,9 +31002,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_parts) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -29576,7 +31016,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_pspec_result: +class get_partition_values_result: """ Attributes: - success @@ -29585,9 +31025,9 @@ class get_partitions_pspec_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(PartitionSpec, PartitionSpec.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (0, TType.STRUCT, 'success', (PartitionValuesResponse, PartitionValuesResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) def __init__(self, success=None, o1=None, o2=None,): @@ -29605,25 +31045,20 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1350, _size1347) = iprot.readListBegin() - for _i1351 in xrange(_size1347): - _elem1352 = PartitionSpec() - _elem1352.read(iprot) - self.success.append(_elem1352) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = PartitionValuesResponse() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = MetaException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException() + self.o2 = NoSuchObjectException() self.o2.read(iprot) else: iprot.skip(ftype) @@ -29636,13 +31071,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partitions_pspec_result') + oprot.writeStructBegin('get_partition_values_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1353 in self.success: - iter1353.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -29677,11 +31109,12 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partition_names_args: +class get_partitions_ps_args: """ Attributes: - db_name - tbl_name + - part_vals - max_parts """ @@ -29689,12 +31122,14 @@ class get_partition_names_args: None, # 0 (1, TType.STRING, 'db_name', None, None, ), # 1 (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.I16, 'max_parts', None, -1, ), # 3 + (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3 + (4, TType.I16, 'max_parts', None, -1, ), # 4 ) - def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4],): + def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4],): self.db_name = db_name self.tbl_name = tbl_name + self.part_vals = part_vals self.max_parts = max_parts def read(self, iprot): @@ -29717,6 +31152,16 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: + if ftype == TType.LIST: + self.part_vals = [] + (_etype1427, _size1424) = iprot.readListBegin() + for _i1428 in xrange(_size1424): + _elem1429 = iprot.readString() + self.part_vals.append(_elem1429) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: if ftype == TType.I16: self.max_parts = iprot.readI16() else: @@ -29730,7 +31175,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partition_names_args') + oprot.writeStructBegin('get_partitions_ps_args') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -29739,8 +31184,15 @@ def write(self, oprot): oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() + if self.part_vals is not None: + oprot.writeFieldBegin('part_vals', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.part_vals)) + for iter1430 in self.part_vals: + oprot.writeString(iter1430) + oprot.writeListEnd() + oprot.writeFieldEnd() if self.max_parts is not None: - oprot.writeFieldBegin('max_parts', TType.I16, 3) + oprot.writeFieldBegin('max_parts', TType.I16, 4) oprot.writeI16(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29754,6 +31206,7 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.db_name) value = (value * 31) ^ hash(self.tbl_name) + value = (value * 31) ^ hash(self.part_vals) value = (value * 31) ^ hash(self.max_parts) return value @@ -29768,7 +31221,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partition_names_result: +class get_partitions_ps_result: """ Attributes: - success @@ -29777,9 +31230,9 @@ class get_partition_names_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) def __init__(self, success=None, o1=None, o2=None,): @@ -29799,22 +31252,23 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1357, _size1354) = iprot.readListBegin() - for _i1358 in xrange(_size1354): - _elem1359 = iprot.readString() - self.success.append(_elem1359) + (_etype1434, _size1431) = iprot.readListBegin() + for _i1435 in xrange(_size1431): + _elem1436 = Partition() + _elem1436.read(iprot) + self.success.append(_elem1436) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = MetaException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException() + self.o2 = NoSuchObjectException() self.o2.read(iprot) else: iprot.skip(ftype) @@ -29827,12 +31281,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partition_names_result') + oprot.writeStructBegin('get_partitions_ps_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1360 in self.success: - oprot.writeString(iter1360) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1437 in self.success: + iter1437.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29868,19 +31322,34 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partition_values_args: +class get_partitions_ps_with_auth_args: """ Attributes: - - request + - db_name + - tbl_name + - part_vals + - max_parts + - user_name + - group_names """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (PartitionValuesRequest, PartitionValuesRequest.thrift_spec), None, ), # 1 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3 + (4, TType.I16, 'max_parts', None, -1, ), # 4 + (5, TType.STRING, 'user_name', None, None, ), # 5 + (6, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 6 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4], user_name=None, group_names=None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.part_vals = part_vals + self.max_parts = max_parts + self.user_name = user_name + self.group_names = group_names def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -29892,9 +31361,43 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.request = PartitionValuesRequest() - self.request.read(iprot) + if ftype == TType.STRING: + self.db_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.part_vals = [] + (_etype1441, _size1438) = iprot.readListBegin() + for _i1442 in xrange(_size1438): + _elem1443 = iprot.readString() + self.part_vals.append(_elem1443) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I16: + self.max_parts = iprot.readI16() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.user_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.group_names = [] + (_etype1447, _size1444) = iprot.readListBegin() + for _i1448 in xrange(_size1444): + _elem1449 = iprot.readString() + self.group_names.append(_elem1449) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -29906,10 +31409,36 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partition_values_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('get_partitions_ps_with_auth_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name) + oprot.writeFieldEnd() + if self.part_vals is not None: + oprot.writeFieldBegin('part_vals', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.part_vals)) + for iter1450 in self.part_vals: + oprot.writeString(iter1450) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.max_parts is not None: + oprot.writeFieldBegin('max_parts', TType.I16, 4) + oprot.writeI16(self.max_parts) + oprot.writeFieldEnd() + if self.user_name is not None: + oprot.writeFieldBegin('user_name', TType.STRING, 5) + oprot.writeString(self.user_name) + oprot.writeFieldEnd() + if self.group_names is not None: + oprot.writeFieldBegin('group_names', TType.LIST, 6) + oprot.writeListBegin(TType.STRING, len(self.group_names)) + for iter1451 in self.group_names: + oprot.writeString(iter1451) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -29920,7 +31449,12 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_name) + value = (value * 31) ^ hash(self.part_vals) + value = (value * 31) ^ hash(self.max_parts) + value = (value * 31) ^ hash(self.user_name) + value = (value * 31) ^ hash(self.group_names) return value def __repr__(self): @@ -29934,7 +31468,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partition_values_result: +class get_partitions_ps_with_auth_result: """ Attributes: - success @@ -29943,9 +31477,9 @@ class get_partition_values_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (PartitionValuesResponse, PartitionValuesResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) def __init__(self, success=None, o1=None, o2=None,): @@ -29963,20 +31497,25 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = PartitionValuesResponse() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1455, _size1452) = iprot.readListBegin() + for _i1456 in xrange(_size1452): + _elem1457 = Partition() + _elem1457.read(iprot) + self.success.append(_elem1457) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException() + self.o1 = NoSuchObjectException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException() + self.o2 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) @@ -29989,10 +31528,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partition_values_result') + oprot.writeStructBegin('get_partitions_ps_with_auth_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1458 in self.success: + iter1458.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -30027,28 +31569,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_ps_args: +class get_partitions_ps_with_auth_req_args: """ Attributes: - - db_name - - tbl_name - - part_vals - - max_parts + - req """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'db_name', None, None, ), # 1 - (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3 - (4, TType.I16, 'max_parts', None, -1, ), # 4 + (1, TType.STRUCT, 'req', (GetPartitionsPsWithAuthRequest, GetPartitionsPsWithAuthRequest.thrift_spec), None, ), # 1 ) - def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4],): - self.db_name = db_name - self.tbl_name = tbl_name - self.part_vals = part_vals - self.max_parts = max_parts + def __init__(self, req=None,): + self.req = req def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -30060,28 +31593,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.part_vals = [] - (_etype1364, _size1361) = iprot.readListBegin() - for _i1365 in xrange(_size1361): - _elem1366 = iprot.readString() - self.part_vals.append(_elem1366) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I16: - self.max_parts = iprot.readI16() + if ftype == TType.STRUCT: + self.req = GetPartitionsPsWithAuthRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -30093,25 +31607,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partitions_ps_args') - if self.db_name is not None: - oprot.writeFieldBegin('db_name', TType.STRING, 1) - oprot.writeString(self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin('tbl_name', TType.STRING, 2) - oprot.writeString(self.tbl_name) - oprot.writeFieldEnd() - if self.part_vals is not None: - oprot.writeFieldBegin('part_vals', TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1367 in self.part_vals: - oprot.writeString(iter1367) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.max_parts is not None: - oprot.writeFieldBegin('max_parts', TType.I16, 4) - oprot.writeI16(self.max_parts) + oprot.writeStructBegin('get_partitions_ps_with_auth_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -30122,10 +31621,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.max_parts) + value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -30139,7 +31635,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_ps_result: +class get_partitions_ps_with_auth_req_result: """ Attributes: - success @@ -30148,7 +31644,7 @@ class get_partitions_ps_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0 + (0, TType.STRUCT, 'success', (GetPartitionsPsWithAuthResponse, GetPartitionsPsWithAuthResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) @@ -30168,14 +31664,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1371, _size1368) = iprot.readListBegin() - for _i1372 in xrange(_size1368): - _elem1373 = Partition() - _elem1373.read(iprot) - self.success.append(_elem1373) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = GetPartitionsPsWithAuthResponse() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: @@ -30199,13 +31690,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partitions_ps_result') + oprot.writeStructBegin('get_partitions_ps_with_auth_req_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1374 in self.success: - iter1374.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -30240,15 +31728,13 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_ps_with_auth_args: +class get_partition_names_ps_args: """ Attributes: - db_name - tbl_name - part_vals - max_parts - - user_name - - group_names """ thrift_spec = ( @@ -30257,17 +31743,13 @@ class get_partitions_ps_with_auth_args: (2, TType.STRING, 'tbl_name', None, None, ), # 2 (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3 (4, TType.I16, 'max_parts', None, -1, ), # 4 - (5, TType.STRING, 'user_name', None, None, ), # 5 - (6, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 6 ) - def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4], user_name=None, group_names=None,): + def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4],): self.db_name = db_name self.tbl_name = tbl_name self.part_vals = part_vals self.max_parts = max_parts - self.user_name = user_name - self.group_names = group_names def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -30291,10 +31773,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1378, _size1375) = iprot.readListBegin() - for _i1379 in xrange(_size1375): - _elem1380 = iprot.readString() - self.part_vals.append(_elem1380) + (_etype1462, _size1459) = iprot.readListBegin() + for _i1463 in xrange(_size1459): + _elem1464 = iprot.readString() + self.part_vals.append(_elem1464) iprot.readListEnd() else: iprot.skip(ftype) @@ -30303,21 +31785,6 @@ def read(self, iprot): self.max_parts = iprot.readI16() else: iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRING: - self.user_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.LIST: - self.group_names = [] - (_etype1384, _size1381) = iprot.readListBegin() - for _i1385 in xrange(_size1381): - _elem1386 = iprot.readString() - self.group_names.append(_elem1386) - iprot.readListEnd() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -30327,7 +31794,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partitions_ps_with_auth_args') + oprot.writeStructBegin('get_partition_names_ps_args') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -30339,25 +31806,14 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1387 in self.part_vals: - oprot.writeString(iter1387) + for iter1465 in self.part_vals: + oprot.writeString(iter1465) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: oprot.writeFieldBegin('max_parts', TType.I16, 4) oprot.writeI16(self.max_parts) oprot.writeFieldEnd() - if self.user_name is not None: - oprot.writeFieldBegin('user_name', TType.STRING, 5) - oprot.writeString(self.user_name) - oprot.writeFieldEnd() - if self.group_names is not None: - oprot.writeFieldBegin('group_names', TType.LIST, 6) - oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1388 in self.group_names: - oprot.writeString(iter1388) - oprot.writeListEnd() - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -30371,8 +31827,6 @@ def __hash__(self): value = (value * 31) ^ hash(self.tbl_name) value = (value * 31) ^ hash(self.part_vals) value = (value * 31) ^ hash(self.max_parts) - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) return value def __repr__(self): @@ -30386,7 +31840,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_ps_with_auth_result: +class get_partition_names_ps_result: """ Attributes: - success @@ -30395,9 +31849,9 @@ class get_partitions_ps_with_auth_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) def __init__(self, success=None, o1=None, o2=None,): @@ -30417,23 +31871,22 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1392, _size1389) = iprot.readListBegin() - for _i1393 in xrange(_size1389): - _elem1394 = Partition() - _elem1394.read(iprot) - self.success.append(_elem1394) + (_etype1469, _size1466) = iprot.readListBegin() + for _i1470 in xrange(_size1466): + _elem1471 = iprot.readString() + self.success.append(_elem1471) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = MetaException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException() + self.o2 = NoSuchObjectException() self.o2.read(iprot) else: iprot.skip(ftype) @@ -30446,12 +31899,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partitions_ps_with_auth_result') + oprot.writeStructBegin('get_partition_names_ps_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1395 in self.success: - iter1395.write(oprot) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1472 in self.success: + oprot.writeString(iter1472) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30487,28 +31940,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partition_names_ps_args: +class get_partition_names_ps_req_args: """ Attributes: - - db_name - - tbl_name - - part_vals - - max_parts + - req """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'db_name', None, None, ), # 1 - (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3 - (4, TType.I16, 'max_parts', None, -1, ), # 4 + (1, TType.STRUCT, 'req', (GetPartitionNamesPsRequest, GetPartitionNamesPsRequest.thrift_spec), None, ), # 1 ) - def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4],): - self.db_name = db_name - self.tbl_name = tbl_name - self.part_vals = part_vals - self.max_parts = max_parts + def __init__(self, req=None,): + self.req = req def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -30520,28 +31964,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.part_vals = [] - (_etype1399, _size1396) = iprot.readListBegin() - for _i1400 in xrange(_size1396): - _elem1401 = iprot.readString() - self.part_vals.append(_elem1401) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I16: - self.max_parts = iprot.readI16() + if ftype == TType.STRUCT: + self.req = GetPartitionNamesPsRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -30553,25 +31978,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partition_names_ps_args') - if self.db_name is not None: - oprot.writeFieldBegin('db_name', TType.STRING, 1) - oprot.writeString(self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin('tbl_name', TType.STRING, 2) - oprot.writeString(self.tbl_name) - oprot.writeFieldEnd() - if self.part_vals is not None: - oprot.writeFieldBegin('part_vals', TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1402 in self.part_vals: - oprot.writeString(iter1402) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.max_parts is not None: - oprot.writeFieldBegin('max_parts', TType.I16, 4) - oprot.writeI16(self.max_parts) + oprot.writeStructBegin('get_partition_names_ps_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -30582,10 +31992,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.max_parts) + value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -30599,7 +32006,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partition_names_ps_result: +class get_partition_names_ps_req_result: """ Attributes: - success @@ -30608,7 +32015,7 @@ class get_partition_names_ps_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 + (0, TType.STRUCT, 'success', (GetPartitionNamesPsResponse, GetPartitionNamesPsResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) @@ -30628,13 +32035,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1406, _size1403) = iprot.readListBegin() - for _i1407 in xrange(_size1403): - _elem1408 = iprot.readString() - self.success.append(_elem1408) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = GetPartitionNamesPsResponse() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: @@ -30658,13 +32061,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partition_names_ps_result') + oprot.writeStructBegin('get_partition_names_ps_req_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1409 in self.success: - oprot.writeString(iter1409) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -30796,10 +32196,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1413, _size1410) = iprot.readListBegin() - for _i1414 in xrange(_size1410): - _elem1415 = iprot.readString() - self.success.append(_elem1415) + (_etype1476, _size1473) = iprot.readListBegin() + for _i1477 in xrange(_size1473): + _elem1478 = iprot.readString() + self.success.append(_elem1478) iprot.readListEnd() else: iprot.skip(ftype) @@ -30828,8 +32228,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1416 in self.success: - oprot.writeString(iter1416) + for iter1479 in self.success: + oprot.writeString(iter1479) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31000,11 +32400,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1420, _size1417) = iprot.readListBegin() - for _i1421 in xrange(_size1417): - _elem1422 = Partition() - _elem1422.read(iprot) - self.success.append(_elem1422) + (_etype1483, _size1480) = iprot.readListBegin() + for _i1484 in xrange(_size1480): + _elem1485 = Partition() + _elem1485.read(iprot) + self.success.append(_elem1485) iprot.readListEnd() else: iprot.skip(ftype) @@ -31033,8 +32433,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1423 in self.success: - iter1423.write(oprot) + for iter1486 in self.success: + iter1486.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31205,11 +32605,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1427, _size1424) = iprot.readListBegin() - for _i1428 in xrange(_size1424): - _elem1429 = PartitionSpec() - _elem1429.read(iprot) - self.success.append(_elem1429) + (_etype1490, _size1487) = iprot.readListBegin() + for _i1491 in xrange(_size1487): + _elem1492 = PartitionSpec() + _elem1492.read(iprot) + self.success.append(_elem1492) iprot.readListEnd() else: iprot.skip(ftype) @@ -31238,8 +32638,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1430 in self.success: - iter1430.write(oprot) + for iter1493 in self.success: + iter1493.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31818,10 +33218,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype1434, _size1431) = iprot.readListBegin() - for _i1435 in xrange(_size1431): - _elem1436 = iprot.readString() - self.names.append(_elem1436) + (_etype1497, _size1494) = iprot.readListBegin() + for _i1498 in xrange(_size1494): + _elem1499 = iprot.readString() + self.names.append(_elem1499) iprot.readListEnd() else: iprot.skip(ftype) @@ -31846,8 +33246,8 @@ def write(self, oprot): if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter1437 in self.names: - oprot.writeString(iter1437) + for iter1500 in self.names: + oprot.writeString(iter1500) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31906,11 +33306,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1441, _size1438) = iprot.readListBegin() - for _i1442 in xrange(_size1438): - _elem1443 = Partition() - _elem1443.read(iprot) - self.success.append(_elem1443) + (_etype1504, _size1501) = iprot.readListBegin() + for _i1505 in xrange(_size1501): + _elem1506 = Partition() + _elem1506.read(iprot) + self.success.append(_elem1506) iprot.readListEnd() else: iprot.skip(ftype) @@ -31939,8 +33339,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1444 in self.success: - iter1444.write(oprot) + for iter1507 in self.success: + iter1507.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32349,11 +33749,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1448, _size1445) = iprot.readListBegin() - for _i1449 in xrange(_size1445): - _elem1450 = Partition() - _elem1450.read(iprot) - self.new_parts.append(_elem1450) + (_etype1511, _size1508) = iprot.readListBegin() + for _i1512 in xrange(_size1508): + _elem1513 = Partition() + _elem1513.read(iprot) + self.new_parts.append(_elem1513) iprot.readListEnd() else: iprot.skip(ftype) @@ -32378,8 +33778,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter1451 in self.new_parts: - iter1451.write(oprot) + for iter1514 in self.new_parts: + iter1514.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -32532,11 +33932,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1455, _size1452) = iprot.readListBegin() - for _i1456 in xrange(_size1452): - _elem1457 = Partition() - _elem1457.read(iprot) - self.new_parts.append(_elem1457) + (_etype1518, _size1515) = iprot.readListBegin() + for _i1519 in xrange(_size1515): + _elem1520 = Partition() + _elem1520.read(iprot) + self.new_parts.append(_elem1520) iprot.readListEnd() else: iprot.skip(ftype) @@ -32567,8 +33967,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter1458 in self.new_parts: - iter1458.write(oprot) + for iter1521 in self.new_parts: + iter1521.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -33071,10 +34471,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1462, _size1459) = iprot.readListBegin() - for _i1463 in xrange(_size1459): - _elem1464 = iprot.readString() - self.part_vals.append(_elem1464) + (_etype1525, _size1522) = iprot.readListBegin() + for _i1526 in xrange(_size1522): + _elem1527 = iprot.readString() + self.part_vals.append(_elem1527) iprot.readListEnd() else: iprot.skip(ftype) @@ -33105,8 +34505,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1465 in self.part_vals: - oprot.writeString(iter1465) + for iter1528 in self.part_vals: + oprot.writeString(iter1528) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -33407,10 +34807,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype1469, _size1466) = iprot.readListBegin() - for _i1470 in xrange(_size1466): - _elem1471 = iprot.readString() - self.part_vals.append(_elem1471) + (_etype1532, _size1529) = iprot.readListBegin() + for _i1533 in xrange(_size1529): + _elem1534 = iprot.readString() + self.part_vals.append(_elem1534) iprot.readListEnd() else: iprot.skip(ftype) @@ -33432,8 +34832,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1472 in self.part_vals: - oprot.writeString(iter1472) + for iter1535 in self.part_vals: + oprot.writeString(iter1535) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -33791,10 +35191,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1476, _size1473) = iprot.readListBegin() - for _i1477 in xrange(_size1473): - _elem1478 = iprot.readString() - self.success.append(_elem1478) + (_etype1539, _size1536) = iprot.readListBegin() + for _i1540 in xrange(_size1536): + _elem1541 = iprot.readString() + self.success.append(_elem1541) iprot.readListEnd() else: iprot.skip(ftype) @@ -33817,8 +35217,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1479 in self.success: - oprot.writeString(iter1479) + for iter1542 in self.success: + oprot.writeString(iter1542) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -33942,11 +35342,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1481, _vtype1482, _size1480 ) = iprot.readMapBegin() - for _i1484 in xrange(_size1480): - _key1485 = iprot.readString() - _val1486 = iprot.readString() - self.success[_key1485] = _val1486 + (_ktype1544, _vtype1545, _size1543 ) = iprot.readMapBegin() + for _i1547 in xrange(_size1543): + _key1548 = iprot.readString() + _val1549 = iprot.readString() + self.success[_key1548] = _val1549 iprot.readMapEnd() else: iprot.skip(ftype) @@ -33969,9 +35369,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter1487,viter1488 in self.success.items(): - oprot.writeString(kiter1487) - oprot.writeString(viter1488) + for kiter1550,viter1551 in self.success.items(): + oprot.writeString(kiter1550) + oprot.writeString(viter1551) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -34047,11 +35447,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1490, _vtype1491, _size1489 ) = iprot.readMapBegin() - for _i1493 in xrange(_size1489): - _key1494 = iprot.readString() - _val1495 = iprot.readString() - self.part_vals[_key1494] = _val1495 + (_ktype1553, _vtype1554, _size1552 ) = iprot.readMapBegin() + for _i1556 in xrange(_size1552): + _key1557 = iprot.readString() + _val1558 = iprot.readString() + self.part_vals[_key1557] = _val1558 iprot.readMapEnd() else: iprot.skip(ftype) @@ -34081,9 +35481,9 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter1496,viter1497 in self.part_vals.items(): - oprot.writeString(kiter1496) - oprot.writeString(viter1497) + for kiter1559,viter1560 in self.part_vals.items(): + oprot.writeString(kiter1559) + oprot.writeString(viter1560) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -34297,11 +35697,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1499, _vtype1500, _size1498 ) = iprot.readMapBegin() - for _i1502 in xrange(_size1498): - _key1503 = iprot.readString() - _val1504 = iprot.readString() - self.part_vals[_key1503] = _val1504 + (_ktype1562, _vtype1563, _size1561 ) = iprot.readMapBegin() + for _i1565 in xrange(_size1561): + _key1566 = iprot.readString() + _val1567 = iprot.readString() + self.part_vals[_key1566] = _val1567 iprot.readMapEnd() else: iprot.skip(ftype) @@ -34331,9 +35731,9 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter1505,viter1506 in self.part_vals.items(): - oprot.writeString(kiter1505) - oprot.writeString(viter1506) + for kiter1568,viter1569 in self.part_vals.items(): + oprot.writeString(kiter1568) + oprot.writeString(viter1569) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -38385,10 +39785,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1510, _size1507) = iprot.readListBegin() - for _i1511 in xrange(_size1507): - _elem1512 = iprot.readString() - self.success.append(_elem1512) + (_etype1573, _size1570) = iprot.readListBegin() + for _i1574 in xrange(_size1570): + _elem1575 = iprot.readString() + self.success.append(_elem1575) iprot.readListEnd() else: iprot.skip(ftype) @@ -38411,8 +39811,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1513 in self.success: - oprot.writeString(iter1513) + for iter1576 in self.success: + oprot.writeString(iter1576) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -39100,10 +40500,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1517, _size1514) = iprot.readListBegin() - for _i1518 in xrange(_size1514): - _elem1519 = iprot.readString() - self.success.append(_elem1519) + (_etype1580, _size1577) = iprot.readListBegin() + for _i1581 in xrange(_size1577): + _elem1582 = iprot.readString() + self.success.append(_elem1582) iprot.readListEnd() else: iprot.skip(ftype) @@ -39126,8 +40526,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1520 in self.success: - oprot.writeString(iter1520) + for iter1583 in self.success: + oprot.writeString(iter1583) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -39641,11 +41041,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1524, _size1521) = iprot.readListBegin() - for _i1525 in xrange(_size1521): - _elem1526 = Role() - _elem1526.read(iprot) - self.success.append(_elem1526) + (_etype1587, _size1584) = iprot.readListBegin() + for _i1588 in xrange(_size1584): + _elem1589 = Role() + _elem1589.read(iprot) + self.success.append(_elem1589) iprot.readListEnd() else: iprot.skip(ftype) @@ -39668,8 +41068,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1527 in self.success: - iter1527.write(oprot) + for iter1590 in self.success: + iter1590.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -40178,10 +41578,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1531, _size1528) = iprot.readListBegin() - for _i1532 in xrange(_size1528): - _elem1533 = iprot.readString() - self.group_names.append(_elem1533) + (_etype1594, _size1591) = iprot.readListBegin() + for _i1595 in xrange(_size1591): + _elem1596 = iprot.readString() + self.group_names.append(_elem1596) iprot.readListEnd() else: iprot.skip(ftype) @@ -40206,8 +41606,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1534 in self.group_names: - oprot.writeString(iter1534) + for iter1597 in self.group_names: + oprot.writeString(iter1597) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -40434,11 +41834,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1538, _size1535) = iprot.readListBegin() - for _i1539 in xrange(_size1535): - _elem1540 = HiveObjectPrivilege() - _elem1540.read(iprot) - self.success.append(_elem1540) + (_etype1601, _size1598) = iprot.readListBegin() + for _i1602 in xrange(_size1598): + _elem1603 = HiveObjectPrivilege() + _elem1603.read(iprot) + self.success.append(_elem1603) iprot.readListEnd() else: iprot.skip(ftype) @@ -40461,8 +41861,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1541 in self.success: - iter1541.write(oprot) + for iter1604 in self.success: + iter1604.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -41132,10 +42532,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1545, _size1542) = iprot.readListBegin() - for _i1546 in xrange(_size1542): - _elem1547 = iprot.readString() - self.group_names.append(_elem1547) + (_etype1608, _size1605) = iprot.readListBegin() + for _i1609 in xrange(_size1605): + _elem1610 = iprot.readString() + self.group_names.append(_elem1610) iprot.readListEnd() else: iprot.skip(ftype) @@ -41156,8 +42556,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1548 in self.group_names: - oprot.writeString(iter1548) + for iter1611 in self.group_names: + oprot.writeString(iter1611) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -41212,10 +42612,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1552, _size1549) = iprot.readListBegin() - for _i1553 in xrange(_size1549): - _elem1554 = iprot.readString() - self.success.append(_elem1554) + (_etype1615, _size1612) = iprot.readListBegin() + for _i1616 in xrange(_size1612): + _elem1617 = iprot.readString() + self.success.append(_elem1617) iprot.readListEnd() else: iprot.skip(ftype) @@ -41238,8 +42638,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1555 in self.success: - oprot.writeString(iter1555) + for iter1618 in self.success: + oprot.writeString(iter1618) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -42171,10 +43571,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1559, _size1556) = iprot.readListBegin() - for _i1560 in xrange(_size1556): - _elem1561 = iprot.readString() - self.success.append(_elem1561) + (_etype1622, _size1619) = iprot.readListBegin() + for _i1623 in xrange(_size1619): + _elem1624 = iprot.readString() + self.success.append(_elem1624) iprot.readListEnd() else: iprot.skip(ftype) @@ -42191,8 +43591,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1562 in self.success: - oprot.writeString(iter1562) + for iter1625 in self.success: + oprot.writeString(iter1625) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -42719,10 +44119,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1566, _size1563) = iprot.readListBegin() - for _i1567 in xrange(_size1563): - _elem1568 = iprot.readString() - self.success.append(_elem1568) + (_etype1629, _size1626) = iprot.readListBegin() + for _i1630 in xrange(_size1626): + _elem1631 = iprot.readString() + self.success.append(_elem1631) iprot.readListEnd() else: iprot.skip(ftype) @@ -42739,8 +44139,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1569 in self.success: - oprot.writeString(iter1569) + for iter1632 in self.success: + oprot.writeString(iter1632) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -45753,10 +47153,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1573, _size1570) = iprot.readListBegin() - for _i1574 in xrange(_size1570): - _elem1575 = iprot.readString() - self.success.append(_elem1575) + (_etype1636, _size1633) = iprot.readListBegin() + for _i1637 in xrange(_size1633): + _elem1638 = iprot.readString() + self.success.append(_elem1638) iprot.readListEnd() else: iprot.skip(ftype) @@ -45773,8 +47173,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1576 in self.success: - oprot.writeString(iter1576) + for iter1639 in self.success: + oprot.writeString(iter1639) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -52084,11 +53484,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1580, _size1577) = iprot.readListBegin() - for _i1581 in xrange(_size1577): - _elem1582 = SchemaVersion() - _elem1582.read(iprot) - self.success.append(_elem1582) + (_etype1643, _size1640) = iprot.readListBegin() + for _i1644 in xrange(_size1640): + _elem1645 = SchemaVersion() + _elem1645.read(iprot) + self.success.append(_elem1645) iprot.readListEnd() else: iprot.skip(ftype) @@ -52117,8 +53517,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1583 in self.success: - iter1583.write(oprot) + for iter1646 in self.success: + iter1646.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -53593,11 +54993,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1587, _size1584) = iprot.readListBegin() - for _i1588 in xrange(_size1584): - _elem1589 = RuntimeStat() - _elem1589.read(iprot) - self.success.append(_elem1589) + (_etype1650, _size1647) = iprot.readListBegin() + for _i1651 in xrange(_size1647): + _elem1652 = RuntimeStat() + _elem1652.read(iprot) + self.success.append(_elem1652) iprot.readListEnd() else: iprot.skip(ftype) @@ -53620,8 +55020,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1590 in self.success: - iter1590.write(oprot) + for iter1653 in self.success: + iter1653.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 66fdd28c36..b303a1b523 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -10079,6 +10079,8 @@ class PartitionsByExprRequest: - maxParts - catName - order + - validWriteIdList + - tableId """ thrift_spec = ( @@ -10090,9 +10092,11 @@ class PartitionsByExprRequest: (5, TType.I16, 'maxParts', None, -1, ), # 5 (6, TType.STRING, 'catName', None, None, ), # 6 (7, TType.STRING, 'order', None, None, ), # 7 + (8, TType.STRING, 'validWriteIdList', None, None, ), # 8 + (9, TType.I64, 'tableId', None, -1, ), # 9 ) - def __init__(self, dbName=None, tblName=None, expr=None, defaultPartitionName=None, maxParts=thrift_spec[5][4], catName=None, order=None,): + def __init__(self, dbName=None, tblName=None, expr=None, defaultPartitionName=None, maxParts=thrift_spec[5][4], catName=None, order=None, validWriteIdList=None, tableId=thrift_spec[9][4],): self.dbName = dbName self.tblName = tblName self.expr = expr @@ -10100,6 +10104,8 @@ def __init__(self, dbName=None, tblName=None, expr=None, defaultPartitionName=No self.maxParts = maxParts self.catName = catName self.order = order + self.validWriteIdList = validWriteIdList + self.tableId = tableId def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -10145,6 +10151,16 @@ def read(self, iprot): self.order = iprot.readString() else: iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.I64: + self.tableId = iprot.readI64() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -10183,6 +10199,14 @@ def write(self, oprot): oprot.writeFieldBegin('order', TType.STRING, 7) oprot.writeString(self.order) oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 8) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() + if self.tableId is not None: + oprot.writeFieldBegin('tableId', TType.I64, 9) + oprot.writeI64(self.tableId) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10205,6 +10229,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.maxParts) value = (value * 31) ^ hash(self.catName) value = (value * 31) ^ hash(self.order) + value = (value * 31) ^ hash(self.validWriteIdList) + value = (value * 31) ^ hash(self.tableId) return value def __repr__(self): @@ -10415,6 +10441,7 @@ class TableStatsRequest: - catName - validWriteIdList - engine + - tableId """ thrift_spec = ( @@ -10425,15 +10452,17 @@ class TableStatsRequest: (4, TType.STRING, 'catName', None, None, ), # 4 (5, TType.STRING, 'validWriteIdList', None, None, ), # 5 (6, TType.STRING, 'engine', None, None, ), # 6 + (7, TType.I64, 'tableId', None, -1, ), # 7 ) - def __init__(self, dbName=None, tblName=None, colNames=None, catName=None, validWriteIdList=None, engine=None,): + def __init__(self, dbName=None, tblName=None, colNames=None, catName=None, validWriteIdList=None, engine=None, tableId=thrift_spec[7][4],): self.dbName = dbName self.tblName = tblName self.colNames = colNames self.catName = catName self.validWriteIdList = validWriteIdList self.engine = engine + self.tableId = tableId def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -10479,6 +10508,11 @@ def read(self, iprot): self.engine = iprot.readString() else: iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I64: + self.tableId = iprot.readI64() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -10516,6 +10550,10 @@ def write(self, oprot): oprot.writeFieldBegin('engine', TType.STRING, 6) oprot.writeString(self.engine) oprot.writeFieldEnd() + if self.tableId is not None: + oprot.writeFieldBegin('tableId', TType.I64, 7) + oprot.writeI64(self.tableId) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10539,6 +10577,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.catName) value = (value * 31) ^ hash(self.validWriteIdList) value = (value * 31) ^ hash(self.engine) + value = (value * 31) ^ hash(self.tableId) return value def __repr__(self): @@ -11406,6 +11445,7 @@ class PartitionValuesRequest: - ascending - maxParts - catName + - validWriteIdList """ thrift_spec = ( @@ -11419,9 +11459,10 @@ class PartitionValuesRequest: (7, TType.BOOL, 'ascending', None, True, ), # 7 (8, TType.I64, 'maxParts', None, -1, ), # 8 (9, TType.STRING, 'catName', None, None, ), # 9 + (10, TType.STRING, 'validWriteIdList', None, None, ), # 10 ) - def __init__(self, dbName=None, tblName=None, partitionKeys=None, applyDistinct=thrift_spec[4][4], filter=None, partitionOrder=None, ascending=thrift_spec[7][4], maxParts=thrift_spec[8][4], catName=None,): + def __init__(self, dbName=None, tblName=None, partitionKeys=None, applyDistinct=thrift_spec[4][4], filter=None, partitionOrder=None, ascending=thrift_spec[7][4], maxParts=thrift_spec[8][4], catName=None, validWriteIdList=None,): self.dbName = dbName self.tblName = tblName self.partitionKeys = partitionKeys @@ -11431,6 +11472,7 @@ def __init__(self, dbName=None, tblName=None, partitionKeys=None, applyDistinct= self.ascending = ascending self.maxParts = maxParts self.catName = catName + self.validWriteIdList = validWriteIdList def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -11498,6 +11540,11 @@ def read(self, iprot): self.catName = iprot.readString() else: iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -11550,6 +11597,10 @@ def write(self, oprot): oprot.writeFieldBegin('catName', TType.STRING, 9) oprot.writeString(self.catName) oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 10) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11574,6 +11625,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.ascending) value = (value * 31) ^ hash(self.maxParts) value = (value * 31) ^ hash(self.catName) + value = (value * 31) ^ hash(self.validWriteIdList) return value def __repr__(self): @@ -11748,6 +11800,7 @@ class GetPartitionsByNamesRequest: - processorCapabilities - processorIdentifier - engine + - validWriteIdList """ thrift_spec = ( @@ -11759,9 +11812,10 @@ class GetPartitionsByNamesRequest: (5, TType.LIST, 'processorCapabilities', (TType.STRING,None), None, ), # 5 (6, TType.STRING, 'processorIdentifier', None, None, ), # 6 (7, TType.STRING, 'engine', None, None, ), # 7 + (8, TType.STRING, 'validWriteIdList', None, None, ), # 8 ) - def __init__(self, db_name=None, tbl_name=None, names=None, get_col_stats=None, processorCapabilities=None, processorIdentifier=None, engine=None,): + def __init__(self, db_name=None, tbl_name=None, names=None, get_col_stats=None, processorCapabilities=None, processorIdentifier=None, engine=None, validWriteIdList=None,): self.db_name = db_name self.tbl_name = tbl_name self.names = names @@ -11769,6 +11823,7 @@ def __init__(self, db_name=None, tbl_name=None, names=None, get_col_stats=None, self.processorCapabilities = processorCapabilities self.processorIdentifier = processorIdentifier self.engine = engine + self.validWriteIdList = validWriteIdList def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -11824,6 +11879,11 @@ def read(self, iprot): self.engine = iprot.readString() else: iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -11868,6 +11928,10 @@ def write(self, oprot): oprot.writeFieldBegin('engine', TType.STRING, 7) oprot.writeString(self.engine) oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 8) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11888,6 +11952,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.processorCapabilities) value = (value * 31) ^ hash(self.processorIdentifier) value = (value * 31) ^ hash(self.engine) + value = (value * 31) ^ hash(self.validWriteIdList) return value def __repr__(self): @@ -19048,6 +19113,7 @@ class GetTableRequest: - processorCapabilities - processorIdentifier - engine + - tableId """ thrift_spec = ( @@ -19062,9 +19128,10 @@ class GetTableRequest: (8, TType.LIST, 'processorCapabilities', (TType.STRING,None), None, ), # 8 (9, TType.STRING, 'processorIdentifier', None, None, ), # 9 (10, TType.STRING, 'engine', None, None, ), # 10 + (11, TType.I64, 'tableId', None, -1, ), # 11 ) - def __init__(self, dbName=None, tblName=None, capabilities=None, catName=None, validWriteIdList=None, getColumnStats=None, processorCapabilities=None, processorIdentifier=None, engine=None,): + def __init__(self, dbName=None, tblName=None, capabilities=None, catName=None, validWriteIdList=None, getColumnStats=None, processorCapabilities=None, processorIdentifier=None, engine=None, tableId=thrift_spec[11][4],): self.dbName = dbName self.tblName = tblName self.capabilities = capabilities @@ -19074,6 +19141,7 @@ def __init__(self, dbName=None, tblName=None, capabilities=None, catName=None, v self.processorCapabilities = processorCapabilities self.processorIdentifier = processorIdentifier self.engine = engine + self.tableId = tableId def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -19135,6 +19203,11 @@ def read(self, iprot): self.engine = iprot.readString() else: iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I64: + self.tableId = iprot.readI64() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -19184,6 +19257,10 @@ def write(self, oprot): oprot.writeFieldBegin('engine', TType.STRING, 10) oprot.writeString(self.engine) oprot.writeFieldEnd() + if self.tableId is not None: + oprot.writeFieldBegin('tableId', TType.I64, 11) + oprot.writeI64(self.tableId) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -19206,6 +19283,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.processorCapabilities) value = (value * 31) ^ hash(self.processorIdentifier) value = (value * 31) ^ hash(self.engine) + value = (value * 31) ^ hash(self.tableId) return value def __repr__(self): @@ -26536,6 +26614,7 @@ class GetPartitionsRequest: - filterSpec - processorCapabilities - processorIdentifier + - validWriteIdList """ thrift_spec = ( @@ -26550,9 +26629,10 @@ class GetPartitionsRequest: (8, TType.STRUCT, 'filterSpec', (GetPartitionsFilterSpec, GetPartitionsFilterSpec.thrift_spec), None, ), # 8 (9, TType.LIST, 'processorCapabilities', (TType.STRING,None), None, ), # 9 (10, TType.STRING, 'processorIdentifier', None, None, ), # 10 + (11, TType.STRING, 'validWriteIdList', None, None, ), # 11 ) - def __init__(self, catName=None, dbName=None, tblName=None, withAuth=None, user=None, groupNames=None, projectionSpec=None, filterSpec=None, processorCapabilities=None, processorIdentifier=None,): + def __init__(self, catName=None, dbName=None, tblName=None, withAuth=None, user=None, groupNames=None, projectionSpec=None, filterSpec=None, processorCapabilities=None, processorIdentifier=None, validWriteIdList=None,): self.catName = catName self.dbName = dbName self.tblName = tblName @@ -26563,6 +26643,7 @@ def __init__(self, catName=None, dbName=None, tblName=None, withAuth=None, user= self.filterSpec = filterSpec self.processorCapabilities = processorCapabilities self.processorIdentifier = processorIdentifier + self.validWriteIdList = validWriteIdList def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -26635,6 +26716,11 @@ def read(self, iprot): self.processorIdentifier = iprot.readString() else: iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -26691,6 +26777,10 @@ def write(self, oprot): oprot.writeFieldBegin('processorIdentifier', TType.STRING, 10) oprot.writeString(self.processorIdentifier) oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 11) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -26710,6 +26800,1268 @@ def __hash__(self): value = (value * 31) ^ hash(self.filterSpec) value = (value * 31) ^ hash(self.processorCapabilities) value = (value * 31) ^ hash(self.processorIdentifier) + value = (value * 31) ^ hash(self.validWriteIdList) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class GetFieldsRequest: + """ + Attributes: + - dbName + - tblName + - envContext + - validWriteIdList + - tableId + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'dbName', None, None, ), # 1 + (2, TType.STRING, 'tblName', None, None, ), # 2 + (3, TType.STRUCT, 'envContext', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 3 + (4, TType.STRING, 'validWriteIdList', None, None, ), # 4 + (5, TType.I64, 'tableId', None, -1, ), # 5 + ) + + def __init__(self, dbName=None, tblName=None, envContext=None, validWriteIdList=None, tableId=thrift_spec[5][4],): + self.dbName = dbName + self.tblName = tblName + self.envContext = envContext + self.validWriteIdList = validWriteIdList + self.tableId = tableId + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tblName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.envContext = EnvironmentContext() + self.envContext.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.tableId = iprot.readI64() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetFieldsRequest') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.tblName is not None: + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName) + oprot.writeFieldEnd() + if self.envContext is not None: + oprot.writeFieldBegin('envContext', TType.STRUCT, 3) + self.envContext.write(oprot) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() + if self.tableId is not None: + oprot.writeFieldBegin('tableId', TType.I64, 5) + oprot.writeI64(self.tableId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.dbName is None: + raise TProtocol.TProtocolException(message='Required field dbName is unset!') + if self.tblName is None: + raise TProtocol.TProtocolException(message='Required field tblName is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tblName) + value = (value * 31) ^ hash(self.envContext) + value = (value * 31) ^ hash(self.validWriteIdList) + value = (value * 31) ^ hash(self.tableId) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class GetFieldsResponse: + """ + Attributes: + - fields + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'fields', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 1 + ) + + def __init__(self, fields=None,): + self.fields = fields + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.LIST: + self.fields = [] + (_etype1064, _size1061) = iprot.readListBegin() + for _i1065 in xrange(_size1061): + _elem1066 = FieldSchema() + _elem1066.read(iprot) + self.fields.append(_elem1066) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetFieldsResponse') + if self.fields is not None: + oprot.writeFieldBegin('fields', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.fields)) + for iter1067 in self.fields: + iter1067.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.fields is None: + raise TProtocol.TProtocolException(message='Required field fields is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.fields) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class GetSchemaRequest: + """ + Attributes: + - dbName + - tblName + - envContext + - validWriteIdList + - tableId + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'dbName', None, None, ), # 1 + (2, TType.STRING, 'tblName', None, None, ), # 2 + (3, TType.STRUCT, 'envContext', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 3 + (4, TType.STRING, 'validWriteIdList', None, None, ), # 4 + (5, TType.I64, 'tableId', None, -1, ), # 5 + ) + + def __init__(self, dbName=None, tblName=None, envContext=None, validWriteIdList=None, tableId=thrift_spec[5][4],): + self.dbName = dbName + self.tblName = tblName + self.envContext = envContext + self.validWriteIdList = validWriteIdList + self.tableId = tableId + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tblName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.envContext = EnvironmentContext() + self.envContext.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.tableId = iprot.readI64() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetSchemaRequest') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.tblName is not None: + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName) + oprot.writeFieldEnd() + if self.envContext is not None: + oprot.writeFieldBegin('envContext', TType.STRUCT, 3) + self.envContext.write(oprot) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() + if self.tableId is not None: + oprot.writeFieldBegin('tableId', TType.I64, 5) + oprot.writeI64(self.tableId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.dbName is None: + raise TProtocol.TProtocolException(message='Required field dbName is unset!') + if self.tblName is None: + raise TProtocol.TProtocolException(message='Required field tblName is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tblName) + value = (value * 31) ^ hash(self.envContext) + value = (value * 31) ^ hash(self.validWriteIdList) + value = (value * 31) ^ hash(self.tableId) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class GetSchemaResponse: + """ + Attributes: + - fields + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'fields', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 1 + ) + + def __init__(self, fields=None,): + self.fields = fields + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.LIST: + self.fields = [] + (_etype1071, _size1068) = iprot.readListBegin() + for _i1072 in xrange(_size1068): + _elem1073 = FieldSchema() + _elem1073.read(iprot) + self.fields.append(_elem1073) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetSchemaResponse') + if self.fields is not None: + oprot.writeFieldBegin('fields', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.fields)) + for iter1074 in self.fields: + iter1074.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.fields is None: + raise TProtocol.TProtocolException(message='Required field fields is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.fields) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class GetPartitionRequest: + """ + Attributes: + - dbName + - tblName + - partVals + - validWriteIdList + - tableId + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'dbName', None, None, ), # 1 + (2, TType.STRING, 'tblName', None, None, ), # 2 + (3, TType.LIST, 'partVals', (TType.STRING,None), None, ), # 3 + (4, TType.STRING, 'validWriteIdList', None, None, ), # 4 + (5, TType.I64, 'tableId', None, -1, ), # 5 + ) + + def __init__(self, dbName=None, tblName=None, partVals=None, validWriteIdList=None, tableId=thrift_spec[5][4],): + self.dbName = dbName + self.tblName = tblName + self.partVals = partVals + self.validWriteIdList = validWriteIdList + self.tableId = tableId + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tblName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.partVals = [] + (_etype1078, _size1075) = iprot.readListBegin() + for _i1079 in xrange(_size1075): + _elem1080 = iprot.readString() + self.partVals.append(_elem1080) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.tableId = iprot.readI64() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetPartitionRequest') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.tblName is not None: + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName) + oprot.writeFieldEnd() + if self.partVals is not None: + oprot.writeFieldBegin('partVals', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.partVals)) + for iter1081 in self.partVals: + oprot.writeString(iter1081) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() + if self.tableId is not None: + oprot.writeFieldBegin('tableId', TType.I64, 5) + oprot.writeI64(self.tableId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.dbName is None: + raise TProtocol.TProtocolException(message='Required field dbName is unset!') + if self.tblName is None: + raise TProtocol.TProtocolException(message='Required field tblName is unset!') + if self.partVals is None: + raise TProtocol.TProtocolException(message='Required field partVals is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tblName) + value = (value * 31) ^ hash(self.partVals) + value = (value * 31) ^ hash(self.validWriteIdList) + value = (value * 31) ^ hash(self.tableId) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class GetPartitionResponse: + """ + Attributes: + - partition + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'partition', (Partition, Partition.thrift_spec), None, ), # 1 + ) + + def __init__(self, partition=None,): + self.partition = partition + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.partition = Partition() + self.partition.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetPartitionResponse') + if self.partition is not None: + oprot.writeFieldBegin('partition', TType.STRUCT, 1) + self.partition.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.partition is None: + raise TProtocol.TProtocolException(message='Required field partition is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.partition) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class PartitionsRequest: + """ + Attributes: + - dbName + - tblName + - maxParts + - validWriteIdList + - tableId + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'dbName', None, None, ), # 1 + (2, TType.STRING, 'tblName', None, None, ), # 2 + (3, TType.I16, 'maxParts', None, -1, ), # 3 + (4, TType.STRING, 'validWriteIdList', None, None, ), # 4 + (5, TType.I64, 'tableId', None, -1, ), # 5 + ) + + def __init__(self, dbName=None, tblName=None, maxParts=thrift_spec[3][4], validWriteIdList=None, tableId=thrift_spec[5][4],): + self.dbName = dbName + self.tblName = tblName + self.maxParts = maxParts + self.validWriteIdList = validWriteIdList + self.tableId = tableId + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tblName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I16: + self.maxParts = iprot.readI16() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.tableId = iprot.readI64() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('PartitionsRequest') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.tblName is not None: + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName) + oprot.writeFieldEnd() + if self.maxParts is not None: + oprot.writeFieldBegin('maxParts', TType.I16, 3) + oprot.writeI16(self.maxParts) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() + if self.tableId is not None: + oprot.writeFieldBegin('tableId', TType.I64, 5) + oprot.writeI64(self.tableId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.dbName is None: + raise TProtocol.TProtocolException(message='Required field dbName is unset!') + if self.tblName is None: + raise TProtocol.TProtocolException(message='Required field tblName is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tblName) + value = (value * 31) ^ hash(self.maxParts) + value = (value * 31) ^ hash(self.validWriteIdList) + value = (value * 31) ^ hash(self.tableId) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class PartitionsResponse: + """ + Attributes: + - partitions + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'partitions', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 1 + ) + + def __init__(self, partitions=None,): + self.partitions = partitions + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.LIST: + self.partitions = [] + (_etype1085, _size1082) = iprot.readListBegin() + for _i1086 in xrange(_size1082): + _elem1087 = Partition() + _elem1087.read(iprot) + self.partitions.append(_elem1087) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('PartitionsResponse') + if self.partitions is not None: + oprot.writeFieldBegin('partitions', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.partitions)) + for iter1088 in self.partitions: + iter1088.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.partitions is None: + raise TProtocol.TProtocolException(message='Required field partitions is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.partitions) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class GetPartitionNamesPsRequest: + """ + Attributes: + - dbName + - tblName + - partValues + - maxParts + - validWriteIdList + - tableId + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'dbName', None, None, ), # 1 + (2, TType.STRING, 'tblName', None, None, ), # 2 + (3, TType.LIST, 'partValues', (TType.STRING,None), None, ), # 3 + (4, TType.I16, 'maxParts', None, -1, ), # 4 + (5, TType.STRING, 'validWriteIdList', None, None, ), # 5 + (6, TType.I64, 'tableId', None, -1, ), # 6 + ) + + def __init__(self, dbName=None, tblName=None, partValues=None, maxParts=thrift_spec[4][4], validWriteIdList=None, tableId=thrift_spec[6][4],): + self.dbName = dbName + self.tblName = tblName + self.partValues = partValues + self.maxParts = maxParts + self.validWriteIdList = validWriteIdList + self.tableId = tableId + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tblName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.partValues = [] + (_etype1092, _size1089) = iprot.readListBegin() + for _i1093 in xrange(_size1089): + _elem1094 = iprot.readString() + self.partValues.append(_elem1094) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I16: + self.maxParts = iprot.readI16() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I64: + self.tableId = iprot.readI64() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetPartitionNamesPsRequest') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.tblName is not None: + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName) + oprot.writeFieldEnd() + if self.partValues is not None: + oprot.writeFieldBegin('partValues', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.partValues)) + for iter1095 in self.partValues: + oprot.writeString(iter1095) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.maxParts is not None: + oprot.writeFieldBegin('maxParts', TType.I16, 4) + oprot.writeI16(self.maxParts) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 5) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() + if self.tableId is not None: + oprot.writeFieldBegin('tableId', TType.I64, 6) + oprot.writeI64(self.tableId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.dbName is None: + raise TProtocol.TProtocolException(message='Required field dbName is unset!') + if self.tblName is None: + raise TProtocol.TProtocolException(message='Required field tblName is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tblName) + value = (value * 31) ^ hash(self.partValues) + value = (value * 31) ^ hash(self.maxParts) + value = (value * 31) ^ hash(self.validWriteIdList) + value = (value * 31) ^ hash(self.tableId) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class GetPartitionNamesPsResponse: + """ + Attributes: + - names + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'names', (TType.STRING,None), None, ), # 1 + ) + + def __init__(self, names=None,): + self.names = names + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.LIST: + self.names = [] + (_etype1099, _size1096) = iprot.readListBegin() + for _i1100 in xrange(_size1096): + _elem1101 = iprot.readString() + self.names.append(_elem1101) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetPartitionNamesPsResponse') + if self.names is not None: + oprot.writeFieldBegin('names', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.names)) + for iter1102 in self.names: + oprot.writeString(iter1102) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.names is None: + raise TProtocol.TProtocolException(message='Required field names is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.names) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class GetPartitionsPsWithAuthRequest: + """ + Attributes: + - dbName + - tblName + - partVals + - maxParts + - userName + - groupNames + - validWriteIdList + - tableId + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'dbName', None, None, ), # 1 + (2, TType.STRING, 'tblName', None, None, ), # 2 + (3, TType.LIST, 'partVals', (TType.STRING,None), None, ), # 3 + (4, TType.I16, 'maxParts', None, -1, ), # 4 + (5, TType.STRING, 'userName', None, None, ), # 5 + (6, TType.LIST, 'groupNames', (TType.STRING,None), None, ), # 6 + (7, TType.STRING, 'validWriteIdList', None, None, ), # 7 + (8, TType.I64, 'tableId', None, -1, ), # 8 + ) + + def __init__(self, dbName=None, tblName=None, partVals=None, maxParts=thrift_spec[4][4], userName=None, groupNames=None, validWriteIdList=None, tableId=thrift_spec[8][4],): + self.dbName = dbName + self.tblName = tblName + self.partVals = partVals + self.maxParts = maxParts + self.userName = userName + self.groupNames = groupNames + self.validWriteIdList = validWriteIdList + self.tableId = tableId + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tblName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.partVals = [] + (_etype1106, _size1103) = iprot.readListBegin() + for _i1107 in xrange(_size1103): + _elem1108 = iprot.readString() + self.partVals.append(_elem1108) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I16: + self.maxParts = iprot.readI16() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.userName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.groupNames = [] + (_etype1112, _size1109) = iprot.readListBegin() + for _i1113 in xrange(_size1109): + _elem1114 = iprot.readString() + self.groupNames.append(_elem1114) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I64: + self.tableId = iprot.readI64() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetPartitionsPsWithAuthRequest') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.tblName is not None: + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName) + oprot.writeFieldEnd() + if self.partVals is not None: + oprot.writeFieldBegin('partVals', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.partVals)) + for iter1115 in self.partVals: + oprot.writeString(iter1115) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.maxParts is not None: + oprot.writeFieldBegin('maxParts', TType.I16, 4) + oprot.writeI16(self.maxParts) + oprot.writeFieldEnd() + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 5) + oprot.writeString(self.userName) + oprot.writeFieldEnd() + if self.groupNames is not None: + oprot.writeFieldBegin('groupNames', TType.LIST, 6) + oprot.writeListBegin(TType.STRING, len(self.groupNames)) + for iter1116 in self.groupNames: + oprot.writeString(iter1116) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 7) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() + if self.tableId is not None: + oprot.writeFieldBegin('tableId', TType.I64, 8) + oprot.writeI64(self.tableId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.dbName is None: + raise TProtocol.TProtocolException(message='Required field dbName is unset!') + if self.tblName is None: + raise TProtocol.TProtocolException(message='Required field tblName is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tblName) + value = (value * 31) ^ hash(self.partVals) + value = (value * 31) ^ hash(self.maxParts) + value = (value * 31) ^ hash(self.userName) + value = (value * 31) ^ hash(self.groupNames) + value = (value * 31) ^ hash(self.validWriteIdList) + value = (value * 31) ^ hash(self.tableId) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class GetPartitionsPsWithAuthResponse: + """ + Attributes: + - partitions + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'partitions', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 1 + ) + + def __init__(self, partitions=None,): + self.partitions = partitions + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.LIST: + self.partitions = [] + (_etype1120, _size1117) = iprot.readListBegin() + for _i1121 in xrange(_size1117): + _elem1122 = Partition() + _elem1122.read(iprot) + self.partitions.append(_elem1122) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetPartitionsPsWithAuthResponse') + if self.partitions is not None: + oprot.writeFieldBegin('partitions', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.partitions)) + for iter1123 in self.partitions: + iter1123.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.partitions is None: + raise TProtocol.TProtocolException(message='Required field partitions is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.partitions) return value def __repr__(self): diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb index 3c8152272b..48b7995c62 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -2277,6 +2277,8 @@ class PartitionsByExprRequest MAXPARTS = 5 CATNAME = 6 ORDER = 7 + VALIDWRITEIDLIST = 8 + TABLEID = 9 FIELDS = { DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, @@ -2285,7 +2287,9 @@ class PartitionsByExprRequest DEFAULTPARTITIONNAME => {:type => ::Thrift::Types::STRING, :name => 'defaultPartitionName', :optional => true}, MAXPARTS => {:type => ::Thrift::Types::I16, :name => 'maxParts', :default => -1, :optional => true}, CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, - ORDER => {:type => ::Thrift::Types::STRING, :name => 'order', :optional => true} + ORDER => {:type => ::Thrift::Types::STRING, :name => 'order', :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, + TABLEID => {:type => ::Thrift::Types::I64, :name => 'tableId', :default => -1, :optional => true} } def struct_fields; FIELDS; end @@ -2345,6 +2349,7 @@ class TableStatsRequest CATNAME = 4 VALIDWRITEIDLIST = 5 ENGINE = 6 + TABLEID = 7 FIELDS = { DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, @@ -2352,7 +2357,8 @@ class TableStatsRequest COLNAMES => {:type => ::Thrift::Types::LIST, :name => 'colNames', :element => {:type => ::Thrift::Types::STRING}}, CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, - ENGINE => {:type => ::Thrift::Types::STRING, :name => 'engine'} + ENGINE => {:type => ::Thrift::Types::STRING, :name => 'engine'}, + TABLEID => {:type => ::Thrift::Types::I64, :name => 'tableId', :default => -1, :optional => true} } def struct_fields; FIELDS; end @@ -2560,6 +2566,7 @@ class PartitionValuesRequest ASCENDING = 7 MAXPARTS = 8 CATNAME = 9 + VALIDWRITEIDLIST = 10 FIELDS = { DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, @@ -2570,7 +2577,8 @@ class PartitionValuesRequest PARTITIONORDER => {:type => ::Thrift::Types::LIST, :name => 'partitionOrder', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}, :optional => true}, ASCENDING => {:type => ::Thrift::Types::BOOL, :name => 'ascending', :default => true, :optional => true}, MAXPARTS => {:type => ::Thrift::Types::I64, :name => 'maxParts', :default => -1, :optional => true}, - CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true} + CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true} } def struct_fields; FIELDS; end @@ -2627,6 +2635,7 @@ class GetPartitionsByNamesRequest PROCESSORCAPABILITIES = 5 PROCESSORIDENTIFIER = 6 ENGINE = 7 + VALIDWRITEIDLIST = 8 FIELDS = { DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'}, @@ -2635,7 +2644,8 @@ class GetPartitionsByNamesRequest GET_COL_STATS => {:type => ::Thrift::Types::BOOL, :name => 'get_col_stats', :optional => true}, PROCESSORCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'processorCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, PROCESSORIDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'processorIdentifier', :optional => true}, - ENGINE => {:type => ::Thrift::Types::STRING, :name => 'engine', :optional => true} + ENGINE => {:type => ::Thrift::Types::STRING, :name => 'engine', :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true} } def struct_fields; FIELDS; end @@ -4247,6 +4257,7 @@ class GetTableRequest PROCESSORCAPABILITIES = 8 PROCESSORIDENTIFIER = 9 ENGINE = 10 + TABLEID = 11 FIELDS = { DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, @@ -4257,7 +4268,8 @@ class GetTableRequest GETCOLUMNSTATS => {:type => ::Thrift::Types::BOOL, :name => 'getColumnStats', :optional => true}, PROCESSORCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'processorCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, PROCESSORIDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'processorIdentifier', :optional => true}, - ENGINE => {:type => ::Thrift::Types::STRING, :name => 'engine', :optional => true} + ENGINE => {:type => ::Thrift::Types::STRING, :name => 'engine', :optional => true}, + TABLEID => {:type => ::Thrift::Types::I64, :name => 'tableId', :default => -1, :optional => true} } def struct_fields; FIELDS; end @@ -5935,6 +5947,7 @@ class GetPartitionsRequest FILTERSPEC = 8 PROCESSORCAPABILITIES = 9 PROCESSORIDENTIFIER = 10 + VALIDWRITEIDLIST = 11 FIELDS = { CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, @@ -5946,12 +5959,280 @@ class GetPartitionsRequest PROJECTIONSPEC => {:type => ::Thrift::Types::STRUCT, :name => 'projectionSpec', :class => ::GetPartitionsProjectionSpec}, FILTERSPEC => {:type => ::Thrift::Types::STRUCT, :name => 'filterSpec', :class => ::GetPartitionsFilterSpec}, PROCESSORCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'processorCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, - PROCESSORIDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'processorIdentifier', :optional => true} + PROCESSORIDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'processorIdentifier', :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self +end + +class GetFieldsRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + DBNAME = 1 + TBLNAME = 2 + ENVCONTEXT = 3 + VALIDWRITEIDLIST = 4 + TABLEID = 5 + + FIELDS = { + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, + TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, + ENVCONTEXT => {:type => ::Thrift::Types::STRUCT, :name => 'envContext', :class => ::EnvironmentContext, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, + TABLEID => {:type => ::Thrift::Types::I64, :name => 'tableId', :default => -1, :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName + end + + ::Thrift::Struct.generate_accessors self +end + +class GetFieldsResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + FIELDS = 1 + + FIELDS = { + FIELDS => {:type => ::Thrift::Types::LIST, :name => 'fields', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fields is unset!') unless @fields + end + + ::Thrift::Struct.generate_accessors self +end + +class GetSchemaRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + DBNAME = 1 + TBLNAME = 2 + ENVCONTEXT = 3 + VALIDWRITEIDLIST = 4 + TABLEID = 5 + + FIELDS = { + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, + TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, + ENVCONTEXT => {:type => ::Thrift::Types::STRUCT, :name => 'envContext', :class => ::EnvironmentContext, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, + TABLEID => {:type => ::Thrift::Types::I64, :name => 'tableId', :default => -1, :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName + end + + ::Thrift::Struct.generate_accessors self +end + +class GetSchemaResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + FIELDS = 1 + + FIELDS = { + FIELDS => {:type => ::Thrift::Types::LIST, :name => 'fields', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fields is unset!') unless @fields + end + + ::Thrift::Struct.generate_accessors self +end + +class GetPartitionRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + DBNAME = 1 + TBLNAME = 2 + PARTVALS = 3 + VALIDWRITEIDLIST = 4 + TABLEID = 5 + + FIELDS = { + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, + TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, + PARTVALS => {:type => ::Thrift::Types::LIST, :name => 'partVals', :element => {:type => ::Thrift::Types::STRING}}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, + TABLEID => {:type => ::Thrift::Types::I64, :name => 'tableId', :default => -1, :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partVals is unset!') unless @partVals + end + + ::Thrift::Struct.generate_accessors self +end + +class GetPartitionResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + PARTITION = 1 + + FIELDS = { + PARTITION => {:type => ::Thrift::Types::STRUCT, :name => 'partition', :class => ::Partition} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partition is unset!') unless @partition + end + + ::Thrift::Struct.generate_accessors self +end + +class PartitionsRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + DBNAME = 1 + TBLNAME = 2 + MAXPARTS = 3 + VALIDWRITEIDLIST = 4 + TABLEID = 5 + + FIELDS = { + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, + TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, + MAXPARTS => {:type => ::Thrift::Types::I16, :name => 'maxParts', :default => -1, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, + TABLEID => {:type => ::Thrift::Types::I64, :name => 'tableId', :default => -1, :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName + end + + ::Thrift::Struct.generate_accessors self +end + +class PartitionsResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + PARTITIONS = 1 + + FIELDS = { + PARTITIONS => {:type => ::Thrift::Types::LIST, :name => 'partitions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partitions is unset!') unless @partitions + end + + ::Thrift::Struct.generate_accessors self +end + +class GetPartitionNamesPsRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + DBNAME = 1 + TBLNAME = 2 + PARTVALUES = 3 + MAXPARTS = 4 + VALIDWRITEIDLIST = 5 + TABLEID = 6 + + FIELDS = { + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, + TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, + PARTVALUES => {:type => ::Thrift::Types::LIST, :name => 'partValues', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + MAXPARTS => {:type => ::Thrift::Types::I16, :name => 'maxParts', :default => -1, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, + TABLEID => {:type => ::Thrift::Types::I64, :name => 'tableId', :default => -1, :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName + end + + ::Thrift::Struct.generate_accessors self +end + +class GetPartitionNamesPsResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + NAMES = 1 + + FIELDS = { + NAMES => {:type => ::Thrift::Types::LIST, :name => 'names', :element => {:type => ::Thrift::Types::STRING}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field names is unset!') unless @names + end + + ::Thrift::Struct.generate_accessors self +end + +class GetPartitionsPsWithAuthRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + DBNAME = 1 + TBLNAME = 2 + PARTVALS = 3 + MAXPARTS = 4 + USERNAME = 5 + GROUPNAMES = 6 + VALIDWRITEIDLIST = 7 + TABLEID = 8 + + FIELDS = { + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, + TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, + PARTVALS => {:type => ::Thrift::Types::LIST, :name => 'partVals', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + MAXPARTS => {:type => ::Thrift::Types::I16, :name => 'maxParts', :default => -1, :optional => true}, + USERNAME => {:type => ::Thrift::Types::STRING, :name => 'userName', :optional => true}, + GROUPNAMES => {:type => ::Thrift::Types::LIST, :name => 'groupNames', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, + TABLEID => {:type => ::Thrift::Types::I64, :name => 'tableId', :default => -1, :optional => true} } def struct_fields; FIELDS; end def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName + end + + ::Thrift::Struct.generate_accessors self +end + +class GetPartitionsPsWithAuthResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + PARTITIONS = 1 + + FIELDS = { + PARTITIONS => {:type => ::Thrift::Types::LIST, :name => 'partitions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partitions is unset!') unless @partitions end ::Thrift::Struct.generate_accessors self diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index ebb22c0646..b3f1df43a5 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -347,6 +347,24 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_fields_with_environment_context failed: unknown result') end + def get_fields_req(req) + send_get_fields_req(req) + return recv_get_fields_req() + end + + def send_get_fields_req(req) + send_message('get_fields_req', Get_fields_req_args, :req => req) + end + + def recv_get_fields_req() + result = receive_message(Get_fields_req_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise result.o3 unless result.o3.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_fields_req failed: unknown result') + end + def get_schema(db_name, table_name) send_get_schema(db_name, table_name) return recv_get_schema() @@ -383,6 +401,24 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_schema_with_environment_context failed: unknown result') end + def get_schema_req(req) + send_get_schema_req(req) + return recv_get_schema_req() + end + + def send_get_schema_req(req) + send_message('get_schema_req', Get_schema_req_args, :req => req) + end + + def recv_get_schema_req() + result = receive_message(Get_schema_req_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise result.o3 unless result.o3.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_schema_req failed: unknown result') + end + def create_table(tbl) send_create_table(tbl) recv_create_table() @@ -1191,6 +1227,23 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition failed: unknown result') end + def get_partition_req(req) + send_get_partition_req(req) + return recv_get_partition_req() + end + + def send_get_partition_req(req) + send_message('get_partition_req', Get_partition_req_args, :req => req) + end + + def recv_get_partition_req() + result = receive_message(Get_partition_req_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_req failed: unknown result') + end + def exchange_partition(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name) send_exchange_partition(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name) return recv_exchange_partition() @@ -1280,6 +1333,23 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions failed: unknown result') end + def get_partitions_req(req) + send_get_partitions_req(req) + return recv_get_partitions_req() + end + + def send_get_partitions_req(req) + send_message('get_partitions_req', Get_partitions_req_args, :req => req) + end + + def recv_get_partitions_req() + result = receive_message(Get_partitions_req_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_req failed: unknown result') + end + def get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names) send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names) return recv_get_partitions_with_auth() @@ -1382,6 +1452,23 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_ps_with_auth failed: unknown result') end + def get_partitions_ps_with_auth_req(req) + send_get_partitions_ps_with_auth_req(req) + return recv_get_partitions_ps_with_auth_req() + end + + def send_get_partitions_ps_with_auth_req(req) + send_message('get_partitions_ps_with_auth_req', Get_partitions_ps_with_auth_req_args, :req => req) + end + + def recv_get_partitions_ps_with_auth_req() + result = receive_message(Get_partitions_ps_with_auth_req_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_ps_with_auth_req failed: unknown result') + end + def get_partition_names_ps(db_name, tbl_name, part_vals, max_parts) send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts) return recv_get_partition_names_ps() @@ -1399,6 +1486,23 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names_ps failed: unknown result') end + def get_partition_names_ps_req(req) + send_get_partition_names_ps_req(req) + return recv_get_partition_names_ps_req() + end + + def send_get_partition_names_ps_req(req) + send_message('get_partition_names_ps_req', Get_partition_names_ps_req_args, :req => req) + end + + def recv_get_partition_names_ps_req() + result = receive_message(Get_partition_names_ps_req_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names_ps_req failed: unknown result') + end + def get_partition_names_req(req) send_get_partition_names_req(req) return recv_get_partition_names_req() @@ -4150,6 +4254,21 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_fields_with_environment_context', seqid) end + def process_get_fields_req(seqid, iprot, oprot) + args = read_args(iprot, Get_fields_req_args) + result = Get_fields_req_result.new() + begin + result.success = @handler.get_fields_req(args.req) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::UnknownTableException => o2 + result.o2 = o2 + rescue ::UnknownDBException => o3 + result.o3 = o3 + end + write_result(result, oprot, 'get_fields_req', seqid) + end + def process_get_schema(seqid, iprot, oprot) args = read_args(iprot, Get_schema_args) result = Get_schema_result.new() @@ -4180,6 +4299,21 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_schema_with_environment_context', seqid) end + def process_get_schema_req(seqid, iprot, oprot) + args = read_args(iprot, Get_schema_req_args) + result = Get_schema_req_result.new() + begin + result.success = @handler.get_schema_req(args.req) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::UnknownTableException => o2 + result.o2 = o2 + rescue ::UnknownDBException => o3 + result.o3 = o3 + end + write_result(result, oprot, 'get_schema_req', seqid) + end + def process_create_table(seqid, iprot, oprot) args = read_args(iprot, Create_table_args) result = Create_table_result.new() @@ -4822,6 +4956,19 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_partition', seqid) end + def process_get_partition_req(seqid, iprot, oprot) + args = read_args(iprot, Get_partition_req_args) + result = Get_partition_req_result.new() + begin + result.success = @handler.get_partition_req(args.req) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::NoSuchObjectException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_partition_req', seqid) + end + def process_exchange_partition(seqid, iprot, oprot) args = read_args(iprot, Exchange_partition_args) result = Exchange_partition_result.new() @@ -4895,6 +5042,19 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_partitions', seqid) end + def process_get_partitions_req(seqid, iprot, oprot) + args = read_args(iprot, Get_partitions_req_args) + result = Get_partitions_req_result.new() + begin + result.success = @handler.get_partitions_req(args.req) + rescue ::NoSuchObjectException => o1 + result.o1 = o1 + rescue ::MetaException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_partitions_req', seqid) + end + def process_get_partitions_with_auth(seqid, iprot, oprot) args = read_args(iprot, Get_partitions_with_auth_args) result = Get_partitions_with_auth_result.new() @@ -4973,6 +5133,19 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_partitions_ps_with_auth', seqid) end + def process_get_partitions_ps_with_auth_req(seqid, iprot, oprot) + args = read_args(iprot, Get_partitions_ps_with_auth_req_args) + result = Get_partitions_ps_with_auth_req_result.new() + begin + result.success = @handler.get_partitions_ps_with_auth_req(args.req) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::NoSuchObjectException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_partitions_ps_with_auth_req', seqid) + end + def process_get_partition_names_ps(seqid, iprot, oprot) args = read_args(iprot, Get_partition_names_ps_args) result = Get_partition_names_ps_result.new() @@ -4986,6 +5159,19 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_partition_names_ps', seqid) end + def process_get_partition_names_ps_req(seqid, iprot, oprot) + args = read_args(iprot, Get_partition_names_ps_req_args) + result = Get_partition_names_ps_req_result.new() + begin + result.success = @handler.get_partition_names_ps_req(args.req) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::NoSuchObjectException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_partition_names_ps_req', seqid) + end + def process_get_partition_names_req(seqid, iprot, oprot) args = read_args(iprot, Get_partition_names_req_args) result = Get_partition_names_req_result.new() @@ -7515,6 +7701,44 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_fields_req_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::GetFieldsRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_fields_req_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + O3 = 3 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetFieldsResponse}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::UnknownTableException}, + O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::UnknownDBException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_schema_args include ::Thrift::Struct, ::Thrift::Struct_Union DB_NAME = 1 @@ -7597,6 +7821,44 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_schema_req_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::GetSchemaRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_schema_req_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + O3 = 3 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetSchemaResponse}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::UnknownTableException}, + O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::UnknownDBException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Create_table_args include ::Thrift::Struct, ::Thrift::Struct_Union TBL = 1 @@ -9432,6 +9694,42 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_partition_req_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::GetPartitionRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_partition_req_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetPartitionResponse}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Exchange_partition_args include ::Thrift::Struct, ::Thrift::Struct_Union PARTITIONSPECS = 1 @@ -9652,6 +9950,42 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_partitions_req_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::PartitionsRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_partitions_req_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::PartitionsResponse}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_partitions_with_auth_args include ::Thrift::Struct, ::Thrift::Struct_Union DB_NAME = 1 @@ -9900,6 +10234,42 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_partitions_ps_with_auth_req_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::GetPartitionsPsWithAuthRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_partitions_ps_with_auth_req_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetPartitionsPsWithAuthResponse}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_partition_names_ps_args include ::Thrift::Struct, ::Thrift::Struct_Union DB_NAME = 1 @@ -9942,6 +10312,42 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_partition_names_ps_req_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::GetPartitionNamesPsRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_partition_names_ps_req_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetPartitionNamesPsResponse}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_partition_names_req_args include ::Thrift::Struct, ::Thrift::Struct_Union REQ = 1 diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index c120ebc7e9..0efd87abb3 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -57,7 +57,9 @@ import org.apache.hadoop.classification.InterfaceStability; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.common.StatsSetupConst; +import org.apache.hadoop.hive.common.TableName; import org.apache.hadoop.hive.common.ValidTxnList; +import org.apache.hadoop.hive.common.ValidTxnWriteIdList; import org.apache.hadoop.hive.common.ValidWriteIdList; import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.conf.MetastoreConf; @@ -142,6 +144,9 @@ private static String[] processorCapabilities; private static String processorIdentifier; + private ValidTxnWriteIdList txnWriteIdList; + private long tableId; + //copied from ErrorMsg.java private static final String REPL_EVENTS_MISSING_IN_METASTORE = "Notification events are missing in the meta store."; @@ -1808,7 +1813,7 @@ public PartitionSpecProxy listPartitionSpecs(String dbName, String tableName, in public PartitionSpecProxy listPartitionSpecs(String catName, String dbName, String tableName, int maxParts) throws TException { List partitionSpecs = - client.get_partitions_pspec(prependCatalogToDbName(catName, dbName, conf), tableName, maxParts); + client.get_partitions_pspec(prependCatalogToDbName(catName, dbName, conf), tableName, maxParts); partitionSpecs = FilterUtils.filterPartitionSpecsIfEnabled(isClientFilterEnabled, filterHook, partitionSpecs); return PartitionSpecProxy.Factory.get(partitionSpecs); } @@ -1838,6 +1843,15 @@ public PartitionSpecProxy listPartitionSpecs(String catName, String dbName, Stri group_names); } + @Override + public GetPartitionsPsWithAuthResponse listPartitionsWithAuthInfoRequest(GetPartitionsPsWithAuthRequest req) throws MetaException, TException, NoSuchObjectException { + req.setValidWriteIdList(getValidWriteIdList(TableName.getDbTable(req.getDbName(), req.getTblName()))); + GetPartitionsPsWithAuthResponse res = client.get_partitions_ps_with_auth_req(req); + List parts = deepCopyPartitions(FilterUtils.filterPartitionsIfEnabled(isClientFilterEnabled, filterHook, res.getPartitions())); + res.setPartitions(parts); + return res; + } + @Override public List listPartitionsWithAuthInfo(String catName, String dbName, String tableName, int maxParts, String userName, @@ -1923,6 +1937,7 @@ public boolean listPartitionsByExpr(String catName, String db_name, String tbl_n if (max_parts >= 0) { req.setMaxParts(shrinkMaxtoShort(max_parts)); } + req.setValidWriteIdList(getValidWriteIdList(TableName.getDbTable(db_name, tbl_name))); PartitionsByExprResult r; try { r = client.get_partitions_by_expr(req); @@ -2012,6 +2027,16 @@ public Partition getPartition(String db_name, String tbl_name, List part return getPartition(getDefaultCatalog(conf), db_name, tbl_name, part_vals); } + @Override + public GetPartitionResponse getPartitionRequest(GetPartitionRequest req) + throws NoSuchObjectException, MetaException, TException { + req.setValidWriteIdList(getValidWriteIdList(TableName.getDbTable(req.getDbName(), req.getTblName()))); + GetPartitionResponse res = client.get_partition_req(req); + res.setPartition(deepCopy( + FilterUtils.filterPartitionIfEnabled(isClientFilterEnabled, filterHook, res.getPartition()))); + return res; + } + @Override public Partition getPartition(String catName, String dbName, String tblName, List partVals) throws TException { @@ -2025,6 +2050,17 @@ public Partition getPartition(String catName, String dbName, String tblName, return getPartitionsByNames(getDefaultCatalog(conf), db_name, tbl_name, part_names); } + @Override + public PartitionsResponse getPartitionsRequest(PartitionsRequest req) throws NoSuchObjectException, MetaException, TException { + + req.setValidWriteIdList(getValidWriteIdList(TableName.getDbTable(req.getDbName(), req.getTblName()))); + PartitionsResponse res = client.get_partitions_req(req); + List parts = deepCopyPartitions( + FilterUtils.filterPartitionsIfEnabled(isClientFilterEnabled, filterHook, res.getPartitions())); + res.setPartitions(parts); + return res; + } + @Override public List getPartitionsByNames(String db_name, String tbl_name, List part_names, boolean getColStats, String engine) @@ -2047,6 +2083,7 @@ public Partition getPartition(String catName, String dbName, String tblName, tbl_name); gpbnr.setNames(part_names); gpbnr.setGet_col_stats(getColStats); + gpbnr.setValidWriteIdList(getValidWriteIdList(TableName.getDbTable(db_name, tbl_name))); if (getColStats) { gpbnr.setEngine(engine); } @@ -2054,7 +2091,6 @@ public Partition getPartition(String catName, String dbName, String tblName, gpbnr.setProcessorCapabilities(new ArrayList(Arrays.asList(processorCapabilities))); if (processorIdentifier != null) gpbnr.setProcessorIdentifier(processorIdentifier); - List parts = client.get_partitions_by_names_req(gpbnr).getPartitions(); return deepCopyPartitions(FilterUtils.filterPartitionsIfEnabled(isClientFilterEnabled, filterHook, parts)); } @@ -2112,6 +2148,7 @@ public Table getTable(String catName, String dbName, String tableName, req.setCatName(catName); req.setCapabilities(version); req.setGetColumnStats(getColumnStats); + req.setValidWriteIdList(getValidWriteIdList(TableName.getDbTable(dbName, tableName))); if (getColumnStats) { req.setEngine(engine); } @@ -2138,6 +2175,7 @@ public Table getTable(String catName, String dbName, String tableName, String va req.setCapabilities(version); req.setValidWriteIdList(validWriteIdList); req.setGetColumnStats(getColumnStats); + req.setValidWriteIdList(getValidWriteIdList(TableName.getDbTable(dbName, tableName))); if (getColumnStats) { req.setEngine(engine); } @@ -2348,6 +2386,7 @@ public boolean tableExists(String catName, String dbName, String tableName) thro GetTableRequest req = new GetTableRequest(dbName, tableName); req.setCatName(catName); req.setCapabilities(version); + req.setValidWriteIdList(getValidWriteIdList(TableName.getDbTable(dbName, tableName))); Table table = client.get_table_req(req).getTable(); return FilterUtils.filterTableIfEnabled(isClientFilterEnabled, filterHook, table) != null; } catch (NoSuchObjectException e) { @@ -2361,6 +2400,18 @@ public boolean tableExists(String catName, String dbName, String tableName) thro return listPartitionNames(getDefaultCatalog(conf), dbName, tblName, max); } + @Override + public GetPartitionNamesPsResponse listPartitionNamesRequest(GetPartitionNamesPsRequest req) + throws NoSuchObjectException, MetaException, TException { + req.setValidWriteIdList(getValidWriteIdList(TableName.getDbTable(req.getDbName(), req.getTblName()))); + GetPartitionNamesPsResponse res = client.get_partition_names_ps_req(req); + List partNames = FilterUtils.filterPartitionNamesIfEnabled( + isClientFilterEnabled, filterHook, getDefaultCatalog(conf), req.getDbName(), + req.getTblName(), res.getNames()); + res.setNames(partNames); + return res; + } + @Override public List listPartitionNames(String catName, String dbName, String tableName, int maxParts) throws TException { @@ -2517,6 +2568,11 @@ public void alterDatabase(String catName, String dbName, Database newDb) throws return deepCopyFieldSchemas(fields); } + @Override + public GetFieldsResponse getFieldsRequest(GetFieldsRequest req) throws MetaException, TException, UnknownTableException, UnknownDBException { + return client.get_fields_req(req); + } + @Override public List getPrimaryKeys(PrimaryKeysRequest req) throws TException { if (!req.isSetCatName()) { @@ -2635,6 +2691,7 @@ public void flushCache() { TableStatsRequest rqst = new TableStatsRequest(dbName, tableName, colNames, engine); rqst.setCatName(catName); rqst.setEngine(engine); + rqst.setValidWriteIdList(getValidWriteIdList(TableName.getDbTable(dbName, tableName))); return client.get_table_statistics_req(rqst).getTableStats(); } @@ -2672,6 +2729,7 @@ public void flushCache() { PartitionsStatsRequest rqst = new PartitionsStatsRequest(dbName, tableName, colNames, partNames, engine); rqst.setCatName(catName); + rqst.setValidWriteIdList(getValidWriteIdList(TableName.getDbTable(dbName, tableName))); return client.get_partitions_statistics_req(rqst).getPartStats(); } @@ -2722,6 +2780,19 @@ public boolean deleteTableColumnStatistics(String catName, String dbName, String return deepCopyFieldSchemas(fields); } + @Override + public GetSchemaResponse getSchemaRequest(GetSchemaRequest req) throws MetaException, TException, UnknownTableException, UnknownDBException { + EnvironmentContext envCxt = null; + String addedJars = MetastoreConf.getVar(conf, ConfVars.ADDED_JARS); + if (org.apache.commons.lang3.StringUtils.isNotBlank(addedJars)) { + Map props = new HashMap<>(); + props.put("hive.added.jars.path", addedJars); + envCxt = new EnvironmentContext(props); + req.setEnvContext(envCxt); + } + return client.get_schema_req(req); + } + @Override public String getConfigValue(String name, String defaultValue) throws TException, ConfigValSecurityException { @@ -3677,6 +3748,7 @@ public AggrStats getAggrColStatsFor(String catName, String dbName, String tblNam } PartitionsStatsRequest req = new PartitionsStatsRequest(dbName, tblName, colNames, partNames, engine); req.setCatName(catName); + req.setValidWriteIdList(getValidWriteIdList(TableName.getDbTable(dbName, tblName))); return client.get_aggr_stats_for(req); } @@ -4071,6 +4143,23 @@ public SerDeInfo getSerDe(String serDeName) throws TException { return client.get_serde(new GetSerdeRequest(serDeName)); } + private String getValidWriteIdList(String fullTableName) { + if (conf.get(ValidTxnWriteIdList.VALID_TABLES_WRITEIDS_KEY) == null) + return null; + + ValidTxnWriteIdList validTxnWriteIdList = new ValidTxnWriteIdList(conf.get(ValidTxnWriteIdList.VALID_TABLES_WRITEIDS_KEY)); + ValidWriteIdList writeIdList = validTxnWriteIdList.getTableValidWriteIdList(fullTableName); + return writeIdList!=null?writeIdList.toString():null; + } + + private String getValidTxnWriteIdList(String fullTableName) { + if (conf.get(ValidTxnWriteIdList.VALID_TABLES_WRITEIDS_KEY) == null) + return null; + + ValidTxnWriteIdList validTxnWriteIdList = new ValidTxnWriteIdList(conf.get(ValidTxnWriteIdList.VALID_TABLES_WRITEIDS_KEY)); + return validTxnWriteIdList!=null?validTxnWriteIdList.toString():null; + } + private short shrinkMaxtoShort(int max) { if (max < 0) { return -1; diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 23071643a0..158e1f1d2b 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -30,6 +30,7 @@ import org.apache.hadoop.classification.InterfaceStability; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.common.ValidTxnList; +import org.apache.hadoop.hive.common.ValidTxnWriteIdList; import org.apache.hadoop.hive.common.ValidWriteIdList; import org.apache.hadoop.hive.common.classification.RetrySemantics; import org.apache.hadoop.hive.metastore.annotation.NoReconnect; @@ -912,16 +913,27 @@ Partition getPartition(String dbName, String tblName, List partVals) /** * Get a partition. - * @param catName catalog name - * @param dbName database name - * @param tblName table name - * @param partVals partition values for this partition, must be in the same order as the - * partition keys of the table. - * @return the partition object + * @param req + * @return GetPartitionResponse * @throws NoSuchObjectException no such partition * @throws MetaException error access the RDBMS. * @throws TException thrift transport error */ + GetPartitionResponse getPartitionRequest(GetPartitionRequest req) + throws NoSuchObjectException, MetaException, TException; + + /** + * Get a partition. + * @param catName catalog name + * @param dbName database name + * @param tblName table name + * @param partVals partition values for this partition, must be in the same order as the + * partition keys of the table. + * @return the partition object + * @throws NoSuchObjectException no such partition + * @throws MetaException error access the RDBMS. + * @throws TException thrift transport error + */ Partition getPartition(String catName, String dbName, String tblName, List partVals) throws NoSuchObjectException, MetaException, TException; @@ -1161,6 +1173,17 @@ PartitionSpecProxy listPartitionSpecs(String catName, String dbName, String tabl List listPartitionNames(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, TException; + /** + * List Names of partitions in a table. + * @param req + * @return GetPartitionNamesPsResponse + * @throws NoSuchObjectException No such table. + * @throws MetaException Error accessing the RDBMS. + * @throws TException thrift transport error + */ + GetPartitionNamesPsResponse listPartitionNamesRequest(GetPartitionNamesPsRequest req) + throws NoSuchObjectException, MetaException, TException; + /** * List Names of partitions in a table. * @param catName catalog name. @@ -1428,6 +1451,17 @@ boolean listPartitionsByExpr(String catName, String db_name, String tbl_name, by String tableName, short maxParts, String userName, List groupNames) throws MetaException, TException, NoSuchObjectException; + /** + * List partitions, fetching the authorization information along with the partitions. + * @param req + * @return GetPartitionsPsWithAuthResponse + * @throws NoSuchObjectException no partitions matching the criteria were found + * @throws MetaException error accessing the RDBMS + * @throws TException thrift transport error + */ + GetPartitionsPsWithAuthResponse listPartitionsWithAuthInfoRequest(GetPartitionsPsWithAuthRequest req) + throws MetaException, TException, NoSuchObjectException; + /** * List partitions, fetching the authorization information along with the partitions. * @param catName catalog name @@ -1458,6 +1492,17 @@ boolean listPartitionsByExpr(String catName, String db_name, String tbl_name, by List getPartitionsByNames(String db_name, String tbl_name, List part_names) throws NoSuchObjectException, MetaException, TException; + /** + * Get partitions by a list of partition names. + * @param req + * @return PartitionsResponse + * @throws NoSuchObjectException No such partitions + * @throws MetaException error accessing the RDBMS. + * @throws TException thrift transport error + */ + PartitionsResponse getPartitionsRequest(PartitionsRequest req) + throws NoSuchObjectException, MetaException, TException; + /** * Get partitions by a list of partition names. * @param db_name database name @@ -1466,7 +1511,7 @@ boolean listPartitionsByExpr(String catName, String db_name, String tbl_name, by * @param getColStats if true include statistics in the Partition object * @param engine engine sending the request * @return list of Partition objects - * @throws NoSuchObjectException No such partitions + * @throws NoSuchObjectException No such partitionscatName * @throws MetaException error accessing the RDBMS. * @throws TException thrift transport error */ @@ -2345,6 +2390,19 @@ void renamePartition(String catName, String dbname, String tableName, List colNames 4: optional string catName, 5: optional string validWriteIdList, // valid write id list for the table for which this struct is being sent - 6: required string engine //engine creating the current request + 6: required string engine, //engine creating the current request + 7: optional i64 tableId=-1 // writeId for the current query } struct PartitionsStatsRequest { @@ -861,6 +864,7 @@ struct PartitionValuesRequest { 7: optional bool ascending = true; 8: optional i64 maxParts = -1; 9: optional string catName + 10: optional string validWriteIdList } struct PartitionValuesRow { @@ -879,6 +883,7 @@ struct GetPartitionsByNamesRequest { 5: optional list processorCapabilities, 6: optional string processorIdentifier, 7: optional string engine + 8: optional string validWriteIdList } struct GetPartitionsByNamesResult { @@ -1398,7 +1403,8 @@ struct GetTableRequest { 7: optional bool getColumnStats, 8: optional list processorCapabilities, 9: optional string processorIdentifier, - 10: optional string engine + 10: optional string engine, + 11: optional i64 tableId=-1 // writeId for the current query } struct GetTableResult { @@ -1941,6 +1947,83 @@ struct GetPartitionsRequest { 8: GetPartitionsFilterSpec filterSpec, // TODO not yet implemented. Must be present but ignored 9: optional list processorCapabilities, 10: optional string processorIdentifier + 11: optional string validWriteIdList +} + +struct GetFieldsRequest { + 1: required string dbName, + 2: required string tblName, + 3: optional EnvironmentContext envContext, + 4: optional string validWriteIdList, + 5: optional i64 tableId=-1 // writeId for the current query +} + +struct GetFieldsResponse { + 1: required list fields +} + +struct GetSchemaRequest { + 1: required string dbName, + 2: required string tblName, + 3: optional EnvironmentContext envContext, + 4: optional string validWriteIdList, + 5: optional i64 tableId=-1 // writeId for the current query +} + +struct GetSchemaResponse { + 1: required list fields +} + +struct GetPartitionRequest { + 1: required string dbName, + 2: required string tblName, + 3: required list partVals, + 4: optional string validWriteIdList, + 5: optional i64 tableId=-1 // writeId for the current query +} + +struct GetPartitionResponse { + 1: required Partition partition +} + +struct PartitionsRequest { // Not using Get prefix as that name is already used for a different method + 1: required string dbName, + 2: required string tblName, + 3: optional i16 maxParts=-1, + 4: optional string validWriteIdList, + 5: optional i64 tableId=-1 // writeId for the current query +} + +struct PartitionsResponse { // Not using Get prefix as that name is already used for a different method + 1: required list partitions +} + +struct GetPartitionNamesPsRequest { + 1: required string dbName, + 2: required string tblName, + 3: optional list partValues, + 4: optional i16 maxParts=-1, + 5: optional string validWriteIdList, + 6: optional i64 tableId=-1 // writeId for the current query +} + +struct GetPartitionNamesPsResponse { + 1: required list names +} + +struct GetPartitionsPsWithAuthRequest { + 1: required string dbName, + 2: required string tblName, + 3: optional list partVals, + 4: optional i16 maxParts=-1, + 5: optional string userName, + 6: optional list groupNames, + 7: optional string validWriteIdList, + 8: optional i64 tableId=-1 // writeId for the current query +} + +struct GetPartitionsPsWithAuthResponse { + 1: required list partitions } // Exceptions. @@ -2036,12 +2119,18 @@ service ThriftHiveMetastore extends fb303.FacebookService throws(1:MetaException o2) // Gets a list of FieldSchemas describing the columns of a particular table - list get_fields(1: string db_name, 2: string table_name) throws (1: MetaException o1, 2: UnknownTableException o2, 3: UnknownDBException o3), - list get_fields_with_environment_context(1: string db_name, 2: string table_name, 3:EnvironmentContext environment_context) throws (1: MetaException o1, 2: UnknownTableException o2, 3: UnknownDBException o3) + list get_fields(1:string db_name, 2:string table_name) throws(1:MetaException o1, 2:UnknownTableException o2, 3:UnknownDBException o3) + list get_fields_with_environment_context(1:string db_name, 2:string table_name, 3:EnvironmentContext environment_context) throws(1:MetaException o1, 2:UnknownTableException o2, 3:UnknownDBException o3) + + GetFieldsResponse get_fields_req(1: GetFieldsRequest req) + throws(1:MetaException o1, 2:UnknownTableException o2, 3:UnknownDBException o3) // Gets a list of FieldSchemas describing both the columns and the partition keys of a particular table - list get_schema(1: string db_name, 2: string table_name) throws (1: MetaException o1, 2: UnknownTableException o2, 3: UnknownDBException o3) - list get_schema_with_environment_context(1: string db_name, 2: string table_name, 3:EnvironmentContext environment_context) throws (1: MetaException o1, 2: UnknownTableException o2, 3: UnknownDBException o3) + list get_schema(1:string db_name, 2:string table_name) throws(1:MetaException o1, 2: UnknownTableException o2, 3: UnknownDBException o3) + list get_schema_with_environment_context(1:string db_name, 2:string table_name, 3:EnvironmentContext environment_context) throws(1:MetaException o1, 2:UnknownTableException o2, 3:UnknownDBException o3) + + GetSchemaResponse get_schema_req(1: GetSchemaRequest req) + throws(1:MetaException o1, 2:UnknownTableException o2, 3:UnknownDBException o3) // create a Hive table. Following fields must be set // tableName @@ -2203,6 +2292,8 @@ service ThriftHiveMetastore extends fb303.FacebookService Partition get_partition(1:string db_name, 2:string tbl_name, 3:list part_vals) throws(1:MetaException o1, 2:NoSuchObjectException o2) + GetPartitionResponse get_partition_req(1: GetPartitionRequest req) + throws(1:MetaException o1, 2:NoSuchObjectException o2) Partition exchange_partition(1:map partitionSpecs, 2:string source_db, 3:string source_table_name, 4:string dest_db, 5:string dest_table_name) throws(1:MetaException o1, 2:NoSuchObjectException o2, 3:InvalidObjectException o3, @@ -2223,6 +2314,8 @@ service ThriftHiveMetastore extends fb303.FacebookService // If max parts is given then it will return only that many. list get_partitions(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1) throws(1:NoSuchObjectException o1, 2:MetaException o2) +PartitionsResponse get_partitions_req(1:PartitionsRequest req) + throws(1:NoSuchObjectException o1, 2:MetaException o2) list get_partitions_with_auth(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1, 4: string user_name, 5: list group_names) throws(1:NoSuchObjectException o1, 2:MetaException o2) @@ -2246,10 +2339,14 @@ service ThriftHiveMetastore extends fb303.FacebookService throws(1:MetaException o1, 2:NoSuchObjectException o2) list get_partitions_ps_with_auth(1:string db_name, 2:string tbl_name, 3:list part_vals, 4:i16 max_parts=-1, 5: string user_name, 6: list group_names) throws(1:NoSuchObjectException o1, 2:MetaException o2) + GetPartitionsPsWithAuthResponse get_partitions_ps_with_auth_req(1:GetPartitionsPsWithAuthRequest req) + throws(1:MetaException o1, 2:NoSuchObjectException o2) list get_partition_names_ps(1:string db_name, 2:string tbl_name, 3:list part_vals, 4:i16 max_parts=-1) throws(1:MetaException o1, 2:NoSuchObjectException o2) + GetPartitionNamesPsResponse get_partition_names_ps_req(1:GetPartitionNamesPsRequest req) + throws(1:MetaException o1, 2:NoSuchObjectException o2) list get_partition_names_req(1:PartitionsByExprRequest req) throws(1:MetaException o1, 2:NoSuchObjectException o2) diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index e20fdaf03d..07df6a4c43 100644 --- standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -2763,7 +2763,7 @@ private boolean drop_table_core(final RawStore ms, final String catName, final S isReplicated = isDbReplicationTarget(db); // drop any partitions - tbl = get_table_core(catName, dbname, name); + tbl = get_table_core(catName, dbname, name, null); if (tbl == null) { throw new NoSuchObjectException(name + " doesn't exist"); } @@ -5031,6 +5031,7 @@ public boolean drop_partition_with_environment_context(final String db_name, } @Override + @Deprecated public Partition get_partition(final String db_name, final String tbl_name, final List part_vals) throws MetaException, NoSuchObjectException { String[] parsedDbName = parseDbName(db_name, conf); @@ -5053,6 +5054,15 @@ public Partition get_partition(final String db_name, final String tbl_name, return ret; } + @Override + public GetPartitionResponse get_partition_req(GetPartitionRequest req) throws MetaException, NoSuchObjectException, TException { + //TODO: Move the logic from get_partition to here, as that method is getting deprecated + Partition p = get_partition(req.getDbName(), req.getTblName(), req.getPartVals()); + GetPartitionResponse res = new GetPartitionResponse(); + res.setPartition(p); + return res; + } + /** * Fire a pre-event for read table operation, if there are any * pre-event listeners registered @@ -5063,7 +5073,7 @@ private void fireReadTablePreEvent(String catName, String dbName, String tblName Supplier
tableSupplier = Suppliers.memoize(new Supplier
() { @Override public Table get() { try { - Table t = getMS().getTable(catName, dbName, tblName); + Table t = getMS().getTable(catName, dbName, tblName, null); if (t == null) { throw new NoSuchObjectException(TableName.getQualified(catName, dbName, tblName) + " table not found"); @@ -5079,6 +5089,7 @@ private void fireReadTablePreEvent(String catName, String dbName, String tblName } @Override + @Deprecated public Partition get_partition_with_auth(final String db_name, final String tbl_name, final List part_vals, final String user_name, final List group_names) @@ -5108,6 +5119,7 @@ public Partition get_partition_with_auth(final String db_name, } @Override + @Deprecated public List get_partitions(final String db_name, final String tbl_name, final short max_parts) throws NoSuchObjectException, MetaException { String[] parsedDbName = parseDbName(db_name, conf); @@ -5135,6 +5147,15 @@ public Partition get_partition_with_auth(final String db_name, } @Override + public PartitionsResponse get_partitions_req(PartitionsRequest req) throws NoSuchObjectException, MetaException, TException { + List partitions = get_partitions(req.getDbName(),req.getTblName(),req.getMaxParts()); + PartitionsResponse res = new PartitionsResponse(); + res.setPartitions(partitions); + return res; + } + + @Override + @Deprecated public List get_partitions_with_auth(final String dbName, final String tblName, final short maxParts, final String userName, final List groupNames) throws TException { @@ -5201,6 +5222,7 @@ private void checkLimitNumberOfPartitions(String tblName, int numPartitions, int } @Override + @Deprecated public List get_partitions_pspec(final String db_name, final String tbl_name, final int max_parts) throws NoSuchObjectException, MetaException { @@ -5289,6 +5311,7 @@ private static boolean is_partition_spec_grouping_enabled(Table table) { } @Override + @Deprecated public List get_partition_names(final String db_name, final String tbl_name, final short max_parts) throws NoSuchObjectException, MetaException { String[] parsedDbName = parseDbName(db_name, conf); @@ -5630,7 +5653,7 @@ private void alter_table_core(String catName, String dbname, String name, Table boolean success = false; Exception ex = null; try { - Table oldt = get_table_core(catName, dbname, name); + Table oldt = get_table_core(catName, dbname, name, null); if (transformer != null && !isInTest) { newTable = transformer.transformAlterTable(newTable, processorCapabilities, processorId); } @@ -5789,12 +5812,14 @@ private void alter_table_core(String catName, String dbname, String name, Table } @Override + @Deprecated public List get_fields(String db, String tableName) throws MetaException, UnknownTableException, UnknownDBException { return get_fields_with_environment_context(db, tableName, null); } @Override + @Deprecated public List get_fields_with_environment_context(String db, String tableName, final EnvironmentContext envContext) throws MetaException, UnknownTableException, UnknownDBException { @@ -5839,6 +5864,14 @@ private void alter_table_core(String catName, String dbname, String name, Table return ret; } + @Override + public GetFieldsResponse get_fields_req(GetFieldsRequest req) throws MetaException, UnknownTableException, UnknownDBException, TException { + List fields = get_fields_with_environment_context(req.getDbName(), req.getTblName(), req.getEnvContext()); + GetFieldsResponse res = new GetFieldsResponse(); + res.setFields(fields); + return res; + } + private StorageSchemaReader getStorageSchemaReader() throws MetaException { if (storageSchemaReader == null) { String className = @@ -5869,6 +5902,7 @@ private StorageSchemaReader getStorageSchemaReader() throws MetaException { * @throws UnknownDBException */ @Override + @Deprecated public List get_schema(String db, String tableName) throws MetaException, UnknownTableException, UnknownDBException { return get_schema_with_environment_context(db,tableName, null); @@ -5891,6 +5925,7 @@ private StorageSchemaReader getStorageSchemaReader() throws MetaException { * @throws UnknownDBException */ @Override + @Deprecated public List get_schema_with_environment_context(String db, String tableName, final EnvironmentContext envContext) throws MetaException, UnknownTableException, UnknownDBException { @@ -5909,7 +5944,8 @@ private StorageSchemaReader getStorageSchemaReader() throws MetaException { throw new UnknownTableException(e.getMessage()); } // Pass unparsed db name here - List fieldSchemas = get_fields_with_environment_context(db, base_table_name,envContext); + List fieldSchemas = get_fields_with_environment_context(db, base_table_name, + envContext); if (tbl == null || fieldSchemas == null) { throw new UnknownTableException(tableName + " doesn't exist"); @@ -5935,6 +5971,14 @@ private StorageSchemaReader getStorageSchemaReader() throws MetaException { } } + @Override + public GetSchemaResponse get_schema_req(GetSchemaRequest req) throws MetaException, UnknownTableException, UnknownDBException, TException { + List fields = get_schema_with_environment_context(req.getDbName(), req.getTblName(), req.getEnvContext()); + GetSchemaResponse res = new GetSchemaResponse(); + res.setFields(fields); + return res; + } + @Override public String getCpuProfile(int profileDurationInSec) throws TException { return ""; @@ -6039,6 +6083,7 @@ private Partition get_partition_by_name_core(final RawStore ms, final String cat } @Override + @Deprecated public Partition get_partition_by_name(final String db_name, final String tbl_name, final String part_name) throws TException { @@ -6145,6 +6190,7 @@ public boolean drop_partition_by_name_with_environment_context(final String db_n } @Override + @Deprecated public List get_partitions_ps(final String db_name, final String tbl_name, final List part_vals, final short max_parts) throws TException { @@ -6171,6 +6217,7 @@ public boolean drop_partition_by_name_with_environment_context(final String db_n } @Override + @Deprecated public List get_partitions_ps_with_auth(final String db_name, final String tbl_name, final List part_vals, final short max_parts, final String userName, @@ -6199,6 +6246,17 @@ public boolean drop_partition_by_name_with_environment_context(final String db_n } @Override + public GetPartitionsPsWithAuthResponse get_partitions_ps_with_auth_req(GetPartitionsPsWithAuthRequest req) + throws MetaException, NoSuchObjectException, TException { + List partitions = get_partitions_ps_with_auth(req.getDbName(), req.getTblName(), + req.getPartVals(), req.getMaxParts(), req.getUserName(), req.getGroupNames()); + GetPartitionsPsWithAuthResponse res = new GetPartitionsPsWithAuthResponse(); + res.setPartitions(partitions); + return res; + } + + @Override + @Deprecated public List get_partition_names_ps(final String db_name, final String tbl_name, final List part_vals, final short max_parts) throws TException { @@ -6223,6 +6281,16 @@ public boolean drop_partition_by_name_with_environment_context(final String db_n return ret; } + @Override + public GetPartitionNamesPsResponse get_partition_names_ps_req(GetPartitionNamesPsRequest req) + throws MetaException, NoSuchObjectException, TException { + List names = get_partition_names_ps(req.getDbName(), req.getTblName(), req.getPartValues(), + req.getMaxParts()); + GetPartitionNamesPsResponse res = new GetPartitionNamesPsResponse(); + res.setNames(names); + return res; + } + @Override public List get_partition_names_req(PartitionsByExprRequest req) throws MetaException, NoSuchObjectException, TException { @@ -6285,8 +6353,8 @@ private String lowerCaseConvertPartName(String partName) throws MetaException { return convertedPartName; } - @Deprecated @Override + @Deprecated public ColumnStatistics get_table_column_statistics(String dbName, String tableName, String colName) throws TException { String[] parsedDbName = parseDbName(dbName, conf); @@ -6342,8 +6410,8 @@ public TableStatsResult get_table_statistics_req(TableStatsRequest request) thro return result; } - @Deprecated @Override + @Deprecated public ColumnStatistics get_partition_column_statistics(String dbName, String tableName, String partName, String colName) throws TException { // Note: this method appears to be unused within Hive. @@ -6675,6 +6743,7 @@ public boolean delete_table_column_statistics(String dbName, String tableName, S } @Override + @Deprecated public List get_partitions_by_filter(final String dbName, final String tblName, final String filter, final short maxParts) throws TException { @@ -6703,6 +6772,7 @@ public boolean delete_table_column_statistics(String dbName, String tableName, S } @Override + @Deprecated public List get_part_specs_by_filter(final String dbName, final String tblName, final String filter, final int maxParts) throws TException { @@ -6802,6 +6872,7 @@ private void rethrowException(Exception e) throws TException { } @Override + @Deprecated public int get_num_partitions_by_filter(final String dbName, final String tblName, final String filter) throws TException { @@ -6843,9 +6914,11 @@ private int get_num_partitions_by_expr(final String catName, final String dbName } @Override + @Deprecated public List get_partitions_by_names(final String dbName, final String tblName, - final List partNames) throws TException { - return get_partitions_by_names(dbName, tblName, partNames, false, null); + final List partNames) + throws TException { + return get_partitions_by_names(dbName, tblName, partNames); } @Override @@ -6859,7 +6932,7 @@ public GetPartitionsByNamesResult get_partitions_by_names_req(GetPartitionsByNam } public List get_partitions_by_names(final String dbName, final String tblName, - final List partNames, boolean getColStats, String engine) throws TException { + final List partNames, boolean getColStats, String engine, String validWriteIdList) throws TException { return get_partitions_by_names(dbName, tblName, partNames, getColStats, engine, null, null); } diff --git standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java index 8f5bde1895..0832437ac7 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java @@ -21,6 +21,7 @@ import static org.apache.hadoop.hive.metastore.HiveMetaStoreClient.callEmbeddedMetastore; import static org.apache.hadoop.hive.metastore.Warehouse.DEFAULT_DATABASE_NAME; import static org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.getDefaultCatalog; +import static org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.prependCatalogToDbName; import java.io.IOException; import java.lang.reflect.Constructor; @@ -1289,6 +1290,15 @@ public PartitionSpecProxy listPartitionSpecs(String dbName, String tableName, in return fastpath ? parts :deepCopyPartitions(filterHook.filterPartitions(parts)); } + @Override public GetPartitionsPsWithAuthResponse listPartitionsWithAuthInfoRequest(GetPartitionsPsWithAuthRequest req) + throws MetaException, TException, NoSuchObjectException { + GetPartitionsPsWithAuthResponse res = client.get_partitions_ps_with_auth_req(req); + List parts = fastpath ? res.getPartitions() : + deepCopyPartitions(filterHook.filterPartitions(res.getPartitions())); + res.setPartitions(parts); + return res; + } + @Override public List listPartitionsWithAuthInfo(String db_name, String tbl_name, List part_vals, short max_parts, @@ -1435,12 +1445,22 @@ public Partition getPartition(String db_name, String tbl_name, return fastpath ? p : deepCopy(filterHook.filterPartition(p)); } + @Override + public GetPartitionResponse getPartitionRequest(GetPartitionRequest req) throws NoSuchObjectException, MetaException, TException { + return client.get_partition_req(req); + } + @Override public List getPartitionsByNames(String db_name, String tbl_name, List part_names) throws NoSuchObjectException, MetaException, TException { return getPartitionsByNames(db_name, tbl_name, part_names, false, null); } + @Override public PartitionsResponse getPartitionsRequest(PartitionsRequest req) + throws NoSuchObjectException, MetaException, TException { + return client.get_partitions_req(req); + } + @Override public List getPartitionsByNames(String db_name, String tbl_name, List part_names, boolean get_col_stats, String engine) @@ -1659,6 +1679,11 @@ public boolean tableExists(String databaseName, String tableName) throws MetaExc client.get_partition_names(dbName, tblName, max)); } + @Override public GetPartitionNamesPsResponse listPartitionNamesRequest(GetPartitionNamesPsRequest req) + throws NoSuchObjectException, MetaException, TException { + return client.get_partition_names_ps_req(req); + } + @Override public List listPartitionNames(String db_name, String tbl_name, List part_vals, short max_parts) @@ -3461,12 +3486,22 @@ public void renamePartition(String catName, String dbname, String tableName, throw new UnsupportedOperationException(); } + @Override + public GetFieldsResponse getFieldsRequest(GetFieldsRequest req) throws MetaException, TException, UnknownTableException, UnknownDBException { + throw new UnsupportedOperationException(); + } + @Override public List getSchema(String catName, String db, String tableName) throws MetaException, TException, UnknownTableException, UnknownDBException { throw new UnsupportedOperationException(); } + @Override + public GetSchemaResponse getSchemaRequest(GetSchemaRequest req) throws MetaException, TException, UnknownTableException, UnknownDBException { + throw new UnsupportedOperationException(); + } + @Override public List getTableColumnStatistics(String catName, String dbName, String tableName, diff --git standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetPartitions.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetPartitions.java index 9c565aacfc..ebd3493370 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetPartitions.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetPartitions.java @@ -24,15 +24,11 @@ import java.util.List; import java.util.Set; +import org.apache.hadoop.hive.common.ValidTxnWriteIdList; import org.apache.hadoop.hive.metastore.IMetaStoreClient; import org.apache.hadoop.hive.metastore.MetaStoreTestUtils; import org.apache.hadoop.hive.metastore.annotation.MetastoreCheckinTest; -import org.apache.hadoop.hive.metastore.api.Catalog; -import org.apache.hadoop.hive.metastore.api.Database; -import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; -import org.apache.hadoop.hive.metastore.api.Partition; -import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.client.builder.CatalogBuilder; import org.apache.hadoop.hive.metastore.client.builder.DatabaseBuilder; import org.apache.hadoop.hive.metastore.client.builder.PartitionBuilder; @@ -146,6 +142,7 @@ private void createTable3PartCols1PartGeneric(IMetaStoreClient client, boolean a Table t = createTestTable(client, DB_NAME, TABLE_NAME, Lists.newArrayList("yyyy", "mm", "dd"), authOn); addPartition(client, t, Lists.newArrayList("1997", "05", "16")); + metaStore.getConf().set(ValidTxnWriteIdList.VALID_TABLES_WRITEIDS_KEY, "1"); } protected void createTable3PartCols1Part(IMetaStoreClient client) throws TException { @@ -262,7 +259,24 @@ public void testGetPartitionNullPartName() throws Exception { client.getPartition(DB_NAME, TABLE_NAME, (String)null); } - + /** + * Testing getPartitionRequest(String,String,List(String)) -> + * get_partition_req(PartitionRequest) + * + */ + @Test + public void testGetPartitionRequest() throws Exception { + createTable3PartCols1Part(client); + List parts = Lists.newArrayList("1997", "05", "16"); + GetPartitionRequest req = new GetPartitionRequest(); + req.setDbName(DB_NAME); + req.setTblName(TABLE_NAME); + req.setPartVals(parts); + GetPartitionResponse res = client.getPartitionRequest(req); + Partition partition = res.getPartition(); + assertNotNull(partition); + assertEquals(parts, partition.getValues()); + } /** * Testing getPartition(String,String,List(String)) -> @@ -336,11 +350,9 @@ public void testGetPartitionByValuesNullValues() throws Exception { client.getPartition(DB_NAME, TABLE_NAME, (List)null); } - - /** * Testing getPartitionsByNames(String,String,List(String)) -> - * get_partitions_by_names(String,String,List(String)). + * get_partitions_by_names(PartitionsRequest). */ @Test public void testGetPartitionsByNames() throws Exception { diff --git standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestListPartitions.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestListPartitions.java index d462eee3d5..a994dffb42 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestListPartitions.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestListPartitions.java @@ -23,20 +23,11 @@ import java.util.Collections; import java.util.List; +import org.apache.hadoop.hive.common.ValidTxnWriteIdList; import org.apache.hadoop.hive.metastore.IMetaStoreClient; import org.apache.hadoop.hive.metastore.MetaStoreTestUtils; import org.apache.hadoop.hive.metastore.annotation.MetastoreCheckinTest; -import org.apache.hadoop.hive.metastore.api.Catalog; -import org.apache.hadoop.hive.metastore.api.Database; -import org.apache.hadoop.hive.metastore.api.FieldSchema; -import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; -import org.apache.hadoop.hive.metastore.api.Partition; -import org.apache.hadoop.hive.metastore.api.PartitionSpec; -import org.apache.hadoop.hive.metastore.api.PartitionValuesRequest; -import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse; -import org.apache.hadoop.hive.metastore.api.PartitionValuesRow; -import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.client.builder.CatalogBuilder; import org.apache.hadoop.hive.metastore.client.builder.DatabaseBuilder; import org.apache.hadoop.hive.metastore.client.builder.PartitionBuilder; @@ -191,6 +182,8 @@ protected void createTable3PartCols1Part(IMetaStoreClient client) throws TExcept addPartition(client, t, vals); } + metaStore.getConf().set(ValidTxnWriteIdList.VALID_TABLES_WRITEIDS_KEY, "1"); + return testValues; } @@ -281,6 +274,29 @@ public void testListPartitionsAll() throws Exception { assertTrue(partitions.isEmpty()); } + /** + * Testing getPartitionsRequest(PartitionsRequest) -> + * get_partitions_req(PartitionsRequest). + */ + @Test + public void testGetPartitionsRequest() throws Exception { + List> testValues = createTable4PartColsParts(client); + PartitionsRequest req = new PartitionsRequest(); + req.setDbName(DB_NAME); + req.setTblName(TABLE_NAME); + req.setMaxParts((short)-1); + PartitionsResponse res = client.getPartitionsRequest(req); + assertPartitionsHaveCorrectValues(res.getPartitions(), testValues); + + req.setMaxParts((short)1); + res = client.getPartitionsRequest(req); + assertPartitionsHaveCorrectValues(res.getPartitions(), testValues.subList(0, 1)); + + req.setMaxParts((short)0); + res = client.getPartitionsRequest(req); + assertTrue(res.getPartitions().isEmpty()); + } + @Test(expected = MetaException.class) @ConditionalIgnoreOnSessionHiveMetastoreClient public void testListPartitionsAllHighMaxParts() throws Exception { @@ -601,11 +617,55 @@ public void testListPartitionsWithAuthNullGroup() throws Exception { client.listPartitionsWithAuthInfo(DB_NAME, TABLE_NAME, (short)-1, "user0", null); } + /** + * Testing listPartitionsWithAuthInfoRequest(GetPartitionsPsWithAuthRequest) -> + * get_partitions_ps_with_auth_req(GetPartitionsPsWithAuthRequest). + */ + @Test + public void testListPartitionsWithAuthRequestByValues() throws Exception { + List> partValues = createTable4PartColsPartsAuthOn(client); + List groups = Lists.newArrayList(GROUP); + + GetPartitionsPsWithAuthRequest req = new GetPartitionsPsWithAuthRequest(); + req.setDbName(DB_NAME); + req.setTblName(TABLE_NAME); + req.setPartVals(Lists + .newArrayList("2017", "11", "27")); + req.setMaxParts((short)-1); + req.setUserName(USER_NAME); + req.setGroupNames(groups); + GetPartitionsPsWithAuthResponse res = client.listPartitionsWithAuthInfoRequest(req); + List partitions = res.getPartitions(); + assertEquals(1, partitions.size()); + assertPartitionsHaveCorrectValues(partitions, partValues.subList(3, 4)); + partitions.forEach(partition -> assertAuthInfoReturned(USER_NAME, groups.get(0), partition)); + + req.setPartVals(Lists + .newArrayList("2017")); + res = client.listPartitionsWithAuthInfoRequest(req); + partitions = res.getPartitions(); + assertEquals(2, partitions.size()); + assertPartitionsHaveCorrectValues(partitions, partValues.subList(2, 4)); + partitions.forEach(partition -> assertAuthInfoReturned(USER_NAME, groups.get(0), partition)); + + req.setMaxParts((short)1); + res = client.listPartitionsWithAuthInfoRequest(req); + partitions = res.getPartitions(); + assertEquals(1, partitions.size()); + assertPartitionsHaveCorrectValues(partitions, partValues.subList(2, 3)); + partitions.forEach(partition -> assertAuthInfoReturned(USER_NAME, groups.get(0), partition)); + req.setMaxParts((short)-1); + req.setPartVals(Lists + .newArrayList("2013")); + res = client.listPartitionsWithAuthInfoRequest(req); + partitions = res.getPartitions(); + assertTrue(partitions.isEmpty()); + } /** - * Testing listPartitionsWithAuthInfo(String,String,List(String),short,String,List(String)) -> - * get_partitions_ps_with_auth(String,String,List(String),short,String,List(String)). + * Testing listPartitionsWithAuthInfoRequest(GetPartitionsPsWithAuthRequest) -> + * get_partitions_ps_with_auth_req(GetPartitionsPsWithAuthRequest). */ @Test public void testListPartitionsWithAuthByValues() throws Exception { @@ -613,25 +673,25 @@ public void testListPartitionsWithAuthByValues() throws Exception { List groups = Lists.newArrayList(GROUP); List partitions = client.listPartitionsWithAuthInfo(DB_NAME, TABLE_NAME, Lists - .newArrayList("2017", "11", "27"), (short)-1, USER_NAME, groups); + .newArrayList("2017", "11", "27"), (short)-1, USER_NAME, groups); assertEquals(1, partitions.size()); assertPartitionsHaveCorrectValues(partitions, partValues.subList(3, 4)); partitions.forEach(partition -> assertAuthInfoReturned(USER_NAME, groups.get(0), partition)); partitions = client.listPartitionsWithAuthInfo(DB_NAME, TABLE_NAME, Lists - .newArrayList("2017"), (short)-1, USER_NAME, groups); + .newArrayList("2017"), (short)-1, USER_NAME, groups); assertEquals(2, partitions.size()); assertPartitionsHaveCorrectValues(partitions, partValues.subList(2, 4)); partitions.forEach(partition -> assertAuthInfoReturned(USER_NAME, groups.get(0), partition)); partitions = client.listPartitionsWithAuthInfo(DB_NAME, TABLE_NAME, Lists - .newArrayList("2017"), (short)1, USER_NAME, groups); + .newArrayList("2017"), (short)1, USER_NAME, groups); assertEquals(1, partitions.size()); assertPartitionsHaveCorrectValues(partitions, partValues.subList(2, 3)); partitions.forEach(partition -> assertAuthInfoReturned(USER_NAME, groups.get(0), partition)); partitions = client.listPartitionsWithAuthInfo(DB_NAME, TABLE_NAME, Lists - .newArrayList("2013"), (short)-1, USER_NAME, groups); + .newArrayList("2013"), (short)-1, USER_NAME, groups); assertTrue(partitions.isEmpty()); } @@ -1218,6 +1278,49 @@ public void testListPartitionNamesByValues() throws Exception { } + /** + * Testing listPartitionNamesRequest(GetPartitionNamesPsRequest) -> + * get_partition_names_ps_req(GetPartitionNamesPsRequest). + */ + @Test + public void testListPartitionNamesRequestByValues() throws Exception { + List> testValues = createTable4PartColsParts(client); + GetPartitionNamesPsRequest req = new GetPartitionNamesPsRequest(); + req.setDbName(DB_NAME); + req.setTblName(TABLE_NAME); + req.setPartValues(Lists.newArrayList("2017")); + req.setMaxParts((short)-1); + GetPartitionNamesPsResponse res = client.listPartitionNamesRequest(req); + List partitionNames = res.getNames(); + assertCorrectPartitionNames(partitionNames, testValues.subList(2, 4), + Lists.newArrayList("yyyy", "mm", "dd")); + + req.setMaxParts((short)101); + res = client.listPartitionNamesRequest(req); + partitionNames = res.getNames(); + assertCorrectPartitionNames(partitionNames, testValues.subList(2, 4), + Lists.newArrayList("yyyy", "mm", "dd")); + + req.setMaxParts((short)1); + res = client.listPartitionNamesRequest(req); + partitionNames = res.getNames(); + assertCorrectPartitionNames(partitionNames, testValues.subList(2, 3), + Lists.newArrayList("yyyy", "mm", "dd")); + + req.setMaxParts((short)0); + res = client.listPartitionNamesRequest(req); + partitionNames = res.getNames(); + assertTrue(partitionNames.isEmpty()); + + req.setMaxParts((short)-1); + req.setPartValues(Lists.newArrayList("2017", "10")); + res = client.listPartitionNamesRequest(req); + partitionNames = res.getNames(); + assertCorrectPartitionNames(partitionNames, testValues.subList(2, 3), + Lists.newArrayList("yyyy", "mm", "dd")); + + } + @Test public void testListPartitionNamesByValuesMaxPartCountUnlimited() throws Exception { List> testValues = createTable4PartColsParts(client);