hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amareshw...@apache.org
Subject svn commit: r1165207 [4/19] - in /hive/trunk: ./ cli/ eclipse-templates/ ivy/ jdbc/ lib/ metastore/ 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_meta...
Date Mon, 05 Sep 2011 08:47:06 GMT
Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp?rev=1165207&r1=1165206&r2=1165207&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp Mon Sep  5 08:47:02 2011
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  */

Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h?rev=1165207&r1=1165206&r2=1165207&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h Mon Sep  5 08:47:02 2011
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  */

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=1165207&r1=1165206&r2=1165207&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 Mon Sep  5 08:47:02 2011
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  */
@@ -7,6 +7,42 @@
 
 namespace Apache { namespace Hadoop { namespace Hive {
 
+int _kHiveObjectTypeValues[] = {
+  HiveObjectType::GLOBAL,
+  HiveObjectType::DATABASE,
+  HiveObjectType::TABLE,
+  HiveObjectType::PARTITION,
+  HiveObjectType::COLUMN
+};
+const char* _kHiveObjectTypeNames[] = {
+  "GLOBAL",
+  "DATABASE",
+  "TABLE",
+  "PARTITION",
+  "COLUMN"
+};
+const std::map<int, const char*> _HiveObjectType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(5, _kHiveObjectTypeValues, _kHiveObjectTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
+
+int _kPrincipalTypeValues[] = {
+  PrincipalType::USER,
+  PrincipalType::ROLE,
+  PrincipalType::GROUP
+};
+const char* _kPrincipalTypeNames[] = {
+  "USER",
+  "ROLE",
+  "GROUP"
+};
+const std::map<int, const char*> _PrincipalType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kPrincipalTypeValues, _kPrincipalTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
+
+int _kPartitionEventTypeValues[] = {
+  PartitionEventType::LOAD_DONE
+};
+const char* _kPartitionEventTypeNames[] = {
+  "LOAD_DONE"
+};
+const std::map<int, const char*> _PartitionEventType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(1, _kPartitionEventTypeValues, _kPartitionEventTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
+
 const char* Version::ascii_fingerprint = "07A9615F837F7D0A952B595DD3020972";
 const uint8_t Version::binary_fingerprint[16] = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72};
 
@@ -246,7 +282,7 @@ uint32_t Type::write(::apache::thrift::p
   if (this->__isset.fields) {
     xfer += oprot->writeFieldBegin("fields", ::apache::thrift::protocol::T_LIST, 4);
     {
-      xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->fields.size());
+      xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->fields.size()));
       std::vector<FieldSchema> ::const_iterator _iter5;
       for (_iter5 = this->fields.begin(); _iter5 != this->fields.end(); ++_iter5)
       {
@@ -364,7 +400,7 @@ uint32_t HiveObjectRef::write(::apache::
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("partValues", ::apache::thrift::protocol::T_LIST, 4);
   {
-    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->partValues.size());
+    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->partValues.size()));
     std::vector<std::string> ::const_iterator _iter12;
     for (_iter12 = this->partValues.begin(); _iter12 != this->partValues.end(); ++_iter12)
     {
@@ -630,7 +666,7 @@ uint32_t PrivilegeBag::write(::apache::t
   xfer += oprot->writeStructBegin("PrivilegeBag");
   xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_LIST, 1);
   {
-    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->privileges.size());
+    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->privileges.size()));
     std::vector<HiveObjectPrivilege> ::const_iterator _iter20;
     for (_iter20 = this->privileges.begin(); _iter20 != this->privileges.end(); ++_iter20)
     {
@@ -789,13 +825,13 @@ uint32_t PrincipalPrivilegeSet::write(::
   xfer += oprot->writeStructBegin("PrincipalPrivilegeSet");
   xfer += oprot->writeFieldBegin("userPrivileges", ::apache::thrift::protocol::T_MAP, 1);
   {
-    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, this->userPrivileges.size());
+    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast<uint32_t>(this->userPrivileges.size()));
     std::map<std::string, std::vector<PrivilegeGrantInfo> > ::const_iterator _iter57;
     for (_iter57 = this->userPrivileges.begin(); _iter57 != this->userPrivileges.end(); ++_iter57)
     {
       xfer += oprot->writeString(_iter57->first);
       {
-        xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, _iter57->second.size());
+        xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(_iter57->second.size()));
         std::vector<PrivilegeGrantInfo> ::const_iterator _iter58;
         for (_iter58 = _iter57->second.begin(); _iter58 != _iter57->second.end(); ++_iter58)
         {
@@ -809,13 +845,13 @@ uint32_t PrincipalPrivilegeSet::write(::
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("groupPrivileges", ::apache::thrift::protocol::T_MAP, 2);
   {
-    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, this->groupPrivileges.size());
+    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast<uint32_t>(this->groupPrivileges.size()));
     std::map<std::string, std::vector<PrivilegeGrantInfo> > ::const_iterator _iter59;
     for (_iter59 = this->groupPrivileges.begin(); _iter59 != this->groupPrivileges.end(); ++_iter59)
     {
       xfer += oprot->writeString(_iter59->first);
       {
-        xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, _iter59->second.size());
+        xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(_iter59->second.size()));
         std::vector<PrivilegeGrantInfo> ::const_iterator _iter60;
         for (_iter60 = _iter59->second.begin(); _iter60 != _iter59->second.end(); ++_iter60)
         {
@@ -829,13 +865,13 @@ uint32_t PrincipalPrivilegeSet::write(::
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("rolePrivileges", ::apache::thrift::protocol::T_MAP, 3);
   {
-    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, this->rolePrivileges.size());
+    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast<uint32_t>(this->rolePrivileges.size()));
     std::map<std::string, std::vector<PrivilegeGrantInfo> > ::const_iterator _iter61;
     for (_iter61 = this->rolePrivileges.begin(); _iter61 != this->rolePrivileges.end(); ++_iter61)
     {
       xfer += oprot->writeString(_iter61->first);
       {
-        xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, _iter61->second.size());
+        xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(_iter61->second.size()));
         std::vector<PrivilegeGrantInfo> ::const_iterator _iter62;
         for (_iter62 = _iter61->second.begin(); _iter62 != _iter61->second.end(); ++_iter62)
         {
@@ -1032,7 +1068,7 @@ uint32_t Database::write(::apache::thrif
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 4);
   {
-    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->parameters.size());
+    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
     std::map<std::string, std::string> ::const_iterator _iter70;
     for (_iter70 = this->parameters.begin(); _iter70 != this->parameters.end(); ++_iter70)
     {
@@ -1137,7 +1173,7 @@ uint32_t SerDeInfo::write(::apache::thri
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 3);
   {
-    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->parameters.size());
+    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
     std::map<std::string, std::string> ::const_iterator _iter78;
     for (_iter78 = this->parameters.begin(); _iter78 != this->parameters.end(); ++_iter78)
     {
@@ -1388,7 +1424,7 @@ uint32_t StorageDescriptor::write(::apac
   xfer += oprot->writeStructBegin("StorageDescriptor");
   xfer += oprot->writeFieldBegin("cols", ::apache::thrift::protocol::T_LIST, 1);
   {
-    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->cols.size());
+    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->cols.size()));
     std::vector<FieldSchema> ::const_iterator _iter101;
     for (_iter101 = this->cols.begin(); _iter101 != this->cols.end(); ++_iter101)
     {
@@ -1417,7 +1453,7 @@ uint32_t StorageDescriptor::write(::apac
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("bucketCols", ::apache::thrift::protocol::T_LIST, 8);
   {
-    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->bucketCols.size());
+    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->bucketCols.size()));
     std::vector<std::string> ::const_iterator _iter102;
     for (_iter102 = this->bucketCols.begin(); _iter102 != this->bucketCols.end(); ++_iter102)
     {
@@ -1428,7 +1464,7 @@ uint32_t StorageDescriptor::write(::apac
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("sortCols", ::apache::thrift::protocol::T_LIST, 9);
   {
-    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->sortCols.size());
+    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->sortCols.size()));
     std::vector<Order> ::const_iterator _iter103;
     for (_iter103 = this->sortCols.begin(); _iter103 != this->sortCols.end(); ++_iter103)
     {
@@ -1439,7 +1475,7 @@ uint32_t StorageDescriptor::write(::apac
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 10);
   {
-    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->parameters.size());
+    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
     std::map<std::string, std::string> ::const_iterator _iter104;
     for (_iter104 = this->parameters.begin(); _iter104 != this->parameters.end(); ++_iter104)
     {
@@ -1646,7 +1682,7 @@ uint32_t Table::write(::apache::thrift::
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 8);
   {
-    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->partitionKeys.size());
+    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->partitionKeys.size()));
     std::vector<FieldSchema> ::const_iterator _iter117;
     for (_iter117 = this->partitionKeys.begin(); _iter117 != this->partitionKeys.end(); ++_iter117)
     {
@@ -1657,7 +1693,7 @@ uint32_t Table::write(::apache::thrift::
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9);
   {
-    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->parameters.size());
+    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
     std::map<std::string, std::string> ::const_iterator _iter118;
     for (_iter118 = this->parameters.begin(); _iter118 != this->parameters.end(); ++_iter118)
     {
@@ -1817,7 +1853,7 @@ uint32_t Partition::write(::apache::thri
   xfer += oprot->writeStructBegin("Partition");
   xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1);
   {
-    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->values.size());
+    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->values.size()));
     std::vector<std::string> ::const_iterator _iter131;
     for (_iter131 = this->values.begin(); _iter131 != this->values.end(); ++_iter131)
     {
@@ -1843,7 +1879,7 @@ uint32_t Partition::write(::apache::thri
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 7);
   {
-    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->parameters.size());
+    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
     std::map<std::string, std::string> ::const_iterator _iter132;
     for (_iter132 = this->parameters.begin(); _iter132 != this->parameters.end(); ++_iter132)
     {
@@ -2022,7 +2058,7 @@ uint32_t Index::write(::apache::thrift::
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9);
   {
-    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->parameters.size());
+    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
     std::map<std::string, std::string> ::const_iterator _iter140;
     for (_iter140 = this->parameters.begin(); _iter140 != this->parameters.end(); ++_iter140)
     {
@@ -2123,7 +2159,7 @@ uint32_t Schema::write(::apache::thrift:
   xfer += oprot->writeStructBegin("Schema");
   xfer += oprot->writeFieldBegin("fieldSchemas", ::apache::thrift::protocol::T_LIST, 1);
   {
-    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->fieldSchemas.size());
+    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->fieldSchemas.size()));
     std::vector<FieldSchema> ::const_iterator _iter153;
     for (_iter153 = this->fieldSchemas.begin(); _iter153 != this->fieldSchemas.end(); ++_iter153)
     {
@@ -2134,7 +2170,7 @@ uint32_t Schema::write(::apache::thrift:
   xfer += oprot->writeFieldEnd();
   xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 2);
   {
-    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->properties.size());
+    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->properties.size()));
     std::map<std::string, std::string> ::const_iterator _iter154;
     for (_iter154 = this->properties.begin(); _iter154 != this->properties.end(); ++_iter154)
     {

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=1165207&r1=1165206&r2=1165207&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 Mon Sep  5 08:47:02 2011
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  */
@@ -26,6 +26,8 @@ struct HiveObjectType {
   };
 };
 
+extern const std::map<int, const char*> _HiveObjectType_VALUES_TO_NAMES;
+
 struct PrincipalType {
   enum type {
     USER = 1,
@@ -34,12 +36,16 @@ struct PrincipalType {
   };
 };
 
+extern const std::map<int, const char*> _PrincipalType_VALUES_TO_NAMES;
+
 struct PartitionEventType {
   enum type {
     LOAD_DONE = 1
   };
 };
 
+extern const std::map<int, const char*> _PartitionEventType_VALUES_TO_NAMES;
+
 typedef struct _Version__isset {
   _Version__isset() : version(false), comments(false) {}
   bool version;
@@ -62,6 +68,14 @@ class Version {
 
   _Version__isset __isset;
 
+  void __set_version(const std::string& val) {
+    version = val;
+  }
+
+  void __set_comments(const std::string& val) {
+    comments = val;
+  }
+
   bool operator == (const Version & rhs) const
   {
     if (!(version == rhs.version))
@@ -105,6 +119,18 @@ class FieldSchema {
 
   _FieldSchema__isset __isset;
 
+  void __set_name(const std::string& val) {
+    name = val;
+  }
+
+  void __set_type(const std::string& val) {
+    type = val;
+  }
+
+  void __set_comment(const std::string& val) {
+    comment = val;
+  }
+
   bool operator == (const FieldSchema & rhs) const
   {
     if (!(name == rhs.name))
@@ -152,6 +178,25 @@ class Type {
 
   _Type__isset __isset;
 
+  void __set_name(const std::string& val) {
+    name = val;
+  }
+
+  void __set_type1(const std::string& val) {
+    type1 = val;
+    __isset.type1 = true;
+  }
+
+  void __set_type2(const std::string& val) {
+    type2 = val;
+    __isset.type2 = true;
+  }
+
+  void __set_fields(const std::vector<FieldSchema> & val) {
+    fields = val;
+    __isset.fields = true;
+  }
+
   bool operator == (const Type & rhs) const
   {
     if (!(name == rhs.name))
@@ -209,6 +254,26 @@ class HiveObjectRef {
 
   _HiveObjectRef__isset __isset;
 
+  void __set_objectType(const HiveObjectType::type val) {
+    objectType = val;
+  }
+
+  void __set_dbName(const std::string& val) {
+    dbName = val;
+  }
+
+  void __set_objectName(const std::string& val) {
+    objectName = val;
+  }
+
+  void __set_partValues(const std::vector<std::string> & val) {
+    partValues = val;
+  }
+
+  void __set_columnName(const std::string& val) {
+    columnName = val;
+  }
+
   bool operator == (const HiveObjectRef & rhs) const
   {
     if (!(objectType == rhs.objectType))
@@ -262,6 +327,26 @@ class PrivilegeGrantInfo {
 
   _PrivilegeGrantInfo__isset __isset;
 
+  void __set_privilege(const std::string& val) {
+    privilege = val;
+  }
+
+  void __set_createTime(const int32_t val) {
+    createTime = val;
+  }
+
+  void __set_grantor(const std::string& val) {
+    grantor = val;
+  }
+
+  void __set_grantorType(const PrincipalType::type val) {
+    grantorType = val;
+  }
+
+  void __set_grantOption(const bool val) {
+    grantOption = val;
+  }
+
   bool operator == (const PrivilegeGrantInfo & rhs) const
   {
     if (!(privilege == rhs.privilege))
@@ -313,6 +398,22 @@ class HiveObjectPrivilege {
 
   _HiveObjectPrivilege__isset __isset;
 
+  void __set_hiveObject(const HiveObjectRef& val) {
+    hiveObject = val;
+  }
+
+  void __set_principalName(const std::string& val) {
+    principalName = val;
+  }
+
+  void __set_principalType(const PrincipalType::type val) {
+    principalType = val;
+  }
+
+  void __set_grantInfo(const PrivilegeGrantInfo& val) {
+    grantInfo = val;
+  }
+
   bool operator == (const HiveObjectPrivilege & rhs) const
   {
     if (!(hiveObject == rhs.hiveObject))
@@ -356,6 +457,10 @@ class PrivilegeBag {
 
   _PrivilegeBag__isset __isset;
 
+  void __set_privileges(const std::vector<HiveObjectPrivilege> & val) {
+    privileges = val;
+  }
+
   bool operator == (const PrivilegeBag & rhs) const
   {
     if (!(privileges == rhs.privileges))
@@ -397,6 +502,18 @@ class PrincipalPrivilegeSet {
 
   _PrincipalPrivilegeSet__isset __isset;
 
+  void __set_userPrivileges(const std::map<std::string, std::vector<PrivilegeGrantInfo> > & val) {
+    userPrivileges = val;
+  }
+
+  void __set_groupPrivileges(const std::map<std::string, std::vector<PrivilegeGrantInfo> > & val) {
+    groupPrivileges = val;
+  }
+
+  void __set_rolePrivileges(const std::map<std::string, std::vector<PrivilegeGrantInfo> > & val) {
+    rolePrivileges = val;
+  }
+
   bool operator == (const PrincipalPrivilegeSet & rhs) const
   {
     if (!(userPrivileges == rhs.userPrivileges))
@@ -442,6 +559,18 @@ class Role {
 
   _Role__isset __isset;
 
+  void __set_roleName(const std::string& val) {
+    roleName = val;
+  }
+
+  void __set_createTime(const int32_t val) {
+    createTime = val;
+  }
+
+  void __set_ownerName(const std::string& val) {
+    ownerName = val;
+  }
+
   bool operator == (const Role & rhs) const
   {
     if (!(roleName == rhs.roleName))
@@ -491,6 +620,27 @@ class Database {
 
   _Database__isset __isset;
 
+  void __set_name(const std::string& val) {
+    name = val;
+  }
+
+  void __set_description(const std::string& val) {
+    description = val;
+  }
+
+  void __set_locationUri(const std::string& val) {
+    locationUri = val;
+  }
+
+  void __set_parameters(const std::map<std::string, std::string> & val) {
+    parameters = val;
+  }
+
+  void __set_privileges(const PrincipalPrivilegeSet& val) {
+    privileges = val;
+    __isset.privileges = true;
+  }
+
   bool operator == (const Database & rhs) const
   {
     if (!(name == rhs.name))
@@ -542,6 +692,18 @@ class SerDeInfo {
 
   _SerDeInfo__isset __isset;
 
+  void __set_name(const std::string& val) {
+    name = val;
+  }
+
+  void __set_serializationLib(const std::string& val) {
+    serializationLib = val;
+  }
+
+  void __set_parameters(const std::map<std::string, std::string> & val) {
+    parameters = val;
+  }
+
   bool operator == (const SerDeInfo & rhs) const
   {
     if (!(name == rhs.name))
@@ -585,6 +747,14 @@ class Order {
 
   _Order__isset __isset;
 
+  void __set_col(const std::string& val) {
+    col = val;
+  }
+
+  void __set_order(const int32_t val) {
+    order = val;
+  }
+
   bool operator == (const Order & rhs) const
   {
     if (!(col == rhs.col))
@@ -642,6 +812,46 @@ class StorageDescriptor {
 
   _StorageDescriptor__isset __isset;
 
+  void __set_cols(const std::vector<FieldSchema> & val) {
+    cols = val;
+  }
+
+  void __set_location(const std::string& val) {
+    location = val;
+  }
+
+  void __set_inputFormat(const std::string& val) {
+    inputFormat = val;
+  }
+
+  void __set_outputFormat(const std::string& val) {
+    outputFormat = val;
+  }
+
+  void __set_compressed(const bool val) {
+    compressed = val;
+  }
+
+  void __set_numBuckets(const int32_t val) {
+    numBuckets = val;
+  }
+
+  void __set_serdeInfo(const SerDeInfo& val) {
+    serdeInfo = val;
+  }
+
+  void __set_bucketCols(const std::vector<std::string> & val) {
+    bucketCols = val;
+  }
+
+  void __set_sortCols(const std::vector<Order> & val) {
+    sortCols = val;
+  }
+
+  void __set_parameters(const std::map<std::string, std::string> & val) {
+    parameters = val;
+  }
+
   bool operator == (const StorageDescriptor & rhs) const
   {
     if (!(cols == rhs.cols))
@@ -721,6 +931,59 @@ class Table {
 
   _Table__isset __isset;
 
+  void __set_tableName(const std::string& val) {
+    tableName = val;
+  }
+
+  void __set_dbName(const std::string& val) {
+    dbName = val;
+  }
+
+  void __set_owner(const std::string& val) {
+    owner = val;
+  }
+
+  void __set_createTime(const int32_t val) {
+    createTime = val;
+  }
+
+  void __set_lastAccessTime(const int32_t val) {
+    lastAccessTime = val;
+  }
+
+  void __set_retention(const int32_t val) {
+    retention = val;
+  }
+
+  void __set_sd(const StorageDescriptor& val) {
+    sd = val;
+  }
+
+  void __set_partitionKeys(const std::vector<FieldSchema> & val) {
+    partitionKeys = val;
+  }
+
+  void __set_parameters(const std::map<std::string, std::string> & val) {
+    parameters = val;
+  }
+
+  void __set_viewOriginalText(const std::string& val) {
+    viewOriginalText = val;
+  }
+
+  void __set_viewExpandedText(const std::string& val) {
+    viewExpandedText = val;
+  }
+
+  void __set_tableType(const std::string& val) {
+    tableType = val;
+  }
+
+  void __set_privileges(const PrincipalPrivilegeSet& val) {
+    privileges = val;
+    __isset.privileges = true;
+  }
+
   bool operator == (const Table & rhs) const
   {
     if (!(tableName == rhs.tableName))
@@ -798,6 +1061,39 @@ class Partition {
 
   _Partition__isset __isset;
 
+  void __set_values(const std::vector<std::string> & val) {
+    values = val;
+  }
+
+  void __set_dbName(const std::string& val) {
+    dbName = val;
+  }
+
+  void __set_tableName(const std::string& val) {
+    tableName = val;
+  }
+
+  void __set_createTime(const int32_t val) {
+    createTime = val;
+  }
+
+  void __set_lastAccessTime(const int32_t val) {
+    lastAccessTime = val;
+  }
+
+  void __set_sd(const StorageDescriptor& val) {
+    sd = val;
+  }
+
+  void __set_parameters(const std::map<std::string, std::string> & val) {
+    parameters = val;
+  }
+
+  void __set_privileges(const PrincipalPrivilegeSet& val) {
+    privileges = val;
+    __isset.privileges = true;
+  }
+
   bool operator == (const Partition & rhs) const
   {
     if (!(values == rhs.values))
@@ -869,6 +1165,46 @@ class Index {
 
   _Index__isset __isset;
 
+  void __set_indexName(const std::string& val) {
+    indexName = val;
+  }
+
+  void __set_indexHandlerClass(const std::string& val) {
+    indexHandlerClass = val;
+  }
+
+  void __set_dbName(const std::string& val) {
+    dbName = val;
+  }
+
+  void __set_origTableName(const std::string& val) {
+    origTableName = val;
+  }
+
+  void __set_createTime(const int32_t val) {
+    createTime = val;
+  }
+
+  void __set_lastAccessTime(const int32_t val) {
+    lastAccessTime = val;
+  }
+
+  void __set_indexTableName(const std::string& val) {
+    indexTableName = val;
+  }
+
+  void __set_sd(const StorageDescriptor& val) {
+    sd = val;
+  }
+
+  void __set_parameters(const std::map<std::string, std::string> & val) {
+    parameters = val;
+  }
+
+  void __set_deferredRebuild(const bool val) {
+    deferredRebuild = val;
+  }
+
   bool operator == (const Index & rhs) const
   {
     if (!(indexName == rhs.indexName))
@@ -926,6 +1262,14 @@ class Schema {
 
   _Schema__isset __isset;
 
+  void __set_fieldSchemas(const std::vector<FieldSchema> & val) {
+    fieldSchemas = val;
+  }
+
+  void __set_properties(const std::map<std::string, std::string> & val) {
+    properties = val;
+  }
+
   bool operator == (const Schema & rhs) const
   {
     if (!(fieldSchemas == rhs.fieldSchemas))
@@ -965,6 +1309,10 @@ class MetaException : public ::apache::t
 
   _MetaException__isset __isset;
 
+  void __set_message(const std::string& val) {
+    message = val;
+  }
+
   bool operator == (const MetaException & rhs) const
   {
     if (!(message == rhs.message))
@@ -1002,6 +1350,10 @@ class UnknownTableException : public ::a
 
   _UnknownTableException__isset __isset;
 
+  void __set_message(const std::string& val) {
+    message = val;
+  }
+
   bool operator == (const UnknownTableException & rhs) const
   {
     if (!(message == rhs.message))
@@ -1039,6 +1391,10 @@ class UnknownDBException : public ::apac
 
   _UnknownDBException__isset __isset;
 
+  void __set_message(const std::string& val) {
+    message = val;
+  }
+
   bool operator == (const UnknownDBException & rhs) const
   {
     if (!(message == rhs.message))
@@ -1076,6 +1432,10 @@ class AlreadyExistsException : public ::
 
   _AlreadyExistsException__isset __isset;
 
+  void __set_message(const std::string& val) {
+    message = val;
+  }
+
   bool operator == (const AlreadyExistsException & rhs) const
   {
     if (!(message == rhs.message))
@@ -1113,6 +1473,10 @@ class InvalidPartitionException : public
 
   _InvalidPartitionException__isset __isset;
 
+  void __set_message(const std::string& val) {
+    message = val;
+  }
+
   bool operator == (const InvalidPartitionException & rhs) const
   {
     if (!(message == rhs.message))
@@ -1150,6 +1514,10 @@ class UnknownPartitionException : public
 
   _UnknownPartitionException__isset __isset;
 
+  void __set_message(const std::string& val) {
+    message = val;
+  }
+
   bool operator == (const UnknownPartitionException & rhs) const
   {
     if (!(message == rhs.message))
@@ -1187,6 +1555,10 @@ class InvalidObjectException : public ::
 
   _InvalidObjectException__isset __isset;
 
+  void __set_message(const std::string& val) {
+    message = val;
+  }
+
   bool operator == (const InvalidObjectException & rhs) const
   {
     if (!(message == rhs.message))
@@ -1224,6 +1596,10 @@ class NoSuchObjectException : public ::a
 
   _NoSuchObjectException__isset __isset;
 
+  void __set_message(const std::string& val) {
+    message = val;
+  }
+
   bool operator == (const NoSuchObjectException & rhs) const
   {
     if (!(message == rhs.message))
@@ -1261,6 +1637,10 @@ class IndexAlreadyExistsException : publ
 
   _IndexAlreadyExistsException__isset __isset;
 
+  void __set_message(const std::string& val) {
+    message = val;
+  }
+
   bool operator == (const IndexAlreadyExistsException & rhs) const
   {
     if (!(message == rhs.message))
@@ -1298,6 +1678,10 @@ class InvalidOperationException : public
 
   _InvalidOperationException__isset __isset;
 
+  void __set_message(const std::string& val) {
+    message = val;
+  }
+
   bool operator == (const InvalidOperationException & rhs) const
   {
     if (!(message == rhs.message))
@@ -1335,6 +1719,10 @@ class ConfigValSecurityException : publi
 
   _ConfigValSecurityException__isset __isset;
 
+  void __set_message(const std::string& val) {
+    message = val;
+  }
+
   bool operator == (const ConfigValSecurityException & rhs) const
   {
     if (!(message == rhs.message))

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java?rev=1165207&r1=1165206&r2=1165207&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java Mon Sep  5 08:47:02 2011
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  */
@@ -20,21 +20,15 @@ import java.util.Arrays;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.thrift.*;
-import org.apache.thrift.async.*;
-import org.apache.thrift.meta_data.*;
-import org.apache.thrift.transport.*;
-import org.apache.thrift.protocol.*;
+public class AlreadyExistsException extends Exception implements org.apache.thrift.TBase<AlreadyExistsException, AlreadyExistsException._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AlreadyExistsException");
 
-public class AlreadyExistsException extends Exception implements TBase<AlreadyExistsException, AlreadyExistsException._Fields>, java.io.Serializable, Cloneable {
-  private static final TStruct STRUCT_DESC = new TStruct("AlreadyExistsException");
+  private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1);
 
-  private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1);
-
-  private String message;
+  private String message; // required
 
   /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  public enum _Fields implements TFieldIdEnum {
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
     MESSAGE((short)1, "message");
 
     private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -93,13 +87,13 @@ public class AlreadyExistsException exte
 
   // isset id assignments
 
-  public static final Map<_Fields, FieldMetaData> metaDataMap;
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
   static {
-    Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.STRING)));
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
     metaDataMap = Collections.unmodifiableMap(tmpMap);
-    FieldMetaData.addStructMetaDataMap(AlreadyExistsException.class, metaDataMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AlreadyExistsException.class, metaDataMap);
   }
 
   public AlreadyExistsException() {
@@ -142,7 +136,7 @@ public class AlreadyExistsException exte
     this.message = null;
   }
 
-  /** Returns true if field message is set (has been asigned a value) and false otherwise */
+  /** Returns true if field message is set (has been assigned a value) and false otherwise */
   public boolean isSetMessage() {
     return this.message != null;
   }
@@ -175,7 +169,7 @@ public class AlreadyExistsException exte
     throw new IllegalStateException();
   }
 
-  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
+  /** 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();
@@ -231,7 +225,7 @@ public class AlreadyExistsException exte
       return lastComparison;
     }
     if (isSetMessage()) {
-      lastComparison = TBaseHelper.compareTo(this.message, typedOther.message);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -243,25 +237,25 @@ public class AlreadyExistsException exte
     return _Fields.findByThriftId(fieldId);
   }
 
-  public void read(TProtocol iprot) throws TException {
-    TField field;
+  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 == TType.STOP) { 
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
         break;
       }
       switch (field.id) {
         case 1: // MESSAGE
-          if (field.type == TType.STRING) {
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
             this.message = iprot.readString();
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         default:
-          TProtocolUtil.skip(iprot, field.type);
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
       }
       iprot.readFieldEnd();
     }
@@ -269,7 +263,7 @@ public class AlreadyExistsException exte
     validate();
   }
 
-  public void write(TProtocol oprot) throws TException {
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
     validate();
 
     oprot.writeStructBegin(STRUCT_DESC);
@@ -298,9 +292,25 @@ public class AlreadyExistsException exte
     return sb.toString();
   }
 
-  public void validate() throws TException {
+  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);
+    }
+  }
+
 }
 

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java?rev=1165207&r1=1165206&r2=1165207&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java Mon Sep  5 08:47:02 2011
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  */
@@ -20,21 +20,15 @@ import java.util.Arrays;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.thrift.*;
-import org.apache.thrift.async.*;
-import org.apache.thrift.meta_data.*;
-import org.apache.thrift.transport.*;
-import org.apache.thrift.protocol.*;
+public class ConfigValSecurityException extends Exception implements org.apache.thrift.TBase<ConfigValSecurityException, ConfigValSecurityException._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ConfigValSecurityException");
 
-public class ConfigValSecurityException extends Exception implements TBase<ConfigValSecurityException, ConfigValSecurityException._Fields>, java.io.Serializable, Cloneable {
-  private static final TStruct STRUCT_DESC = new TStruct("ConfigValSecurityException");
+  private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1);
 
-  private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1);
-
-  private String message;
+  private String message; // required
 
   /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  public enum _Fields implements TFieldIdEnum {
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
     MESSAGE((short)1, "message");
 
     private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -93,13 +87,13 @@ public class ConfigValSecurityException 
 
   // isset id assignments
 
-  public static final Map<_Fields, FieldMetaData> metaDataMap;
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
   static {
-    Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.STRING)));
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
     metaDataMap = Collections.unmodifiableMap(tmpMap);
-    FieldMetaData.addStructMetaDataMap(ConfigValSecurityException.class, metaDataMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ConfigValSecurityException.class, metaDataMap);
   }
 
   public ConfigValSecurityException() {
@@ -142,7 +136,7 @@ public class ConfigValSecurityException 
     this.message = null;
   }
 
-  /** Returns true if field message is set (has been asigned a value) and false otherwise */
+  /** Returns true if field message is set (has been assigned a value) and false otherwise */
   public boolean isSetMessage() {
     return this.message != null;
   }
@@ -175,7 +169,7 @@ public class ConfigValSecurityException 
     throw new IllegalStateException();
   }
 
-  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
+  /** 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();
@@ -231,7 +225,7 @@ public class ConfigValSecurityException 
       return lastComparison;
     }
     if (isSetMessage()) {
-      lastComparison = TBaseHelper.compareTo(this.message, typedOther.message);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -243,25 +237,25 @@ public class ConfigValSecurityException 
     return _Fields.findByThriftId(fieldId);
   }
 
-  public void read(TProtocol iprot) throws TException {
-    TField field;
+  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 == TType.STOP) { 
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
         break;
       }
       switch (field.id) {
         case 1: // MESSAGE
-          if (field.type == TType.STRING) {
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
             this.message = iprot.readString();
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         default:
-          TProtocolUtil.skip(iprot, field.type);
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
       }
       iprot.readFieldEnd();
     }
@@ -269,7 +263,7 @@ public class ConfigValSecurityException 
     validate();
   }
 
-  public void write(TProtocol oprot) throws TException {
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
     validate();
 
     oprot.writeStructBegin(STRUCT_DESC);
@@ -298,9 +292,25 @@ public class ConfigValSecurityException 
     return sb.toString();
   }
 
-  public void validate() throws TException {
+  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);
+    }
+  }
+
 }
 

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Constants.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Constants.java?rev=1165207&r1=1165206&r2=1165207&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Constants.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Constants.java Mon Sep  5 08:47:02 2011
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  */

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java?rev=1165207&r1=1165206&r2=1165207&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java Mon Sep  5 08:47:02 2011
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  */
@@ -20,29 +20,23 @@ import java.util.Arrays;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.thrift.*;
-import org.apache.thrift.async.*;
-import org.apache.thrift.meta_data.*;
-import org.apache.thrift.transport.*;
-import org.apache.thrift.protocol.*;
-
-public class Database implements TBase<Database, Database._Fields>, java.io.Serializable, Cloneable {
-  private static final TStruct STRUCT_DESC = new TStruct("Database");
-
-  private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
-  private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)2);
-  private static final TField LOCATION_URI_FIELD_DESC = new TField("locationUri", TType.STRING, (short)3);
-  private static final TField PARAMETERS_FIELD_DESC = new TField("parameters", TType.MAP, (short)4);
-  private static final TField PRIVILEGES_FIELD_DESC = new TField("privileges", TType.STRUCT, (short)5);
-
-  private String name;
-  private String description;
-  private String locationUri;
-  private Map<String,String> parameters;
-  private PrincipalPrivilegeSet privileges;
+public class Database implements org.apache.thrift.TBase<Database, Database._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Database");
+
+  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField LOCATION_URI_FIELD_DESC = new org.apache.thrift.protocol.TField("locationUri", org.apache.thrift.protocol.TType.STRING, (short)3);
+  private static final org.apache.thrift.protocol.TField PARAMETERS_FIELD_DESC = new org.apache.thrift.protocol.TField("parameters", org.apache.thrift.protocol.TType.MAP, (short)4);
+  private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)5);
+
+  private String name; // required
+  private String description; // required
+  private String locationUri; // required
+  private Map<String,String> parameters; // required
+  private PrincipalPrivilegeSet privileges; // required
 
   /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  public enum _Fields implements TFieldIdEnum {
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
     NAME((short)1, "name"),
     DESCRIPTION((short)2, "description"),
     LOCATION_URI((short)3, "locationUri"),
@@ -113,23 +107,23 @@ public class Database implements TBase<D
 
   // isset id assignments
 
-  public static final Map<_Fields, FieldMetaData> metaDataMap;
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
   static {
-    Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.STRING)));
-    tmpMap.put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.STRING)));
-    tmpMap.put(_Fields.LOCATION_URI, new FieldMetaData("locationUri", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.STRING)));
-    tmpMap.put(_Fields.PARAMETERS, new FieldMetaData("parameters", TFieldRequirementType.DEFAULT, 
-        new MapMetaData(TType.MAP, 
-            new FieldValueMetaData(TType.STRING), 
-            new FieldValueMetaData(TType.STRING))));
-    tmpMap.put(_Fields.PRIVILEGES, new FieldMetaData("privileges", TFieldRequirementType.OPTIONAL, 
-        new StructMetaData(TType.STRUCT, PrincipalPrivilegeSet.class)));
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.LOCATION_URI, new org.apache.thrift.meta_data.FieldMetaData("locationUri", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.PARAMETERS, new org.apache.thrift.meta_data.FieldMetaData("parameters", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
+            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
+            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+    tmpMap.put(_Fields.PRIVILEGES, new org.apache.thrift.meta_data.FieldMetaData("privileges", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrincipalPrivilegeSet.class)));
     metaDataMap = Collections.unmodifiableMap(tmpMap);
-    FieldMetaData.addStructMetaDataMap(Database.class, metaDataMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Database.class, metaDataMap);
   }
 
   public Database() {
@@ -206,7 +200,7 @@ public class Database implements TBase<D
     this.name = null;
   }
 
-  /** Returns true if field name is set (has been asigned a value) and false otherwise */
+  /** Returns true if field name is set (has been assigned a value) and false otherwise */
   public boolean isSetName() {
     return this.name != null;
   }
@@ -229,7 +223,7 @@ public class Database implements TBase<D
     this.description = null;
   }
 
-  /** Returns true if field description is set (has been asigned a value) and false otherwise */
+  /** Returns true if field description is set (has been assigned a value) and false otherwise */
   public boolean isSetDescription() {
     return this.description != null;
   }
@@ -252,7 +246,7 @@ public class Database implements TBase<D
     this.locationUri = null;
   }
 
-  /** Returns true if field locationUri is set (has been asigned a value) and false otherwise */
+  /** Returns true if field locationUri is set (has been assigned a value) and false otherwise */
   public boolean isSetLocationUri() {
     return this.locationUri != null;
   }
@@ -286,7 +280,7 @@ public class Database implements TBase<D
     this.parameters = null;
   }
 
-  /** Returns true if field parameters is set (has been asigned a value) and false otherwise */
+  /** Returns true if field parameters is set (has been assigned a value) and false otherwise */
   public boolean isSetParameters() {
     return this.parameters != null;
   }
@@ -309,7 +303,7 @@ public class Database implements TBase<D
     this.privileges = null;
   }
 
-  /** Returns true if field privileges is set (has been asigned a value) and false otherwise */
+  /** Returns true if field privileges is set (has been assigned a value) and false otherwise */
   public boolean isSetPrivileges() {
     return this.privileges != null;
   }
@@ -386,7 +380,7 @@ public class Database implements TBase<D
     throw new IllegalStateException();
   }
 
-  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
+  /** 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();
@@ -486,7 +480,7 @@ public class Database implements TBase<D
       return lastComparison;
     }
     if (isSetName()) {
-      lastComparison = TBaseHelper.compareTo(this.name, typedOther.name);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -496,7 +490,7 @@ public class Database implements TBase<D
       return lastComparison;
     }
     if (isSetDescription()) {
-      lastComparison = TBaseHelper.compareTo(this.description, typedOther.description);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -506,7 +500,7 @@ public class Database implements TBase<D
       return lastComparison;
     }
     if (isSetLocationUri()) {
-      lastComparison = TBaseHelper.compareTo(this.locationUri, typedOther.locationUri);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locationUri, typedOther.locationUri);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -516,7 +510,7 @@ public class Database implements TBase<D
       return lastComparison;
     }
     if (isSetParameters()) {
-      lastComparison = TBaseHelper.compareTo(this.parameters, typedOther.parameters);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -526,7 +520,7 @@ public class Database implements TBase<D
       return lastComparison;
     }
     if (isSetPrivileges()) {
-      lastComparison = TBaseHelper.compareTo(this.privileges, typedOther.privileges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -538,46 +532,46 @@ public class Database implements TBase<D
     return _Fields.findByThriftId(fieldId);
   }
 
-  public void read(TProtocol iprot) throws TException {
-    TField field;
+  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 == TType.STOP) { 
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
         break;
       }
       switch (field.id) {
         case 1: // NAME
-          if (field.type == TType.STRING) {
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
             this.name = iprot.readString();
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         case 2: // DESCRIPTION
-          if (field.type == TType.STRING) {
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
             this.description = iprot.readString();
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         case 3: // LOCATION_URI
-          if (field.type == TType.STRING) {
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
             this.locationUri = iprot.readString();
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         case 4: // PARAMETERS
-          if (field.type == TType.MAP) {
+          if (field.type == org.apache.thrift.protocol.TType.MAP) {
             {
-              TMap _map39 = iprot.readMapBegin();
+              org.apache.thrift.protocol.TMap _map39 = iprot.readMapBegin();
               this.parameters = new HashMap<String,String>(2*_map39.size);
               for (int _i40 = 0; _i40 < _map39.size; ++_i40)
               {
-                String _key41;
-                String _val42;
+                String _key41; // required
+                String _val42; // required
                 _key41 = iprot.readString();
                 _val42 = iprot.readString();
                 this.parameters.put(_key41, _val42);
@@ -585,19 +579,19 @@ public class Database implements TBase<D
               iprot.readMapEnd();
             }
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         case 5: // PRIVILEGES
-          if (field.type == TType.STRUCT) {
+          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
             this.privileges = new PrincipalPrivilegeSet();
             this.privileges.read(iprot);
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         default:
-          TProtocolUtil.skip(iprot, field.type);
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
       }
       iprot.readFieldEnd();
     }
@@ -605,7 +599,7 @@ public class Database implements TBase<D
     validate();
   }
 
-  public void write(TProtocol oprot) throws TException {
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
     validate();
 
     oprot.writeStructBegin(STRUCT_DESC);
@@ -627,7 +621,7 @@ public class Database implements TBase<D
     if (this.parameters != null) {
       oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
       {
-        oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.parameters.size()));
+        oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size()));
         for (Map.Entry<String, String> _iter43 : this.parameters.entrySet())
         {
           oprot.writeString(_iter43.getKey());
@@ -698,9 +692,25 @@ public class Database implements TBase<D
     return sb.toString();
   }
 
-  public void validate() throws TException {
+  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);
+    }
+  }
+
 }
 

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java?rev=1165207&r1=1165206&r2=1165207&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java Mon Sep  5 08:47:02 2011
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  */
@@ -20,25 +20,19 @@ import java.util.Arrays;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.thrift.*;
-import org.apache.thrift.async.*;
-import org.apache.thrift.meta_data.*;
-import org.apache.thrift.transport.*;
-import org.apache.thrift.protocol.*;
-
-public class FieldSchema implements TBase<FieldSchema, FieldSchema._Fields>, java.io.Serializable, Cloneable {
-  private static final TStruct STRUCT_DESC = new TStruct("FieldSchema");
-
-  private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
-  private static final TField TYPE_FIELD_DESC = new TField("type", TType.STRING, (short)2);
-  private static final TField COMMENT_FIELD_DESC = new TField("comment", TType.STRING, (short)3);
-
-  private String name;
-  private String type;
-  private String comment;
+public class FieldSchema implements org.apache.thrift.TBase<FieldSchema, FieldSchema._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FieldSchema");
+
+  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField COMMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("comment", org.apache.thrift.protocol.TType.STRING, (short)3);
+
+  private String name; // required
+  private String type; // required
+  private String comment; // required
 
   /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  public enum _Fields implements TFieldIdEnum {
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
     NAME((short)1, "name"),
     TYPE((short)2, "type"),
     COMMENT((short)3, "comment");
@@ -103,17 +97,17 @@ public class FieldSchema implements TBas
 
   // isset id assignments
 
-  public static final Map<_Fields, FieldMetaData> metaDataMap;
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
   static {
-    Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.STRING)));
-    tmpMap.put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.STRING)));
-    tmpMap.put(_Fields.COMMENT, new FieldMetaData("comment", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.STRING)));
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.COMMENT, new org.apache.thrift.meta_data.FieldMetaData("comment", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
     metaDataMap = Collections.unmodifiableMap(tmpMap);
-    FieldMetaData.addStructMetaDataMap(FieldSchema.class, metaDataMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FieldSchema.class, metaDataMap);
   }
 
   public FieldSchema() {
@@ -168,7 +162,7 @@ public class FieldSchema implements TBas
     this.name = null;
   }
 
-  /** Returns true if field name is set (has been asigned a value) and false otherwise */
+  /** Returns true if field name is set (has been assigned a value) and false otherwise */
   public boolean isSetName() {
     return this.name != null;
   }
@@ -191,7 +185,7 @@ public class FieldSchema implements TBas
     this.type = null;
   }
 
-  /** Returns true if field type is set (has been asigned a value) and false otherwise */
+  /** Returns true if field type is set (has been assigned a value) and false otherwise */
   public boolean isSetType() {
     return this.type != null;
   }
@@ -214,7 +208,7 @@ public class FieldSchema implements TBas
     this.comment = null;
   }
 
-  /** Returns true if field comment is set (has been asigned a value) and false otherwise */
+  /** Returns true if field comment is set (has been assigned a value) and false otherwise */
   public boolean isSetComment() {
     return this.comment != null;
   }
@@ -269,7 +263,7 @@ public class FieldSchema implements TBas
     throw new IllegalStateException();
   }
 
-  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
+  /** 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();
@@ -347,7 +341,7 @@ public class FieldSchema implements TBas
       return lastComparison;
     }
     if (isSetName()) {
-      lastComparison = TBaseHelper.compareTo(this.name, typedOther.name);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -357,7 +351,7 @@ public class FieldSchema implements TBas
       return lastComparison;
     }
     if (isSetType()) {
-      lastComparison = TBaseHelper.compareTo(this.type, typedOther.type);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -367,7 +361,7 @@ public class FieldSchema implements TBas
       return lastComparison;
     }
     if (isSetComment()) {
-      lastComparison = TBaseHelper.compareTo(this.comment, typedOther.comment);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -379,39 +373,39 @@ public class FieldSchema implements TBas
     return _Fields.findByThriftId(fieldId);
   }
 
-  public void read(TProtocol iprot) throws TException {
-    TField field;
+  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 == TType.STOP) { 
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
         break;
       }
       switch (field.id) {
         case 1: // NAME
-          if (field.type == TType.STRING) {
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
             this.name = iprot.readString();
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         case 2: // TYPE
-          if (field.type == TType.STRING) {
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
             this.type = iprot.readString();
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         case 3: // COMMENT
-          if (field.type == TType.STRING) {
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
             this.comment = iprot.readString();
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         default:
-          TProtocolUtil.skip(iprot, field.type);
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
       }
       iprot.readFieldEnd();
     }
@@ -419,7 +413,7 @@ public class FieldSchema implements TBas
     validate();
   }
 
-  public void write(TProtocol oprot) throws TException {
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
     validate();
 
     oprot.writeStructBegin(STRUCT_DESC);
@@ -474,9 +468,25 @@ public class FieldSchema implements TBas
     return sb.toString();
   }
 
-  public void validate() throws TException {
+  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);
+    }
+  }
+
 }
 

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java?rev=1165207&r1=1165206&r2=1165207&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java Mon Sep  5 08:47:02 2011
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  */
@@ -20,27 +20,21 @@ import java.util.Arrays;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.thrift.*;
-import org.apache.thrift.async.*;
-import org.apache.thrift.meta_data.*;
-import org.apache.thrift.transport.*;
-import org.apache.thrift.protocol.*;
-
-public class HiveObjectPrivilege implements TBase<HiveObjectPrivilege, HiveObjectPrivilege._Fields>, java.io.Serializable, Cloneable {
-  private static final TStruct STRUCT_DESC = new TStruct("HiveObjectPrivilege");
-
-  private static final TField HIVE_OBJECT_FIELD_DESC = new TField("hiveObject", TType.STRUCT, (short)1);
-  private static final TField PRINCIPAL_NAME_FIELD_DESC = new TField("principalName", TType.STRING, (short)2);
-  private static final TField PRINCIPAL_TYPE_FIELD_DESC = new TField("principalType", TType.I32, (short)3);
-  private static final TField GRANT_INFO_FIELD_DESC = new TField("grantInfo", TType.STRUCT, (short)4);
-
-  private HiveObjectRef hiveObject;
-  private String principalName;
-  private PrincipalType principalType;
-  private PrivilegeGrantInfo grantInfo;
+public class HiveObjectPrivilege implements org.apache.thrift.TBase<HiveObjectPrivilege, HiveObjectPrivilege._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveObjectPrivilege");
+
+  private static final org.apache.thrift.protocol.TField HIVE_OBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("hiveObject", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+  private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principalName", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("principalType", org.apache.thrift.protocol.TType.I32, (short)3);
+  private static final org.apache.thrift.protocol.TField GRANT_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("grantInfo", org.apache.thrift.protocol.TType.STRUCT, (short)4);
+
+  private HiveObjectRef hiveObject; // required
+  private String principalName; // required
+  private PrincipalType principalType; // required
+  private PrivilegeGrantInfo grantInfo; // required
 
   /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  public enum _Fields implements TFieldIdEnum {
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
     HIVE_OBJECT((short)1, "hiveObject"),
     PRINCIPAL_NAME((short)2, "principalName"),
     /**
@@ -112,19 +106,19 @@ public class HiveObjectPrivilege impleme
 
   // isset id assignments
 
-  public static final Map<_Fields, FieldMetaData> metaDataMap;
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
   static {
-    Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.HIVE_OBJECT, new FieldMetaData("hiveObject", TFieldRequirementType.DEFAULT, 
-        new StructMetaData(TType.STRUCT, HiveObjectRef.class)));
-    tmpMap.put(_Fields.PRINCIPAL_NAME, new FieldMetaData("principalName", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.STRING)));
-    tmpMap.put(_Fields.PRINCIPAL_TYPE, new FieldMetaData("principalType", TFieldRequirementType.DEFAULT, 
-        new EnumMetaData(TType.ENUM, PrincipalType.class)));
-    tmpMap.put(_Fields.GRANT_INFO, new FieldMetaData("grantInfo", TFieldRequirementType.DEFAULT, 
-        new StructMetaData(TType.STRUCT, PrivilegeGrantInfo.class)));
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.HIVE_OBJECT, new org.apache.thrift.meta_data.FieldMetaData("hiveObject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HiveObjectRef.class)));
+    tmpMap.put(_Fields.PRINCIPAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("principalName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("principalType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class)));
+    tmpMap.put(_Fields.GRANT_INFO, new org.apache.thrift.meta_data.FieldMetaData("grantInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivilegeGrantInfo.class)));
     metaDataMap = Collections.unmodifiableMap(tmpMap);
-    FieldMetaData.addStructMetaDataMap(HiveObjectPrivilege.class, metaDataMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HiveObjectPrivilege.class, metaDataMap);
   }
 
   public HiveObjectPrivilege() {
@@ -185,7 +179,7 @@ public class HiveObjectPrivilege impleme
     this.hiveObject = null;
   }
 
-  /** Returns true if field hiveObject is set (has been asigned a value) and false otherwise */
+  /** Returns true if field hiveObject is set (has been assigned a value) and false otherwise */
   public boolean isSetHiveObject() {
     return this.hiveObject != null;
   }
@@ -208,7 +202,7 @@ public class HiveObjectPrivilege impleme
     this.principalName = null;
   }
 
-  /** Returns true if field principalName is set (has been asigned a value) and false otherwise */
+  /** Returns true if field principalName is set (has been assigned a value) and false otherwise */
   public boolean isSetPrincipalName() {
     return this.principalName != null;
   }
@@ -239,7 +233,7 @@ public class HiveObjectPrivilege impleme
     this.principalType = null;
   }
 
-  /** Returns true if field principalType is set (has been asigned a value) and false otherwise */
+  /** Returns true if field principalType is set (has been assigned a value) and false otherwise */
   public boolean isSetPrincipalType() {
     return this.principalType != null;
   }
@@ -262,7 +256,7 @@ public class HiveObjectPrivilege impleme
     this.grantInfo = null;
   }
 
-  /** Returns true if field grantInfo is set (has been asigned a value) and false otherwise */
+  /** Returns true if field grantInfo is set (has been assigned a value) and false otherwise */
   public boolean isSetGrantInfo() {
     return this.grantInfo != null;
   }
@@ -328,7 +322,7 @@ public class HiveObjectPrivilege impleme
     throw new IllegalStateException();
   }
 
-  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
+  /** 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();
@@ -417,7 +411,7 @@ public class HiveObjectPrivilege impleme
       return lastComparison;
     }
     if (isSetHiveObject()) {
-      lastComparison = TBaseHelper.compareTo(this.hiveObject, typedOther.hiveObject);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, typedOther.hiveObject);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -427,7 +421,7 @@ public class HiveObjectPrivilege impleme
       return lastComparison;
     }
     if (isSetPrincipalName()) {
-      lastComparison = TBaseHelper.compareTo(this.principalName, typedOther.principalName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, typedOther.principalName);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -437,7 +431,7 @@ public class HiveObjectPrivilege impleme
       return lastComparison;
     }
     if (isSetPrincipalType()) {
-      lastComparison = TBaseHelper.compareTo(this.principalType, typedOther.principalType);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, typedOther.principalType);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -447,7 +441,7 @@ public class HiveObjectPrivilege impleme
       return lastComparison;
     }
     if (isSetGrantInfo()) {
-      lastComparison = TBaseHelper.compareTo(this.grantInfo, typedOther.grantInfo);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantInfo, typedOther.grantInfo);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -459,48 +453,48 @@ public class HiveObjectPrivilege impleme
     return _Fields.findByThriftId(fieldId);
   }
 
-  public void read(TProtocol iprot) throws TException {
-    TField field;
+  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 == TType.STOP) { 
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
         break;
       }
       switch (field.id) {
         case 1: // HIVE_OBJECT
-          if (field.type == TType.STRUCT) {
+          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
             this.hiveObject = new HiveObjectRef();
             this.hiveObject.read(iprot);
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         case 2: // PRINCIPAL_NAME
-          if (field.type == TType.STRING) {
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
             this.principalName = iprot.readString();
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         case 3: // PRINCIPAL_TYPE
-          if (field.type == TType.I32) {
+          if (field.type == org.apache.thrift.protocol.TType.I32) {
             this.principalType = PrincipalType.findByValue(iprot.readI32());
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         case 4: // GRANT_INFO
-          if (field.type == TType.STRUCT) {
+          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
             this.grantInfo = new PrivilegeGrantInfo();
             this.grantInfo.read(iprot);
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         default:
-          TProtocolUtil.skip(iprot, field.type);
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
       }
       iprot.readFieldEnd();
     }
@@ -508,7 +502,7 @@ public class HiveObjectPrivilege impleme
     validate();
   }
 
-  public void write(TProtocol oprot) throws TException {
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
     validate();
 
     oprot.writeStructBegin(STRUCT_DESC);
@@ -576,9 +570,25 @@ public class HiveObjectPrivilege impleme
     return sb.toString();
   }
 
-  public void validate() throws TException {
+  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);
+    }
+  }
+
 }
 



Mime
View raw message