hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject svn commit: r1385320 [2/4] - in /hive/trunk: metastore/if/ metastore/src/gen/thrift/gen-cpp/ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ metastore/src/gen/thrift/gen-php/hive_metastore/ metastore/src/gen/thrift/gen-py/hi...
Date Sun, 16 Sep 2012 17:17:17 GMT
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java?rev=1385320&r1=1385319&r2=1385320&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java Sun Sep 16 17:17:16 2012
@@ -110,6 +110,8 @@ public class ThriftHiveMetastore {
 
     public void alter_partition(String db_name, String tbl_name, Partition new_part) throws InvalidOperationException, MetaException, org.apache.thrift.TException;
 
+    public void alter_partitions(String db_name, String tbl_name, List<Partition> new_parts) throws InvalidOperationException, MetaException, org.apache.thrift.TException;
+
     public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context) throws InvalidOperationException, MetaException, org.apache.thrift.TException;
 
     public void rename_partition(String db_name, String tbl_name, List<String> part_vals, Partition new_part) throws InvalidOperationException, MetaException, org.apache.thrift.TException;
@@ -250,6 +252,8 @@ public class ThriftHiveMetastore {
 
     public void alter_partition(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_partition_call> resultHandler) throws org.apache.thrift.TException;
 
+    public void alter_partitions(String db_name, String tbl_name, List<Partition> new_parts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_partitions_call> resultHandler) throws org.apache.thrift.TException;
+
     public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_partition_with_environment_context_call> resultHandler) throws org.apache.thrift.TException;
 
     public void rename_partition(String db_name, String tbl_name, List<String> part_vals, Partition new_part, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.rename_partition_call> resultHandler) throws org.apache.thrift.TException;
@@ -1580,6 +1584,34 @@ public class ThriftHiveMetastore {
       return;
     }
 
+    public void alter_partitions(String db_name, String tbl_name, List<Partition> new_parts) throws InvalidOperationException, MetaException, org.apache.thrift.TException
+    {
+      send_alter_partitions(db_name, tbl_name, new_parts);
+      recv_alter_partitions();
+    }
+
+    public void send_alter_partitions(String db_name, String tbl_name, List<Partition> new_parts) throws org.apache.thrift.TException
+    {
+      alter_partitions_args args = new alter_partitions_args();
+      args.setDb_name(db_name);
+      args.setTbl_name(tbl_name);
+      args.setNew_parts(new_parts);
+      sendBase("alter_partitions", args);
+    }
+
+    public void recv_alter_partitions() throws InvalidOperationException, MetaException, org.apache.thrift.TException
+    {
+      alter_partitions_result result = new alter_partitions_result();
+      receiveBase(result, "alter_partitions");
+      if (result.o1 != null) {
+        throw result.o1;
+      }
+      if (result.o2 != null) {
+        throw result.o2;
+      }
+      return;
+    }
+
     public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context) throws InvalidOperationException, MetaException, org.apache.thrift.TException
     {
       send_alter_partition_with_environment_context(db_name, tbl_name, new_part, environment_context);
@@ -3876,6 +3908,44 @@ public class ThriftHiveMetastore {
       }
     }
 
+    public void alter_partitions(String db_name, String tbl_name, List<Partition> new_parts, org.apache.thrift.async.AsyncMethodCallback<alter_partitions_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      alter_partitions_call method_call = new alter_partitions_call(db_name, tbl_name, new_parts, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class alter_partitions_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private String db_name;
+      private String tbl_name;
+      private List<Partition> new_parts;
+      public alter_partitions_call(String db_name, String tbl_name, List<Partition> new_parts, org.apache.thrift.async.AsyncMethodCallback<alter_partitions_call> 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.db_name = db_name;
+        this.tbl_name = tbl_name;
+        this.new_parts = new_parts;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_partitions", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        alter_partitions_args args = new alter_partitions_args();
+        args.setDb_name(db_name);
+        args.setTbl_name(tbl_name);
+        args.setNew_parts(new_parts);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public void getResult() throws InvalidOperationException, 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);
+        (new Client(prot)).recv_alter_partitions();
+      }
+    }
+
     public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback<alter_partition_with_environment_context_call> resultHandler) throws org.apache.thrift.TException {
       checkReady();
       alter_partition_with_environment_context_call method_call = new alter_partition_with_environment_context_call(db_name, tbl_name, new_part, environment_context, resultHandler, this, ___protocolFactory, ___transport);
@@ -4911,6 +4981,7 @@ public class ThriftHiveMetastore {
       processMap.put("get_partitions_by_filter", new get_partitions_by_filter());
       processMap.put("get_partitions_by_names", new get_partitions_by_names());
       processMap.put("alter_partition", new alter_partition());
+      processMap.put("alter_partitions", new alter_partitions());
       processMap.put("alter_partition_with_environment_context", new alter_partition_with_environment_context());
       processMap.put("rename_partition", new rename_partition());
       processMap.put("get_config_value", new get_config_value());
@@ -5868,6 +5939,28 @@ public class ThriftHiveMetastore {
       }
     }
 
+    private static class alter_partitions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, alter_partitions_args> {
+      public alter_partitions() {
+        super("alter_partitions");
+      }
+
+      protected alter_partitions_args getEmptyArgsInstance() {
+        return new alter_partitions_args();
+      }
+
+      protected alter_partitions_result getResult(I iface, alter_partitions_args args) throws org.apache.thrift.TException {
+        alter_partitions_result result = new alter_partitions_result();
+        try {
+          iface.alter_partitions(args.db_name, args.tbl_name, args.new_parts);
+        } catch (InvalidOperationException o1) {
+          result.o1 = o1;
+        } catch (MetaException o2) {
+          result.o2 = o2;
+        }
+        return result;
+      }
+    }
+
     private static class alter_partition_with_environment_context<I extends Iface> extends org.apache.thrift.ProcessFunction<I, alter_partition_with_environment_context_args> {
       public alter_partition_with_environment_context() {
         super("alter_partition_with_environment_context");
@@ -12814,8 +12907,6 @@ public class ThriftHiveMetastore {
 
     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_bit_vector = new BitSet(1);
         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);
@@ -13603,8 +13694,6 @@ public class ThriftHiveMetastore {
 
     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_bit_vector = new BitSet(1);
         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);
@@ -28329,8 +28418,6 @@ public class ThriftHiveMetastore {
 
     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_bit_vector = new BitSet(1);
         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);
@@ -31605,8 +31692,6 @@ public class ThriftHiveMetastore {
 
     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_bit_vector = new BitSet(1);
         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);
@@ -32673,8 +32758,6 @@ public class ThriftHiveMetastore {
 
     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_bit_vector = new BitSet(1);
         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);
@@ -45757,25 +45840,22 @@ public class ThriftHiveMetastore {
 
   }
 
-  public static class alter_partition_with_environment_context_args implements org.apache.thrift.TBase<alter_partition_with_environment_context_args, alter_partition_with_environment_context_args._Fields>, java.io.Serializable, Cloneable   {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_with_environment_context_args");
+  public static class alter_partitions_args implements org.apache.thrift.TBase<alter_partitions_args, alter_partitions_args._Fields>, java.io.Serializable, Cloneable   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partitions_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 NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", 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_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)3);
 
     private String db_name; // required
     private String tbl_name; // required
-    private Partition new_part; // required
-    private EnvironmentContext environment_context; // required
+    private List<Partition> 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 {
       DB_NAME((short)1, "db_name"),
       TBL_NAME((short)2, "tbl_name"),
-      NEW_PART((short)3, "new_part"),
-      ENVIRONMENT_CONTEXT((short)4, "environment_context");
+      NEW_PARTS((short)3, "new_parts");
 
       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
 
@@ -45794,10 +45874,8 @@ public class ThriftHiveMetastore {
             return DB_NAME;
           case 2: // TBL_NAME
             return TBL_NAME;
-          case 3: // NEW_PART
-            return NEW_PART;
-          case 4: // ENVIRONMENT_CONTEXT
-            return ENVIRONMENT_CONTEXT;
+          case 3: // NEW_PARTS
+            return NEW_PARTS;
           default:
             return null;
         }
@@ -45846,58 +45924,55 @@ public class ThriftHiveMetastore {
           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_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.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_partition_with_environment_context_args.class, metaDataMap);
+      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partitions_args.class, metaDataMap);
     }
 
-    public alter_partition_with_environment_context_args() {
+    public alter_partitions_args() {
     }
 
-    public alter_partition_with_environment_context_args(
+    public alter_partitions_args(
       String db_name,
       String tbl_name,
-      Partition new_part,
-      EnvironmentContext environment_context)
+      List<Partition> new_parts)
     {
       this();
       this.db_name = db_name;
       this.tbl_name = tbl_name;
-      this.new_part = new_part;
-      this.environment_context = environment_context;
+      this.new_parts = new_parts;
     }
 
     /**
      * Performs a deep copy on <i>other</i>.
      */
-    public alter_partition_with_environment_context_args(alter_partition_with_environment_context_args other) {
+    public alter_partitions_args(alter_partitions_args other) {
       if (other.isSetDb_name()) {
         this.db_name = other.db_name;
       }
       if (other.isSetTbl_name()) {
         this.tbl_name = other.tbl_name;
       }
-      if (other.isSetNew_part()) {
-        this.new_part = new Partition(other.new_part);
-      }
-      if (other.isSetEnvironment_context()) {
-        this.environment_context = new EnvironmentContext(other.environment_context);
+      if (other.isSetNew_parts()) {
+        List<Partition> __this__new_parts = new ArrayList<Partition>();
+        for (Partition other_element : other.new_parts) {
+          __this__new_parts.add(new Partition(other_element));
+        }
+        this.new_parts = __this__new_parts;
       }
     }
 
-    public alter_partition_with_environment_context_args deepCopy() {
-      return new alter_partition_with_environment_context_args(this);
+    public alter_partitions_args deepCopy() {
+      return new alter_partitions_args(this);
     }
 
     @Override
     public void clear() {
       this.db_name = null;
       this.tbl_name = null;
-      this.new_part = null;
-      this.environment_context = null;
+      this.new_parts = null;
     }
 
     public String getDb_name() {
@@ -45946,49 +46021,41 @@ public class ThriftHiveMetastore {
       }
     }
 
-    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;
+    public int getNew_partsSize() {
+      return (this.new_parts == null) ? 0 : this.new_parts.size();
     }
 
-    /** 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 java.util.Iterator<Partition> getNew_partsIterator() {
+      return (this.new_parts == null) ? null : this.new_parts.iterator();
     }
 
-    public void setNew_partIsSet(boolean value) {
-      if (!value) {
-        this.new_part = null;
+    public void addToNew_parts(Partition elem) {
+      if (this.new_parts == null) {
+        this.new_parts = new ArrayList<Partition>();
       }
+      this.new_parts.add(elem);
     }
 
-    public EnvironmentContext getEnvironment_context() {
-      return this.environment_context;
+    public List<Partition> getNew_parts() {
+      return this.new_parts;
     }
 
-    public void setEnvironment_context(EnvironmentContext environment_context) {
-      this.environment_context = environment_context;
+    public void setNew_parts(List<Partition> new_parts) {
+      this.new_parts = new_parts;
     }
 
-    public void unsetEnvironment_context() {
-      this.environment_context = null;
+    public void unsetNew_parts() {
+      this.new_parts = 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 new_parts is set (has been assigned a value) and false otherwise */
+    public boolean isSetNew_parts() {
+      return this.new_parts != null;
     }
 
-    public void setEnvironment_contextIsSet(boolean value) {
+    public void setNew_partsIsSet(boolean value) {
       if (!value) {
-        this.environment_context = null;
+        this.new_parts = null;
       }
     }
 
@@ -46010,19 +46077,11 @@ public class ThriftHiveMetastore {
         }
         break;
 
-      case NEW_PART:
-        if (value == null) {
-          unsetNew_part();
-        } else {
-          setNew_part((Partition)value);
-        }
-        break;
-
-      case ENVIRONMENT_CONTEXT:
+      case NEW_PARTS:
         if (value == null) {
-          unsetEnvironment_context();
+          unsetNew_parts();
         } else {
-          setEnvironment_context((EnvironmentContext)value);
+          setNew_parts((List<Partition>)value);
         }
         break;
 
@@ -46037,11 +46096,8 @@ public class ThriftHiveMetastore {
       case TBL_NAME:
         return getTbl_name();
 
-      case NEW_PART:
-        return getNew_part();
-
-      case ENVIRONMENT_CONTEXT:
-        return getEnvironment_context();
+      case NEW_PARTS:
+        return getNew_parts();
 
       }
       throw new IllegalStateException();
@@ -46058,10 +46114,8 @@ public class ThriftHiveMetastore {
         return isSetDb_name();
       case TBL_NAME:
         return isSetTbl_name();
-      case NEW_PART:
-        return isSetNew_part();
-      case ENVIRONMENT_CONTEXT:
-        return isSetEnvironment_context();
+      case NEW_PARTS:
+        return isSetNew_parts();
       }
       throw new IllegalStateException();
     }
@@ -46070,12 +46124,12 @@ public class ThriftHiveMetastore {
     public boolean equals(Object that) {
       if (that == null)
         return false;
-      if (that instanceof alter_partition_with_environment_context_args)
-        return this.equals((alter_partition_with_environment_context_args)that);
+      if (that instanceof alter_partitions_args)
+        return this.equals((alter_partitions_args)that);
       return false;
     }
 
-    public boolean equals(alter_partition_with_environment_context_args that) {
+    public boolean equals(alter_partitions_args that) {
       if (that == null)
         return false;
 
@@ -46097,21 +46151,12 @@ public class ThriftHiveMetastore {
           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_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.environment_context.equals(that.environment_context))
+        if (!this.new_parts.equals(that.new_parts))
           return false;
       }
 
@@ -46132,26 +46177,21 @@ public class ThriftHiveMetastore {
       if (present_tbl_name)
         builder.append(tbl_name);
 
-      boolean present_new_part = true && (isSetNew_part());
-      builder.append(present_new_part);
-      if (present_new_part)
-        builder.append(new_part);
-
-      boolean present_environment_context = true && (isSetEnvironment_context());
-      builder.append(present_environment_context);
-      if (present_environment_context)
-        builder.append(environment_context);
+      boolean present_new_parts = true && (isSetNew_parts());
+      builder.append(present_new_parts);
+      if (present_new_parts)
+        builder.append(new_parts);
 
       return builder.toHashCode();
     }
 
-    public int compareTo(alter_partition_with_environment_context_args other) {
+    public int compareTo(alter_partitions_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      alter_partition_with_environment_context_args typedOther = (alter_partition_with_environment_context_args)other;
+      alter_partitions_args typedOther = (alter_partitions_args)other;
 
       lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name());
       if (lastComparison != 0) {
@@ -46173,22 +46213,12 @@ public class ThriftHiveMetastore {
           return lastComparison;
         }
       }
-      lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part());
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-      if (isSetNew_part()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part);
-        if (lastComparison != 0) {
-          return lastComparison;
-        }
-      }
-      lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context());
+      lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(typedOther.isSetNew_parts());
       if (lastComparison != 0) {
         return lastComparison;
       }
-      if (isSetEnvironment_context()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context);
+      if (isSetNew_parts()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, typedOther.new_parts);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -46224,18 +46254,20 @@ public class ThriftHiveMetastore {
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case 3: // NEW_PART
-            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-              this.new_part = new Partition();
-              this.new_part.read(iprot);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-            }
-            break;
-          case 4: // ENVIRONMENT_CONTEXT
-            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-              this.environment_context = new EnvironmentContext();
-              this.environment_context.read(iprot);
+          case 3: // NEW_PARTS
+            if (field.type == org.apache.thrift.protocol.TType.LIST) {
+              {
+                org.apache.thrift.protocol.TList _list245 = iprot.readListBegin();
+                this.new_parts = new ArrayList<Partition>(_list245.size);
+                for (int _i246 = 0; _i246 < _list245.size; ++_i246)
+                {
+                  Partition _elem247; // required
+                  _elem247 = new Partition();
+                  _elem247.read(iprot);
+                  this.new_parts.add(_elem247);
+                }
+                iprot.readListEnd();
+              }
             } else { 
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
             }
@@ -46263,14 +46295,16 @@ public class ThriftHiveMetastore {
         oprot.writeString(this.tbl_name);
         oprot.writeFieldEnd();
       }
-      if (this.new_part != null) {
-        oprot.writeFieldBegin(NEW_PART_FIELD_DESC);
-        this.new_part.write(oprot);
-        oprot.writeFieldEnd();
-      }
-      if (this.environment_context != null) {
-        oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC);
-        this.environment_context.write(oprot);
+      if (this.new_parts != null) {
+        oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC);
+        {
+          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.new_parts.size()));
+          for (Partition _iter248 : this.new_parts)
+          {
+            _iter248.write(oprot);
+          }
+          oprot.writeListEnd();
+        }
         oprot.writeFieldEnd();
       }
       oprot.writeFieldStop();
@@ -46279,7 +46313,7 @@ public class ThriftHiveMetastore {
 
     @Override
     public String toString() {
-      StringBuilder sb = new StringBuilder("alter_partition_with_environment_context_args(");
+      StringBuilder sb = new StringBuilder("alter_partitions_args(");
       boolean first = true;
 
       sb.append("db_name:");
@@ -46298,19 +46332,11 @@ public class ThriftHiveMetastore {
       }
       first = false;
       if (!first) sb.append(", ");
-      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("new_parts:");
+      if (this.new_parts == null) {
         sb.append("null");
       } else {
-        sb.append(this.environment_context);
+        sb.append(this.new_parts);
       }
       first = false;
       sb.append(")");
@@ -46339,8 +46365,8 @@ public class ThriftHiveMetastore {
 
   }
 
-  public static class alter_partition_with_environment_context_result implements org.apache.thrift.TBase<alter_partition_with_environment_context_result, alter_partition_with_environment_context_result._Fields>, java.io.Serializable, Cloneable   {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_with_environment_context_result");
+  public static class alter_partitions_result implements org.apache.thrift.TBase<alter_partitions_result, alter_partitions_result._Fields>, java.io.Serializable, Cloneable   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partitions_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);
@@ -46419,13 +46445,13 @@ public class ThriftHiveMetastore {
       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(alter_partition_with_environment_context_result.class, metaDataMap);
+      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partitions_result.class, metaDataMap);
     }
 
-    public alter_partition_with_environment_context_result() {
+    public alter_partitions_result() {
     }
 
-    public alter_partition_with_environment_context_result(
+    public alter_partitions_result(
       InvalidOperationException o1,
       MetaException o2)
     {
@@ -46437,7 +46463,7 @@ public class ThriftHiveMetastore {
     /**
      * Performs a deep copy on <i>other</i>.
      */
-    public alter_partition_with_environment_context_result(alter_partition_with_environment_context_result other) {
+    public alter_partitions_result(alter_partitions_result other) {
       if (other.isSetO1()) {
         this.o1 = new InvalidOperationException(other.o1);
       }
@@ -46446,8 +46472,8 @@ public class ThriftHiveMetastore {
       }
     }
 
-    public alter_partition_with_environment_context_result deepCopy() {
-      return new alter_partition_with_environment_context_result(this);
+    public alter_partitions_result deepCopy() {
+      return new alter_partitions_result(this);
     }
 
     @Override
@@ -46554,12 +46580,12 @@ public class ThriftHiveMetastore {
     public boolean equals(Object that) {
       if (that == null)
         return false;
-      if (that instanceof alter_partition_with_environment_context_result)
-        return this.equals((alter_partition_with_environment_context_result)that);
+      if (that instanceof alter_partitions_result)
+        return this.equals((alter_partitions_result)that);
       return false;
     }
 
-    public boolean equals(alter_partition_with_environment_context_result that) {
+    public boolean equals(alter_partitions_result that) {
       if (that == null)
         return false;
 
@@ -46601,13 +46627,13 @@ public class ThriftHiveMetastore {
       return builder.toHashCode();
     }
 
-    public int compareTo(alter_partition_with_environment_context_result other) {
+    public int compareTo(alter_partitions_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      alter_partition_with_environment_context_result typedOther = (alter_partition_with_environment_context_result)other;
+      alter_partitions_result typedOther = (alter_partitions_result)other;
 
       lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1());
       if (lastComparison != 0) {
@@ -46689,7 +46715,7 @@ public class ThriftHiveMetastore {
 
     @Override
     public String toString() {
-      StringBuilder sb = new StringBuilder("alter_partition_with_environment_context_result(");
+      StringBuilder sb = new StringBuilder("alter_partitions_result(");
       boolean first = true;
 
       sb.append("o1:");
@@ -46733,25 +46759,25 @@ public class ThriftHiveMetastore {
 
   }
 
-  public static class rename_partition_args implements org.apache.thrift.TBase<rename_partition_args, rename_partition_args._Fields>, java.io.Serializable, Cloneable   {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("rename_partition_args");
+  public static class alter_partition_with_environment_context_args implements org.apache.thrift.TBase<alter_partition_with_environment_context_args, alter_partition_with_environment_context_args._Fields>, java.io.Serializable, Cloneable   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_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 NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", 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)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 String db_name; // required
     private String tbl_name; // required
-    private List<String> part_vals; // 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 {
       DB_NAME((short)1, "db_name"),
       TBL_NAME((short)2, "tbl_name"),
-      PART_VALS((short)3, "part_vals"),
-      NEW_PART((short)4, "new_part");
+      NEW_PART((short)3, "new_part"),
+      ENVIRONMENT_CONTEXT((short)4, "environment_context");
 
       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
 
@@ -46770,10 +46796,10 @@ public class ThriftHiveMetastore {
             return DB_NAME;
           case 2: // TBL_NAME
             return TBL_NAME;
-          case 3: // PART_VALS
-            return PART_VALS;
-          case 4: // NEW_PART
+          case 3: // NEW_PART
             return NEW_PART;
+          case 4: // ENVIRONMENT_CONTEXT
+            return ENVIRONMENT_CONTEXT;
           default:
             return null;
         }
@@ -46822,63 +46848,58 @@ public class ThriftHiveMetastore {
           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.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(rename_partition_args.class, metaDataMap);
+      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_with_environment_context_args.class, metaDataMap);
     }
 
-    public rename_partition_args() {
+    public alter_partition_with_environment_context_args() {
     }
 
-    public rename_partition_args(
+    public alter_partition_with_environment_context_args(
       String db_name,
       String tbl_name,
-      List<String> part_vals,
-      Partition new_part)
+      Partition new_part,
+      EnvironmentContext environment_context)
     {
       this();
       this.db_name = db_name;
       this.tbl_name = tbl_name;
-      this.part_vals = part_vals;
       this.new_part = new_part;
+      this.environment_context = environment_context;
     }
 
     /**
      * Performs a deep copy on <i>other</i>.
      */
-    public rename_partition_args(rename_partition_args other) {
+    public alter_partition_with_environment_context_args(alter_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<String> __this__part_vals = new ArrayList<String>();
-        for (String other_element : other.part_vals) {
-          __this__part_vals.add(other_element);
-        }
-        this.part_vals = __this__part_vals;
-      }
       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 rename_partition_args deepCopy() {
-      return new rename_partition_args(this);
+    public alter_partition_with_environment_context_args deepCopy() {
+      return new alter_partition_with_environment_context_args(this);
     }
 
     @Override
     public void clear() {
       this.db_name = null;
       this.tbl_name = null;
-      this.part_vals = null;
       this.new_part = null;
+      this.environment_context = null;
     }
 
     public String getDb_name() {
@@ -46927,64 +46948,49 @@ public class ThriftHiveMetastore {
       }
     }
 
-    public int getPart_valsSize() {
-      return (this.part_vals == null) ? 0 : this.part_vals.size();
-    }
-
-    public java.util.Iterator<String> 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<String>();
-      }
-      this.part_vals.add(elem);
-    }
-
-    public List<String> getPart_vals() {
-      return this.part_vals;
+    public Partition getNew_part() {
+      return this.new_part;
     }
 
-    public void setPart_vals(List<String> part_vals) {
-      this.part_vals = part_vals;
+    public void setNew_part(Partition new_part) {
+      this.new_part = new_part;
     }
 
-    public void unsetPart_vals() {
-      this.part_vals = null;
+    public void unsetNew_part() {
+      this.new_part = 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 new_part is set (has been assigned a value) and false otherwise */
+    public boolean isSetNew_part() {
+      return this.new_part != null;
     }
 
-    public void setPart_valsIsSet(boolean value) {
+    public void setNew_partIsSet(boolean value) {
       if (!value) {
-        this.part_vals = null;
+        this.new_part = null;
       }
     }
 
-    public Partition getNew_part() {
-      return this.new_part;
+    public EnvironmentContext getEnvironment_context() {
+      return this.environment_context;
     }
 
-    public void setNew_part(Partition new_part) {
-      this.new_part = new_part;
+    public void setEnvironment_context(EnvironmentContext environment_context) {
+      this.environment_context = environment_context;
     }
 
-    public void unsetNew_part() {
-      this.new_part = null;
+    public void unsetEnvironment_context() {
+      this.environment_context = 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 environment_context is set (has been assigned a value) and false otherwise */
+    public boolean isSetEnvironment_context() {
+      return this.environment_context != null;
     }
 
-    public void setNew_partIsSet(boolean value) {
+    public void setEnvironment_contextIsSet(boolean value) {
       if (!value) {
-        this.new_part = null;
+        this.environment_context = null;
       }
     }
 
@@ -47006,19 +47012,19 @@ public class ThriftHiveMetastore {
         }
         break;
 
-      case PART_VALS:
+      case NEW_PART:
         if (value == null) {
-          unsetPart_vals();
+          unsetNew_part();
         } else {
-          setPart_vals((List<String>)value);
+          setNew_part((Partition)value);
         }
         break;
 
-      case NEW_PART:
+      case ENVIRONMENT_CONTEXT:
         if (value == null) {
-          unsetNew_part();
+          unsetEnvironment_context();
         } else {
-          setNew_part((Partition)value);
+          setEnvironment_context((EnvironmentContext)value);
         }
         break;
 
@@ -47033,12 +47039,12 @@ public class ThriftHiveMetastore {
       case TBL_NAME:
         return getTbl_name();
 
-      case PART_VALS:
-        return getPart_vals();
-
       case NEW_PART:
         return getNew_part();
 
+      case ENVIRONMENT_CONTEXT:
+        return getEnvironment_context();
+
       }
       throw new IllegalStateException();
     }
@@ -47054,10 +47060,10 @@ public class ThriftHiveMetastore {
         return isSetDb_name();
       case TBL_NAME:
         return isSetTbl_name();
-      case PART_VALS:
-        return isSetPart_vals();
       case NEW_PART:
         return isSetNew_part();
+      case ENVIRONMENT_CONTEXT:
+        return isSetEnvironment_context();
       }
       throw new IllegalStateException();
     }
@@ -47066,12 +47072,12 @@ public class ThriftHiveMetastore {
     public boolean equals(Object that) {
       if (that == null)
         return false;
-      if (that instanceof rename_partition_args)
-        return this.equals((rename_partition_args)that);
+      if (that instanceof alter_partition_with_environment_context_args)
+        return this.equals((alter_partition_with_environment_context_args)that);
       return false;
     }
 
-    public boolean equals(rename_partition_args that) {
+    public boolean equals(alter_partition_with_environment_context_args that) {
       if (that == null)
         return false;
 
@@ -47093,15 +47099,6 @@ public class ThriftHiveMetastore {
           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_new_part = true && this.isSetNew_part();
       boolean that_present_new_part = true && that.isSetNew_part();
       if (this_present_new_part || that_present_new_part) {
@@ -47111,6 +47108,15 @@ public class ThriftHiveMetastore {
           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;
     }
 
@@ -47128,26 +47134,26 @@ public class ThriftHiveMetastore {
       if (present_tbl_name)
         builder.append(tbl_name);
 
-      boolean present_part_vals = true && (isSetPart_vals());
-      builder.append(present_part_vals);
-      if (present_part_vals)
-        builder.append(part_vals);
-
       boolean present_new_part = true && (isSetNew_part());
       builder.append(present_new_part);
       if (present_new_part)
         builder.append(new_part);
 
+      boolean present_environment_context = true && (isSetEnvironment_context());
+      builder.append(present_environment_context);
+      if (present_environment_context)
+        builder.append(environment_context);
+
       return builder.toHashCode();
     }
 
-    public int compareTo(rename_partition_args other) {
+    public int compareTo(alter_partition_with_environment_context_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      rename_partition_args typedOther = (rename_partition_args)other;
+      alter_partition_with_environment_context_args typedOther = (alter_partition_with_environment_context_args)other;
 
       lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name());
       if (lastComparison != 0) {
@@ -47169,22 +47175,22 @@ public class ThriftHiveMetastore {
           return lastComparison;
         }
       }
-      lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals());
+      lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part());
       if (lastComparison != 0) {
         return lastComparison;
       }
-      if (isSetPart_vals()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals);
+      if (isSetNew_part()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part);
         if (lastComparison != 0) {
           return lastComparison;
         }
       }
-      lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part());
+      lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context());
       if (lastComparison != 0) {
         return lastComparison;
       }
-      if (isSetNew_part()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part);
+      if (isSetEnvironment_context()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -47220,22 +47226,1018 @@ public class ThriftHiveMetastore {
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case 3: // PART_VALS
-            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list245 = iprot.readListBegin();
-                this.part_vals = new ArrayList<String>(_list245.size);
-                for (int _i246 = 0; _i246 < _list245.size; ++_i246)
-                {
-                  String _elem247; // required
-                  _elem247 = iprot.readString();
-                  this.part_vals.add(_elem247);
-                }
-                iprot.readListEnd();
-              }
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-            }
+          case 3: // NEW_PART
+            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+              this.new_part = new Partition();
+              this.new_part.read(iprot);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
+          case 4: // ENVIRONMENT_CONTEXT
+            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+              this.environment_context = new EnvironmentContext();
+              this.environment_context.read(iprot);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+      validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+      validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (this.db_name != null) {
+        oprot.writeFieldBegin(DB_NAME_FIELD_DESC);
+        oprot.writeString(this.db_name);
+        oprot.writeFieldEnd();
+      }
+      if (this.tbl_name != null) {
+        oprot.writeFieldBegin(TBL_NAME_FIELD_DESC);
+        oprot.writeString(this.tbl_name);
+        oprot.writeFieldEnd();
+      }
+      if (this.new_part != null) {
+        oprot.writeFieldBegin(NEW_PART_FIELD_DESC);
+        this.new_part.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      if (this.environment_context != null) {
+        oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC);
+        this.environment_context.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("alter_partition_with_environment_context_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("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("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
+    }
+
+    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);
+      }
+    }
+
+  }
+
+  public static class alter_partition_with_environment_context_result implements org.apache.thrift.TBase<alter_partition_with_environment_context_result, alter_partition_with_environment_context_result._Fields>, java.io.Serializable, Cloneable   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_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 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");
+
+      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: // 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(alter_partition_with_environment_context_result.class, metaDataMap);
+    }
+
+    public alter_partition_with_environment_context_result() {
+    }
+
+    public alter_partition_with_environment_context_result(
+      InvalidOperationException o1,
+      MetaException o2)
+    {
+      this();
+      this.o1 = o1;
+      this.o2 = o2;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public alter_partition_with_environment_context_result(alter_partition_with_environment_context_result other) {
+      if (other.isSetO1()) {
+        this.o1 = new InvalidOperationException(other.o1);
+      }
+      if (other.isSetO2()) {
+        this.o2 = new MetaException(other.o2);
+      }
+    }
+
+    public alter_partition_with_environment_context_result deepCopy() {
+      return new alter_partition_with_environment_context_result(this);
+    }
+
+    @Override
+    public void clear() {
+      this.o1 = null;
+      this.o2 = null;
+    }
+
+    public InvalidOperationException getO1() {
+      return this.o1;
+    }
+
+    public void setO1(InvalidOperationException 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((InvalidOperationException)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 alter_partition_with_environment_context_result)
+        return this.equals((alter_partition_with_environment_context_result)that);
+      return false;
+    }
+
+    public boolean equals(alter_partition_with_environment_context_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() {
+      HashCodeBuilder builder = new HashCodeBuilder();
+
+      boolean present_o1 = true && (isSetO1());
+      builder.append(present_o1);
+      if (present_o1)
+        builder.append(o1);
+
+      boolean present_o2 = true && (isSetO2());
+      builder.append(present_o2);
+      if (present_o2)
+        builder.append(o2);
+
+      return builder.toHashCode();
+    }
+
+    public int compareTo(alter_partition_with_environment_context_result other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+      alter_partition_with_environment_context_result typedOther = (alter_partition_with_environment_context_result)other;
+
+      lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetO1()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetO2()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.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 {
+      org.apache.thrift.protocol.TField field;
+      iprot.readStructBegin();
+      while (true)
+      {
+        field = iprot.readFieldBegin();
+        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (field.id) {
+          case 1: // O1
+            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+              this.o1 = new InvalidOperationException();
+              this.o1.read(iprot);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
+          case 2: // O2
+            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+              this.o2 = new MetaException();
+              this.o2.read(iprot);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+      validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+      oprot.writeStructBegin(STRUCT_DESC);
+
+      if (this.isSetO1()) {
+        oprot.writeFieldBegin(O1_FIELD_DESC);
+        this.o1.write(oprot);
+        oprot.writeFieldEnd();
+      } else if (this.isSetO2()) {
+        oprot.writeFieldBegin(O2_FIELD_DESC);
+        this.o2.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("alter_partition_with_environment_context_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
+    }
+
+    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);
+      }
+    }
+
+  }
+
+  public static class rename_partition_args implements org.apache.thrift.TBase<rename_partition_args, rename_partition_args._Fields>, java.io.Serializable, Cloneable   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("rename_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 NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)4);
+
+    private String db_name; // required
+    private String tbl_name; // required
+    private List<String> part_vals; // 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 {
+      DB_NAME((short)1, "db_name"),
+      TBL_NAME((short)2, "tbl_name"),
+      PART_VALS((short)3, "part_vals"),
+      NEW_PART((short)4, "new_part");
+
+      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: // DB_NAME
+            return DB_NAME;
+          case 2: // TBL_NAME
+            return TBL_NAME;
+          case 3: // PART_VALS
+            return PART_VALS;
+          case 4: // NEW_PART
+            return NEW_PART;
+          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.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.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(rename_partition_args.class, metaDataMap);
+    }
+
+    public rename_partition_args() {
+    }
+
+    public rename_partition_args(
+      String db_name,
+      String tbl_name,
+      List<String> part_vals,
+      Partition new_part)
+    {
+      this();
+      this.db_name = db_name;
+      this.tbl_name = tbl_name;
+      this.part_vals = part_vals;
+      this.new_part = new_part;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public rename_partition_args(rename_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<String> __this__part_vals = new ArrayList<String>();
+        for (String other_element : other.part_vals) {
+          __this__part_vals.add(other_element);
+        }
+        this.part_vals = __this__part_vals;
+      }
+      if (other.isSetNew_part()) {
+        this.new_part = new Partition(other.new_part);
+      }
+    }
+
+    public rename_partition_args deepCopy() {
+      return new rename_partition_args(this);
+    }
+
+    @Override
+    public void clear() {
+      this.db_name = null;
+      this.tbl_name = null;
+      this.part_vals = null;
+      this.new_part = 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<String> 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<String>();
+      }
+      this.part_vals.add(elem);
+    }
+
+    public List<String> getPart_vals() {
+      return this.part_vals;
+    }
+
+    public void setPart_vals(List<String> 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 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;
+      }
+    }
+
+    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<String>)value);
+        }
+        break;
+
+      case NEW_PART:
+        if (value == null) {
+          unsetNew_part();
+        } else {
+          setNew_part((Partition)value);
+        }
+        break;
+
+      }
+    }
+
+    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 NEW_PART:
+        return getNew_part();
+
+      }
+      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 isSetDb_name();
+      case TBL_NAME:
+        return isSetTbl_name();
+      case PART_VALS:
+        return isSetPart_vals();
+      case NEW_PART:
+        return isSetNew_part();
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof rename_partition_args)
+        return this.equals((rename_partition_args)that);
+      return false;
+    }
+
+    public boolean equals(rename_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))
+          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_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;
+      }
+
+      return true;
+    }
+
+    @Override
+    public int hashCode() {
+      HashCodeBuilder builder = new HashCodeBuilder();
+
+      boolean present_db_name = true && (isSetDb_name());
+      builder.append(present_db_name);
+      if (present_db_name)
+        builder.append(db_name);
+
+      boolean present_tbl_name = true && (isSetTbl_name());
+      builder.append(present_tbl_name);
+      if (present_tbl_name)
+        builder.append(tbl_name);
+
+      boolean present_part_vals = true && (isSetPart_vals());
+      builder.append(present_part_vals);
+      if (present_part_vals)
+        builder.append(part_vals);
+
+      boolean present_new_part = true && (isSetNew_part());
+      builder.append(present_new_part);
+      if (present_new_part)
+        builder.append(new_part);
+
+      return builder.toHashCode();
+    }
+
+    public int compareTo(rename_partition_args other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+      rename_partition_args typedOther = (rename_partition_args)other;
+
+      lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetDb_name()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetTbl_name()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetPart_vals()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetNew_part()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part);
+        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 {
+      org.apache.thrift.protocol.TField field;
+      iprot.readStructBegin();
+      while (true)
+      {
+        field = iprot.readFieldBegin();
+        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (field.id) {
+          case 1: // DB_NAME
+            if (field.type == org.apache.thrift.protocol.TType.STRING) {
+              this.db_name = iprot.readString();
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
+          case 2: // TBL_NAME
+            if (field.type == org.apache.thrift.protocol.TType.STRING) {
+              this.tbl_name = iprot.readString();
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
+          case 3: // PART_VALS
+            if (field.type == org.apache.thrift.protocol.TType.LIST) {
+              {
+                org.apache.thrift.protocol.TList _list249 = iprot.readListBegin();
+                this.part_vals = new ArrayList<String>(_list249.size);
+                for (int _i250 = 0; _i250 < _list249.size; ++_i250)
+                {
+                  String _elem251; // required
+                  _elem251 = iprot.readString();
+                  this.part_vals.add(_elem251);
+                }
+                iprot.readListEnd();
+              }
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
             break;
           case 4: // NEW_PART
             if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
@@ -47272,9 +48274,9 @@ public class ThriftHiveMetastore {
         oprot.writeFieldBegin(PART_VALS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size()));
-          for (String _iter248 : this.part_vals)
+          for (String _iter252 : this.part_vals)
           {
-            oprot.writeString(_iter248);
+            oprot.writeString(_iter252);
           }
           oprot.writeListEnd();
         }
@@ -49163,13 +50165,13 @@ public class ThriftHiveMetastore {
           case 0: // SUCCESS
             if (field.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list249 = iprot.readListBegin();
-                this.success = new ArrayList<String>(_list249.size);
-                for (int _i250 = 0; _i250 < _list249.size; ++_i250)
+                org.apache.thrift.protocol.TList _list253 = iprot.readListBegin();
+                this.success = new ArrayList<String>(_list253.size);
+                for (int _i254 = 0; _i254 < _list253.size; ++_i254)
                 {
-                  String _elem251; // required
-                  _elem251 = iprot.readString();
-                  this.success.add(_elem251);
+                  String _elem255; // required
+                  _elem255 = iprot.readString();
+                  this.success.add(_elem255);
                 }
                 iprot.readListEnd();
               }
@@ -49201,9 +50203,9 @@ public class ThriftHiveMetastore {
         oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
-          for (String _iter252 : this.success)
+          for (String _iter256 : this.success)
           {
-            oprot.writeString(_iter252);
+            oprot.writeString(_iter256);
           }
           oprot.writeListEnd();
         }
@@ -49899,15 +50901,15 @@ public class ThriftHiveMetastore {
           case 0: // SUCCESS
             if (field.type == org.apache.thrift.protocol.TType.MAP) {
               {
-                org.apache.thrift.protocol.TMap _map253 = iprot.readMapBegin();
-                this.success = new HashMap<String,String>(2*_map253.size);
-                for (int _i254 = 0; _i254 < _map253.size; ++_i254)
+                org.apache.thrift.protocol.TMap _map257 = iprot.readMapBegin();
+                this.success = new HashMap<String,String>(2*_map257.size);
+                for (int _i258 = 0; _i258 < _map257.size; ++_i258)
                 {
-                  String _key255; // required
-                  String _val256; // required
-                  _key255 = iprot.readString();
-                  _val256 = iprot.readString();
-                  this.success.put(_key255, _val256);
+                  String _key259; // required
+                  String _val260; // required
+                  _key259 = iprot.readString();
+                  _val260 = iprot.readString();
+                  this.success.put(_key259, _val260);
                 }
                 iprot.readMapEnd();
               }
@@ -49939,10 +50941,10 @@ public class ThriftHiveMetastore {
         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, this.success.size()));
-          for (Map.Entry<String, String> _iter257 : this.success.entrySet())
+          for (Map.Entry<String, String> _iter261 : this.success.entrySet())
           {
-            oprot.writeString(_iter257.getKey());
-            oprot.writeString(_iter257.getValue());
+            oprot.writeString(_iter261.getKey());
+            oprot.writeString(_iter261.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -50509,15 +51511,15 @@ public class ThriftHiveMetastore {
           case 3: // PART_VALS
             if (field.type == org.apache.thrift.protocol.TType.MAP) {
               {
-                org.apache.thrift.protocol.TMap _map258 = iprot.readMapBegin();
-                this.part_vals = new HashMap<String,String>(2*_map258.size);
-                for (int _i259 = 0; _i259 < _map258.size; ++_i259)
+                org.apache.thrift.protocol.TMap _map262 = iprot.readMapBegin();
+                this.part_vals = new HashMap<String,String>(2*_map262.size);
+                for (int _i263 = 0; _i263 < _map262.size; ++_i263)
                 {
-                  String _key260; // required
-                  String _val261; // required
-                  _key260 = iprot.readString();
-                  _val261 = iprot.readString();
-                  this.part_vals.put(_key260, _val261);
+                  String _key264; // required
+                  String _val265; // required
+                  _key264 = iprot.readString();
+                  _val265 = iprot.readString();
+                  this.part_vals.put(_key264, _val265);
                 }
                 iprot.readMapEnd();
               }
@@ -50559,10 +51561,10 @@ public class ThriftHiveMetastore {
         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, this.part_vals.size()));
-          for (Map.Entry<String, String> _iter262 : this.part_vals.entrySet())
+          for (Map.Entry<String, String> _iter266 : this.part_vals.entrySet())
           {
-            oprot.writeString(_iter262.getKey());
-            oprot.writeString(_iter262.getValue());
+            oprot.writeString(_iter266.getKey());
+            oprot.writeString(_iter266.getValue());
           }
           oprot.writeMapEnd();
         }

[... 382 lines stripped ...]


Mime
View raw message