You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2014/03/12 11:07:11 UTC

svn commit: r1576677 [6/13] - in /hive/branches/branch-0.13: metastore/if/ metastore/src/gen/thrift/gen-cpp/ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ metastore/src/gen/thrift/gen-php/metastore/ metastore/src/gen/thrif...

Modified: hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java?rev=1576677&r1=1576676&r2=1576677&view=diff
==============================================================================
--- hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java (original)
+++ hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java Wed Mar 12 10:07:09 2014
@@ -941,13 +941,13 @@ public class Partition implements org.ap
           case 1: // VALUES
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list192 = iprot.readListBegin();
-                struct.values = new ArrayList<String>(_list192.size);
-                for (int _i193 = 0; _i193 < _list192.size; ++_i193)
+                org.apache.thrift.protocol.TList _list200 = iprot.readListBegin();
+                struct.values = new ArrayList<String>(_list200.size);
+                for (int _i201 = 0; _i201 < _list200.size; ++_i201)
                 {
-                  String _elem194; // required
-                  _elem194 = iprot.readString();
-                  struct.values.add(_elem194);
+                  String _elem202; // optional
+                  _elem202 = iprot.readString();
+                  struct.values.add(_elem202);
                 }
                 iprot.readListEnd();
               }
@@ -1000,15 +1000,15 @@ public class Partition implements org.ap
           case 7: // PARAMETERS
             if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
               {
-                org.apache.thrift.protocol.TMap _map195 = iprot.readMapBegin();
-                struct.parameters = new HashMap<String,String>(2*_map195.size);
-                for (int _i196 = 0; _i196 < _map195.size; ++_i196)
+                org.apache.thrift.protocol.TMap _map203 = iprot.readMapBegin();
+                struct.parameters = new HashMap<String,String>(2*_map203.size);
+                for (int _i204 = 0; _i204 < _map203.size; ++_i204)
                 {
-                  String _key197; // required
-                  String _val198; // required
-                  _key197 = iprot.readString();
-                  _val198 = iprot.readString();
-                  struct.parameters.put(_key197, _val198);
+                  String _key205; // required
+                  String _val206; // required
+                  _key205 = iprot.readString();
+                  _val206 = iprot.readString();
+                  struct.parameters.put(_key205, _val206);
                 }
                 iprot.readMapEnd();
               }
@@ -1043,9 +1043,9 @@ public class Partition implements org.ap
         oprot.writeFieldBegin(VALUES_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.values.size()));
-          for (String _iter199 : struct.values)
+          for (String _iter207 : struct.values)
           {
-            oprot.writeString(_iter199);
+            oprot.writeString(_iter207);
           }
           oprot.writeListEnd();
         }
@@ -1076,10 +1076,10 @@ public class Partition implements org.ap
         oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size()));
-          for (Map.Entry<String, String> _iter200 : struct.parameters.entrySet())
+          for (Map.Entry<String, String> _iter208 : struct.parameters.entrySet())
           {
-            oprot.writeString(_iter200.getKey());
-            oprot.writeString(_iter200.getValue());
+            oprot.writeString(_iter208.getKey());
+            oprot.writeString(_iter208.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -1138,9 +1138,9 @@ public class Partition implements org.ap
       if (struct.isSetValues()) {
         {
           oprot.writeI32(struct.values.size());
-          for (String _iter201 : struct.values)
+          for (String _iter209 : struct.values)
           {
-            oprot.writeString(_iter201);
+            oprot.writeString(_iter209);
           }
         }
       }
@@ -1162,10 +1162,10 @@ public class Partition implements org.ap
       if (struct.isSetParameters()) {
         {
           oprot.writeI32(struct.parameters.size());
-          for (Map.Entry<String, String> _iter202 : struct.parameters.entrySet())
+          for (Map.Entry<String, String> _iter210 : struct.parameters.entrySet())
           {
-            oprot.writeString(_iter202.getKey());
-            oprot.writeString(_iter202.getValue());
+            oprot.writeString(_iter210.getKey());
+            oprot.writeString(_iter210.getValue());
           }
         }
       }
@@ -1180,13 +1180,13 @@ public class Partition implements org.ap
       BitSet incoming = iprot.readBitSet(8);
       if (incoming.get(0)) {
         {
-          org.apache.thrift.protocol.TList _list203 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-          struct.values = new ArrayList<String>(_list203.size);
-          for (int _i204 = 0; _i204 < _list203.size; ++_i204)
+          org.apache.thrift.protocol.TList _list211 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+          struct.values = new ArrayList<String>(_list211.size);
+          for (int _i212 = 0; _i212 < _list211.size; ++_i212)
           {
-            String _elem205; // required
-            _elem205 = iprot.readString();
-            struct.values.add(_elem205);
+            String _elem213; // optional
+            _elem213 = iprot.readString();
+            struct.values.add(_elem213);
           }
         }
         struct.setValuesIsSet(true);
@@ -1214,15 +1214,15 @@ public class Partition implements org.ap
       }
       if (incoming.get(6)) {
         {
-          org.apache.thrift.protocol.TMap _map206 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-          struct.parameters = new HashMap<String,String>(2*_map206.size);
-          for (int _i207 = 0; _i207 < _map206.size; ++_i207)
+          org.apache.thrift.protocol.TMap _map214 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+          struct.parameters = new HashMap<String,String>(2*_map214.size);
+          for (int _i215 = 0; _i215 < _map214.size; ++_i215)
           {
-            String _key208; // required
-            String _val209; // required
-            _key208 = iprot.readString();
-            _val209 = iprot.readString();
-            struct.parameters.put(_key208, _val209);
+            String _key216; // required
+            String _val217; // required
+            _key216 = iprot.readString();
+            _val217 = iprot.readString();
+            struct.parameters.put(_key216, _val217);
           }
         }
         struct.setParametersIsSet(true);

Modified: hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java?rev=1576677&r1=1576676&r2=1576677&view=diff
==============================================================================
--- hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java (original)
+++ hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java Wed Mar 12 10:07:09 2014
@@ -435,14 +435,14 @@ public class PartitionsByExprResult impl
           case 1: // PARTITIONS
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list256 = iprot.readListBegin();
-                struct.partitions = new ArrayList<Partition>(_list256.size);
-                for (int _i257 = 0; _i257 < _list256.size; ++_i257)
+                org.apache.thrift.protocol.TList _list264 = iprot.readListBegin();
+                struct.partitions = new ArrayList<Partition>(_list264.size);
+                for (int _i265 = 0; _i265 < _list264.size; ++_i265)
                 {
-                  Partition _elem258; // required
-                  _elem258 = new Partition();
-                  _elem258.read(iprot);
-                  struct.partitions.add(_elem258);
+                  Partition _elem266; // optional
+                  _elem266 = new Partition();
+                  _elem266.read(iprot);
+                  struct.partitions.add(_elem266);
                 }
                 iprot.readListEnd();
               }
@@ -476,9 +476,9 @@ public class PartitionsByExprResult impl
         oprot.writeFieldBegin(PARTITIONS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size()));
-          for (Partition _iter259 : struct.partitions)
+          for (Partition _iter267 : struct.partitions)
           {
-            _iter259.write(oprot);
+            _iter267.write(oprot);
           }
           oprot.writeListEnd();
         }
@@ -506,9 +506,9 @@ public class PartitionsByExprResult impl
       TTupleProtocol oprot = (TTupleProtocol) prot;
       {
         oprot.writeI32(struct.partitions.size());
-        for (Partition _iter260 : struct.partitions)
+        for (Partition _iter268 : struct.partitions)
         {
-          _iter260.write(oprot);
+          _iter268.write(oprot);
         }
       }
       oprot.writeBool(struct.hasUnknownPartitions);
@@ -518,14 +518,14 @@ public class PartitionsByExprResult impl
     public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprResult struct) throws org.apache.thrift.TException {
       TTupleProtocol iprot = (TTupleProtocol) prot;
       {
-        org.apache.thrift.protocol.TList _list261 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-        struct.partitions = new ArrayList<Partition>(_list261.size);
-        for (int _i262 = 0; _i262 < _list261.size; ++_i262)
+        org.apache.thrift.protocol.TList _list269 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+        struct.partitions = new ArrayList<Partition>(_list269.size);
+        for (int _i270 = 0; _i270 < _list269.size; ++_i270)
         {
-          Partition _elem263; // required
-          _elem263 = new Partition();
-          _elem263.read(iprot);
-          struct.partitions.add(_elem263);
+          Partition _elem271; // optional
+          _elem271 = new Partition();
+          _elem271.read(iprot);
+          struct.partitions.add(_elem271);
         }
       }
       struct.setPartitionsIsSet(true);

Modified: hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java?rev=1576677&r1=1576676&r2=1576677&view=diff
==============================================================================
--- hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java (original)
+++ hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java Wed Mar 12 10:07:09 2014
@@ -641,13 +641,13 @@ public class PartitionsStatsRequest impl
           case 3: // COL_NAMES
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list298 = iprot.readListBegin();
-                struct.colNames = new ArrayList<String>(_list298.size);
-                for (int _i299 = 0; _i299 < _list298.size; ++_i299)
+                org.apache.thrift.protocol.TList _list306 = iprot.readListBegin();
+                struct.colNames = new ArrayList<String>(_list306.size);
+                for (int _i307 = 0; _i307 < _list306.size; ++_i307)
                 {
-                  String _elem300; // required
-                  _elem300 = iprot.readString();
-                  struct.colNames.add(_elem300);
+                  String _elem308; // optional
+                  _elem308 = iprot.readString();
+                  struct.colNames.add(_elem308);
                 }
                 iprot.readListEnd();
               }
@@ -659,13 +659,13 @@ public class PartitionsStatsRequest impl
           case 4: // PART_NAMES
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list301 = iprot.readListBegin();
-                struct.partNames = new ArrayList<String>(_list301.size);
-                for (int _i302 = 0; _i302 < _list301.size; ++_i302)
+                org.apache.thrift.protocol.TList _list309 = iprot.readListBegin();
+                struct.partNames = new ArrayList<String>(_list309.size);
+                for (int _i310 = 0; _i310 < _list309.size; ++_i310)
                 {
-                  String _elem303; // required
-                  _elem303 = iprot.readString();
-                  struct.partNames.add(_elem303);
+                  String _elem311; // optional
+                  _elem311 = iprot.readString();
+                  struct.partNames.add(_elem311);
                 }
                 iprot.readListEnd();
               }
@@ -701,9 +701,9 @@ public class PartitionsStatsRequest impl
         oprot.writeFieldBegin(COL_NAMES_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.colNames.size()));
-          for (String _iter304 : struct.colNames)
+          for (String _iter312 : struct.colNames)
           {
-            oprot.writeString(_iter304);
+            oprot.writeString(_iter312);
           }
           oprot.writeListEnd();
         }
@@ -713,9 +713,9 @@ public class PartitionsStatsRequest impl
         oprot.writeFieldBegin(PART_NAMES_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partNames.size()));
-          for (String _iter305 : struct.partNames)
+          for (String _iter313 : struct.partNames)
           {
-            oprot.writeString(_iter305);
+            oprot.writeString(_iter313);
           }
           oprot.writeListEnd();
         }
@@ -742,16 +742,16 @@ public class PartitionsStatsRequest impl
       oprot.writeString(struct.tblName);
       {
         oprot.writeI32(struct.colNames.size());
-        for (String _iter306 : struct.colNames)
+        for (String _iter314 : struct.colNames)
         {
-          oprot.writeString(_iter306);
+          oprot.writeString(_iter314);
         }
       }
       {
         oprot.writeI32(struct.partNames.size());
-        for (String _iter307 : struct.partNames)
+        for (String _iter315 : struct.partNames)
         {
-          oprot.writeString(_iter307);
+          oprot.writeString(_iter315);
         }
       }
     }
@@ -764,24 +764,24 @@ public class PartitionsStatsRequest impl
       struct.tblName = iprot.readString();
       struct.setTblNameIsSet(true);
       {
-        org.apache.thrift.protocol.TList _list308 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-        struct.colNames = new ArrayList<String>(_list308.size);
-        for (int _i309 = 0; _i309 < _list308.size; ++_i309)
-        {
-          String _elem310; // required
-          _elem310 = iprot.readString();
-          struct.colNames.add(_elem310);
+        org.apache.thrift.protocol.TList _list316 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+        struct.colNames = new ArrayList<String>(_list316.size);
+        for (int _i317 = 0; _i317 < _list316.size; ++_i317)
+        {
+          String _elem318; // optional
+          _elem318 = iprot.readString();
+          struct.colNames.add(_elem318);
         }
       }
       struct.setColNamesIsSet(true);
       {
-        org.apache.thrift.protocol.TList _list311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-        struct.partNames = new ArrayList<String>(_list311.size);
-        for (int _i312 = 0; _i312 < _list311.size; ++_i312)
-        {
-          String _elem313; // required
-          _elem313 = iprot.readString();
-          struct.partNames.add(_elem313);
+        org.apache.thrift.protocol.TList _list319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+        struct.partNames = new ArrayList<String>(_list319.size);
+        for (int _i320 = 0; _i320 < _list319.size; ++_i320)
+        {
+          String _elem321; // optional
+          _elem321 = iprot.readString();
+          struct.partNames.add(_elem321);
         }
       }
       struct.setPartNamesIsSet(true);

Modified: hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java?rev=1576677&r1=1576676&r2=1576677&view=diff
==============================================================================
--- hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java (original)
+++ hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java Wed Mar 12 10:07:09 2014
@@ -359,26 +359,26 @@ public class PartitionsStatsResult imple
           case 1: // PART_STATS
             if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
               {
-                org.apache.thrift.protocol.TMap _map272 = iprot.readMapBegin();
-                struct.partStats = new HashMap<String,List<ColumnStatisticsObj>>(2*_map272.size);
-                for (int _i273 = 0; _i273 < _map272.size; ++_i273)
+                org.apache.thrift.protocol.TMap _map280 = iprot.readMapBegin();
+                struct.partStats = new HashMap<String,List<ColumnStatisticsObj>>(2*_map280.size);
+                for (int _i281 = 0; _i281 < _map280.size; ++_i281)
                 {
-                  String _key274; // required
-                  List<ColumnStatisticsObj> _val275; // required
-                  _key274 = iprot.readString();
+                  String _key282; // required
+                  List<ColumnStatisticsObj> _val283; // required
+                  _key282 = iprot.readString();
                   {
-                    org.apache.thrift.protocol.TList _list276 = iprot.readListBegin();
-                    _val275 = new ArrayList<ColumnStatisticsObj>(_list276.size);
-                    for (int _i277 = 0; _i277 < _list276.size; ++_i277)
+                    org.apache.thrift.protocol.TList _list284 = iprot.readListBegin();
+                    _val283 = new ArrayList<ColumnStatisticsObj>(_list284.size);
+                    for (int _i285 = 0; _i285 < _list284.size; ++_i285)
                     {
-                      ColumnStatisticsObj _elem278; // required
-                      _elem278 = new ColumnStatisticsObj();
-                      _elem278.read(iprot);
-                      _val275.add(_elem278);
+                      ColumnStatisticsObj _elem286; // optional
+                      _elem286 = new ColumnStatisticsObj();
+                      _elem286.read(iprot);
+                      _val283.add(_elem286);
                     }
                     iprot.readListEnd();
                   }
-                  struct.partStats.put(_key274, _val275);
+                  struct.partStats.put(_key282, _val283);
                 }
                 iprot.readMapEnd();
               }
@@ -404,14 +404,14 @@ public class PartitionsStatsResult imple
         oprot.writeFieldBegin(PART_STATS_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, struct.partStats.size()));
-          for (Map.Entry<String, List<ColumnStatisticsObj>> _iter279 : struct.partStats.entrySet())
+          for (Map.Entry<String, List<ColumnStatisticsObj>> _iter287 : struct.partStats.entrySet())
           {
-            oprot.writeString(_iter279.getKey());
+            oprot.writeString(_iter287.getKey());
             {
-              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter279.getValue().size()));
-              for (ColumnStatisticsObj _iter280 : _iter279.getValue())
+              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter287.getValue().size()));
+              for (ColumnStatisticsObj _iter288 : _iter287.getValue())
               {
-                _iter280.write(oprot);
+                _iter288.write(oprot);
               }
               oprot.writeListEnd();
             }
@@ -439,14 +439,14 @@ public class PartitionsStatsResult imple
       TTupleProtocol oprot = (TTupleProtocol) prot;
       {
         oprot.writeI32(struct.partStats.size());
-        for (Map.Entry<String, List<ColumnStatisticsObj>> _iter281 : struct.partStats.entrySet())
+        for (Map.Entry<String, List<ColumnStatisticsObj>> _iter289 : struct.partStats.entrySet())
         {
-          oprot.writeString(_iter281.getKey());
+          oprot.writeString(_iter289.getKey());
           {
-            oprot.writeI32(_iter281.getValue().size());
-            for (ColumnStatisticsObj _iter282 : _iter281.getValue())
+            oprot.writeI32(_iter289.getValue().size());
+            for (ColumnStatisticsObj _iter290 : _iter289.getValue())
             {
-              _iter282.write(oprot);
+              _iter290.write(oprot);
             }
           }
         }
@@ -457,25 +457,25 @@ public class PartitionsStatsResult imple
     public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResult struct) throws org.apache.thrift.TException {
       TTupleProtocol iprot = (TTupleProtocol) prot;
       {
-        org.apache.thrift.protocol.TMap _map283 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32());
-        struct.partStats = new HashMap<String,List<ColumnStatisticsObj>>(2*_map283.size);
-        for (int _i284 = 0; _i284 < _map283.size; ++_i284)
+        org.apache.thrift.protocol.TMap _map291 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32());
+        struct.partStats = new HashMap<String,List<ColumnStatisticsObj>>(2*_map291.size);
+        for (int _i292 = 0; _i292 < _map291.size; ++_i292)
         {
-          String _key285; // required
-          List<ColumnStatisticsObj> _val286; // required
-          _key285 = iprot.readString();
+          String _key293; // required
+          List<ColumnStatisticsObj> _val294; // required
+          _key293 = iprot.readString();
           {
-            org.apache.thrift.protocol.TList _list287 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-            _val286 = new ArrayList<ColumnStatisticsObj>(_list287.size);
-            for (int _i288 = 0; _i288 < _list287.size; ++_i288)
+            org.apache.thrift.protocol.TList _list295 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+            _val294 = new ArrayList<ColumnStatisticsObj>(_list295.size);
+            for (int _i296 = 0; _i296 < _list295.size; ++_i296)
             {
-              ColumnStatisticsObj _elem289; // required
-              _elem289 = new ColumnStatisticsObj();
-              _elem289.read(iprot);
-              _val286.add(_elem289);
+              ColumnStatisticsObj _elem297; // optional
+              _elem297 = new ColumnStatisticsObj();
+              _elem297.read(iprot);
+              _val294.add(_elem297);
             }
           }
-          struct.partStats.put(_key285, _val286);
+          struct.partStats.put(_key293, _val294);
         }
       }
       struct.setPartStatsIsSet(true);

Modified: hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java?rev=1576677&r1=1576676&r2=1576677&view=diff
==============================================================================
--- hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java (original)
+++ hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java Wed Mar 12 10:07:09 2014
@@ -587,7 +587,7 @@ public class PrincipalPrivilegeSet imple
                     _val27 = new ArrayList<PrivilegeGrantInfo>(_list28.size);
                     for (int _i29 = 0; _i29 < _list28.size; ++_i29)
                     {
-                      PrivilegeGrantInfo _elem30; // required
+                      PrivilegeGrantInfo _elem30; // optional
                       _elem30 = new PrivilegeGrantInfo();
                       _elem30.read(iprot);
                       _val27.add(_elem30);
@@ -618,7 +618,7 @@ public class PrincipalPrivilegeSet imple
                     _val34 = new ArrayList<PrivilegeGrantInfo>(_list35.size);
                     for (int _i36 = 0; _i36 < _list35.size; ++_i36)
                     {
-                      PrivilegeGrantInfo _elem37; // required
+                      PrivilegeGrantInfo _elem37; // optional
                       _elem37 = new PrivilegeGrantInfo();
                       _elem37.read(iprot);
                       _val34.add(_elem37);
@@ -649,7 +649,7 @@ public class PrincipalPrivilegeSet imple
                     _val41 = new ArrayList<PrivilegeGrantInfo>(_list42.size);
                     for (int _i43 = 0; _i43 < _list42.size; ++_i43)
                     {
-                      PrivilegeGrantInfo _elem44; // required
+                      PrivilegeGrantInfo _elem44; // optional
                       _elem44 = new PrivilegeGrantInfo();
                       _elem44.read(iprot);
                       _val41.add(_elem44);
@@ -834,7 +834,7 @@ public class PrincipalPrivilegeSet imple
               _val60 = new ArrayList<PrivilegeGrantInfo>(_list61.size);
               for (int _i62 = 0; _i62 < _list61.size; ++_i62)
               {
-                PrivilegeGrantInfo _elem63; // required
+                PrivilegeGrantInfo _elem63; // optional
                 _elem63 = new PrivilegeGrantInfo();
                 _elem63.read(iprot);
                 _val60.add(_elem63);
@@ -859,7 +859,7 @@ public class PrincipalPrivilegeSet imple
               _val67 = new ArrayList<PrivilegeGrantInfo>(_list68.size);
               for (int _i69 = 0; _i69 < _list68.size; ++_i69)
               {
-                PrivilegeGrantInfo _elem70; // required
+                PrivilegeGrantInfo _elem70; // optional
                 _elem70 = new PrivilegeGrantInfo();
                 _elem70.read(iprot);
                 _val67.add(_elem70);
@@ -884,7 +884,7 @@ public class PrincipalPrivilegeSet imple
               _val74 = new ArrayList<PrivilegeGrantInfo>(_list75.size);
               for (int _i76 = 0; _i76 < _list75.size; ++_i76)
               {
-                PrivilegeGrantInfo _elem77; // required
+                PrivilegeGrantInfo _elem77; // optional
                 _elem77 = new PrivilegeGrantInfo();
                 _elem77.read(iprot);
                 _val74.add(_elem77);

Modified: hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java?rev=1576677&r1=1576676&r2=1576677&view=diff
==============================================================================
--- hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java (original)
+++ hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java Wed Mar 12 10:07:09 2014
@@ -350,7 +350,7 @@ public class PrivilegeBag implements org
                 struct.privileges = new ArrayList<HiveObjectPrivilege>(_list16.size);
                 for (int _i17 = 0; _i17 < _list16.size; ++_i17)
                 {
-                  HiveObjectPrivilege _elem18; // required
+                  HiveObjectPrivilege _elem18; // optional
                   _elem18 = new HiveObjectPrivilege();
                   _elem18.read(iprot);
                   struct.privileges.add(_elem18);
@@ -430,7 +430,7 @@ public class PrivilegeBag implements org
           struct.privileges = new ArrayList<HiveObjectPrivilege>(_list21.size);
           for (int _i22 = 0; _i22 < _list21.size; ++_i22)
           {
-            HiveObjectPrivilege _elem23; // required
+            HiveObjectPrivilege _elem23; // optional
             _elem23 = new HiveObjectPrivilege();
             _elem23.read(iprot);
             struct.privileges.add(_elem23);

Modified: hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java?rev=1576677&r1=1576676&r2=1576677&view=diff
==============================================================================
--- hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java (original)
+++ hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java Wed Mar 12 10:07:09 2014
@@ -165,13 +165,13 @@ public class RequestPartsSpec extends or
           if (field.type == NAMES_FIELD_DESC.type) {
             List<String> names;
             {
-              org.apache.thrift.protocol.TList _list338 = iprot.readListBegin();
-              names = new ArrayList<String>(_list338.size);
-              for (int _i339 = 0; _i339 < _list338.size; ++_i339)
+              org.apache.thrift.protocol.TList _list346 = iprot.readListBegin();
+              names = new ArrayList<String>(_list346.size);
+              for (int _i347 = 0; _i347 < _list346.size; ++_i347)
               {
-                String _elem340; // required
-                _elem340 = iprot.readString();
-                names.add(_elem340);
+                String _elem348; // optional
+                _elem348 = iprot.readString();
+                names.add(_elem348);
               }
               iprot.readListEnd();
             }
@@ -184,14 +184,14 @@ public class RequestPartsSpec extends or
           if (field.type == EXPRS_FIELD_DESC.type) {
             List<DropPartitionsExpr> exprs;
             {
-              org.apache.thrift.protocol.TList _list341 = iprot.readListBegin();
-              exprs = new ArrayList<DropPartitionsExpr>(_list341.size);
-              for (int _i342 = 0; _i342 < _list341.size; ++_i342)
+              org.apache.thrift.protocol.TList _list349 = iprot.readListBegin();
+              exprs = new ArrayList<DropPartitionsExpr>(_list349.size);
+              for (int _i350 = 0; _i350 < _list349.size; ++_i350)
               {
-                DropPartitionsExpr _elem343; // required
-                _elem343 = new DropPartitionsExpr();
-                _elem343.read(iprot);
-                exprs.add(_elem343);
+                DropPartitionsExpr _elem351; // optional
+                _elem351 = new DropPartitionsExpr();
+                _elem351.read(iprot);
+                exprs.add(_elem351);
               }
               iprot.readListEnd();
             }
@@ -215,9 +215,9 @@ public class RequestPartsSpec extends or
         List<String> names = (List<String>)value_;
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, names.size()));
-          for (String _iter344 : names)
+          for (String _iter352 : names)
           {
-            oprot.writeString(_iter344);
+            oprot.writeString(_iter352);
           }
           oprot.writeListEnd();
         }
@@ -226,9 +226,9 @@ public class RequestPartsSpec extends or
         List<DropPartitionsExpr> exprs = (List<DropPartitionsExpr>)value_;
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, exprs.size()));
-          for (DropPartitionsExpr _iter345 : exprs)
+          for (DropPartitionsExpr _iter353 : exprs)
           {
-            _iter345.write(oprot);
+            _iter353.write(oprot);
           }
           oprot.writeListEnd();
         }
@@ -246,13 +246,13 @@ public class RequestPartsSpec extends or
         case NAMES:
           List<String> names;
           {
-            org.apache.thrift.protocol.TList _list346 = iprot.readListBegin();
-            names = new ArrayList<String>(_list346.size);
-            for (int _i347 = 0; _i347 < _list346.size; ++_i347)
+            org.apache.thrift.protocol.TList _list354 = iprot.readListBegin();
+            names = new ArrayList<String>(_list354.size);
+            for (int _i355 = 0; _i355 < _list354.size; ++_i355)
             {
-              String _elem348; // required
-              _elem348 = iprot.readString();
-              names.add(_elem348);
+              String _elem356; // optional
+              _elem356 = iprot.readString();
+              names.add(_elem356);
             }
             iprot.readListEnd();
           }
@@ -260,14 +260,14 @@ public class RequestPartsSpec extends or
         case EXPRS:
           List<DropPartitionsExpr> exprs;
           {
-            org.apache.thrift.protocol.TList _list349 = iprot.readListBegin();
-            exprs = new ArrayList<DropPartitionsExpr>(_list349.size);
-            for (int _i350 = 0; _i350 < _list349.size; ++_i350)
+            org.apache.thrift.protocol.TList _list357 = iprot.readListBegin();
+            exprs = new ArrayList<DropPartitionsExpr>(_list357.size);
+            for (int _i358 = 0; _i358 < _list357.size; ++_i358)
             {
-              DropPartitionsExpr _elem351; // required
-              _elem351 = new DropPartitionsExpr();
-              _elem351.read(iprot);
-              exprs.add(_elem351);
+              DropPartitionsExpr _elem359; // optional
+              _elem359 = new DropPartitionsExpr();
+              _elem359.read(iprot);
+              exprs.add(_elem359);
             }
             iprot.readListEnd();
           }
@@ -287,9 +287,9 @@ public class RequestPartsSpec extends or
         List<String> names = (List<String>)value_;
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, names.size()));
-          for (String _iter352 : names)
+          for (String _iter360 : names)
           {
-            oprot.writeString(_iter352);
+            oprot.writeString(_iter360);
           }
           oprot.writeListEnd();
         }
@@ -298,9 +298,9 @@ public class RequestPartsSpec extends or
         List<DropPartitionsExpr> exprs = (List<DropPartitionsExpr>)value_;
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, exprs.size()));
-          for (DropPartitionsExpr _iter353 : exprs)
+          for (DropPartitionsExpr _iter361 : exprs)
           {
-            _iter353.write(oprot);
+            _iter361.write(oprot);
           }
           oprot.writeListEnd();
         }

Added: hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java?rev=1576677&view=auto
==============================================================================
--- hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java (added)
+++ hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java Wed Mar 12 10:07:09 2014
@@ -0,0 +1,1031 @@
+/**
+ * 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 RolePrincipalGrant implements org.apache.thrift.TBase<RolePrincipalGrant, RolePrincipalGrant._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RolePrincipalGrant");
+
+  private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (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_OPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("grantOption", org.apache.thrift.protocol.TType.BOOL, (short)4);
+  private static final org.apache.thrift.protocol.TField GRANT_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("grantTime", org.apache.thrift.protocol.TType.I32, (short)5);
+  private static final org.apache.thrift.protocol.TField GRANTOR_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("grantorName", org.apache.thrift.protocol.TType.STRING, (short)6);
+  private static final org.apache.thrift.protocol.TField GRANTOR_PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("grantorPrincipalType", org.apache.thrift.protocol.TType.I32, (short)7);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new RolePrincipalGrantStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new RolePrincipalGrantTupleSchemeFactory());
+  }
+
+  private String roleName; // required
+  private String principalName; // required
+  private PrincipalType principalType; // required
+  private boolean grantOption; // required
+  private int grantTime; // required
+  private String grantorName; // required
+  private PrincipalType grantorPrincipalType; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    ROLE_NAME((short)1, "roleName"),
+    PRINCIPAL_NAME((short)2, "principalName"),
+    /**
+     * 
+     * @see PrincipalType
+     */
+    PRINCIPAL_TYPE((short)3, "principalType"),
+    GRANT_OPTION((short)4, "grantOption"),
+    GRANT_TIME((short)5, "grantTime"),
+    GRANTOR_NAME((short)6, "grantorName"),
+    /**
+     * 
+     * @see PrincipalType
+     */
+    GRANTOR_PRINCIPAL_TYPE((short)7, "grantorPrincipalType");
+
+    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: // ROLE_NAME
+          return ROLE_NAME;
+        case 2: // PRINCIPAL_NAME
+          return PRINCIPAL_NAME;
+        case 3: // PRINCIPAL_TYPE
+          return PRINCIPAL_TYPE;
+        case 4: // GRANT_OPTION
+          return GRANT_OPTION;
+        case 5: // GRANT_TIME
+          return GRANT_TIME;
+        case 6: // GRANTOR_NAME
+          return GRANTOR_NAME;
+        case 7: // GRANTOR_PRINCIPAL_TYPE
+          return GRANTOR_PRINCIPAL_TYPE;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  private static final int __GRANTOPTION_ISSET_ID = 0;
+  private static final int __GRANTTIME_ISSET_ID = 1;
+  private byte __isset_bitfield = 0;
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    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_OPTION, new org.apache.thrift.meta_data.FieldMetaData("grantOption", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.GRANT_TIME, new org.apache.thrift.meta_data.FieldMetaData("grantTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+    tmpMap.put(_Fields.GRANTOR_NAME, new org.apache.thrift.meta_data.FieldMetaData("grantorName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.GRANTOR_PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("grantorPrincipalType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RolePrincipalGrant.class, metaDataMap);
+  }
+
+  public RolePrincipalGrant() {
+  }
+
+  public RolePrincipalGrant(
+    String roleName,
+    String principalName,
+    PrincipalType principalType,
+    boolean grantOption,
+    int grantTime,
+    String grantorName,
+    PrincipalType grantorPrincipalType)
+  {
+    this();
+    this.roleName = roleName;
+    this.principalName = principalName;
+    this.principalType = principalType;
+    this.grantOption = grantOption;
+    setGrantOptionIsSet(true);
+    this.grantTime = grantTime;
+    setGrantTimeIsSet(true);
+    this.grantorName = grantorName;
+    this.grantorPrincipalType = grantorPrincipalType;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public RolePrincipalGrant(RolePrincipalGrant other) {
+    __isset_bitfield = other.__isset_bitfield;
+    if (other.isSetRoleName()) {
+      this.roleName = other.roleName;
+    }
+    if (other.isSetPrincipalName()) {
+      this.principalName = other.principalName;
+    }
+    if (other.isSetPrincipalType()) {
+      this.principalType = other.principalType;
+    }
+    this.grantOption = other.grantOption;
+    this.grantTime = other.grantTime;
+    if (other.isSetGrantorName()) {
+      this.grantorName = other.grantorName;
+    }
+    if (other.isSetGrantorPrincipalType()) {
+      this.grantorPrincipalType = other.grantorPrincipalType;
+    }
+  }
+
+  public RolePrincipalGrant deepCopy() {
+    return new RolePrincipalGrant(this);
+  }
+
+  @Override
+  public void clear() {
+    this.roleName = null;
+    this.principalName = null;
+    this.principalType = null;
+    setGrantOptionIsSet(false);
+    this.grantOption = false;
+    setGrantTimeIsSet(false);
+    this.grantTime = 0;
+    this.grantorName = null;
+    this.grantorPrincipalType = null;
+  }
+
+  public String getRoleName() {
+    return this.roleName;
+  }
+
+  public void setRoleName(String roleName) {
+    this.roleName = roleName;
+  }
+
+  public void unsetRoleName() {
+    this.roleName = null;
+  }
+
+  /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
+  public boolean isSetRoleName() {
+    return this.roleName != null;
+  }
+
+  public void setRoleNameIsSet(boolean value) {
+    if (!value) {
+      this.roleName = null;
+    }
+  }
+
+  public String getPrincipalName() {
+    return this.principalName;
+  }
+
+  public void setPrincipalName(String principalName) {
+    this.principalName = principalName;
+  }
+
+  public void unsetPrincipalName() {
+    this.principalName = null;
+  }
+
+  /** Returns true if field principalName is set (has been assigned a value) and false otherwise */
+  public boolean isSetPrincipalName() {
+    return this.principalName != null;
+  }
+
+  public void setPrincipalNameIsSet(boolean value) {
+    if (!value) {
+      this.principalName = null;
+    }
+  }
+
+  /**
+   * 
+   * @see PrincipalType
+   */
+  public PrincipalType getPrincipalType() {
+    return this.principalType;
+  }
+
+  /**
+   * 
+   * @see PrincipalType
+   */
+  public void setPrincipalType(PrincipalType principalType) {
+    this.principalType = principalType;
+  }
+
+  public void unsetPrincipalType() {
+    this.principalType = null;
+  }
+
+  /** Returns true if field principalType is set (has been assigned a value) and false otherwise */
+  public boolean isSetPrincipalType() {
+    return this.principalType != null;
+  }
+
+  public void setPrincipalTypeIsSet(boolean value) {
+    if (!value) {
+      this.principalType = null;
+    }
+  }
+
+  public boolean isGrantOption() {
+    return this.grantOption;
+  }
+
+  public void setGrantOption(boolean grantOption) {
+    this.grantOption = grantOption;
+    setGrantOptionIsSet(true);
+  }
+
+  public void unsetGrantOption() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __GRANTOPTION_ISSET_ID);
+  }
+
+  /** Returns true if field grantOption is set (has been assigned a value) and false otherwise */
+  public boolean isSetGrantOption() {
+    return EncodingUtils.testBit(__isset_bitfield, __GRANTOPTION_ISSET_ID);
+  }
+
+  public void setGrantOptionIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __GRANTOPTION_ISSET_ID, value);
+  }
+
+  public int getGrantTime() {
+    return this.grantTime;
+  }
+
+  public void setGrantTime(int grantTime) {
+    this.grantTime = grantTime;
+    setGrantTimeIsSet(true);
+  }
+
+  public void unsetGrantTime() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __GRANTTIME_ISSET_ID);
+  }
+
+  /** Returns true if field grantTime is set (has been assigned a value) and false otherwise */
+  public boolean isSetGrantTime() {
+    return EncodingUtils.testBit(__isset_bitfield, __GRANTTIME_ISSET_ID);
+  }
+
+  public void setGrantTimeIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __GRANTTIME_ISSET_ID, value);
+  }
+
+  public String getGrantorName() {
+    return this.grantorName;
+  }
+
+  public void setGrantorName(String grantorName) {
+    this.grantorName = grantorName;
+  }
+
+  public void unsetGrantorName() {
+    this.grantorName = null;
+  }
+
+  /** Returns true if field grantorName is set (has been assigned a value) and false otherwise */
+  public boolean isSetGrantorName() {
+    return this.grantorName != null;
+  }
+
+  public void setGrantorNameIsSet(boolean value) {
+    if (!value) {
+      this.grantorName = null;
+    }
+  }
+
+  /**
+   * 
+   * @see PrincipalType
+   */
+  public PrincipalType getGrantorPrincipalType() {
+    return this.grantorPrincipalType;
+  }
+
+  /**
+   * 
+   * @see PrincipalType
+   */
+  public void setGrantorPrincipalType(PrincipalType grantorPrincipalType) {
+    this.grantorPrincipalType = grantorPrincipalType;
+  }
+
+  public void unsetGrantorPrincipalType() {
+    this.grantorPrincipalType = null;
+  }
+
+  /** Returns true if field grantorPrincipalType is set (has been assigned a value) and false otherwise */
+  public boolean isSetGrantorPrincipalType() {
+    return this.grantorPrincipalType != null;
+  }
+
+  public void setGrantorPrincipalTypeIsSet(boolean value) {
+    if (!value) {
+      this.grantorPrincipalType = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case ROLE_NAME:
+      if (value == null) {
+        unsetRoleName();
+      } else {
+        setRoleName((String)value);
+      }
+      break;
+
+    case PRINCIPAL_NAME:
+      if (value == null) {
+        unsetPrincipalName();
+      } else {
+        setPrincipalName((String)value);
+      }
+      break;
+
+    case PRINCIPAL_TYPE:
+      if (value == null) {
+        unsetPrincipalType();
+      } else {
+        setPrincipalType((PrincipalType)value);
+      }
+      break;
+
+    case GRANT_OPTION:
+      if (value == null) {
+        unsetGrantOption();
+      } else {
+        setGrantOption((Boolean)value);
+      }
+      break;
+
+    case GRANT_TIME:
+      if (value == null) {
+        unsetGrantTime();
+      } else {
+        setGrantTime((Integer)value);
+      }
+      break;
+
+    case GRANTOR_NAME:
+      if (value == null) {
+        unsetGrantorName();
+      } else {
+        setGrantorName((String)value);
+      }
+      break;
+
+    case GRANTOR_PRINCIPAL_TYPE:
+      if (value == null) {
+        unsetGrantorPrincipalType();
+      } else {
+        setGrantorPrincipalType((PrincipalType)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case ROLE_NAME:
+      return getRoleName();
+
+    case PRINCIPAL_NAME:
+      return getPrincipalName();
+
+    case PRINCIPAL_TYPE:
+      return getPrincipalType();
+
+    case GRANT_OPTION:
+      return Boolean.valueOf(isGrantOption());
+
+    case GRANT_TIME:
+      return Integer.valueOf(getGrantTime());
+
+    case GRANTOR_NAME:
+      return getGrantorName();
+
+    case GRANTOR_PRINCIPAL_TYPE:
+      return getGrantorPrincipalType();
+
+    }
+    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 ROLE_NAME:
+      return isSetRoleName();
+    case PRINCIPAL_NAME:
+      return isSetPrincipalName();
+    case PRINCIPAL_TYPE:
+      return isSetPrincipalType();
+    case GRANT_OPTION:
+      return isSetGrantOption();
+    case GRANT_TIME:
+      return isSetGrantTime();
+    case GRANTOR_NAME:
+      return isSetGrantorName();
+    case GRANTOR_PRINCIPAL_TYPE:
+      return isSetGrantorPrincipalType();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof RolePrincipalGrant)
+      return this.equals((RolePrincipalGrant)that);
+    return false;
+  }
+
+  public boolean equals(RolePrincipalGrant that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_roleName = true && this.isSetRoleName();
+    boolean that_present_roleName = true && that.isSetRoleName();
+    if (this_present_roleName || that_present_roleName) {
+      if (!(this_present_roleName && that_present_roleName))
+        return false;
+      if (!this.roleName.equals(that.roleName))
+        return false;
+    }
+
+    boolean this_present_principalName = true && this.isSetPrincipalName();
+    boolean that_present_principalName = true && that.isSetPrincipalName();
+    if (this_present_principalName || that_present_principalName) {
+      if (!(this_present_principalName && that_present_principalName))
+        return false;
+      if (!this.principalName.equals(that.principalName))
+        return false;
+    }
+
+    boolean this_present_principalType = true && this.isSetPrincipalType();
+    boolean that_present_principalType = true && that.isSetPrincipalType();
+    if (this_present_principalType || that_present_principalType) {
+      if (!(this_present_principalType && that_present_principalType))
+        return false;
+      if (!this.principalType.equals(that.principalType))
+        return false;
+    }
+
+    boolean this_present_grantOption = true;
+    boolean that_present_grantOption = true;
+    if (this_present_grantOption || that_present_grantOption) {
+      if (!(this_present_grantOption && that_present_grantOption))
+        return false;
+      if (this.grantOption != that.grantOption)
+        return false;
+    }
+
+    boolean this_present_grantTime = true;
+    boolean that_present_grantTime = true;
+    if (this_present_grantTime || that_present_grantTime) {
+      if (!(this_present_grantTime && that_present_grantTime))
+        return false;
+      if (this.grantTime != that.grantTime)
+        return false;
+    }
+
+    boolean this_present_grantorName = true && this.isSetGrantorName();
+    boolean that_present_grantorName = true && that.isSetGrantorName();
+    if (this_present_grantorName || that_present_grantorName) {
+      if (!(this_present_grantorName && that_present_grantorName))
+        return false;
+      if (!this.grantorName.equals(that.grantorName))
+        return false;
+    }
+
+    boolean this_present_grantorPrincipalType = true && this.isSetGrantorPrincipalType();
+    boolean that_present_grantorPrincipalType = true && that.isSetGrantorPrincipalType();
+    if (this_present_grantorPrincipalType || that_present_grantorPrincipalType) {
+      if (!(this_present_grantorPrincipalType && that_present_grantorPrincipalType))
+        return false;
+      if (!this.grantorPrincipalType.equals(that.grantorPrincipalType))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    HashCodeBuilder builder = new HashCodeBuilder();
+
+    boolean present_roleName = true && (isSetRoleName());
+    builder.append(present_roleName);
+    if (present_roleName)
+      builder.append(roleName);
+
+    boolean present_principalName = true && (isSetPrincipalName());
+    builder.append(present_principalName);
+    if (present_principalName)
+      builder.append(principalName);
+
+    boolean present_principalType = true && (isSetPrincipalType());
+    builder.append(present_principalType);
+    if (present_principalType)
+      builder.append(principalType.getValue());
+
+    boolean present_grantOption = true;
+    builder.append(present_grantOption);
+    if (present_grantOption)
+      builder.append(grantOption);
+
+    boolean present_grantTime = true;
+    builder.append(present_grantTime);
+    if (present_grantTime)
+      builder.append(grantTime);
+
+    boolean present_grantorName = true && (isSetGrantorName());
+    builder.append(present_grantorName);
+    if (present_grantorName)
+      builder.append(grantorName);
+
+    boolean present_grantorPrincipalType = true && (isSetGrantorPrincipalType());
+    builder.append(present_grantorPrincipalType);
+    if (present_grantorPrincipalType)
+      builder.append(grantorPrincipalType.getValue());
+
+    return builder.toHashCode();
+  }
+
+  public int compareTo(RolePrincipalGrant other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    RolePrincipalGrant typedOther = (RolePrincipalGrant)other;
+
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetRoleName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(typedOther.isSetPrincipalName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetPrincipalName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, typedOther.principalName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(typedOther.isSetPrincipalType());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetPrincipalType()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, typedOther.principalType);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetGrantOption()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetGrantTime()).compareTo(typedOther.isSetGrantTime());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetGrantTime()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantTime, typedOther.grantTime);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetGrantorName()).compareTo(typedOther.isSetGrantorName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetGrantorName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorName, typedOther.grantorName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetGrantorPrincipalType()).compareTo(typedOther.isSetGrantorPrincipalType());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetGrantorPrincipalType()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipalType, typedOther.grantorPrincipalType);
+      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("RolePrincipalGrant(");
+    boolean first = true;
+
+    sb.append("roleName:");
+    if (this.roleName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.roleName);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("principalName:");
+    if (this.principalName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.principalName);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("principalType:");
+    if (this.principalType == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.principalType);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("grantOption:");
+    sb.append(this.grantOption);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("grantTime:");
+    sb.append(this.grantTime);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("grantorName:");
+    if (this.grantorName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.grantorName);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("grantorPrincipalType:");
+    if (this.grantorPrincipalType == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.grantorPrincipalType);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    // check for sub-struct validity
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      // 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 RolePrincipalGrantStandardSchemeFactory implements SchemeFactory {
+    public RolePrincipalGrantStandardScheme getScheme() {
+      return new RolePrincipalGrantStandardScheme();
+    }
+  }
+
+  private static class RolePrincipalGrantStandardScheme extends StandardScheme<RolePrincipalGrant> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, RolePrincipalGrant 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: // ROLE_NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.roleName = iprot.readString();
+              struct.setRoleNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // PRINCIPAL_NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.principalName = iprot.readString();
+              struct.setPrincipalNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // PRINCIPAL_TYPE
+            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+              struct.principalType = PrincipalType.findByValue(iprot.readI32());
+              struct.setPrincipalTypeIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // GRANT_OPTION
+            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+              struct.grantOption = iprot.readBool();
+              struct.setGrantOptionIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 5: // GRANT_TIME
+            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+              struct.grantTime = iprot.readI32();
+              struct.setGrantTimeIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 6: // GRANTOR_NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.grantorName = iprot.readString();
+              struct.setGrantorNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 7: // GRANTOR_PRINCIPAL_TYPE
+            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+              struct.grantorPrincipalType = PrincipalType.findByValue(iprot.readI32());
+              struct.setGrantorPrincipalTypeIsSet(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, RolePrincipalGrant struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.roleName != null) {
+        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
+        oprot.writeString(struct.roleName);
+        oprot.writeFieldEnd();
+      }
+      if (struct.principalName != null) {
+        oprot.writeFieldBegin(PRINCIPAL_NAME_FIELD_DESC);
+        oprot.writeString(struct.principalName);
+        oprot.writeFieldEnd();
+      }
+      if (struct.principalType != null) {
+        oprot.writeFieldBegin(PRINCIPAL_TYPE_FIELD_DESC);
+        oprot.writeI32(struct.principalType.getValue());
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldBegin(GRANT_OPTION_FIELD_DESC);
+      oprot.writeBool(struct.grantOption);
+      oprot.writeFieldEnd();
+      oprot.writeFieldBegin(GRANT_TIME_FIELD_DESC);
+      oprot.writeI32(struct.grantTime);
+      oprot.writeFieldEnd();
+      if (struct.grantorName != null) {
+        oprot.writeFieldBegin(GRANTOR_NAME_FIELD_DESC);
+        oprot.writeString(struct.grantorName);
+        oprot.writeFieldEnd();
+      }
+      if (struct.grantorPrincipalType != null) {
+        oprot.writeFieldBegin(GRANTOR_PRINCIPAL_TYPE_FIELD_DESC);
+        oprot.writeI32(struct.grantorPrincipalType.getValue());
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class RolePrincipalGrantTupleSchemeFactory implements SchemeFactory {
+    public RolePrincipalGrantTupleScheme getScheme() {
+      return new RolePrincipalGrantTupleScheme();
+    }
+  }
+
+  private static class RolePrincipalGrantTupleScheme extends TupleScheme<RolePrincipalGrant> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, RolePrincipalGrant struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetRoleName()) {
+        optionals.set(0);
+      }
+      if (struct.isSetPrincipalName()) {
+        optionals.set(1);
+      }
+      if (struct.isSetPrincipalType()) {
+        optionals.set(2);
+      }
+      if (struct.isSetGrantOption()) {
+        optionals.set(3);
+      }
+      if (struct.isSetGrantTime()) {
+        optionals.set(4);
+      }
+      if (struct.isSetGrantorName()) {
+        optionals.set(5);
+      }
+      if (struct.isSetGrantorPrincipalType()) {
+        optionals.set(6);
+      }
+      oprot.writeBitSet(optionals, 7);
+      if (struct.isSetRoleName()) {
+        oprot.writeString(struct.roleName);
+      }
+      if (struct.isSetPrincipalName()) {
+        oprot.writeString(struct.principalName);
+      }
+      if (struct.isSetPrincipalType()) {
+        oprot.writeI32(struct.principalType.getValue());
+      }
+      if (struct.isSetGrantOption()) {
+        oprot.writeBool(struct.grantOption);
+      }
+      if (struct.isSetGrantTime()) {
+        oprot.writeI32(struct.grantTime);
+      }
+      if (struct.isSetGrantorName()) {
+        oprot.writeString(struct.grantorName);
+      }
+      if (struct.isSetGrantorPrincipalType()) {
+        oprot.writeI32(struct.grantorPrincipalType.getValue());
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, RolePrincipalGrant struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(7);
+      if (incoming.get(0)) {
+        struct.roleName = iprot.readString();
+        struct.setRoleNameIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.principalName = iprot.readString();
+        struct.setPrincipalNameIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.principalType = PrincipalType.findByValue(iprot.readI32());
+        struct.setPrincipalTypeIsSet(true);
+      }
+      if (incoming.get(3)) {
+        struct.grantOption = iprot.readBool();
+        struct.setGrantOptionIsSet(true);
+      }
+      if (incoming.get(4)) {
+        struct.grantTime = iprot.readI32();
+        struct.setGrantTimeIsSet(true);
+      }
+      if (incoming.get(5)) {
+        struct.grantorName = iprot.readString();
+        struct.setGrantorNameIsSet(true);
+      }
+      if (incoming.get(6)) {
+        struct.grantorPrincipalType = PrincipalType.findByValue(iprot.readI32());
+        struct.setGrantorPrincipalTypeIsSet(true);
+      }
+    }
+  }
+
+}
+

Modified: hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java?rev=1576677&r1=1576676&r2=1576677&view=diff
==============================================================================
--- hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java (original)
+++ hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java Wed Mar 12 10:07:09 2014
@@ -452,14 +452,14 @@ public class Schema implements org.apach
           case 1: // FIELD_SCHEMAS
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list228 = iprot.readListBegin();
-                struct.fieldSchemas = new ArrayList<FieldSchema>(_list228.size);
-                for (int _i229 = 0; _i229 < _list228.size; ++_i229)
+                org.apache.thrift.protocol.TList _list236 = iprot.readListBegin();
+                struct.fieldSchemas = new ArrayList<FieldSchema>(_list236.size);
+                for (int _i237 = 0; _i237 < _list236.size; ++_i237)
                 {
-                  FieldSchema _elem230; // required
-                  _elem230 = new FieldSchema();
-                  _elem230.read(iprot);
-                  struct.fieldSchemas.add(_elem230);
+                  FieldSchema _elem238; // optional
+                  _elem238 = new FieldSchema();
+                  _elem238.read(iprot);
+                  struct.fieldSchemas.add(_elem238);
                 }
                 iprot.readListEnd();
               }
@@ -471,15 +471,15 @@ public class Schema implements org.apach
           case 2: // PROPERTIES
             if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
               {
-                org.apache.thrift.protocol.TMap _map231 = iprot.readMapBegin();
-                struct.properties = new HashMap<String,String>(2*_map231.size);
-                for (int _i232 = 0; _i232 < _map231.size; ++_i232)
+                org.apache.thrift.protocol.TMap _map239 = iprot.readMapBegin();
+                struct.properties = new HashMap<String,String>(2*_map239.size);
+                for (int _i240 = 0; _i240 < _map239.size; ++_i240)
                 {
-                  String _key233; // required
-                  String _val234; // required
-                  _key233 = iprot.readString();
-                  _val234 = iprot.readString();
-                  struct.properties.put(_key233, _val234);
+                  String _key241; // required
+                  String _val242; // required
+                  _key241 = iprot.readString();
+                  _val242 = iprot.readString();
+                  struct.properties.put(_key241, _val242);
                 }
                 iprot.readMapEnd();
               }
@@ -505,9 +505,9 @@ public class Schema implements org.apach
         oprot.writeFieldBegin(FIELD_SCHEMAS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.fieldSchemas.size()));
-          for (FieldSchema _iter235 : struct.fieldSchemas)
+          for (FieldSchema _iter243 : struct.fieldSchemas)
           {
-            _iter235.write(oprot);
+            _iter243.write(oprot);
           }
           oprot.writeListEnd();
         }
@@ -517,10 +517,10 @@ public class Schema implements org.apach
         oprot.writeFieldBegin(PROPERTIES_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size()));
-          for (Map.Entry<String, String> _iter236 : struct.properties.entrySet())
+          for (Map.Entry<String, String> _iter244 : struct.properties.entrySet())
           {
-            oprot.writeString(_iter236.getKey());
-            oprot.writeString(_iter236.getValue());
+            oprot.writeString(_iter244.getKey());
+            oprot.writeString(_iter244.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -554,19 +554,19 @@ public class Schema implements org.apach
       if (struct.isSetFieldSchemas()) {
         {
           oprot.writeI32(struct.fieldSchemas.size());
-          for (FieldSchema _iter237 : struct.fieldSchemas)
+          for (FieldSchema _iter245 : struct.fieldSchemas)
           {
-            _iter237.write(oprot);
+            _iter245.write(oprot);
           }
         }
       }
       if (struct.isSetProperties()) {
         {
           oprot.writeI32(struct.properties.size());
-          for (Map.Entry<String, String> _iter238 : struct.properties.entrySet())
+          for (Map.Entry<String, String> _iter246 : struct.properties.entrySet())
           {
-            oprot.writeString(_iter238.getKey());
-            oprot.writeString(_iter238.getValue());
+            oprot.writeString(_iter246.getKey());
+            oprot.writeString(_iter246.getValue());
           }
         }
       }
@@ -578,29 +578,29 @@ public class Schema implements org.apach
       BitSet incoming = iprot.readBitSet(2);
       if (incoming.get(0)) {
         {
-          org.apache.thrift.protocol.TList _list239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.fieldSchemas = new ArrayList<FieldSchema>(_list239.size);
-          for (int _i240 = 0; _i240 < _list239.size; ++_i240)
-          {
-            FieldSchema _elem241; // required
-            _elem241 = new FieldSchema();
-            _elem241.read(iprot);
-            struct.fieldSchemas.add(_elem241);
+          org.apache.thrift.protocol.TList _list247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+          struct.fieldSchemas = new ArrayList<FieldSchema>(_list247.size);
+          for (int _i248 = 0; _i248 < _list247.size; ++_i248)
+          {
+            FieldSchema _elem249; // optional
+            _elem249 = new FieldSchema();
+            _elem249.read(iprot);
+            struct.fieldSchemas.add(_elem249);
           }
         }
         struct.setFieldSchemasIsSet(true);
       }
       if (incoming.get(1)) {
         {
-          org.apache.thrift.protocol.TMap _map242 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-          struct.properties = new HashMap<String,String>(2*_map242.size);
-          for (int _i243 = 0; _i243 < _map242.size; ++_i243)
-          {
-            String _key244; // required
-            String _val245; // required
-            _key244 = iprot.readString();
-            _val245 = iprot.readString();
-            struct.properties.put(_key244, _val245);
+          org.apache.thrift.protocol.TMap _map250 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+          struct.properties = new HashMap<String,String>(2*_map250.size);
+          for (int _i251 = 0; _i251 < _map250.size; ++_i251)
+          {
+            String _key252; // required
+            String _val253; // required
+            _key252 = iprot.readString();
+            _val253 = iprot.readString();
+            struct.properties.put(_key252, _val253);
           }
         }
         struct.setPropertiesIsSet(true);

Modified: hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java?rev=1576677&r1=1576676&r2=1576677&view=diff
==============================================================================
--- hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java (original)
+++ hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java Wed Mar 12 10:07:09 2014
@@ -529,15 +529,15 @@ public class SerDeInfo implements org.ap
           case 3: // PARAMETERS
             if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
               {
-                org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin();
-                struct.parameters = new HashMap<String,String>(2*_map88.size);
-                for (int _i89 = 0; _i89 < _map88.size; ++_i89)
+                org.apache.thrift.protocol.TMap _map96 = iprot.readMapBegin();
+                struct.parameters = new HashMap<String,String>(2*_map96.size);
+                for (int _i97 = 0; _i97 < _map96.size; ++_i97)
                 {
-                  String _key90; // required
-                  String _val91; // required
-                  _key90 = iprot.readString();
-                  _val91 = iprot.readString();
-                  struct.parameters.put(_key90, _val91);
+                  String _key98; // required
+                  String _val99; // required
+                  _key98 = iprot.readString();
+                  _val99 = iprot.readString();
+                  struct.parameters.put(_key98, _val99);
                 }
                 iprot.readMapEnd();
               }
@@ -573,10 +573,10 @@ public class SerDeInfo implements org.ap
         oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size()));
-          for (Map.Entry<String, String> _iter92 : struct.parameters.entrySet())
+          for (Map.Entry<String, String> _iter100 : struct.parameters.entrySet())
           {
-            oprot.writeString(_iter92.getKey());
-            oprot.writeString(_iter92.getValue());
+            oprot.writeString(_iter100.getKey());
+            oprot.writeString(_iter100.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -619,10 +619,10 @@ public class SerDeInfo implements org.ap
       if (struct.isSetParameters()) {
         {
           oprot.writeI32(struct.parameters.size());
-          for (Map.Entry<String, String> _iter93 : struct.parameters.entrySet())
+          for (Map.Entry<String, String> _iter101 : struct.parameters.entrySet())
           {
-            oprot.writeString(_iter93.getKey());
-            oprot.writeString(_iter93.getValue());
+            oprot.writeString(_iter101.getKey());
+            oprot.writeString(_iter101.getValue());
           }
         }
       }
@@ -642,15 +642,15 @@ public class SerDeInfo implements org.ap
       }
       if (incoming.get(2)) {
         {
-          org.apache.thrift.protocol.TMap _map94 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-          struct.parameters = new HashMap<String,String>(2*_map94.size);
-          for (int _i95 = 0; _i95 < _map94.size; ++_i95)
+          org.apache.thrift.protocol.TMap _map102 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+          struct.parameters = new HashMap<String,String>(2*_map102.size);
+          for (int _i103 = 0; _i103 < _map102.size; ++_i103)
           {
-            String _key96; // required
-            String _val97; // required
-            _key96 = iprot.readString();
-            _val97 = iprot.readString();
-            struct.parameters.put(_key96, _val97);
+            String _key104; // required
+            String _val105; // required
+            _key104 = iprot.readString();
+            _val105 = iprot.readString();
+            struct.parameters.put(_key104, _val105);
           }
         }
         struct.setParametersIsSet(true);

Modified: hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java?rev=1576677&r1=1576676&r2=1576677&view=diff
==============================================================================
--- hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java (original)
+++ hive/branches/branch-0.13/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java Wed Mar 12 10:07:09 2014
@@ -350,14 +350,14 @@ public class ShowCompactResponse impleme
           case 1: // COMPACTS
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list402 = iprot.readListBegin();
-                struct.compacts = new ArrayList<ShowCompactResponseElement>(_list402.size);
-                for (int _i403 = 0; _i403 < _list402.size; ++_i403)
+                org.apache.thrift.protocol.TList _list410 = iprot.readListBegin();
+                struct.compacts = new ArrayList<ShowCompactResponseElement>(_list410.size);
+                for (int _i411 = 0; _i411 < _list410.size; ++_i411)
                 {
-                  ShowCompactResponseElement _elem404; // required
-                  _elem404 = new ShowCompactResponseElement();
-                  _elem404.read(iprot);
-                  struct.compacts.add(_elem404);
+                  ShowCompactResponseElement _elem412; // optional
+                  _elem412 = new ShowCompactResponseElement();
+                  _elem412.read(iprot);
+                  struct.compacts.add(_elem412);
                 }
                 iprot.readListEnd();
               }
@@ -383,9 +383,9 @@ public class ShowCompactResponse impleme
         oprot.writeFieldBegin(COMPACTS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.compacts.size()));
-          for (ShowCompactResponseElement _iter405 : struct.compacts)
+          for (ShowCompactResponseElement _iter413 : struct.compacts)
           {
-            _iter405.write(oprot);
+            _iter413.write(oprot);
           }
           oprot.writeListEnd();
         }
@@ -410,9 +410,9 @@ public class ShowCompactResponse impleme
       TTupleProtocol oprot = (TTupleProtocol) prot;
       {
         oprot.writeI32(struct.compacts.size());
-        for (ShowCompactResponseElement _iter406 : struct.compacts)
+        for (ShowCompactResponseElement _iter414 : struct.compacts)
         {
-          _iter406.write(oprot);
+          _iter414.write(oprot);
         }
       }
     }
@@ -421,14 +421,14 @@ public class ShowCompactResponse impleme
     public void read(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse struct) throws org.apache.thrift.TException {
       TTupleProtocol iprot = (TTupleProtocol) prot;
       {
-        org.apache.thrift.protocol.TList _list407 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-        struct.compacts = new ArrayList<ShowCompactResponseElement>(_list407.size);
-        for (int _i408 = 0; _i408 < _list407.size; ++_i408)
+        org.apache.thrift.protocol.TList _list415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+        struct.compacts = new ArrayList<ShowCompactResponseElement>(_list415.size);
+        for (int _i416 = 0; _i416 < _list415.size; ++_i416)
         {
-          ShowCompactResponseElement _elem409; // required
-          _elem409 = new ShowCompactResponseElement();
-          _elem409.read(iprot);
-          struct.compacts.add(_elem409);
+          ShowCompactResponseElement _elem417; // optional
+          _elem417 = new ShowCompactResponseElement();
+          _elem417.read(iprot);
+          struct.compacts.add(_elem417);
         }
       }
       struct.setCompactsIsSet(true);