Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
URL: 
http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h?rev=1567761&r1=1567760&r2=1567761&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h Wed Feb 
12 21:32:34 2014
@@ -51,6 +51,7 @@ class ThriftHiveMetastoreIf : virtual pu
   virtual bool drop_partition_with_environment_context(const std::string& 
db_name, const std::string& tbl_name, const std::vector<std::string> & 
part_vals, const bool deleteData, const EnvironmentContext& 
environment_context) = 0;
   virtual bool drop_partition_by_name(const std::string& db_name, const 
std::string& tbl_name, const std::string& part_name, const bool deleteData) = 0;
   virtual bool drop_partition_by_name_with_environment_context(const 
std::string& db_name, const std::string& tbl_name, const std::string& 
part_name, const bool deleteData, const EnvironmentContext& 
environment_context) = 0;
+  virtual void drop_partitions_req(DropPartitionsResult& _return, const 
DropPartitionsRequest& req) = 0;
   virtual void get_partition(Partition& _return, const std::string& db_name, 
const std::string& tbl_name, const std::vector<std::string> & part_vals) = 0;
   virtual void exchange_partition(Partition& _return, const 
std::map<std::string, std::string> & partitionSpecs, const std::string& 
source_db, const std::string& source_table_name, const std::string& dest_db, 
const std::string& dest_table_name) = 0;
   virtual void get_partition_with_auth(Partition& _return, const std::string& 
db_name, const std::string& tbl_name, const std::vector<std::string> & 
part_vals, const std::string& user_name, const std::vector<std::string> & 
group_names) = 0;
@@ -243,6 +244,9 @@ class ThriftHiveMetastoreNull : virtual 
     bool _return = false;
     return _return;
   }
+  void drop_partitions_req(DropPartitionsResult& /* _return */, const 
DropPartitionsRequest& /* req */) {
+    return;
+  }
   void get_partition(Partition& /* _return */, const std::string& /* db_name 
*/, const std::string& /* tbl_name */, const std::vector<std::string> & /* 
part_vals */) {
     return;
   }
@@ -5342,6 +5346,134 @@ class ThriftHiveMetastore_drop_partition
 
 };
 
+typedef struct _ThriftHiveMetastore_drop_partitions_req_args__isset {
+  _ThriftHiveMetastore_drop_partitions_req_args__isset() : req(false) {}
+  bool req;
+} _ThriftHiveMetastore_drop_partitions_req_args__isset;
+
+class ThriftHiveMetastore_drop_partitions_req_args {
+ public:
+
+  ThriftHiveMetastore_drop_partitions_req_args() {
+  }
+
+  virtual ~ThriftHiveMetastore_drop_partitions_req_args() throw() {}
+
+  DropPartitionsRequest req;
+
+  _ThriftHiveMetastore_drop_partitions_req_args__isset __isset;
+
+  void __set_req(const DropPartitionsRequest& val) {
+    req = val;
+  }
+
+  bool operator == (const ThriftHiveMetastore_drop_partitions_req_args & rhs) 
const
+  {
+    if (!(req == rhs.req))
+      return false;
+    return true;
+  }
+  bool operator != (const ThriftHiveMetastore_drop_partitions_req_args &rhs) 
const {
+    return !(*this == rhs);
+  }
+
+  bool operator < (const ThriftHiveMetastore_drop_partitions_req_args & ) 
const;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class ThriftHiveMetastore_drop_partitions_req_pargs {
+ public:
+
+
+  virtual ~ThriftHiveMetastore_drop_partitions_req_pargs() throw() {}
+
+  const DropPartitionsRequest* req;
+
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_drop_partitions_req_result__isset {
+  _ThriftHiveMetastore_drop_partitions_req_result__isset() : success(false), 
o1(false), o2(false) {}
+  bool success;
+  bool o1;
+  bool o2;
+} _ThriftHiveMetastore_drop_partitions_req_result__isset;
+
+class ThriftHiveMetastore_drop_partitions_req_result {
+ public:
+
+  ThriftHiveMetastore_drop_partitions_req_result() {
+  }
+
+  virtual ~ThriftHiveMetastore_drop_partitions_req_result() throw() {}
+
+  DropPartitionsResult success;
+  NoSuchObjectException o1;
+  MetaException o2;
+
+  _ThriftHiveMetastore_drop_partitions_req_result__isset __isset;
+
+  void __set_success(const DropPartitionsResult& val) {
+    success = val;
+  }
+
+  void __set_o1(const NoSuchObjectException& val) {
+    o1 = val;
+  }
+
+  void __set_o2(const MetaException& val) {
+    o2 = val;
+  }
+
+  bool operator == (const ThriftHiveMetastore_drop_partitions_req_result & 
rhs) const
+  {
+    if (!(success == rhs.success))
+      return false;
+    if (!(o1 == rhs.o1))
+      return false;
+    if (!(o2 == rhs.o2))
+      return false;
+    return true;
+  }
+  bool operator != (const ThriftHiveMetastore_drop_partitions_req_result &rhs) 
const {
+    return !(*this == rhs);
+  }
+
+  bool operator < (const ThriftHiveMetastore_drop_partitions_req_result & ) 
const;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_drop_partitions_req_presult__isset {
+  _ThriftHiveMetastore_drop_partitions_req_presult__isset() : success(false), 
o1(false), o2(false) {}
+  bool success;
+  bool o1;
+  bool o2;
+} _ThriftHiveMetastore_drop_partitions_req_presult__isset;
+
+class ThriftHiveMetastore_drop_partitions_req_presult {
+ public:
+
+
+  virtual ~ThriftHiveMetastore_drop_partitions_req_presult() throw() {}
+
+  DropPartitionsResult* success;
+  NoSuchObjectException o1;
+  MetaException o2;
+
+  _ThriftHiveMetastore_drop_partitions_req_presult__isset __isset;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+};
+
 typedef struct _ThriftHiveMetastore_get_partition_args__isset {
   _ThriftHiveMetastore_get_partition_args__isset() : db_name(false), 
tbl_name(false), part_vals(false) {}
   bool db_name;
@@ -12752,6 +12884,9 @@ class ThriftHiveMetastoreClient : virtua
   bool drop_partition_by_name_with_environment_context(const std::string& 
db_name, const std::string& tbl_name, const std::string& part_name, const bool 
deleteData, const EnvironmentContext& environment_context);
   void send_drop_partition_by_name_with_environment_context(const std::string& 
db_name, const std::string& tbl_name, const std::string& part_name, const bool 
deleteData, const EnvironmentContext& environment_context);
   bool recv_drop_partition_by_name_with_environment_context();
+  void drop_partitions_req(DropPartitionsResult& _return, const 
DropPartitionsRequest& req);
+  void send_drop_partitions_req(const DropPartitionsRequest& req);
+  void recv_drop_partitions_req(DropPartitionsResult& _return);
   void get_partition(Partition& _return, const std::string& db_name, const 
std::string& tbl_name, const std::vector<std::string> & part_vals);
   void send_get_partition(const std::string& db_name, const std::string& 
tbl_name, const std::vector<std::string> & part_vals);
   void recv_get_partition(Partition& _return);
@@ -12950,6 +13085,7 @@ class ThriftHiveMetastoreProcessor : pub
   void process_drop_partition_with_environment_context(int32_t seqid, 
::apache::thrift::protocol::TProtocol* iprot, 
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_drop_partition_by_name(int32_t seqid, 
::apache::thrift::protocol::TProtocol* iprot, 
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_drop_partition_by_name_with_environment_context(int32_t seqid, 
::apache::thrift::protocol::TProtocol* iprot, 
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+  void process_drop_partitions_req(int32_t seqid, 
::apache::thrift::protocol::TProtocol* iprot, 
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_get_partition(int32_t seqid, 
::apache::thrift::protocol::TProtocol* iprot, 
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_exchange_partition(int32_t seqid, 
::apache::thrift::protocol::TProtocol* iprot, 
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_get_partition_with_auth(int32_t seqid, 
::apache::thrift::protocol::TProtocol* iprot, 
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
@@ -13040,6 +13176,7 @@ class ThriftHiveMetastoreProcessor : pub
     processMap_["drop_partition_with_environment_context"] = 
&ThriftHiveMetastoreProcessor::process_drop_partition_with_environment_context;
     processMap_["drop_partition_by_name"] = 
&ThriftHiveMetastoreProcessor::process_drop_partition_by_name;
     processMap_["drop_partition_by_name_with_environment_context"] = 
&ThriftHiveMetastoreProcessor::process_drop_partition_by_name_with_environment_context;
+    processMap_["drop_partitions_req"] = 
&ThriftHiveMetastoreProcessor::process_drop_partitions_req;
     processMap_["get_partition"] = 
&ThriftHiveMetastoreProcessor::process_get_partition;
     processMap_["exchange_partition"] = 
&ThriftHiveMetastoreProcessor::process_exchange_partition;
     processMap_["get_partition_with_auth"] = 
&ThriftHiveMetastoreProcessor::process_get_partition_with_auth;
@@ -13458,6 +13595,16 @@ class ThriftHiveMetastoreMultiface : vir
     return 
ifaces_[i]->drop_partition_by_name_with_environment_context(db_name, tbl_name, 
part_name, deleteData, environment_context);
   }
 
+  void drop_partitions_req(DropPartitionsResult& _return, const 
DropPartitionsRequest& req) {
+    size_t sz = ifaces_.size();
+    size_t i = 0;
+    for (; i < (sz - 1); ++i) {
+      ifaces_[i]->drop_partitions_req(_return, req);
+    }
+    ifaces_[i]->drop_partitions_req(_return, req);
+    return;
+  }
+
   void get_partition(Partition& _return, const std::string& db_name, const 
std::string& tbl_name, const std::vector<std::string> & part_vals) {
     size_t sz = ifaces_.size();
     size_t i = 0;

Modified: 
hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
URL: 
http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp?rev=1567761&r1=1567760&r2=1567761&view=diff
==============================================================================
--- 
hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
 (original)
+++ 
hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
 Wed Feb 12 21:32:34 2014
@@ -197,6 +197,11 @@ class ThriftHiveMetastoreHandler : virtu
     printf("drop_partition_by_name_with_environment_context\n");
   }
 
+  void drop_partitions_req(DropPartitionsResult& _return, const 
DropPartitionsRequest& req) {
+    // Your implementation goes here
+    printf("drop_partitions_req\n");
+  }
+
   void get_partition(Partition& _return, const std::string& db_name, const 
std::string& tbl_name, const std::vector<std::string> & part_vals) {
     // Your implementation goes here
     printf("get_partition\n");

Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp
URL: 
http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp?rev=1567761&r1=1567760&r2=1567761&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp 
(original)
+++ hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp Wed 
Feb 12 21:32:34 2014
@@ -4704,6 +4704,450 @@ void swap(AddPartitionsRequest &a, AddPa
   swap(a.__isset, b.__isset);
 }
 
+const char* DropPartitionsResult::ascii_fingerprint = 
"5A689D0823E7BFBB60C799BA60065C31";
+const uint8_t DropPartitionsResult::binary_fingerprint[16] = 
{0x5A,0x68,0x9D,0x08,0x23,0xE7,0xBF,0xBB,0x60,0xC7,0x99,0xBA,0x60,0x06,0x5C,0x31};
+
+uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* 
iprot) {
+
+  uint32_t xfer = 0;
+  std::string fname;
+  ::apache::thrift::protocol::TType ftype;
+  int16_t fid;
+
+  xfer += iprot->readStructBegin(fname);
+
+  using ::apache::thrift::protocol::TProtocolException;
+
+
+  while (true)
+  {
+    xfer += iprot->readFieldBegin(fname, ftype, fid);
+    if (ftype == ::apache::thrift::protocol::T_STOP) {
+      break;
+    }
+    switch (fid)
+    {
+      case 1:
+        if (ftype == ::apache::thrift::protocol::T_LIST) {
+          {
+            this->partitions.clear();
+            uint32_t _size257;
+            ::apache::thrift::protocol::TType _etype260;
+            xfer += iprot->readListBegin(_etype260, _size257);
+            this->partitions.resize(_size257);
+            uint32_t _i261;
+            for (_i261 = 0; _i261 < _size257; ++_i261)
+            {
+              xfer += this->partitions[_i261].read(iprot);
+            }
+            xfer += iprot->readListEnd();
+          }
+          this->__isset.partitions = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      default:
+        xfer += iprot->skip(ftype);
+        break;
+    }
+    xfer += iprot->readFieldEnd();
+  }
+
+  xfer += iprot->readStructEnd();
+
+  return xfer;
+}
+
+uint32_t DropPartitionsResult::write(::apache::thrift::protocol::TProtocol* 
oprot) const {
+  uint32_t xfer = 0;
+  xfer += oprot->writeStructBegin("DropPartitionsResult");
+
+  if (this->__isset.partitions) {
+    xfer += oprot->writeFieldBegin("partitions", 
::apache::thrift::protocol::T_LIST, 1);
+    {
+      xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, 
static_cast<uint32_t>(this->partitions.size()));
+      std::vector<Partition> ::const_iterator _iter262;
+      for (_iter262 = this->partitions.begin(); _iter262 != 
this->partitions.end(); ++_iter262)
+      {
+        xfer += (*_iter262).write(oprot);
+      }
+      xfer += oprot->writeListEnd();
+    }
+    xfer += oprot->writeFieldEnd();
+  }
+  xfer += oprot->writeFieldStop();
+  xfer += oprot->writeStructEnd();
+  return xfer;
+}
+
+void swap(DropPartitionsResult &a, DropPartitionsResult &b) {
+  using ::std::swap;
+  swap(a.partitions, b.partitions);
+  swap(a.__isset, b.__isset);
+}
+
+const char* DropPartitionsExpr::ascii_fingerprint = 
"18B162B1D15D8D46509D3911A9F1C2AA";
+const uint8_t DropPartitionsExpr::binary_fingerprint[16] = 
{0x18,0xB1,0x62,0xB1,0xD1,0x5D,0x8D,0x46,0x50,0x9D,0x39,0x11,0xA9,0xF1,0xC2,0xAA};
+
+uint32_t DropPartitionsExpr::read(::apache::thrift::protocol::TProtocol* 
iprot) {
+
+  uint32_t xfer = 0;
+  std::string fname;
+  ::apache::thrift::protocol::TType ftype;
+  int16_t fid;
+
+  xfer += iprot->readStructBegin(fname);
+
+  using ::apache::thrift::protocol::TProtocolException;
+
+  bool isset_expr = false;
+
+  while (true)
+  {
+    xfer += iprot->readFieldBegin(fname, ftype, fid);
+    if (ftype == ::apache::thrift::protocol::T_STOP) {
+      break;
+    }
+    switch (fid)
+    {
+      case 1:
+        if (ftype == ::apache::thrift::protocol::T_STRING) {
+          xfer += iprot->readBinary(this->expr);
+          isset_expr = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      case 2:
+        if (ftype == ::apache::thrift::protocol::T_I32) {
+          xfer += iprot->readI32(this->partArchiveLevel);
+          this->__isset.partArchiveLevel = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      default:
+        xfer += iprot->skip(ftype);
+        break;
+    }
+    xfer += iprot->readFieldEnd();
+  }
+
+  xfer += iprot->readStructEnd();
+
+  if (!isset_expr)
+    throw TProtocolException(TProtocolException::INVALID_DATA);
+  return xfer;
+}
+
+uint32_t DropPartitionsExpr::write(::apache::thrift::protocol::TProtocol* 
oprot) const {
+  uint32_t xfer = 0;
+  xfer += oprot->writeStructBegin("DropPartitionsExpr");
+
+  xfer += oprot->writeFieldBegin("expr", ::apache::thrift::protocol::T_STRING, 
1);
+  xfer += oprot->writeBinary(this->expr);
+  xfer += oprot->writeFieldEnd();
+
+  if (this->__isset.partArchiveLevel) {
+    xfer += oprot->writeFieldBegin("partArchiveLevel", 
::apache::thrift::protocol::T_I32, 2);
+    xfer += oprot->writeI32(this->partArchiveLevel);
+    xfer += oprot->writeFieldEnd();
+  }
+  xfer += oprot->writeFieldStop();
+  xfer += oprot->writeStructEnd();
+  return xfer;
+}
+
+void swap(DropPartitionsExpr &a, DropPartitionsExpr &b) {
+  using ::std::swap;
+  swap(a.expr, b.expr);
+  swap(a.partArchiveLevel, b.partArchiveLevel);
+  swap(a.__isset, b.__isset);
+}
+
+const char* RequestPartsSpec::ascii_fingerprint = 
"864492ECAB27996CD222AACDA10C292E";
+const uint8_t RequestPartsSpec::binary_fingerprint[16] = 
{0x86,0x44,0x92,0xEC,0xAB,0x27,0x99,0x6C,0xD2,0x22,0xAA,0xCD,0xA1,0x0C,0x29,0x2E};
+
+uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+  uint32_t xfer = 0;
+  std::string fname;
+  ::apache::thrift::protocol::TType ftype;
+  int16_t fid;
+
+  xfer += iprot->readStructBegin(fname);
+
+  using ::apache::thrift::protocol::TProtocolException;
+
+
+  while (true)
+  {
+    xfer += iprot->readFieldBegin(fname, ftype, fid);
+    if (ftype == ::apache::thrift::protocol::T_STOP) {
+      break;
+    }
+    switch (fid)
+    {
+      case 1:
+        if (ftype == ::apache::thrift::protocol::T_LIST) {
+          {
+            this->names.clear();
+            uint32_t _size263;
+            ::apache::thrift::protocol::TType _etype266;
+            xfer += iprot->readListBegin(_etype266, _size263);
+            this->names.resize(_size263);
+            uint32_t _i267;
+            for (_i267 = 0; _i267 < _size263; ++_i267)
+            {
+              xfer += iprot->readString(this->names[_i267]);
+            }
+            xfer += iprot->readListEnd();
+          }
+          this->__isset.names = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      case 2:
+        if (ftype == ::apache::thrift::protocol::T_LIST) {
+          {
+            this->exprs.clear();
+            uint32_t _size268;
+            ::apache::thrift::protocol::TType _etype271;
+            xfer += iprot->readListBegin(_etype271, _size268);
+            this->exprs.resize(_size268);
+            uint32_t _i272;
+            for (_i272 = 0; _i272 < _size268; ++_i272)
+            {
+              xfer += this->exprs[_i272].read(iprot);
+            }
+            xfer += iprot->readListEnd();
+          }
+          this->__isset.exprs = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      default:
+        xfer += iprot->skip(ftype);
+        break;
+    }
+    xfer += iprot->readFieldEnd();
+  }
+
+  xfer += iprot->readStructEnd();
+
+  return xfer;
+}
+
+uint32_t RequestPartsSpec::write(::apache::thrift::protocol::TProtocol* oprot) 
const {
+  uint32_t xfer = 0;
+  xfer += oprot->writeStructBegin("RequestPartsSpec");
+
+  xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 
1);
+  {
+    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, 
static_cast<uint32_t>(this->names.size()));
+    std::vector<std::string> ::const_iterator _iter273;
+    for (_iter273 = this->names.begin(); _iter273 != this->names.end(); 
++_iter273)
+    {
+      xfer += oprot->writeString((*_iter273));
+    }
+    xfer += oprot->writeListEnd();
+  }
+  xfer += oprot->writeFieldEnd();
+
+  xfer += oprot->writeFieldBegin("exprs", ::apache::thrift::protocol::T_LIST, 
2);
+  {
+    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, 
static_cast<uint32_t>(this->exprs.size()));
+    std::vector<DropPartitionsExpr> ::const_iterator _iter274;
+    for (_iter274 = this->exprs.begin(); _iter274 != this->exprs.end(); 
++_iter274)
+    {
+      xfer += (*_iter274).write(oprot);
+    }
+    xfer += oprot->writeListEnd();
+  }
+  xfer += oprot->writeFieldEnd();
+
+  xfer += oprot->writeFieldStop();
+  xfer += oprot->writeStructEnd();
+  return xfer;
+}
+
+void swap(RequestPartsSpec &a, RequestPartsSpec &b) {
+  using ::std::swap;
+  swap(a.names, b.names);
+  swap(a.exprs, b.exprs);
+  swap(a.__isset, b.__isset);
+}
+
+const char* DropPartitionsRequest::ascii_fingerprint = 
"EB263FBA01215C480A9A24C11D69E672";
+const uint8_t DropPartitionsRequest::binary_fingerprint[16] = 
{0xEB,0x26,0x3F,0xBA,0x01,0x21,0x5C,0x48,0x0A,0x9A,0x24,0xC1,0x1D,0x69,0xE6,0x72};
+
+uint32_t DropPartitionsRequest::read(::apache::thrift::protocol::TProtocol* 
iprot) {
+
+  uint32_t xfer = 0;
+  std::string fname;
+  ::apache::thrift::protocol::TType ftype;
+  int16_t fid;
+
+  xfer += iprot->readStructBegin(fname);
+
+  using ::apache::thrift::protocol::TProtocolException;
+
+  bool isset_dbName = false;
+  bool isset_tblName = false;
+  bool isset_parts = false;
+
+  while (true)
+  {
+    xfer += iprot->readFieldBegin(fname, ftype, fid);
+    if (ftype == ::apache::thrift::protocol::T_STOP) {
+      break;
+    }
+    switch (fid)
+    {
+      case 1:
+        if (ftype == ::apache::thrift::protocol::T_STRING) {
+          xfer += iprot->readString(this->dbName);
+          isset_dbName = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      case 2:
+        if (ftype == ::apache::thrift::protocol::T_STRING) {
+          xfer += iprot->readString(this->tblName);
+          isset_tblName = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      case 3:
+        if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+          xfer += this->parts.read(iprot);
+          isset_parts = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      case 4:
+        if (ftype == ::apache::thrift::protocol::T_BOOL) {
+          xfer += iprot->readBool(this->deleteData);
+          this->__isset.deleteData = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      case 5:
+        if (ftype == ::apache::thrift::protocol::T_BOOL) {
+          xfer += iprot->readBool(this->ifExists);
+          this->__isset.ifExists = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      case 6:
+        if (ftype == ::apache::thrift::protocol::T_BOOL) {
+          xfer += iprot->readBool(this->ignoreProtection);
+          this->__isset.ignoreProtection = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      case 7:
+        if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+          xfer += this->environmentContext.read(iprot);
+          this->__isset.environmentContext = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      case 8:
+        if (ftype == ::apache::thrift::protocol::T_BOOL) {
+          xfer += iprot->readBool(this->needResult);
+          this->__isset.needResult = true;
+        } else {
+          xfer += iprot->skip(ftype);
+        }
+        break;
+      default:
+        xfer += iprot->skip(ftype);
+        break;
+    }
+    xfer += iprot->readFieldEnd();
+  }
+
+  xfer += iprot->readStructEnd();
+
+  if (!isset_dbName)
+    throw TProtocolException(TProtocolException::INVALID_DATA);
+  if (!isset_tblName)
+    throw TProtocolException(TProtocolException::INVALID_DATA);
+  if (!isset_parts)
+    throw TProtocolException(TProtocolException::INVALID_DATA);
+  return xfer;
+}
+
+uint32_t DropPartitionsRequest::write(::apache::thrift::protocol::TProtocol* 
oprot) const {
+  uint32_t xfer = 0;
+  xfer += oprot->writeStructBegin("DropPartitionsRequest");
+
+  xfer += oprot->writeFieldBegin("dbName", 
::apache::thrift::protocol::T_STRING, 1);
+  xfer += oprot->writeString(this->dbName);
+  xfer += oprot->writeFieldEnd();
+
+  xfer += oprot->writeFieldBegin("tblName", 
::apache::thrift::protocol::T_STRING, 2);
+  xfer += oprot->writeString(this->tblName);
+  xfer += oprot->writeFieldEnd();
+
+  xfer += oprot->writeFieldBegin("parts", 
::apache::thrift::protocol::T_STRUCT, 3);
+  xfer += this->parts.write(oprot);
+  xfer += oprot->writeFieldEnd();
+
+  if (this->__isset.deleteData) {
+    xfer += oprot->writeFieldBegin("deleteData", 
::apache::thrift::protocol::T_BOOL, 4);
+    xfer += oprot->writeBool(this->deleteData);
+    xfer += oprot->writeFieldEnd();
+  }
+  if (this->__isset.ifExists) {
+    xfer += oprot->writeFieldBegin("ifExists", 
::apache::thrift::protocol::T_BOOL, 5);
+    xfer += oprot->writeBool(this->ifExists);
+    xfer += oprot->writeFieldEnd();
+  }
+  if (this->__isset.ignoreProtection) {
+    xfer += oprot->writeFieldBegin("ignoreProtection", 
::apache::thrift::protocol::T_BOOL, 6);
+    xfer += oprot->writeBool(this->ignoreProtection);
+    xfer += oprot->writeFieldEnd();
+  }
+  if (this->__isset.environmentContext) {
+    xfer += oprot->writeFieldBegin("environmentContext", 
::apache::thrift::protocol::T_STRUCT, 7);
+    xfer += this->environmentContext.write(oprot);
+    xfer += oprot->writeFieldEnd();
+  }
+  if (this->__isset.needResult) {
+    xfer += oprot->writeFieldBegin("needResult", 
::apache::thrift::protocol::T_BOOL, 8);
+    xfer += oprot->writeBool(this->needResult);
+    xfer += oprot->writeFieldEnd();
+  }
+  xfer += oprot->writeFieldStop();
+  xfer += oprot->writeStructEnd();
+  return xfer;
+}
+
+void swap(DropPartitionsRequest &a, DropPartitionsRequest &b) {
+  using ::std::swap;
+  swap(a.dbName, b.dbName);
+  swap(a.tblName, b.tblName);
+  swap(a.parts, b.parts);
+  swap(a.deleteData, b.deleteData);
+  swap(a.ifExists, b.ifExists);
+  swap(a.ignoreProtection, b.ignoreProtection);
+  swap(a.environmentContext, b.environmentContext);
+  swap(a.needResult, b.needResult);
+  swap(a.__isset, b.__isset);
+}
+
 const char* MetaException::ascii_fingerprint = 
"EFB929595D312AC8F305D5A794CFEDA1";
 const uint8_t MetaException::binary_fingerprint[16] = 
{0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
 

Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
URL: 
http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h?rev=1567761&r1=1567760&r2=1567761&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h 
(original)
+++ hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h Wed Feb 
12 21:32:34 2014
@@ -2452,6 +2452,267 @@ class AddPartitionsRequest {
 
 void swap(AddPartitionsRequest &a, AddPartitionsRequest &b);
 
+typedef struct _DropPartitionsResult__isset {
+  _DropPartitionsResult__isset() : partitions(false) {}
+  bool partitions;
+} _DropPartitionsResult__isset;
+
+class DropPartitionsResult {
+ public:
+
+  static const char* ascii_fingerprint; // = 
"5A689D0823E7BFBB60C799BA60065C31";
+  static const uint8_t binary_fingerprint[16]; // = 
{0x5A,0x68,0x9D,0x08,0x23,0xE7,0xBF,0xBB,0x60,0xC7,0x99,0xBA,0x60,0x06,0x5C,0x31};
+
+  DropPartitionsResult() {
+  }
+
+  virtual ~DropPartitionsResult() throw() {}
+
+  std::vector<Partition>  partitions;
+
+  _DropPartitionsResult__isset __isset;
+
+  void __set_partitions(const std::vector<Partition> & val) {
+    partitions = val;
+    __isset.partitions = true;
+  }
+
+  bool operator == (const DropPartitionsResult & rhs) const
+  {
+    if (__isset.partitions != rhs.__isset.partitions)
+      return false;
+    else if (__isset.partitions && !(partitions == rhs.partitions))
+      return false;
+    return true;
+  }
+  bool operator != (const DropPartitionsResult &rhs) const {
+    return !(*this == rhs);
+  }
+
+  bool operator < (const DropPartitionsResult & ) const;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+void swap(DropPartitionsResult &a, DropPartitionsResult &b);
+
+typedef struct _DropPartitionsExpr__isset {
+  _DropPartitionsExpr__isset() : partArchiveLevel(false) {}
+  bool partArchiveLevel;
+} _DropPartitionsExpr__isset;
+
+class DropPartitionsExpr {
+ public:
+
+  static const char* ascii_fingerprint; // = 
"18B162B1D15D8D46509D3911A9F1C2AA";
+  static const uint8_t binary_fingerprint[16]; // = 
{0x18,0xB1,0x62,0xB1,0xD1,0x5D,0x8D,0x46,0x50,0x9D,0x39,0x11,0xA9,0xF1,0xC2,0xAA};
+
+  DropPartitionsExpr() : expr(), partArchiveLevel(0) {
+  }
+
+  virtual ~DropPartitionsExpr() throw() {}
+
+  std::string expr;
+  int32_t partArchiveLevel;
+
+  _DropPartitionsExpr__isset __isset;
+
+  void __set_expr(const std::string& val) {
+    expr = val;
+  }
+
+  void __set_partArchiveLevel(const int32_t val) {
+    partArchiveLevel = val;
+    __isset.partArchiveLevel = true;
+  }
+
+  bool operator == (const DropPartitionsExpr & rhs) const
+  {
+    if (!(expr == rhs.expr))
+      return false;
+    if (__isset.partArchiveLevel != rhs.__isset.partArchiveLevel)
+      return false;
+    else if (__isset.partArchiveLevel && !(partArchiveLevel == 
rhs.partArchiveLevel))
+      return false;
+    return true;
+  }
+  bool operator != (const DropPartitionsExpr &rhs) const {
+    return !(*this == rhs);
+  }
+
+  bool operator < (const DropPartitionsExpr & ) const;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+void swap(DropPartitionsExpr &a, DropPartitionsExpr &b);
+
+typedef struct _RequestPartsSpec__isset {
+  _RequestPartsSpec__isset() : names(false), exprs(false) {}
+  bool names;
+  bool exprs;
+} _RequestPartsSpec__isset;
+
+class RequestPartsSpec {
+ public:
+
+  static const char* ascii_fingerprint; // = 
"864492ECAB27996CD222AACDA10C292E";
+  static const uint8_t binary_fingerprint[16]; // = 
{0x86,0x44,0x92,0xEC,0xAB,0x27,0x99,0x6C,0xD2,0x22,0xAA,0xCD,0xA1,0x0C,0x29,0x2E};
+
+  RequestPartsSpec() {
+  }
+
+  virtual ~RequestPartsSpec() throw() {}
+
+  std::vector<std::string>  names;
+  std::vector<DropPartitionsExpr>  exprs;
+
+  _RequestPartsSpec__isset __isset;
+
+  void __set_names(const std::vector<std::string> & val) {
+    names = val;
+  }
+
+  void __set_exprs(const std::vector<DropPartitionsExpr> & val) {
+    exprs = val;
+  }
+
+  bool operator == (const RequestPartsSpec & rhs) const
+  {
+    if (!(names == rhs.names))
+      return false;
+    if (!(exprs == rhs.exprs))
+      return false;
+    return true;
+  }
+  bool operator != (const RequestPartsSpec &rhs) const {
+    return !(*this == rhs);
+  }
+
+  bool operator < (const RequestPartsSpec & ) const;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+void swap(RequestPartsSpec &a, RequestPartsSpec &b);
+
+typedef struct _DropPartitionsRequest__isset {
+  _DropPartitionsRequest__isset() : deleteData(false), ifExists(true), 
ignoreProtection(false), environmentContext(false), needResult(true) {}
+  bool deleteData;
+  bool ifExists;
+  bool ignoreProtection;
+  bool environmentContext;
+  bool needResult;
+} _DropPartitionsRequest__isset;
+
+class DropPartitionsRequest {
+ public:
+
+  static const char* ascii_fingerprint; // = 
"EB263FBA01215C480A9A24C11D69E672";
+  static const uint8_t binary_fingerprint[16]; // = 
{0xEB,0x26,0x3F,0xBA,0x01,0x21,0x5C,0x48,0x0A,0x9A,0x24,0xC1,0x1D,0x69,0xE6,0x72};
+
+  DropPartitionsRequest() : dbName(), tblName(), deleteData(0), 
ifExists(true), ignoreProtection(0), needResult(true) {
+  }
+
+  virtual ~DropPartitionsRequest() throw() {}
+
+  std::string dbName;
+  std::string tblName;
+  RequestPartsSpec parts;
+  bool deleteData;
+  bool ifExists;
+  bool ignoreProtection;
+  EnvironmentContext environmentContext;
+  bool needResult;
+
+  _DropPartitionsRequest__isset __isset;
+
+  void __set_dbName(const std::string& val) {
+    dbName = val;
+  }
+
+  void __set_tblName(const std::string& val) {
+    tblName = val;
+  }
+
+  void __set_parts(const RequestPartsSpec& val) {
+    parts = val;
+  }
+
+  void __set_deleteData(const bool val) {
+    deleteData = val;
+    __isset.deleteData = true;
+  }
+
+  void __set_ifExists(const bool val) {
+    ifExists = val;
+    __isset.ifExists = true;
+  }
+
+  void __set_ignoreProtection(const bool val) {
+    ignoreProtection = val;
+    __isset.ignoreProtection = true;
+  }
+
+  void __set_environmentContext(const EnvironmentContext& val) {
+    environmentContext = val;
+    __isset.environmentContext = true;
+  }
+
+  void __set_needResult(const bool val) {
+    needResult = val;
+    __isset.needResult = true;
+  }
+
+  bool operator == (const DropPartitionsRequest & rhs) const
+  {
+    if (!(dbName == rhs.dbName))
+      return false;
+    if (!(tblName == rhs.tblName))
+      return false;
+    if (!(parts == rhs.parts))
+      return false;
+    if (__isset.deleteData != rhs.__isset.deleteData)
+      return false;
+    else if (__isset.deleteData && !(deleteData == rhs.deleteData))
+      return false;
+    if (__isset.ifExists != rhs.__isset.ifExists)
+      return false;
+    else if (__isset.ifExists && !(ifExists == rhs.ifExists))
+      return false;
+    if (__isset.ignoreProtection != rhs.__isset.ignoreProtection)
+      return false;
+    else if (__isset.ignoreProtection && !(ignoreProtection == 
rhs.ignoreProtection))
+      return false;
+    if (__isset.environmentContext != rhs.__isset.environmentContext)
+      return false;
+    else if (__isset.environmentContext && !(environmentContext == 
rhs.environmentContext))
+      return false;
+    if (__isset.needResult != rhs.__isset.needResult)
+      return false;
+    else if (__isset.needResult && !(needResult == rhs.needResult))
+      return false;
+    return true;
+  }
+  bool operator != (const DropPartitionsRequest &rhs) const {
+    return !(*this == rhs);
+  }
+
+  bool operator < (const DropPartitionsRequest & ) const;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+void swap(DropPartitionsRequest &a, DropPartitionsRequest &b);
+
 typedef struct _MetaException__isset {
   _MetaException__isset() : message(false) {}
   bool message;

Added: 
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java
URL: 
http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java?rev=1567761&view=auto
==============================================================================
--- 
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java
 (added)
+++ 
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java
 Wed Feb 12 21:32:34 2014
@@ -0,0 +1,502 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * 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.commons.lang.builder.HashCodeBuilder;
+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 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 org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class DropPartitionsExpr implements 
org.apache.thrift.TBase<DropPartitionsExpr, DropPartitionsExpr._Fields>, 
java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("DropPartitionsExpr");
+
+  private static final org.apache.thrift.protocol.TField EXPR_FIELD_DESC = new 
org.apache.thrift.protocol.TField("expr", 
org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField 
PART_ARCHIVE_LEVEL_FIELD_DESC = new 
org.apache.thrift.protocol.TField("partArchiveLevel", 
org.apache.thrift.protocol.TType.I32, (short)2);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = 
new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new 
DropPartitionsExprStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new DropPartitionsExprTupleSchemeFactory());
+  }
+
+  private ByteBuffer expr; // required
+  private int partArchiveLevel; // 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 {
+    EXPR((short)1, "expr"),
+    PART_ARCHIVE_LEVEL((short)2, "partArchiveLevel");
+
+    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: // EXPR
+          return EXPR;
+        case 2: // PART_ARCHIVE_LEVEL
+          return PART_ARCHIVE_LEVEL;
+        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 __PARTARCHIVELEVEL_ISSET_ID = 0;
+  private byte __isset_bitfield = 0;
+  private _Fields optionals[] = {_Fields.PART_ARCHIVE_LEVEL};
+  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.EXPR, new 
org.apache.thrift.meta_data.FieldMetaData("expr", 
org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING
        , true)));
+    tmpMap.put(_Fields.PART_ARCHIVE_LEVEL, new 
org.apache.thrift.meta_data.FieldMetaData("partArchiveLevel", 
org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DropPartitionsExpr.class,
 metaDataMap);
+  }
+
+  public DropPartitionsExpr() {
+  }
+
+  public DropPartitionsExpr(
+    ByteBuffer expr)
+  {
+    this();
+    this.expr = expr;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public DropPartitionsExpr(DropPartitionsExpr other) {
+    __isset_bitfield = other.__isset_bitfield;
+    if (other.isSetExpr()) {
+      this.expr = org.apache.thrift.TBaseHelper.copyBinary(other.expr);
+;
+    }
+    this.partArchiveLevel = other.partArchiveLevel;
+  }
+
+  public DropPartitionsExpr deepCopy() {
+    return new DropPartitionsExpr(this);
+  }
+
+  @Override
+  public void clear() {
+    this.expr = null;
+    setPartArchiveLevelIsSet(false);
+    this.partArchiveLevel = 0;
+  }
+
+  public byte[] getExpr() {
+    setExpr(org.apache.thrift.TBaseHelper.rightSize(expr));
+    return expr == null ? null : expr.array();
+  }
+
+  public ByteBuffer bufferForExpr() {
+    return expr;
+  }
+
+  public void setExpr(byte[] expr) {
+    setExpr(expr == null ? (ByteBuffer)null : ByteBuffer.wrap(expr));
+  }
+
+  public void setExpr(ByteBuffer expr) {
+    this.expr = expr;
+  }
+
+  public void unsetExpr() {
+    this.expr = null;
+  }
+
+  /** Returns true if field expr is set (has been assigned a value) and false 
otherwise */
+  public boolean isSetExpr() {
+    return this.expr != null;
+  }
+
+  public void setExprIsSet(boolean value) {
+    if (!value) {
+      this.expr = null;
+    }
+  }
+
+  public int getPartArchiveLevel() {
+    return this.partArchiveLevel;
+  }
+
+  public void setPartArchiveLevel(int partArchiveLevel) {
+    this.partArchiveLevel = partArchiveLevel;
+    setPartArchiveLevelIsSet(true);
+  }
+
+  public void unsetPartArchiveLevel() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, 
__PARTARCHIVELEVEL_ISSET_ID);
+  }
+
+  /** Returns true if field partArchiveLevel is set (has been assigned a 
value) and false otherwise */
+  public boolean isSetPartArchiveLevel() {
+    return EncodingUtils.testBit(__isset_bitfield, 
__PARTARCHIVELEVEL_ISSET_ID);
+  }
+
+  public void setPartArchiveLevelIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, 
__PARTARCHIVELEVEL_ISSET_ID, value);
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case EXPR:
+      if (value == null) {
+        unsetExpr();
+      } else {
+        setExpr((ByteBuffer)value);
+      }
+      break;
+
+    case PART_ARCHIVE_LEVEL:
+      if (value == null) {
+        unsetPartArchiveLevel();
+      } else {
+        setPartArchiveLevel((Integer)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case EXPR:
+      return getExpr();
+
+    case PART_ARCHIVE_LEVEL:
+      return Integer.valueOf(getPartArchiveLevel());
+
+    }
+    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 EXPR:
+      return isSetExpr();
+    case PART_ARCHIVE_LEVEL:
+      return isSetPartArchiveLevel();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof DropPartitionsExpr)
+      return this.equals((DropPartitionsExpr)that);
+    return false;
+  }
+
+  public boolean equals(DropPartitionsExpr that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_expr = true && this.isSetExpr();
+    boolean that_present_expr = true && that.isSetExpr();
+    if (this_present_expr || that_present_expr) {
+      if (!(this_present_expr && that_present_expr))
+        return false;
+      if (!this.expr.equals(that.expr))
+        return false;
+    }
+
+    boolean this_present_partArchiveLevel = true && 
this.isSetPartArchiveLevel();
+    boolean that_present_partArchiveLevel = true && 
that.isSetPartArchiveLevel();
+    if (this_present_partArchiveLevel || that_present_partArchiveLevel) {
+      if (!(this_present_partArchiveLevel && that_present_partArchiveLevel))
+        return false;
+      if (this.partArchiveLevel != that.partArchiveLevel)
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    HashCodeBuilder builder = new HashCodeBuilder();
+
+    boolean present_expr = true && (isSetExpr());
+    builder.append(present_expr);
+    if (present_expr)
+      builder.append(expr);
+
+    boolean present_partArchiveLevel = true && (isSetPartArchiveLevel());
+    builder.append(present_partArchiveLevel);
+    if (present_partArchiveLevel)
+      builder.append(partArchiveLevel);
+
+    return builder.toHashCode();
+  }
+
+  public int compareTo(DropPartitionsExpr other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    DropPartitionsExpr typedOther = (DropPartitionsExpr)other;
+
+    lastComparison = 
Boolean.valueOf(isSetExpr()).compareTo(typedOther.isSetExpr());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetExpr()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, 
typedOther.expr);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = 
Boolean.valueOf(isSetPartArchiveLevel()).compareTo(typedOther.isSetPartArchiveLevel());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetPartArchiveLevel()) {
+      lastComparison = 
org.apache.thrift.TBaseHelper.compareTo(this.partArchiveLevel, 
typedOther.partArchiveLevel);
+      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("DropPartitionsExpr(");
+    boolean first = true;
+
+    sb.append("expr:");
+    if (this.expr == null) {
+      sb.append("null");
+    } else {
+      org.apache.thrift.TBaseHelper.toString(this.expr, sb);
+    }
+    first = false;
+    if (isSetPartArchiveLevel()) {
+      if (!first) sb.append(", ");
+      sb.append("partArchiveLevel:");
+      sb.append(this.partArchiveLevel);
+      first = false;
+    }
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (!isSetExpr()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 
'expr' 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 DropPartitionsExprStandardSchemeFactory implements 
SchemeFactory {
+    public DropPartitionsExprStandardScheme getScheme() {
+      return new DropPartitionsExprStandardScheme();
+    }
+  }
+
+  private static class DropPartitionsExprStandardScheme extends 
StandardScheme<DropPartitionsExpr> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, 
DropPartitionsExpr 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: // EXPR
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.expr = iprot.readBinary();
+              struct.setExprIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+            }
+            break;
+          case 2: // PART_ARCHIVE_LEVEL
+            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+              struct.partArchiveLevel = iprot.readI32();
+              struct.setPartArchiveLevelIsSet(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, 
DropPartitionsExpr struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.expr != null) {
+        oprot.writeFieldBegin(EXPR_FIELD_DESC);
+        oprot.writeBinary(struct.expr);
+        oprot.writeFieldEnd();
+      }
+      if (struct.isSetPartArchiveLevel()) {
+        oprot.writeFieldBegin(PART_ARCHIVE_LEVEL_FIELD_DESC);
+        oprot.writeI32(struct.partArchiveLevel);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class DropPartitionsExprTupleSchemeFactory implements 
SchemeFactory {
+    public DropPartitionsExprTupleScheme getScheme() {
+      return new DropPartitionsExprTupleScheme();
+    }
+  }
+
+  private static class DropPartitionsExprTupleScheme extends 
TupleScheme<DropPartitionsExpr> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, 
DropPartitionsExpr struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      oprot.writeBinary(struct.expr);
+      BitSet optionals = new BitSet();
+      if (struct.isSetPartArchiveLevel()) {
+        optionals.set(0);
+      }
+      oprot.writeBitSet(optionals, 1);
+      if (struct.isSetPartArchiveLevel()) {
+        oprot.writeI32(struct.partArchiveLevel);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, 
DropPartitionsExpr struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.expr = iprot.readBinary();
+      struct.setExprIsSet(true);
+      BitSet incoming = iprot.readBitSet(1);
+      if (incoming.get(0)) {
+        struct.partArchiveLevel = iprot.readI32();
+        struct.setPartArchiveLevelIsSet(true);
+      }
+    }
+  }
+
+}
+


Reply via email to