hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject [45/51] [partial] hive git commit: HIVE-17170 Move thrift generated code to stand alone metastore (Alan Gates reviewed by Vihang Karajgaonkar)
Date Thu, 03 Aug 2017 16:57:06 GMT
http://git-wip-us.apache.org/repos/asf/hive/blob/453c8ed4/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnRequest.java
deleted file mode 100644
index 8e3a0ae..0000000
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnRequest.java
+++ /dev/null
@@ -1,387 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-package org.apache.hadoop.hive.metastore.api;
-
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import org.apache.thrift.async.AsyncMethodCallback;
-import org.apache.thrift.server.AbstractNonblockingServer.*;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import javax.annotation.Generated;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class AbortTxnRequest implements org.apache.thrift.TBase<AbortTxnRequest, AbortTxnRequest._Fields>, java.io.Serializable, Cloneable, Comparable<AbortTxnRequest> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AbortTxnRequest");
-
-  private static final org.apache.thrift.protocol.TField TXNID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnid", org.apache.thrift.protocol.TType.I64, (short)1);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new AbortTxnRequestStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new AbortTxnRequestTupleSchemeFactory());
-  }
-
-  private long txnid; // required
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-    TXNID((short)1, "txnid");
-
-    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
-    static {
-      for (_Fields field : EnumSet.allOf(_Fields.class)) {
-        byName.put(field.getFieldName(), field);
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, or null if its not found.
-     */
-    public static _Fields findByThriftId(int fieldId) {
-      switch(fieldId) {
-        case 1: // TXNID
-          return TXNID;
-        default:
-          return null;
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
-     */
-    public static _Fields findByThriftIdOrThrow(int fieldId) {
-      _Fields fields = findByThriftId(fieldId);
-      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-      return fields;
-    }
-
-    /**
-     * Find the _Fields constant that matches name, or null if its not found.
-     */
-    public static _Fields findByName(String name) {
-      return byName.get(name);
-    }
-
-    private final short _thriftId;
-    private final String _fieldName;
-
-    _Fields(short thriftId, String fieldName) {
-      _thriftId = thriftId;
-      _fieldName = fieldName;
-    }
-
-    public short getThriftFieldId() {
-      return _thriftId;
-    }
-
-    public String getFieldName() {
-      return _fieldName;
-    }
-  }
-
-  // isset id assignments
-  private static final int __TXNID_ISSET_ID = 0;
-  private byte __isset_bitfield = 0;
-  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-  static {
-    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.TXNID, new org.apache.thrift.meta_data.FieldMetaData("txnid", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AbortTxnRequest.class, metaDataMap);
-  }
-
-  public AbortTxnRequest() {
-  }
-
-  public AbortTxnRequest(
-    long txnid)
-  {
-    this();
-    this.txnid = txnid;
-    setTxnidIsSet(true);
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public AbortTxnRequest(AbortTxnRequest other) {
-    __isset_bitfield = other.__isset_bitfield;
-    this.txnid = other.txnid;
-  }
-
-  public AbortTxnRequest deepCopy() {
-    return new AbortTxnRequest(this);
-  }
-
-  @Override
-  public void clear() {
-    setTxnidIsSet(false);
-    this.txnid = 0;
-  }
-
-  public long getTxnid() {
-    return this.txnid;
-  }
-
-  public void setTxnid(long txnid) {
-    this.txnid = txnid;
-    setTxnidIsSet(true);
-  }
-
-  public void unsetTxnid() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TXNID_ISSET_ID);
-  }
-
-  /** Returns true if field txnid is set (has been assigned a value) and false otherwise */
-  public boolean isSetTxnid() {
-    return EncodingUtils.testBit(__isset_bitfield, __TXNID_ISSET_ID);
-  }
-
-  public void setTxnidIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TXNID_ISSET_ID, value);
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case TXNID:
-      if (value == null) {
-        unsetTxnid();
-      } else {
-        setTxnid((Long)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case TXNID:
-      return getTxnid();
-
-    }
-    throw new IllegalStateException();
-  }
-
-  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-  public boolean isSet(_Fields field) {
-    if (field == null) {
-      throw new IllegalArgumentException();
-    }
-
-    switch (field) {
-    case TXNID:
-      return isSetTxnid();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof AbortTxnRequest)
-      return this.equals((AbortTxnRequest)that);
-    return false;
-  }
-
-  public boolean equals(AbortTxnRequest that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_txnid = true;
-    boolean that_present_txnid = true;
-    if (this_present_txnid || that_present_txnid) {
-      if (!(this_present_txnid && that_present_txnid))
-        return false;
-      if (this.txnid != that.txnid)
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    List<Object> list = new ArrayList<Object>();
-
-    boolean present_txnid = true;
-    list.add(present_txnid);
-    if (present_txnid)
-      list.add(txnid);
-
-    return list.hashCode();
-  }
-
-  @Override
-  public int compareTo(AbortTxnRequest other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetTxnid()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid);
-      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("AbortTxnRequest(");
-    boolean first = true;
-
-    sb.append("txnid:");
-    sb.append(this.txnid);
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    if (!isSetTxnid()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnid' is unset! Struct:" + toString());
-    }
-
-    // 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 AbortTxnRequestStandardSchemeFactory implements SchemeFactory {
-    public AbortTxnRequestStandardScheme getScheme() {
-      return new AbortTxnRequestStandardScheme();
-    }
-  }
-
-  private static class AbortTxnRequestStandardScheme extends StandardScheme<AbortTxnRequest> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, AbortTxnRequest struct) throws org.apache.thrift.TException {
-      org.apache.thrift.protocol.TField schemeField;
-      iprot.readStructBegin();
-      while (true)
-      {
-        schemeField = iprot.readFieldBegin();
-        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
-          break;
-        }
-        switch (schemeField.id) {
-          case 1: // TXNID
-            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
-              struct.txnid = iprot.readI64();
-              struct.setTxnidIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          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, AbortTxnRequest struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      oprot.writeFieldBegin(TXNID_FIELD_DESC);
-      oprot.writeI64(struct.txnid);
-      oprot.writeFieldEnd();
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class AbortTxnRequestTupleSchemeFactory implements SchemeFactory {
-    public AbortTxnRequestTupleScheme getScheme() {
-      return new AbortTxnRequestTupleScheme();
-    }
-  }
-
-  private static class AbortTxnRequestTupleScheme extends TupleScheme<AbortTxnRequest> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, AbortTxnRequest struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      oprot.writeI64(struct.txnid);
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, AbortTxnRequest struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      struct.txnid = iprot.readI64();
-      struct.setTxnidIsSet(true);
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/hive/blob/453c8ed4/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java
deleted file mode 100644
index eee1e64..0000000
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java
+++ /dev/null
@@ -1,438 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-package org.apache.hadoop.hive.metastore.api;
-
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import org.apache.thrift.async.AsyncMethodCallback;
-import org.apache.thrift.server.AbstractNonblockingServer.*;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import javax.annotation.Generated;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class AbortTxnsRequest implements org.apache.thrift.TBase<AbortTxnsRequest, AbortTxnsRequest._Fields>, java.io.Serializable, Cloneable, Comparable<AbortTxnsRequest> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AbortTxnsRequest");
-
-  private static final org.apache.thrift.protocol.TField TXN_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("txn_ids", org.apache.thrift.protocol.TType.LIST, (short)1);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new AbortTxnsRequestStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new AbortTxnsRequestTupleSchemeFactory());
-  }
-
-  private List<Long> txn_ids; // required
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-    TXN_IDS((short)1, "txn_ids");
-
-    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
-    static {
-      for (_Fields field : EnumSet.allOf(_Fields.class)) {
-        byName.put(field.getFieldName(), field);
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, or null if its not found.
-     */
-    public static _Fields findByThriftId(int fieldId) {
-      switch(fieldId) {
-        case 1: // TXN_IDS
-          return TXN_IDS;
-        default:
-          return null;
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
-     */
-    public static _Fields findByThriftIdOrThrow(int fieldId) {
-      _Fields fields = findByThriftId(fieldId);
-      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-      return fields;
-    }
-
-    /**
-     * Find the _Fields constant that matches name, or null if its not found.
-     */
-    public static _Fields findByName(String name) {
-      return byName.get(name);
-    }
-
-    private final short _thriftId;
-    private final String _fieldName;
-
-    _Fields(short thriftId, String fieldName) {
-      _thriftId = thriftId;
-      _fieldName = fieldName;
-    }
-
-    public short getThriftFieldId() {
-      return _thriftId;
-    }
-
-    public String getFieldName() {
-      return _fieldName;
-    }
-  }
-
-  // isset id assignments
-  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-  static {
-    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.TXN_IDS, new org.apache.thrift.meta_data.FieldMetaData("txn_ids", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AbortTxnsRequest.class, metaDataMap);
-  }
-
-  public AbortTxnsRequest() {
-  }
-
-  public AbortTxnsRequest(
-    List<Long> txn_ids)
-  {
-    this();
-    this.txn_ids = txn_ids;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public AbortTxnsRequest(AbortTxnsRequest other) {
-    if (other.isSetTxn_ids()) {
-      List<Long> __this__txn_ids = new ArrayList<Long>(other.txn_ids);
-      this.txn_ids = __this__txn_ids;
-    }
-  }
-
-  public AbortTxnsRequest deepCopy() {
-    return new AbortTxnsRequest(this);
-  }
-
-  @Override
-  public void clear() {
-    this.txn_ids = null;
-  }
-
-  public int getTxn_idsSize() {
-    return (this.txn_ids == null) ? 0 : this.txn_ids.size();
-  }
-
-  public java.util.Iterator<Long> getTxn_idsIterator() {
-    return (this.txn_ids == null) ? null : this.txn_ids.iterator();
-  }
-
-  public void addToTxn_ids(long elem) {
-    if (this.txn_ids == null) {
-      this.txn_ids = new ArrayList<Long>();
-    }
-    this.txn_ids.add(elem);
-  }
-
-  public List<Long> getTxn_ids() {
-    return this.txn_ids;
-  }
-
-  public void setTxn_ids(List<Long> txn_ids) {
-    this.txn_ids = txn_ids;
-  }
-
-  public void unsetTxn_ids() {
-    this.txn_ids = null;
-  }
-
-  /** Returns true if field txn_ids is set (has been assigned a value) and false otherwise */
-  public boolean isSetTxn_ids() {
-    return this.txn_ids != null;
-  }
-
-  public void setTxn_idsIsSet(boolean value) {
-    if (!value) {
-      this.txn_ids = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case TXN_IDS:
-      if (value == null) {
-        unsetTxn_ids();
-      } else {
-        setTxn_ids((List<Long>)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case TXN_IDS:
-      return getTxn_ids();
-
-    }
-    throw new IllegalStateException();
-  }
-
-  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-  public boolean isSet(_Fields field) {
-    if (field == null) {
-      throw new IllegalArgumentException();
-    }
-
-    switch (field) {
-    case TXN_IDS:
-      return isSetTxn_ids();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof AbortTxnsRequest)
-      return this.equals((AbortTxnsRequest)that);
-    return false;
-  }
-
-  public boolean equals(AbortTxnsRequest that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_txn_ids = true && this.isSetTxn_ids();
-    boolean that_present_txn_ids = true && that.isSetTxn_ids();
-    if (this_present_txn_ids || that_present_txn_ids) {
-      if (!(this_present_txn_ids && that_present_txn_ids))
-        return false;
-      if (!this.txn_ids.equals(that.txn_ids))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    List<Object> list = new ArrayList<Object>();
-
-    boolean present_txn_ids = true && (isSetTxn_ids());
-    list.add(present_txn_ids);
-    if (present_txn_ids)
-      list.add(txn_ids);
-
-    return list.hashCode();
-  }
-
-  @Override
-  public int compareTo(AbortTxnsRequest other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetTxn_ids()).compareTo(other.isSetTxn_ids());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetTxn_ids()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_ids, other.txn_ids);
-      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("AbortTxnsRequest(");
-    boolean first = true;
-
-    sb.append("txn_ids:");
-    if (this.txn_ids == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.txn_ids);
-    }
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    if (!isSetTxn_ids()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'txn_ids' 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 AbortTxnsRequestStandardSchemeFactory implements SchemeFactory {
-    public AbortTxnsRequestStandardScheme getScheme() {
-      return new AbortTxnsRequestStandardScheme();
-    }
-  }
-
-  private static class AbortTxnsRequestStandardScheme extends StandardScheme<AbortTxnsRequest> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, AbortTxnsRequest struct) throws org.apache.thrift.TException {
-      org.apache.thrift.protocol.TField schemeField;
-      iprot.readStructBegin();
-      while (true)
-      {
-        schemeField = iprot.readFieldBegin();
-        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
-          break;
-        }
-        switch (schemeField.id) {
-          case 1: // TXN_IDS
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list516 = iprot.readListBegin();
-                struct.txn_ids = new ArrayList<Long>(_list516.size);
-                long _elem517;
-                for (int _i518 = 0; _i518 < _list516.size; ++_i518)
-                {
-                  _elem517 = iprot.readI64();
-                  struct.txn_ids.add(_elem517);
-                }
-                iprot.readListEnd();
-              }
-              struct.setTxn_idsIsSet(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, AbortTxnsRequest struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.txn_ids != null) {
-        oprot.writeFieldBegin(TXN_IDS_FIELD_DESC);
-        {
-          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txn_ids.size()));
-          for (long _iter519 : struct.txn_ids)
-          {
-            oprot.writeI64(_iter519);
-          }
-          oprot.writeListEnd();
-        }
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class AbortTxnsRequestTupleSchemeFactory implements SchemeFactory {
-    public AbortTxnsRequestTupleScheme getScheme() {
-      return new AbortTxnsRequestTupleScheme();
-    }
-  }
-
-  private static class AbortTxnsRequestTupleScheme extends TupleScheme<AbortTxnsRequest> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      {
-        oprot.writeI32(struct.txn_ids.size());
-        for (long _iter520 : struct.txn_ids)
-        {
-          oprot.writeI64(_iter520);
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      {
-        org.apache.thrift.protocol.TList _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
-        struct.txn_ids = new ArrayList<Long>(_list521.size);
-        long _elem522;
-        for (int _i523 = 0; _i523 < _list521.size; ++_i523)
-        {
-          _elem522 = iprot.readI64();
-          struct.txn_ids.add(_elem522);
-        }
-      }
-      struct.setTxn_idsIsSet(true);
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/hive/blob/453c8ed4/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java
deleted file mode 100644
index 054cf1b..0000000
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java
+++ /dev/null
@@ -1,864 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-package org.apache.hadoop.hive.metastore.api;
-
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import org.apache.thrift.async.AsyncMethodCallback;
-import org.apache.thrift.server.AbstractNonblockingServer.*;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import javax.annotation.Generated;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class AddDynamicPartitions implements org.apache.thrift.TBase<AddDynamicPartitions, AddDynamicPartitions._Fields>, java.io.Serializable, Cloneable, Comparable<AddDynamicPartitions> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddDynamicPartitions");
-
-  private static final org.apache.thrift.protocol.TField TXNID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnid", org.apache.thrift.protocol.TType.I64, (short)1);
-  private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)2);
-  private static final org.apache.thrift.protocol.TField TABLENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tablename", org.apache.thrift.protocol.TType.STRING, (short)3);
-  private static final org.apache.thrift.protocol.TField PARTITIONNAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionnames", org.apache.thrift.protocol.TType.LIST, (short)4);
-  private static final org.apache.thrift.protocol.TField OPERATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationType", org.apache.thrift.protocol.TType.I32, (short)5);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new AddDynamicPartitionsStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new AddDynamicPartitionsTupleSchemeFactory());
-  }
-
-  private long txnid; // required
-  private String dbname; // required
-  private String tablename; // required
-  private List<String> partitionnames; // required
-  private DataOperationType operationType; // 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 {
-    TXNID((short)1, "txnid"),
-    DBNAME((short)2, "dbname"),
-    TABLENAME((short)3, "tablename"),
-    PARTITIONNAMES((short)4, "partitionnames"),
-    /**
-     * 
-     * @see DataOperationType
-     */
-    OPERATION_TYPE((short)5, "operationType");
-
-    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
-    static {
-      for (_Fields field : EnumSet.allOf(_Fields.class)) {
-        byName.put(field.getFieldName(), field);
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, or null if its not found.
-     */
-    public static _Fields findByThriftId(int fieldId) {
-      switch(fieldId) {
-        case 1: // TXNID
-          return TXNID;
-        case 2: // DBNAME
-          return DBNAME;
-        case 3: // TABLENAME
-          return TABLENAME;
-        case 4: // PARTITIONNAMES
-          return PARTITIONNAMES;
-        case 5: // OPERATION_TYPE
-          return OPERATION_TYPE;
-        default:
-          return null;
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
-     */
-    public static _Fields findByThriftIdOrThrow(int fieldId) {
-      _Fields fields = findByThriftId(fieldId);
-      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-      return fields;
-    }
-
-    /**
-     * Find the _Fields constant that matches name, or null if its not found.
-     */
-    public static _Fields findByName(String name) {
-      return byName.get(name);
-    }
-
-    private final short _thriftId;
-    private final String _fieldName;
-
-    _Fields(short thriftId, String fieldName) {
-      _thriftId = thriftId;
-      _fieldName = fieldName;
-    }
-
-    public short getThriftFieldId() {
-      return _thriftId;
-    }
-
-    public String getFieldName() {
-      return _fieldName;
-    }
-  }
-
-  // isset id assignments
-  private static final int __TXNID_ISSET_ID = 0;
-  private byte __isset_bitfield = 0;
-  private static final _Fields optionals[] = {_Fields.OPERATION_TYPE};
-  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-  static {
-    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.TXNID, new org.apache.thrift.meta_data.FieldMetaData("txnid", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-    tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.TABLENAME, new org.apache.thrift.meta_data.FieldMetaData("tablename", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.PARTITIONNAMES, new org.apache.thrift.meta_data.FieldMetaData("partitionnames", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-    tmpMap.put(_Fields.OPERATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("operationType", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DataOperationType.class)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AddDynamicPartitions.class, metaDataMap);
-  }
-
-  public AddDynamicPartitions() {
-    this.operationType = org.apache.hadoop.hive.metastore.api.DataOperationType.UNSET;
-
-  }
-
-  public AddDynamicPartitions(
-    long txnid,
-    String dbname,
-    String tablename,
-    List<String> partitionnames)
-  {
-    this();
-    this.txnid = txnid;
-    setTxnidIsSet(true);
-    this.dbname = dbname;
-    this.tablename = tablename;
-    this.partitionnames = partitionnames;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public AddDynamicPartitions(AddDynamicPartitions other) {
-    __isset_bitfield = other.__isset_bitfield;
-    this.txnid = other.txnid;
-    if (other.isSetDbname()) {
-      this.dbname = other.dbname;
-    }
-    if (other.isSetTablename()) {
-      this.tablename = other.tablename;
-    }
-    if (other.isSetPartitionnames()) {
-      List<String> __this__partitionnames = new ArrayList<String>(other.partitionnames);
-      this.partitionnames = __this__partitionnames;
-    }
-    if (other.isSetOperationType()) {
-      this.operationType = other.operationType;
-    }
-  }
-
-  public AddDynamicPartitions deepCopy() {
-    return new AddDynamicPartitions(this);
-  }
-
-  @Override
-  public void clear() {
-    setTxnidIsSet(false);
-    this.txnid = 0;
-    this.dbname = null;
-    this.tablename = null;
-    this.partitionnames = null;
-    this.operationType = org.apache.hadoop.hive.metastore.api.DataOperationType.UNSET;
-
-  }
-
-  public long getTxnid() {
-    return this.txnid;
-  }
-
-  public void setTxnid(long txnid) {
-    this.txnid = txnid;
-    setTxnidIsSet(true);
-  }
-
-  public void unsetTxnid() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TXNID_ISSET_ID);
-  }
-
-  /** Returns true if field txnid is set (has been assigned a value) and false otherwise */
-  public boolean isSetTxnid() {
-    return EncodingUtils.testBit(__isset_bitfield, __TXNID_ISSET_ID);
-  }
-
-  public void setTxnidIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TXNID_ISSET_ID, value);
-  }
-
-  public String getDbname() {
-    return this.dbname;
-  }
-
-  public void setDbname(String dbname) {
-    this.dbname = dbname;
-  }
-
-  public void unsetDbname() {
-    this.dbname = null;
-  }
-
-  /** Returns true if field dbname is set (has been assigned a value) and false otherwise */
-  public boolean isSetDbname() {
-    return this.dbname != null;
-  }
-
-  public void setDbnameIsSet(boolean value) {
-    if (!value) {
-      this.dbname = null;
-    }
-  }
-
-  public String getTablename() {
-    return this.tablename;
-  }
-
-  public void setTablename(String tablename) {
-    this.tablename = tablename;
-  }
-
-  public void unsetTablename() {
-    this.tablename = null;
-  }
-
-  /** Returns true if field tablename is set (has been assigned a value) and false otherwise */
-  public boolean isSetTablename() {
-    return this.tablename != null;
-  }
-
-  public void setTablenameIsSet(boolean value) {
-    if (!value) {
-      this.tablename = null;
-    }
-  }
-
-  public int getPartitionnamesSize() {
-    return (this.partitionnames == null) ? 0 : this.partitionnames.size();
-  }
-
-  public java.util.Iterator<String> getPartitionnamesIterator() {
-    return (this.partitionnames == null) ? null : this.partitionnames.iterator();
-  }
-
-  public void addToPartitionnames(String elem) {
-    if (this.partitionnames == null) {
-      this.partitionnames = new ArrayList<String>();
-    }
-    this.partitionnames.add(elem);
-  }
-
-  public List<String> getPartitionnames() {
-    return this.partitionnames;
-  }
-
-  public void setPartitionnames(List<String> partitionnames) {
-    this.partitionnames = partitionnames;
-  }
-
-  public void unsetPartitionnames() {
-    this.partitionnames = null;
-  }
-
-  /** Returns true if field partitionnames is set (has been assigned a value) and false otherwise */
-  public boolean isSetPartitionnames() {
-    return this.partitionnames != null;
-  }
-
-  public void setPartitionnamesIsSet(boolean value) {
-    if (!value) {
-      this.partitionnames = null;
-    }
-  }
-
-  /**
-   * 
-   * @see DataOperationType
-   */
-  public DataOperationType getOperationType() {
-    return this.operationType;
-  }
-
-  /**
-   * 
-   * @see DataOperationType
-   */
-  public void setOperationType(DataOperationType operationType) {
-    this.operationType = operationType;
-  }
-
-  public void unsetOperationType() {
-    this.operationType = null;
-  }
-
-  /** Returns true if field operationType is set (has been assigned a value) and false otherwise */
-  public boolean isSetOperationType() {
-    return this.operationType != null;
-  }
-
-  public void setOperationTypeIsSet(boolean value) {
-    if (!value) {
-      this.operationType = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case TXNID:
-      if (value == null) {
-        unsetTxnid();
-      } else {
-        setTxnid((Long)value);
-      }
-      break;
-
-    case DBNAME:
-      if (value == null) {
-        unsetDbname();
-      } else {
-        setDbname((String)value);
-      }
-      break;
-
-    case TABLENAME:
-      if (value == null) {
-        unsetTablename();
-      } else {
-        setTablename((String)value);
-      }
-      break;
-
-    case PARTITIONNAMES:
-      if (value == null) {
-        unsetPartitionnames();
-      } else {
-        setPartitionnames((List<String>)value);
-      }
-      break;
-
-    case OPERATION_TYPE:
-      if (value == null) {
-        unsetOperationType();
-      } else {
-        setOperationType((DataOperationType)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case TXNID:
-      return getTxnid();
-
-    case DBNAME:
-      return getDbname();
-
-    case TABLENAME:
-      return getTablename();
-
-    case PARTITIONNAMES:
-      return getPartitionnames();
-
-    case OPERATION_TYPE:
-      return getOperationType();
-
-    }
-    throw new IllegalStateException();
-  }
-
-  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-  public boolean isSet(_Fields field) {
-    if (field == null) {
-      throw new IllegalArgumentException();
-    }
-
-    switch (field) {
-    case TXNID:
-      return isSetTxnid();
-    case DBNAME:
-      return isSetDbname();
-    case TABLENAME:
-      return isSetTablename();
-    case PARTITIONNAMES:
-      return isSetPartitionnames();
-    case OPERATION_TYPE:
-      return isSetOperationType();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof AddDynamicPartitions)
-      return this.equals((AddDynamicPartitions)that);
-    return false;
-  }
-
-  public boolean equals(AddDynamicPartitions that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_txnid = true;
-    boolean that_present_txnid = true;
-    if (this_present_txnid || that_present_txnid) {
-      if (!(this_present_txnid && that_present_txnid))
-        return false;
-      if (this.txnid != that.txnid)
-        return false;
-    }
-
-    boolean this_present_dbname = true && this.isSetDbname();
-    boolean that_present_dbname = true && that.isSetDbname();
-    if (this_present_dbname || that_present_dbname) {
-      if (!(this_present_dbname && that_present_dbname))
-        return false;
-      if (!this.dbname.equals(that.dbname))
-        return false;
-    }
-
-    boolean this_present_tablename = true && this.isSetTablename();
-    boolean that_present_tablename = true && that.isSetTablename();
-    if (this_present_tablename || that_present_tablename) {
-      if (!(this_present_tablename && that_present_tablename))
-        return false;
-      if (!this.tablename.equals(that.tablename))
-        return false;
-    }
-
-    boolean this_present_partitionnames = true && this.isSetPartitionnames();
-    boolean that_present_partitionnames = true && that.isSetPartitionnames();
-    if (this_present_partitionnames || that_present_partitionnames) {
-      if (!(this_present_partitionnames && that_present_partitionnames))
-        return false;
-      if (!this.partitionnames.equals(that.partitionnames))
-        return false;
-    }
-
-    boolean this_present_operationType = true && this.isSetOperationType();
-    boolean that_present_operationType = true && that.isSetOperationType();
-    if (this_present_operationType || that_present_operationType) {
-      if (!(this_present_operationType && that_present_operationType))
-        return false;
-      if (!this.operationType.equals(that.operationType))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    List<Object> list = new ArrayList<Object>();
-
-    boolean present_txnid = true;
-    list.add(present_txnid);
-    if (present_txnid)
-      list.add(txnid);
-
-    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_partitionnames = true && (isSetPartitionnames());
-    list.add(present_partitionnames);
-    if (present_partitionnames)
-      list.add(partitionnames);
-
-    boolean present_operationType = true && (isSetOperationType());
-    list.add(present_operationType);
-    if (present_operationType)
-      list.add(operationType.getValue());
-
-    return list.hashCode();
-  }
-
-  @Override
-  public int compareTo(AddDynamicPartitions other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetTxnid()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetDbname()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetTablename()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetPartitionnames()).compareTo(other.isSetPartitionnames());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetPartitionnames()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionnames, other.partitionnames);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetOperationType()).compareTo(other.isSetOperationType());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetOperationType()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationType, other.operationType);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    return 0;
-  }
-
-  public _Fields fieldForId(int fieldId) {
-    return _Fields.findByThriftId(fieldId);
-  }
-
-  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
-  }
-
-  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
-  }
-
-  @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("AddDynamicPartitions(");
-    boolean first = true;
-
-    sb.append("txnid:");
-    sb.append(this.txnid);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("dbname:");
-    if (this.dbname == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.dbname);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("tablename:");
-    if (this.tablename == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.tablename);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("partitionnames:");
-    if (this.partitionnames == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.partitionnames);
-    }
-    first = false;
-    if (isSetOperationType()) {
-      if (!first) sb.append(", ");
-      sb.append("operationType:");
-      if (this.operationType == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.operationType);
-      }
-      first = false;
-    }
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    if (!isSetTxnid()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnid' is unset! Struct:" + toString());
-    }
-
-    if (!isSetDbname()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbname' is unset! Struct:" + toString());
-    }
-
-    if (!isSetTablename()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'tablename' is unset! Struct:" + toString());
-    }
-
-    if (!isSetPartitionnames()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'partitionnames' is unset! Struct:" + toString());
-    }
-
-    // check for sub-struct validity
-  }
-
-  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-    try {
-      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-    try {
-      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-      __isset_bitfield = 0;
-      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private static class AddDynamicPartitionsStandardSchemeFactory implements SchemeFactory {
-    public AddDynamicPartitionsStandardScheme getScheme() {
-      return new AddDynamicPartitionsStandardScheme();
-    }
-  }
-
-  private static class AddDynamicPartitionsStandardScheme extends StandardScheme<AddDynamicPartitions> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, AddDynamicPartitions struct) throws org.apache.thrift.TException {
-      org.apache.thrift.protocol.TField schemeField;
-      iprot.readStructBegin();
-      while (true)
-      {
-        schemeField = iprot.readFieldBegin();
-        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
-          break;
-        }
-        switch (schemeField.id) {
-          case 1: // TXNID
-            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
-              struct.txnid = iprot.readI64();
-              struct.setTxnidIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // DBNAME
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.dbname = iprot.readString();
-              struct.setDbnameIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 3: // TABLENAME
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.tablename = iprot.readString();
-              struct.setTablenameIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 4: // PARTITIONNAMES
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list574 = iprot.readListBegin();
-                struct.partitionnames = new ArrayList<String>(_list574.size);
-                String _elem575;
-                for (int _i576 = 0; _i576 < _list574.size; ++_i576)
-                {
-                  _elem575 = iprot.readString();
-                  struct.partitionnames.add(_elem575);
-                }
-                iprot.readListEnd();
-              }
-              struct.setPartitionnamesIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 5: // OPERATION_TYPE
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.operationType = org.apache.hadoop.hive.metastore.api.DataOperationType.findByValue(iprot.readI32());
-              struct.setOperationTypeIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          default:
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-        }
-        iprot.readFieldEnd();
-      }
-      iprot.readStructEnd();
-      struct.validate();
-    }
-
-    public void write(org.apache.thrift.protocol.TProtocol oprot, AddDynamicPartitions struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      oprot.writeFieldBegin(TXNID_FIELD_DESC);
-      oprot.writeI64(struct.txnid);
-      oprot.writeFieldEnd();
-      if (struct.dbname != null) {
-        oprot.writeFieldBegin(DBNAME_FIELD_DESC);
-        oprot.writeString(struct.dbname);
-        oprot.writeFieldEnd();
-      }
-      if (struct.tablename != null) {
-        oprot.writeFieldBegin(TABLENAME_FIELD_DESC);
-        oprot.writeString(struct.tablename);
-        oprot.writeFieldEnd();
-      }
-      if (struct.partitionnames != null) {
-        oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC);
-        {
-          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size()));
-          for (String _iter577 : struct.partitionnames)
-          {
-            oprot.writeString(_iter577);
-          }
-          oprot.writeListEnd();
-        }
-        oprot.writeFieldEnd();
-      }
-      if (struct.operationType != null) {
-        if (struct.isSetOperationType()) {
-          oprot.writeFieldBegin(OPERATION_TYPE_FIELD_DESC);
-          oprot.writeI32(struct.operationType.getValue());
-          oprot.writeFieldEnd();
-        }
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class AddDynamicPartitionsTupleSchemeFactory implements SchemeFactory {
-    public AddDynamicPartitionsTupleScheme getScheme() {
-      return new AddDynamicPartitionsTupleScheme();
-    }
-  }
-
-  private static class AddDynamicPartitionsTupleScheme extends TupleScheme<AddDynamicPartitions> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      oprot.writeI64(struct.txnid);
-      oprot.writeString(struct.dbname);
-      oprot.writeString(struct.tablename);
-      {
-        oprot.writeI32(struct.partitionnames.size());
-        for (String _iter578 : struct.partitionnames)
-        {
-          oprot.writeString(_iter578);
-        }
-      }
-      BitSet optionals = new BitSet();
-      if (struct.isSetOperationType()) {
-        optionals.set(0);
-      }
-      oprot.writeBitSet(optionals, 1);
-      if (struct.isSetOperationType()) {
-        oprot.writeI32(struct.operationType.getValue());
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      struct.txnid = iprot.readI64();
-      struct.setTxnidIsSet(true);
-      struct.dbname = iprot.readString();
-      struct.setDbnameIsSet(true);
-      struct.tablename = iprot.readString();
-      struct.setTablenameIsSet(true);
-      {
-        org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-        struct.partitionnames = new ArrayList<String>(_list579.size);
-        String _elem580;
-        for (int _i581 = 0; _i581 < _list579.size; ++_i581)
-        {
-          _elem580 = iprot.readString();
-          struct.partitionnames.add(_elem580);
-        }
-      }
-      struct.setPartitionnamesIsSet(true);
-      BitSet incoming = iprot.readBitSet(1);
-      if (incoming.get(0)) {
-        struct.operationType = org.apache.hadoop.hive.metastore.api.DataOperationType.findByValue(iprot.readI32());
-        struct.setOperationTypeIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/hive/blob/453c8ed4/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java
deleted file mode 100644
index 3123787..0000000
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java
+++ /dev/null
@@ -1,443 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-package org.apache.hadoop.hive.metastore.api;
-
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import org.apache.thrift.async.AsyncMethodCallback;
-import org.apache.thrift.server.AbstractNonblockingServer.*;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import javax.annotation.Generated;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class AddForeignKeyRequest implements org.apache.thrift.TBase<AddForeignKeyRequest, AddForeignKeyRequest._Fields>, java.io.Serializable, Cloneable, Comparable<AddForeignKeyRequest> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddForeignKeyRequest");
-
-  private static final org.apache.thrift.protocol.TField FOREIGN_KEY_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("foreignKeyCols", org.apache.thrift.protocol.TType.LIST, (short)1);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new AddForeignKeyRequestStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new AddForeignKeyRequestTupleSchemeFactory());
-  }
-
-  private List<SQLForeignKey> foreignKeyCols; // required
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-    FOREIGN_KEY_COLS((short)1, "foreignKeyCols");
-
-    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
-    static {
-      for (_Fields field : EnumSet.allOf(_Fields.class)) {
-        byName.put(field.getFieldName(), field);
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, or null if its not found.
-     */
-    public static _Fields findByThriftId(int fieldId) {
-      switch(fieldId) {
-        case 1: // FOREIGN_KEY_COLS
-          return FOREIGN_KEY_COLS;
-        default:
-          return null;
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
-     */
-    public static _Fields findByThriftIdOrThrow(int fieldId) {
-      _Fields fields = findByThriftId(fieldId);
-      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-      return fields;
-    }
-
-    /**
-     * Find the _Fields constant that matches name, or null if its not found.
-     */
-    public static _Fields findByName(String name) {
-      return byName.get(name);
-    }
-
-    private final short _thriftId;
-    private final String _fieldName;
-
-    _Fields(short thriftId, String fieldName) {
-      _thriftId = thriftId;
-      _fieldName = fieldName;
-    }
-
-    public short getThriftFieldId() {
-      return _thriftId;
-    }
-
-    public String getFieldName() {
-      return _fieldName;
-    }
-  }
-
-  // isset id assignments
-  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-  static {
-    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.FOREIGN_KEY_COLS, new org.apache.thrift.meta_data.FieldMetaData("foreignKeyCols", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SQLForeignKey.class))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AddForeignKeyRequest.class, metaDataMap);
-  }
-
-  public AddForeignKeyRequest() {
-  }
-
-  public AddForeignKeyRequest(
-    List<SQLForeignKey> foreignKeyCols)
-  {
-    this();
-    this.foreignKeyCols = foreignKeyCols;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public AddForeignKeyRequest(AddForeignKeyRequest other) {
-    if (other.isSetForeignKeyCols()) {
-      List<SQLForeignKey> __this__foreignKeyCols = new ArrayList<SQLForeignKey>(other.foreignKeyCols.size());
-      for (SQLForeignKey other_element : other.foreignKeyCols) {
-        __this__foreignKeyCols.add(new SQLForeignKey(other_element));
-      }
-      this.foreignKeyCols = __this__foreignKeyCols;
-    }
-  }
-
-  public AddForeignKeyRequest deepCopy() {
-    return new AddForeignKeyRequest(this);
-  }
-
-  @Override
-  public void clear() {
-    this.foreignKeyCols = null;
-  }
-
-  public int getForeignKeyColsSize() {
-    return (this.foreignKeyCols == null) ? 0 : this.foreignKeyCols.size();
-  }
-
-  public java.util.Iterator<SQLForeignKey> getForeignKeyColsIterator() {
-    return (this.foreignKeyCols == null) ? null : this.foreignKeyCols.iterator();
-  }
-
-  public void addToForeignKeyCols(SQLForeignKey elem) {
-    if (this.foreignKeyCols == null) {
-      this.foreignKeyCols = new ArrayList<SQLForeignKey>();
-    }
-    this.foreignKeyCols.add(elem);
-  }
-
-  public List<SQLForeignKey> getForeignKeyCols() {
-    return this.foreignKeyCols;
-  }
-
-  public void setForeignKeyCols(List<SQLForeignKey> foreignKeyCols) {
-    this.foreignKeyCols = foreignKeyCols;
-  }
-
-  public void unsetForeignKeyCols() {
-    this.foreignKeyCols = null;
-  }
-
-  /** Returns true if field foreignKeyCols is set (has been assigned a value) and false otherwise */
-  public boolean isSetForeignKeyCols() {
-    return this.foreignKeyCols != null;
-  }
-
-  public void setForeignKeyColsIsSet(boolean value) {
-    if (!value) {
-      this.foreignKeyCols = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case FOREIGN_KEY_COLS:
-      if (value == null) {
-        unsetForeignKeyCols();
-      } else {
-        setForeignKeyCols((List<SQLForeignKey>)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case FOREIGN_KEY_COLS:
-      return getForeignKeyCols();
-
-    }
-    throw new IllegalStateException();
-  }
-
-  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-  public boolean isSet(_Fields field) {
-    if (field == null) {
-      throw new IllegalArgumentException();
-    }
-
-    switch (field) {
-    case FOREIGN_KEY_COLS:
-      return isSetForeignKeyCols();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof AddForeignKeyRequest)
-      return this.equals((AddForeignKeyRequest)that);
-    return false;
-  }
-
-  public boolean equals(AddForeignKeyRequest that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_foreignKeyCols = true && this.isSetForeignKeyCols();
-    boolean that_present_foreignKeyCols = true && that.isSetForeignKeyCols();
-    if (this_present_foreignKeyCols || that_present_foreignKeyCols) {
-      if (!(this_present_foreignKeyCols && that_present_foreignKeyCols))
-        return false;
-      if (!this.foreignKeyCols.equals(that.foreignKeyCols))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    List<Object> list = new ArrayList<Object>();
-
-    boolean present_foreignKeyCols = true && (isSetForeignKeyCols());
-    list.add(present_foreignKeyCols);
-    if (present_foreignKeyCols)
-      list.add(foreignKeyCols);
-
-    return list.hashCode();
-  }
-
-  @Override
-  public int compareTo(AddForeignKeyRequest other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetForeignKeyCols()).compareTo(other.isSetForeignKeyCols());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetForeignKeyCols()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.foreignKeyCols, other.foreignKeyCols);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    return 0;
-  }
-
-  public _Fields fieldForId(int fieldId) {
-    return _Fields.findByThriftId(fieldId);
-  }
-
-  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
-  }
-
-  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
-  }
-
-  @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("AddForeignKeyRequest(");
-    boolean first = true;
-
-    sb.append("foreignKeyCols:");
-    if (this.foreignKeyCols == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.foreignKeyCols);
-    }
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    if (!isSetForeignKeyCols()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'foreignKeyCols' is unset! Struct:" + toString());
-    }
-
-    // check for sub-struct validity
-  }
-
-  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-    try {
-      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-    try {
-      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private static class AddForeignKeyRequestStandardSchemeFactory implements SchemeFactory {
-    public AddForeignKeyRequestStandardScheme getScheme() {
-      return new AddForeignKeyRequestStandardScheme();
-    }
-  }
-
-  private static class AddForeignKeyRequestStandardScheme extends StandardScheme<AddForeignKeyRequest> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, AddForeignKeyRequest struct) throws org.apache.thrift.TException {
-      org.apache.thrift.protocol.TField schemeField;
-      iprot.readStructBegin();
-      while (true)
-      {
-        schemeField = iprot.readFieldBegin();
-        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
-          break;
-        }
-        switch (schemeField.id) {
-          case 1: // FOREIGN_KEY_COLS
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list362 = iprot.readListBegin();
-                struct.foreignKeyCols = new ArrayList<SQLForeignKey>(_list362.size);
-                SQLForeignKey _elem363;
-                for (int _i364 = 0; _i364 < _list362.size; ++_i364)
-                {
-                  _elem363 = new SQLForeignKey();
-                  _elem363.read(iprot);
-                  struct.foreignKeyCols.add(_elem363);
-                }
-                iprot.readListEnd();
-              }
-              struct.setForeignKeyColsIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          default:
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-        }
-        iprot.readFieldEnd();
-      }
-      iprot.readStructEnd();
-      struct.validate();
-    }
-
-    public void write(org.apache.thrift.protocol.TProtocol oprot, AddForeignKeyRequest struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.foreignKeyCols != null) {
-        oprot.writeFieldBegin(FOREIGN_KEY_COLS_FIELD_DESC);
-        {
-          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeyCols.size()));
-          for (SQLForeignKey _iter365 : struct.foreignKeyCols)
-          {
-            _iter365.write(oprot);
-          }
-          oprot.writeListEnd();
-        }
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class AddForeignKeyRequestTupleSchemeFactory implements SchemeFactory {
-    public AddForeignKeyRequestTupleScheme getScheme() {
-      return new AddForeignKeyRequestTupleScheme();
-    }
-  }
-
-  private static class AddForeignKeyRequestTupleScheme extends TupleScheme<AddForeignKeyRequest> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, AddForeignKeyRequest struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      {
-        oprot.writeI32(struct.foreignKeyCols.size());
-        for (SQLForeignKey _iter366 : struct.foreignKeyCols)
-        {
-          _iter366.write(oprot);
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, AddForeignKeyRequest struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      {
-        org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-        struct.foreignKeyCols = new ArrayList<SQLForeignKey>(_list367.size);
-        SQLForeignKey _elem368;
-        for (int _i369 = 0; _i369 < _list367.size; ++_i369)
-        {
-          _elem368 = new SQLForeignKey();
-          _elem368.read(iprot);
-          struct.foreignKeyCols.add(_elem368);
-        }
-      }
-      struct.setForeignKeyColsIsSet(true);
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/hive/blob/453c8ed4/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java
deleted file mode 100644
index 3b79e98..0000000
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java
+++ /dev/null
@@ -1,443 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-package org.apache.hadoop.hive.metastore.api;
-
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import org.apache.thrift.async.AsyncMethodCallback;
-import org.apache.thrift.server.AbstractNonblockingServer.*;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import javax.annotation.Generated;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class AddNotNullConstraintRequest implements org.apache.thrift.TBase<AddNotNullConstraintRequest, AddNotNullConstraintRequest._Fields>, java.io.Serializable, Cloneable, Comparable<AddNotNullConstraintRequest> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddNotNullConstraintRequest");
-
-  private static final org.apache.thrift.protocol.TField NOT_NULL_CONSTRAINT_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("notNullConstraintCols", org.apache.thrift.protocol.TType.LIST, (short)1);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new AddNotNullConstraintRequestStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new AddNotNullConstraintRequestTupleSchemeFactory());
-  }
-
-  private List<SQLNotNullConstraint> notNullConstraintCols; // 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 {
-    NOT_NULL_CONSTRAINT_COLS((short)1, "notNullConstraintCols");
-
-    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
-    static {
-      for (_Fields field : EnumSet.allOf(_Fields.class)) {
-        byName.put(field.getFieldName(), field);
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, or null if its not found.
-     */
-    public static _Fields findByThriftId(int fieldId) {
-      switch(fieldId) {
-        case 1: // NOT_NULL_CONSTRAINT_COLS
-          return NOT_NULL_CONSTRAINT_COLS;
-        default:
-          return null;
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
-     */
-    public static _Fields findByThriftIdOrThrow(int fieldId) {
-      _Fields fields = findByThriftId(fieldId);
-      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-      return fields;
-    }
-
-    /**
-     * Find the _Fields constant that matches name, or null if its not found.
-     */
-    public static _Fields findByName(String name) {
-      return byName.get(name);
-    }
-
-    private final short _thriftId;
-    private final String _fieldName;
-
-    _Fields(short thriftId, String fieldName) {
-      _thriftId = thriftId;
-      _fieldName = fieldName;
-    }
-
-    public short getThriftFieldId() {
-      return _thriftId;
-    }
-
-    public String getFieldName() {
-      return _fieldName;
-    }
-  }
-
-  // isset id assignments
-  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-  static {
-    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.NOT_NULL_CONSTRAINT_COLS, new org.apache.thrift.meta_data.FieldMetaData("notNullConstraintCols", 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, SQLNotNullConstraint.class))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AddNotNullConstraintRequest.class, metaDataMap);
-  }
-
-  public AddNotNullConstraintRequest() {
-  }
-
-  public AddNotNullConstraintRequest(
-    List<SQLNotNullConstraint> notNullConstraintCols)
-  {
-    this();
-    this.notNullConstraintCols = notNullConstraintCols;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public AddNotNullConstraintRequest(AddNotNullConstraintRequest other) {
-    if (other.isSetNotNullConstraintCols()) {
-      List<SQLNotNullConstraint> __this__notNullConstraintCols = new ArrayList<SQLNotNullConstraint>(other.notNullConstraintCols.size());
-      for (SQLNotNullConstraint other_element : other.notNullConstraintCols) {
-        __this__notNullConstraintCols.add(new SQLNotNullConstraint(other_element));
-      }
-      this.notNullConstraintCols = __this__notNullConstraintCols;
-    }
-  }
-
-  public AddNotNullConstraintRequest deepCopy() {
-    return new AddNotNullConstraintRequest(this);
-  }
-
-  @Override
-  public void clear() {
-    this.notNullConstraintCols = null;
-  }
-
-  public int getNotNullConstraintColsSize() {
-    return (this.notNullConstraintCols == null) ? 0 : this.notNullConstraintCols.size();
-  }
-
-  public java.util.Iterator<SQLNotNullConstraint> getNotNullConstraintColsIterator() {
-    return (this.notNullConstraintCols == null) ? null : this.notNullConstraintCols.iterator();
-  }
-
-  public void addToNotNullConstraintCols(SQLNotNullConstraint elem) {
-    if (this.notNullConstraintCols == null) {
-      this.notNullConstraintCols = new ArrayList<SQLNotNullConstraint>();
-    }
-    this.notNullConstraintCols.add(elem);
-  }
-
-  public List<SQLNotNullConstraint> getNotNullConstraintCols() {
-    return this.notNullConstraintCols;
-  }
-
-  public void setNotNullConstraintCols(List<SQLNotNullConstraint> notNullConstraintCols) {
-    this.notNullConstraintCols = notNullConstraintCols;
-  }
-
-  public void unsetNotNullConstraintCols() {
-    this.notNullConstraintCols = null;
-  }
-
-  /** Returns true if field notNullConstraintCols is set (has been assigned a value) and false otherwise */
-  public boolean isSetNotNullConstraintCols() {
-    return this.notNullConstraintCols != null;
-  }
-
-  public void setNotNullConstraintColsIsSet(boolean value) {
-    if (!value) {
-      this.notNullConstraintCols = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case NOT_NULL_CONSTRAINT_COLS:
-      if (value == null) {
-        unsetNotNullConstraintCols();
-      } else {
-        setNotNullConstraintCols((List<SQLNotNullConstraint>)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case NOT_NULL_CONSTRAINT_COLS:
-      return getNotNullConstraintCols();
-
-    }
-    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 NOT_NULL_CONSTRAINT_COLS:
-      return isSetNotNullConstraintCols();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof AddNotNullConstraintRequest)
-      return this.equals((AddNotNullConstraintRequest)that);
-    return false;
-  }
-
-  public boolean equals(AddNotNullConstraintRequest that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_notNullConstraintCols = true && this.isSetNotNullConstraintCols();
-    boolean that_present_notNullConstraintCols = true && that.isSetNotNullConstraintCols();
-    if (this_present_notNullConstraintCols || that_present_notNullConstraintCols) {
-      if (!(this_present_notNullConstraintCols && that_present_notNullConstraintCols))
-        return false;
-      if (!this.notNullConstraintCols.equals(that.notNullConstraintCols))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    List<Object> list = new ArrayList<Object>();
-
-    boolean present_notNullConstraintCols = true && (isSetNotNullConstraintCols());
-    list.add(present_notNullConstraintCols);
-    if (present_notNullConstraintCols)
-      list.add(notNullConstraintCols);
-
-    return list.hashCode();
-  }
-
-  @Override
-  public int compareTo(AddNotNullConstraintRequest other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetNotNullConstraintCols()).compareTo(other.isSetNotNullConstraintCols());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetNotNullConstraintCols()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notNullConstraintCols, other.notNullConstraintCols);
-      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("AddNotNullConstraintRequest(");
-    boolean first = true;
-
-    sb.append("notNullConstraintCols:");
-    if (this.notNullConstraintCols == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.notNullConstraintCols);
-    }
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    if (!isSetNotNullConstraintCols()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'notNullConstraintCols' 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 AddNotNullConstraintRequestStandardSchemeFactory implements SchemeFactory {
-    public AddNotNullConstraintRequestStandardScheme getScheme() {
-      return new AddNotNullConstraintRequestStandardScheme();
-    }
-  }
-
-  private static class AddNotNullConstraintRequestStandardScheme extends StandardScheme<AddNotNullConstraintRequest> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, AddNotNullConstraintRequest 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: // NOT_NULL_CONSTRAINT_COLS
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list378 = iprot.readListBegin();
-                struct.notNullConstraintCols = new ArrayList<SQLNotNullConstraint>(_list378.size);
-                SQLNotNullConstraint _elem379;
-                for (int _i380 = 0; _i380 < _list378.size; ++_i380)
-                {
-                  _elem379 = new SQLNotNullConstraint();
-                  _elem379.read(iprot);
-                  struct.notNullConstraintCols.add(_elem379);
-                }
-                iprot.readListEnd();
-              }
-              struct.setNotNullConstraintColsIsSet(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, AddNotNullConstraintRequest struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.notNullConstraintCols != null) {
-        oprot.writeFieldBegin(NOT_NULL_CONSTRAINT_COLS_FIELD_DESC);
-        {
-          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraintCols.size()));
-          for (SQLNotNullConstraint _iter381 : struct.notNullConstraintCols)
-          {
-            _iter381.write(oprot);
-          }
-          oprot.writeListEnd();
-        }
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class AddNotNullConstraintRequestTupleSchemeFactory implements SchemeFactory {
-    public AddNotNullConstraintRequestTupleScheme getScheme() {
-      return new AddNotNullConstraintRequestTupleScheme();
-    }
-  }
-
-  private static class AddNotNullConstraintRequestTupleScheme extends TupleScheme<AddNotNullConstraintRequest> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, AddNotNullConstraintRequest struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      {
-        oprot.writeI32(struct.notNullConstraintCols.size());
-        for (SQLNotNullConstraint _iter382 : struct.notNullConstraintCols)
-        {
-          _iter382.write(oprot);
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, AddNotNullConstraintRequest struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      {
-        org.apache.thrift.protocol.TList _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-        struct.notNullConstraintCols = new ArrayList<SQLNotNullConstraint>(_list383.size);
-        SQLNotNullConstraint _elem384;
-        for (int _i385 = 0; _i385 < _list383.size; ++_i385)
-        {
-          _elem384 = new SQLNotNullConstraint();
-          _elem384.read(iprot);
-          struct.notNullConstraintCols.add(_elem384);
-        }
-      }
-      struct.setNotNullConstraintColsIsSet(true);
-    }
-  }
-
-}
-


Mime
View raw message