You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by sr...@apache.org on 2016/06/01 22:05:57 UTC

[01/11] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)

Repository: sentry
Updated Branches:
  refs/heads/master 42744cc97 -> e67bde0da


http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryGroup.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryGroup.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryGroup.java
index 4aadd22..991a79a 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryGroup.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryGroup.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryGroup implements org.apache.thrift.TBase<TSentryGroup, TSentryGroup._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryGroup implements org.apache.thrift.TBase<TSentryGroup, TSentryGroup._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryGroup> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryGroup");
 
   private static final org.apache.thrift.protocol.TField GROUP_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("groupName", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -225,30 +229,30 @@ public class TSentryGroup implements org.apache.thrift.TBase<TSentryGroup, TSent
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_groupName = true && (isSetGroupName());
-    builder.append(present_groupName);
+    list.add(present_groupName);
     if (present_groupName)
-      builder.append(groupName);
+      list.add(groupName);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryGroup other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryGroup typedOther = (TSentryGroup)other;
 
-    lastComparison = Boolean.valueOf(isSetGroupName()).compareTo(typedOther.isSetGroupName());
+    lastComparison = Boolean.valueOf(isSetGroupName()).compareTo(other.isSetGroupName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroupName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupName, typedOther.groupName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupName, other.groupName);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryImportMappingDataRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryImportMappingDataRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryImportMappingDataRequest.java
index 23ad56c..c8295f4 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryImportMappingDataRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryImportMappingDataRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryImportMappingDataRequest implements org.apache.thrift.TBase<TSentryImportMappingDataRequest, TSentryImportMappingDataRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryImportMappingDataRequest implements org.apache.thrift.TBase<TSentryImportMappingDataRequest, TSentryImportMappingDataRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryImportMappingDataRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryImportMappingDataRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -317,13 +321,13 @@ public class TSentryImportMappingDataRequest implements org.apache.thrift.TBase<
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
 
     case OVERWRITE_ROLE:
-      return Boolean.valueOf(isOverwriteRole());
+      return isOverwriteRole();
 
     case MAPPING_DATA:
       return getMappingData();
@@ -405,75 +409,75 @@ public class TSentryImportMappingDataRequest implements org.apache.thrift.TBase<
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_overwriteRole = true;
-    builder.append(present_overwriteRole);
+    list.add(present_overwriteRole);
     if (present_overwriteRole)
-      builder.append(overwriteRole);
+      list.add(overwriteRole);
 
     boolean present_mappingData = true && (isSetMappingData());
-    builder.append(present_mappingData);
+    list.add(present_mappingData);
     if (present_mappingData)
-      builder.append(mappingData);
+      list.add(mappingData);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryImportMappingDataRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryImportMappingDataRequest typedOther = (TSentryImportMappingDataRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetOverwriteRole()).compareTo(typedOther.isSetOverwriteRole());
+    lastComparison = Boolean.valueOf(isSetOverwriteRole()).compareTo(other.isSetOverwriteRole());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetOverwriteRole()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.overwriteRole, typedOther.overwriteRole);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.overwriteRole, other.overwriteRole);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetMappingData()).compareTo(typedOther.isSetMappingData());
+    lastComparison = Boolean.valueOf(isSetMappingData()).compareTo(other.isSetMappingData());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetMappingData()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mappingData, typedOther.mappingData);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mappingData, other.mappingData);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryImportMappingDataResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryImportMappingDataResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryImportMappingDataResponse.java
index 8276fcf..1d38202 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryImportMappingDataResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryImportMappingDataResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryImportMappingDataResponse implements org.apache.thrift.TBase<TSentryImportMappingDataResponse, TSentryImportMappingDataResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryImportMappingDataResponse implements org.apache.thrift.TBase<TSentryImportMappingDataResponse, TSentryImportMappingDataResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryImportMappingDataResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryImportMappingDataResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TSentryImportMappingDataResponse implements org.apache.thrift.TBase
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryImportMappingDataResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryImportMappingDataResponse typedOther = (TSentryImportMappingDataResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryMappingData.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryMappingData.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryMappingData.java
index c4137d6..2c091cb 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryMappingData.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryMappingData.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappingData, TSentryMappingData._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappingData, TSentryMappingData._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryMappingData> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryMappingData");
 
   private static final org.apache.thrift.protocol.TField GROUP_ROLES_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("groupRolesMap", org.apache.thrift.protocol.TType.MAP, (short)1);
@@ -113,24 +117,24 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
   }
 
   // isset id assignments
-  private _Fields optionals[] = {_Fields.GROUP_ROLES_MAP,_Fields.ROLE_PRIVILEGES_MAP,_Fields.USER_ROLES_MAP};
+  private static final _Fields optionals[] = {_Fields.GROUP_ROLES_MAP,_Fields.ROLE_PRIVILEGES_MAP,_Fields.USER_ROLES_MAP};
   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.GROUP_ROLES_MAP, new org.apache.thrift.meta_data.FieldMetaData("groupRolesMap", org.apache.thrift.TFieldRequirementType.OPTIONAL,
-        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.SetMetaData(org.apache.thrift.protocol.TType.SET,
+    tmpMap.put(_Fields.GROUP_ROLES_MAP, new org.apache.thrift.meta_data.FieldMetaData("groupRolesMap", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        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.SetMetaData(org.apache.thrift.protocol.TType.SET, 
                 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))));
-    tmpMap.put(_Fields.ROLE_PRIVILEGES_MAP, new org.apache.thrift.meta_data.FieldMetaData("rolePrivilegesMap", org.apache.thrift.TFieldRequirementType.OPTIONAL,
-        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.SetMetaData(org.apache.thrift.protocol.TType.SET,
+    tmpMap.put(_Fields.ROLE_PRIVILEGES_MAP, new org.apache.thrift.meta_data.FieldMetaData("rolePrivilegesMap", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        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.SetMetaData(org.apache.thrift.protocol.TType.SET, 
                 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TSentryPrivilege.class)))));
-    tmpMap.put(_Fields.USER_ROLES_MAP, new org.apache.thrift.meta_data.FieldMetaData("userRolesMap", org.apache.thrift.TFieldRequirementType.OPTIONAL,
-        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.SetMetaData(org.apache.thrift.protocol.TType.SET,
+    tmpMap.put(_Fields.USER_ROLES_MAP, new org.apache.thrift.meta_data.FieldMetaData("userRolesMap", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        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.SetMetaData(org.apache.thrift.protocol.TType.SET, 
                 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))));
     metaDataMap = Collections.unmodifiableMap(tmpMap);
     org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TSentryMappingData.class, metaDataMap);
@@ -144,7 +148,7 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
    */
   public TSentryMappingData(TSentryMappingData other) {
     if (other.isSetGroupRolesMap()) {
-      Map<String,Set<String>> __this__groupRolesMap = new HashMap<String,Set<String>>();
+      Map<String,Set<String>> __this__groupRolesMap = new HashMap<String,Set<String>>(other.groupRolesMap.size());
       for (Map.Entry<String, Set<String>> other_element : other.groupRolesMap.entrySet()) {
 
         String other_element_key = other_element.getKey();
@@ -152,17 +156,14 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
 
         String __this__groupRolesMap_copy_key = other_element_key;
 
-        Set<String> __this__groupRolesMap_copy_value = new HashSet<String>();
-        for (String other_element_value_element : other_element_value) {
-          __this__groupRolesMap_copy_value.add(other_element_value_element);
-        }
+        Set<String> __this__groupRolesMap_copy_value = new HashSet<String>(other_element_value);
 
         __this__groupRolesMap.put(__this__groupRolesMap_copy_key, __this__groupRolesMap_copy_value);
       }
       this.groupRolesMap = __this__groupRolesMap;
     }
     if (other.isSetRolePrivilegesMap()) {
-      Map<String,Set<TSentryPrivilege>> __this__rolePrivilegesMap = new HashMap<String,Set<TSentryPrivilege>>();
+      Map<String,Set<TSentryPrivilege>> __this__rolePrivilegesMap = new HashMap<String,Set<TSentryPrivilege>>(other.rolePrivilegesMap.size());
       for (Map.Entry<String, Set<TSentryPrivilege>> other_element : other.rolePrivilegesMap.entrySet()) {
 
         String other_element_key = other_element.getKey();
@@ -170,7 +171,7 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
 
         String __this__rolePrivilegesMap_copy_key = other_element_key;
 
-        Set<TSentryPrivilege> __this__rolePrivilegesMap_copy_value = new HashSet<TSentryPrivilege>();
+        Set<TSentryPrivilege> __this__rolePrivilegesMap_copy_value = new HashSet<TSentryPrivilege>(other_element_value.size());
         for (TSentryPrivilege other_element_value_element : other_element_value) {
           __this__rolePrivilegesMap_copy_value.add(new TSentryPrivilege(other_element_value_element));
         }
@@ -180,7 +181,7 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
       this.rolePrivilegesMap = __this__rolePrivilegesMap;
     }
     if (other.isSetUserRolesMap()) {
-      Map<String,Set<String>> __this__userRolesMap = new HashMap<String,Set<String>>();
+      Map<String,Set<String>> __this__userRolesMap = new HashMap<String,Set<String>>(other.userRolesMap.size());
       for (Map.Entry<String, Set<String>> other_element : other.userRolesMap.entrySet()) {
 
         String other_element_key = other_element.getKey();
@@ -188,10 +189,7 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
 
         String __this__userRolesMap_copy_key = other_element_key;
 
-        Set<String> __this__userRolesMap_copy_value = new HashSet<String>();
-        for (String other_element_value_element : other_element_value) {
-          __this__userRolesMap_copy_value.add(other_element_value_element);
-        }
+        Set<String> __this__userRolesMap_copy_value = new HashSet<String>(other_element_value);
 
         __this__userRolesMap.put(__this__userRolesMap_copy_key, __this__userRolesMap_copy_value);
       }
@@ -314,43 +312,43 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
 
   public void setFieldValue(_Fields field, Object value) {
     switch (field) {
-      case GROUP_ROLES_MAP:
-        if (value == null) {
-          unsetGroupRolesMap();
-        } else {
-          setGroupRolesMap((Map<String,Set<String>>)value);
-        }
-        break;
+    case GROUP_ROLES_MAP:
+      if (value == null) {
+        unsetGroupRolesMap();
+      } else {
+        setGroupRolesMap((Map<String,Set<String>>)value);
+      }
+      break;
 
-      case ROLE_PRIVILEGES_MAP:
-        if (value == null) {
-          unsetRolePrivilegesMap();
-        } else {
-          setRolePrivilegesMap((Map<String,Set<TSentryPrivilege>>)value);
-        }
-        break;
+    case ROLE_PRIVILEGES_MAP:
+      if (value == null) {
+        unsetRolePrivilegesMap();
+      } else {
+        setRolePrivilegesMap((Map<String,Set<TSentryPrivilege>>)value);
+      }
+      break;
 
-      case USER_ROLES_MAP:
-        if (value == null) {
-          unsetUserRolesMap();
-        } else {
-          setUserRolesMap((Map<String,Set<String>>)value);
-        }
-        break;
+    case USER_ROLES_MAP:
+      if (value == null) {
+        unsetUserRolesMap();
+      } else {
+        setUserRolesMap((Map<String,Set<String>>)value);
+      }
+      break;
 
     }
   }
 
   public Object getFieldValue(_Fields field) {
     switch (field) {
-      case GROUP_ROLES_MAP:
-        return getGroupRolesMap();
+    case GROUP_ROLES_MAP:
+      return getGroupRolesMap();
 
-      case ROLE_PRIVILEGES_MAP:
-        return getRolePrivilegesMap();
+    case ROLE_PRIVILEGES_MAP:
+      return getRolePrivilegesMap();
 
-      case USER_ROLES_MAP:
-        return getUserRolesMap();
+    case USER_ROLES_MAP:
+      return getUserRolesMap();
 
     }
     throw new IllegalStateException();
@@ -363,12 +361,12 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
     }
 
     switch (field) {
-      case GROUP_ROLES_MAP:
-        return isSetGroupRolesMap();
-      case ROLE_PRIVILEGES_MAP:
-        return isSetRolePrivilegesMap();
-      case USER_ROLES_MAP:
-        return isSetUserRolesMap();
+    case GROUP_ROLES_MAP:
+      return isSetGroupRolesMap();
+    case ROLE_PRIVILEGES_MAP:
+      return isSetRolePrivilegesMap();
+    case USER_ROLES_MAP:
+      return isSetUserRolesMap();
     }
     throw new IllegalStateException();
   }
@@ -418,60 +416,60 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_groupRolesMap = true && (isSetGroupRolesMap());
-    builder.append(present_groupRolesMap);
+    list.add(present_groupRolesMap);
     if (present_groupRolesMap)
-      builder.append(groupRolesMap);
+      list.add(groupRolesMap);
 
     boolean present_rolePrivilegesMap = true && (isSetRolePrivilegesMap());
-    builder.append(present_rolePrivilegesMap);
+    list.add(present_rolePrivilegesMap);
     if (present_rolePrivilegesMap)
-      builder.append(rolePrivilegesMap);
+      list.add(rolePrivilegesMap);
 
     boolean present_userRolesMap = true && (isSetUserRolesMap());
-    builder.append(present_userRolesMap);
+    list.add(present_userRolesMap);
     if (present_userRolesMap)
-      builder.append(userRolesMap);
+      list.add(userRolesMap);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryMappingData other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryMappingData typedOther = (TSentryMappingData)other;
 
-    lastComparison = Boolean.valueOf(isSetGroupRolesMap()).compareTo(typedOther.isSetGroupRolesMap());
+    lastComparison = Boolean.valueOf(isSetGroupRolesMap()).compareTo(other.isSetGroupRolesMap());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroupRolesMap()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupRolesMap, typedOther.groupRolesMap);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupRolesMap, other.groupRolesMap);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRolePrivilegesMap()).compareTo(typedOther.isSetRolePrivilegesMap());
+    lastComparison = Boolean.valueOf(isSetRolePrivilegesMap()).compareTo(other.isSetRolePrivilegesMap());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRolePrivilegesMap()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rolePrivilegesMap, typedOther.rolePrivilegesMap);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rolePrivilegesMap, other.rolePrivilegesMap);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetUserRolesMap()).compareTo(typedOther.isSetUserRolesMap());
+    lastComparison = Boolean.valueOf(isSetUserRolesMap()).compareTo(other.isSetUserRolesMap());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetUserRolesMap()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userRolesMap, typedOther.userRolesMap);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userRolesMap, other.userRolesMap);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -564,7 +562,7 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
       while (true)
       {
         schemeField = iprot.readFieldBegin();
-        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
           break;
         }
         switch (schemeField.id) {
@@ -573,28 +571,28 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
               {
                 org.apache.thrift.protocol.TMap _map156 = iprot.readMapBegin();
                 struct.groupRolesMap = new HashMap<String,Set<String>>(2*_map156.size);
-                for (int _i157 = 0; _i157 < _map156.size; ++_i157)
+                String _key157;
+                Set<String> _val158;
+                for (int _i159 = 0; _i159 < _map156.size; ++_i159)
                 {
-                  String _key158; // required
-                  Set<String> _val159; // required
-                  _key158 = iprot.readString();
+                  _key157 = iprot.readString();
                   {
                     org.apache.thrift.protocol.TSet _set160 = iprot.readSetBegin();
-                    _val159 = new HashSet<String>(2*_set160.size);
-                    for (int _i161 = 0; _i161 < _set160.size; ++_i161)
+                    _val158 = new HashSet<String>(2*_set160.size);
+                    String _elem161;
+                    for (int _i162 = 0; _i162 < _set160.size; ++_i162)
                     {
-                      String _elem162; // required
-                      _elem162 = iprot.readString();
-                      _val159.add(_elem162);
+                      _elem161 = iprot.readString();
+                      _val158.add(_elem161);
                     }
                     iprot.readSetEnd();
                   }
-                  struct.groupRolesMap.put(_key158, _val159);
+                  struct.groupRolesMap.put(_key157, _val158);
                 }
                 iprot.readMapEnd();
               }
               struct.setGroupRolesMapIsSet(true);
-            } else {
+            } else { 
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;
@@ -603,29 +601,29 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
               {
                 org.apache.thrift.protocol.TMap _map163 = iprot.readMapBegin();
                 struct.rolePrivilegesMap = new HashMap<String,Set<TSentryPrivilege>>(2*_map163.size);
-                for (int _i164 = 0; _i164 < _map163.size; ++_i164)
+                String _key164;
+                Set<TSentryPrivilege> _val165;
+                for (int _i166 = 0; _i166 < _map163.size; ++_i166)
                 {
-                  String _key165; // required
-                  Set<TSentryPrivilege> _val166; // required
-                  _key165 = iprot.readString();
+                  _key164 = iprot.readString();
                   {
                     org.apache.thrift.protocol.TSet _set167 = iprot.readSetBegin();
-                    _val166 = new HashSet<TSentryPrivilege>(2*_set167.size);
-                    for (int _i168 = 0; _i168 < _set167.size; ++_i168)
+                    _val165 = new HashSet<TSentryPrivilege>(2*_set167.size);
+                    TSentryPrivilege _elem168;
+                    for (int _i169 = 0; _i169 < _set167.size; ++_i169)
                     {
-                      TSentryPrivilege _elem169; // required
-                      _elem169 = new TSentryPrivilege();
-                      _elem169.read(iprot);
-                      _val166.add(_elem169);
+                      _elem168 = new TSentryPrivilege();
+                      _elem168.read(iprot);
+                      _val165.add(_elem168);
                     }
                     iprot.readSetEnd();
                   }
-                  struct.rolePrivilegesMap.put(_key165, _val166);
+                  struct.rolePrivilegesMap.put(_key164, _val165);
                 }
                 iprot.readMapEnd();
               }
               struct.setRolePrivilegesMapIsSet(true);
-            } else {
+            } else { 
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;
@@ -634,28 +632,28 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
               {
                 org.apache.thrift.protocol.TMap _map170 = iprot.readMapBegin();
                 struct.userRolesMap = new HashMap<String,Set<String>>(2*_map170.size);
-                for (int _i171 = 0; _i171 < _map170.size; ++_i171)
+                String _key171;
+                Set<String> _val172;
+                for (int _i173 = 0; _i173 < _map170.size; ++_i173)
                 {
-                  String _key172; // required
-                  Set<String> _val173; // required
-                  _key172 = iprot.readString();
+                  _key171 = iprot.readString();
                   {
                     org.apache.thrift.protocol.TSet _set174 = iprot.readSetBegin();
-                    _val173 = new HashSet<String>(2*_set174.size);
-                    for (int _i175 = 0; _i175 < _set174.size; ++_i175)
+                    _val172 = new HashSet<String>(2*_set174.size);
+                    String _elem175;
+                    for (int _i176 = 0; _i176 < _set174.size; ++_i176)
                     {
-                      String _elem176; // required
-                      _elem176 = iprot.readString();
-                      _val173.add(_elem176);
+                      _elem175 = iprot.readString();
+                      _val172.add(_elem175);
                     }
                     iprot.readSetEnd();
                   }
-                  struct.userRolesMap.put(_key172, _val173);
+                  struct.userRolesMap.put(_key171, _val172);
                 }
                 iprot.readMapEnd();
               }
               struct.setUserRolesMapIsSet(true);
-            } else {
+            } else { 
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;
@@ -824,22 +822,22 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
         {
           org.apache.thrift.protocol.TMap _map189 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
           struct.groupRolesMap = new HashMap<String,Set<String>>(2*_map189.size);
-          for (int _i190 = 0; _i190 < _map189.size; ++_i190)
+          String _key190;
+          Set<String> _val191;
+          for (int _i192 = 0; _i192 < _map189.size; ++_i192)
           {
-            String _key191; // required
-            Set<String> _val192; // required
-            _key191 = iprot.readString();
+            _key190 = iprot.readString();
             {
               org.apache.thrift.protocol.TSet _set193 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-              _val192 = new HashSet<String>(2*_set193.size);
-              for (int _i194 = 0; _i194 < _set193.size; ++_i194)
+              _val191 = new HashSet<String>(2*_set193.size);
+              String _elem194;
+              for (int _i195 = 0; _i195 < _set193.size; ++_i195)
               {
-                String _elem195; // required
-                _elem195 = iprot.readString();
-                _val192.add(_elem195);
+                _elem194 = iprot.readString();
+                _val191.add(_elem194);
               }
             }
-            struct.groupRolesMap.put(_key191, _val192);
+            struct.groupRolesMap.put(_key190, _val191);
           }
         }
         struct.setGroupRolesMapIsSet(true);
@@ -848,23 +846,23 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
         {
           org.apache.thrift.protocol.TMap _map196 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
           struct.rolePrivilegesMap = new HashMap<String,Set<TSentryPrivilege>>(2*_map196.size);
-          for (int _i197 = 0; _i197 < _map196.size; ++_i197)
+          String _key197;
+          Set<TSentryPrivilege> _val198;
+          for (int _i199 = 0; _i199 < _map196.size; ++_i199)
           {
-            String _key198; // required
-            Set<TSentryPrivilege> _val199; // required
-            _key198 = iprot.readString();
+            _key197 = iprot.readString();
             {
               org.apache.thrift.protocol.TSet _set200 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-              _val199 = new HashSet<TSentryPrivilege>(2*_set200.size);
-              for (int _i201 = 0; _i201 < _set200.size; ++_i201)
+              _val198 = new HashSet<TSentryPrivilege>(2*_set200.size);
+              TSentryPrivilege _elem201;
+              for (int _i202 = 0; _i202 < _set200.size; ++_i202)
               {
-                TSentryPrivilege _elem202; // required
-                _elem202 = new TSentryPrivilege();
-                _elem202.read(iprot);
-                _val199.add(_elem202);
+                _elem201 = new TSentryPrivilege();
+                _elem201.read(iprot);
+                _val198.add(_elem201);
               }
             }
-            struct.rolePrivilegesMap.put(_key198, _val199);
+            struct.rolePrivilegesMap.put(_key197, _val198);
           }
         }
         struct.setRolePrivilegesMapIsSet(true);
@@ -873,22 +871,22 @@ public class TSentryMappingData implements org.apache.thrift.TBase<TSentryMappin
         {
           org.apache.thrift.protocol.TMap _map203 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
           struct.userRolesMap = new HashMap<String,Set<String>>(2*_map203.size);
-          for (int _i204 = 0; _i204 < _map203.size; ++_i204)
+          String _key204;
+          Set<String> _val205;
+          for (int _i206 = 0; _i206 < _map203.size; ++_i206)
           {
-            String _key205; // required
-            Set<String> _val206; // required
-            _key205 = iprot.readString();
+            _key204 = iprot.readString();
             {
               org.apache.thrift.protocol.TSet _set207 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-              _val206 = new HashSet<String>(2*_set207.size);
-              for (int _i208 = 0; _i208 < _set207.size; ++_i208)
+              _val205 = new HashSet<String>(2*_set207.size);
+              String _elem208;
+              for (int _i209 = 0; _i209 < _set207.size; ++_i209)
               {
-                String _elem209; // required
-                _elem209 = iprot.readString();
-                _val206.add(_elem209);
+                _elem208 = iprot.readString();
+                _val205.add(_elem208);
               }
             }
-            struct.userRolesMap.put(_key205, _val206);
+            struct.userRolesMap.put(_key204, _val205);
           }
         }
         struct.setUserRolesMapIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryPrivilege.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryPrivilege.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryPrivilege.java
index 1f75478..15b339f 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryPrivilege.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryPrivilege.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivilege, TSentryPrivilege._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivilege, TSentryPrivilege._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryPrivilege> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryPrivilege");
 
   private static final org.apache.thrift.protocol.TField PRIVILEGE_SCOPE_FIELD_DESC = new org.apache.thrift.protocol.TField("privilegeScope", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -149,7 +153,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
   // isset id assignments
   private static final int __CREATETIME_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.DB_NAME,_Fields.TABLE_NAME,_Fields.URI,_Fields.CREATE_TIME,_Fields.GRANT_OPTION,_Fields.COLUMN_NAME};
+  private static final _Fields optionals[] = {_Fields.DB_NAME,_Fields.TABLE_NAME,_Fields.URI,_Fields.CREATE_TIME,_Fields.GRANT_OPTION,_Fields.COLUMN_NAME};
   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);
@@ -569,7 +573,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
       return getAction();
 
     case CREATE_TIME:
-      return Long.valueOf(getCreateTime());
+      return getCreateTime();
 
     case GRANT_OPTION:
       return getGrantOption();
@@ -709,150 +713,150 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_privilegeScope = true && (isSetPrivilegeScope());
-    builder.append(present_privilegeScope);
+    list.add(present_privilegeScope);
     if (present_privilegeScope)
-      builder.append(privilegeScope);
+      list.add(privilegeScope);
 
     boolean present_serverName = true && (isSetServerName());
-    builder.append(present_serverName);
+    list.add(present_serverName);
     if (present_serverName)
-      builder.append(serverName);
+      list.add(serverName);
 
     boolean present_dbName = true && (isSetDbName());
-    builder.append(present_dbName);
+    list.add(present_dbName);
     if (present_dbName)
-      builder.append(dbName);
+      list.add(dbName);
 
     boolean present_tableName = true && (isSetTableName());
-    builder.append(present_tableName);
+    list.add(present_tableName);
     if (present_tableName)
-      builder.append(tableName);
+      list.add(tableName);
 
     boolean present_URI = true && (isSetURI());
-    builder.append(present_URI);
+    list.add(present_URI);
     if (present_URI)
-      builder.append(URI);
+      list.add(URI);
 
     boolean present_action = true && (isSetAction());
-    builder.append(present_action);
+    list.add(present_action);
     if (present_action)
-      builder.append(action);
+      list.add(action);
 
     boolean present_createTime = true && (isSetCreateTime());
-    builder.append(present_createTime);
+    list.add(present_createTime);
     if (present_createTime)
-      builder.append(createTime);
+      list.add(createTime);
 
     boolean present_grantOption = true && (isSetGrantOption());
-    builder.append(present_grantOption);
+    list.add(present_grantOption);
     if (present_grantOption)
-      builder.append(grantOption.getValue());
+      list.add(grantOption.getValue());
 
     boolean present_columnName = true && (isSetColumnName());
-    builder.append(present_columnName);
+    list.add(present_columnName);
     if (present_columnName)
-      builder.append(columnName);
+      list.add(columnName);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryPrivilege other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryPrivilege typedOther = (TSentryPrivilege)other;
 
-    lastComparison = Boolean.valueOf(isSetPrivilegeScope()).compareTo(typedOther.isSetPrivilegeScope());
+    lastComparison = Boolean.valueOf(isSetPrivilegeScope()).compareTo(other.isSetPrivilegeScope());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivilegeScope()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegeScope, typedOther.privilegeScope);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegeScope, other.privilegeScope);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetServerName()).compareTo(typedOther.isSetServerName());
+    lastComparison = Boolean.valueOf(isSetServerName()).compareTo(other.isSetServerName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetServerName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverName, typedOther.serverName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverName, other.serverName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName());
+    lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetDbName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
+    lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetTableName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetURI()).compareTo(typedOther.isSetURI());
+    lastComparison = Boolean.valueOf(isSetURI()).compareTo(other.isSetURI());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetURI()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.URI, typedOther.URI);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.URI, other.URI);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAction()).compareTo(typedOther.isSetAction());
+    lastComparison = Boolean.valueOf(isSetAction()).compareTo(other.isSetAction());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAction()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.action, typedOther.action);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.action, other.action);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime());
+    lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetCreateTime()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption());
+    lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(other.isSetGrantOption());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGrantOption()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, other.grantOption);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(typedOther.isSetColumnName());
+    lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetColumnName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, typedOther.columnName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -1071,7 +1075,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
             break;
           case 9: // GRANT_OPTION
             if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.grantOption = TSentryGrantOption.findByValue(iprot.readI32());
+              struct.grantOption = org.apache.sentry.provider.db.service.thrift.TSentryGrantOption.findByValue(iprot.readI32());
               struct.setGrantOptionIsSet(true);
             } else { 
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@@ -1240,7 +1244,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
         struct.setCreateTimeIsSet(true);
       }
       if (incoming.get(4)) {
-        struct.grantOption = TSentryGrantOption.findByValue(iprot.readI32());
+        struct.grantOption = org.apache.sentry.provider.db.service.thrift.TSentryGrantOption.findByValue(iprot.readI32());
         struct.setGrantOptionIsSet(true);
       }
       if (incoming.get(5)) {

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryPrivilegeMap.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryPrivilegeMap.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryPrivilegeMap.java
index 3d85d9f..9991f3b 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryPrivilegeMap.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryPrivilegeMap.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivilegeMap, TSentryPrivilegeMap._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivilegeMap, TSentryPrivilegeMap._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryPrivilegeMap> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryPrivilegeMap");
 
   private static final org.apache.thrift.protocol.TField PRIVILEGE_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("privilegeMap", org.apache.thrift.protocol.TType.MAP, (short)1);
@@ -130,7 +134,7 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
    */
   public TSentryPrivilegeMap(TSentryPrivilegeMap other) {
     if (other.isSetPrivilegeMap()) {
-      Map<String,Set<TSentryPrivilege>> __this__privilegeMap = new HashMap<String,Set<TSentryPrivilege>>();
+      Map<String,Set<TSentryPrivilege>> __this__privilegeMap = new HashMap<String,Set<TSentryPrivilege>>(other.privilegeMap.size());
       for (Map.Entry<String, Set<TSentryPrivilege>> other_element : other.privilegeMap.entrySet()) {
 
         String other_element_key = other_element.getKey();
@@ -138,7 +142,7 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
 
         String __this__privilegeMap_copy_key = other_element_key;
 
-        Set<TSentryPrivilege> __this__privilegeMap_copy_value = new HashSet<TSentryPrivilege>();
+        Set<TSentryPrivilege> __this__privilegeMap_copy_value = new HashSet<TSentryPrivilege>(other_element_value.size());
         for (TSentryPrivilege other_element_value_element : other_element_value) {
           __this__privilegeMap_copy_value.add(new TSentryPrivilege(other_element_value_element));
         }
@@ -254,30 +258,30 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_privilegeMap = true && (isSetPrivilegeMap());
-    builder.append(present_privilegeMap);
+    list.add(present_privilegeMap);
     if (present_privilegeMap)
-      builder.append(privilegeMap);
+      list.add(privilegeMap);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryPrivilegeMap other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryPrivilegeMap typedOther = (TSentryPrivilegeMap)other;
 
-    lastComparison = Boolean.valueOf(isSetPrivilegeMap()).compareTo(typedOther.isSetPrivilegeMap());
+    lastComparison = Boolean.valueOf(isSetPrivilegeMap()).compareTo(other.isSetPrivilegeMap());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivilegeMap()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegeMap, typedOther.privilegeMap);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegeMap, other.privilegeMap);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -361,24 +365,24 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
               {
                 org.apache.thrift.protocol.TMap _map112 = iprot.readMapBegin();
                 struct.privilegeMap = new HashMap<String,Set<TSentryPrivilege>>(2*_map112.size);
-                for (int _i113 = 0; _i113 < _map112.size; ++_i113)
+                String _key113;
+                Set<TSentryPrivilege> _val114;
+                for (int _i115 = 0; _i115 < _map112.size; ++_i115)
                 {
-                  String _key114; // required
-                  Set<TSentryPrivilege> _val115; // required
-                  _key114 = iprot.readString();
+                  _key113 = iprot.readString();
                   {
                     org.apache.thrift.protocol.TSet _set116 = iprot.readSetBegin();
-                    _val115 = new HashSet<TSentryPrivilege>(2*_set116.size);
-                    for (int _i117 = 0; _i117 < _set116.size; ++_i117)
+                    _val114 = new HashSet<TSentryPrivilege>(2*_set116.size);
+                    TSentryPrivilege _elem117;
+                    for (int _i118 = 0; _i118 < _set116.size; ++_i118)
                     {
-                      TSentryPrivilege _elem118; // required
-                      _elem118 = new TSentryPrivilege();
-                      _elem118.read(iprot);
-                      _val115.add(_elem118);
+                      _elem117 = new TSentryPrivilege();
+                      _elem117.read(iprot);
+                      _val114.add(_elem117);
                     }
                     iprot.readSetEnd();
                   }
-                  struct.privilegeMap.put(_key114, _val115);
+                  struct.privilegeMap.put(_key113, _val114);
                 }
                 iprot.readMapEnd();
               }
@@ -459,23 +463,23 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
       {
         org.apache.thrift.protocol.TMap _map123 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
         struct.privilegeMap = new HashMap<String,Set<TSentryPrivilege>>(2*_map123.size);
-        for (int _i124 = 0; _i124 < _map123.size; ++_i124)
+        String _key124;
+        Set<TSentryPrivilege> _val125;
+        for (int _i126 = 0; _i126 < _map123.size; ++_i126)
         {
-          String _key125; // required
-          Set<TSentryPrivilege> _val126; // required
-          _key125 = iprot.readString();
+          _key124 = iprot.readString();
           {
             org.apache.thrift.protocol.TSet _set127 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-            _val126 = new HashSet<TSentryPrivilege>(2*_set127.size);
-            for (int _i128 = 0; _i128 < _set127.size; ++_i128)
+            _val125 = new HashSet<TSentryPrivilege>(2*_set127.size);
+            TSentryPrivilege _elem128;
+            for (int _i129 = 0; _i129 < _set127.size; ++_i129)
             {
-              TSentryPrivilege _elem129; // required
-              _elem129 = new TSentryPrivilege();
-              _elem129.read(iprot);
-              _val126.add(_elem129);
+              _elem128 = new TSentryPrivilege();
+              _elem128.read(iprot);
+              _val125.add(_elem128);
             }
           }
-          struct.privilegeMap.put(_key125, _val126);
+          struct.privilegeMap.put(_key124, _val125);
         }
       }
       struct.setPrivilegeMapIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryRole.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryRole.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryRole.java
index 0faa12a..e60ac24 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryRole.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryRole.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentryRole._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentryRole._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryRole> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryRole");
 
   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);
@@ -149,7 +153,7 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
       this.roleName = other.roleName;
     }
     if (other.isSetGroups()) {
-      Set<TSentryGroup> __this__groups = new HashSet<TSentryGroup>();
+      Set<TSentryGroup> __this__groups = new HashSet<TSentryGroup>(other.groups.size());
       for (TSentryGroup other_element : other.groups) {
         __this__groups.add(new TSentryGroup(other_element));
       }
@@ -361,60 +365,60 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_groups = true && (isSetGroups());
-    builder.append(present_groups);
+    list.add(present_groups);
     if (present_groups)
-      builder.append(groups);
+      list.add(groups);
 
     boolean present_grantorPrincipal = true && (isSetGrantorPrincipal());
-    builder.append(present_grantorPrincipal);
+    list.add(present_grantorPrincipal);
     if (present_grantorPrincipal)
-      builder.append(grantorPrincipal);
+      list.add(grantorPrincipal);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryRole other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryRole typedOther = (TSentryRole)other;
 
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(typedOther.isSetGroups());
+    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(other.isSetGroups());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroups()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, typedOther.groups);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, other.groups);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGrantorPrincipal()).compareTo(typedOther.isSetGrantorPrincipal());
+    lastComparison = Boolean.valueOf(isSetGrantorPrincipal()).compareTo(other.isSetGrantorPrincipal());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGrantorPrincipal()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipal, typedOther.grantorPrincipal);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipal, other.grantorPrincipal);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -530,12 +534,12 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
               {
                 org.apache.thrift.protocol.TSet _set56 = iprot.readSetBegin();
                 struct.groups = new HashSet<TSentryGroup>(2*_set56.size);
-                for (int _i57 = 0; _i57 < _set56.size; ++_i57)
+                TSentryGroup _elem57;
+                for (int _i58 = 0; _i58 < _set56.size; ++_i58)
                 {
-                  TSentryGroup _elem58; // required
-                  _elem58 = new TSentryGroup();
-                  _elem58.read(iprot);
-                  struct.groups.add(_elem58);
+                  _elem57 = new TSentryGroup();
+                  _elem57.read(iprot);
+                  struct.groups.add(_elem57);
                 }
                 iprot.readSetEnd();
               }
@@ -623,12 +627,12 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
       {
         org.apache.thrift.protocol.TSet _set61 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
         struct.groups = new HashSet<TSentryGroup>(2*_set61.size);
-        for (int _i62 = 0; _i62 < _set61.size; ++_i62)
+        TSentryGroup _elem62;
+        for (int _i63 = 0; _i63 < _set61.size; ++_i63)
         {
-          TSentryGroup _elem63; // required
-          _elem63 = new TSentryGroup();
-          _elem63.read(iprot);
-          struct.groups.add(_elem63);
+          _elem62 = new TSentryGroup();
+          _elem62.read(iprot);
+          struct.groups.add(_elem62);
         }
       }
       struct.setGroupsIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/service/thrift/TSentryResponseStatus.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/service/thrift/TSentryResponseStatus.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/service/thrift/TSentryResponseStatus.java
index 81abd90..d9a9f86 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/service/thrift/TSentryResponseStatus.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/service/thrift/TSentryResponseStatus.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryResponseStatus implements org.apache.thrift.TBase<TSentryResponseStatus, TSentryResponseStatus._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryResponseStatus implements org.apache.thrift.TBase<TSentryResponseStatus, TSentryResponseStatus._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryResponseStatus> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryResponseStatus");
 
   private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -115,7 +119,7 @@ public class TSentryResponseStatus implements org.apache.thrift.TBase<TSentryRes
   // isset id assignments
   private static final int __VALUE_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.STACK};
+  private static final _Fields optionals[] = {_Fields.STACK};
   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);
@@ -268,7 +272,7 @@ public class TSentryResponseStatus implements org.apache.thrift.TBase<TSentryRes
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case VALUE:
-      return Integer.valueOf(getValue());
+      return getValue();
 
     case MESSAGE:
       return getMessage();
@@ -342,60 +346,60 @@ public class TSentryResponseStatus implements org.apache.thrift.TBase<TSentryRes
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_value = true;
-    builder.append(present_value);
+    list.add(present_value);
     if (present_value)
-      builder.append(value);
+      list.add(value);
 
     boolean present_message = true && (isSetMessage());
-    builder.append(present_message);
+    list.add(present_message);
     if (present_message)
-      builder.append(message);
+      list.add(message);
 
     boolean present_stack = true && (isSetStack());
-    builder.append(present_stack);
+    list.add(present_stack);
     if (present_stack)
-      builder.append(stack);
+      list.add(stack);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryResponseStatus other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryResponseStatus typedOther = (TSentryResponseStatus)other;
 
-    lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
+    lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
+    lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetMessage()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetStack()).compareTo(typedOther.isSetStack());
+    lastComparison = Boolean.valueOf(isSetStack()).compareTo(other.isSetStack());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStack()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stack, typedOther.stack);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stack, other.stack);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/service/thrift/sentry_common_serviceConstants.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/service/thrift/sentry_common_serviceConstants.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/service/thrift/sentry_common_serviceConstants.java
index ff2ddb7..eb63bc3 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/service/thrift/sentry_common_serviceConstants.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/service/thrift/sentry_common_serviceConstants.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,9 +29,11 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 public class sentry_common_serviceConstants {
 
   public static final int TSENTRY_SERVICE_V1 = 1;


[07/11] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)

Posted by sr...@apache.org.
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropSentryRoleResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropSentryRoleResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropSentryRoleResponse.java
index e3a8d74..45d9b49 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropSentryRoleResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropSentryRoleResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TDropSentryRoleResponse implements org.apache.thrift.TBase<TDropSentryRoleResponse, TDropSentryRoleResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TDropSentryRoleResponse implements org.apache.thrift.TBase<TDropSentryRoleResponse, TDropSentryRoleResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TDropSentryRoleResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDropSentryRoleResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TDropSentryRoleResponse implements org.apache.thrift.TBase<TDropSen
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TDropSentryRoleResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TDropSentryRoleResponse typedOther = (TDropSentryRoleResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesByAuthRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesByAuthRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesByAuthRequest.java
index 7a341e4..b4b68e2 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesByAuthRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesByAuthRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBase<TListSentryPrivilegesByAuthRequest, TListSentryPrivilegesByAuthRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBase<TListSentryPrivilegesByAuthRequest, TListSentryPrivilegesByAuthRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryPrivilegesByAuthRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryPrivilegesByAuthRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -135,7 +139,7 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
   // isset id assignments
   private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.GROUPS,_Fields.ROLE_SET};
+  private static final _Fields optionals[] = {_Fields.GROUPS,_Fields.ROLE_SET};
   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);
@@ -196,17 +200,11 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
       this.serviceName = other.serviceName;
     }
     if (other.isSetAuthorizablesSet()) {
-      Set<String> __this__authorizablesSet = new HashSet<String>();
-      for (String other_element : other.authorizablesSet) {
-        __this__authorizablesSet.add(other_element);
-      }
+      Set<String> __this__authorizablesSet = new HashSet<String>(other.authorizablesSet);
       this.authorizablesSet = __this__authorizablesSet;
     }
     if (other.isSetGroups()) {
-      Set<String> __this__groups = new HashSet<String>();
-      for (String other_element : other.groups) {
-        __this__groups.add(other_element);
-      }
+      Set<String> __this__groups = new HashSet<String>(other.groups);
       this.groups = __this__groups;
     }
     if (other.isSetRoleSet()) {
@@ -484,7 +482,7 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -614,120 +612,120 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
     boolean present_serviceName = true && (isSetServiceName());
-    builder.append(present_serviceName);
+    list.add(present_serviceName);
     if (present_serviceName)
-      builder.append(serviceName);
+      list.add(serviceName);
 
     boolean present_authorizablesSet = true && (isSetAuthorizablesSet());
-    builder.append(present_authorizablesSet);
+    list.add(present_authorizablesSet);
     if (present_authorizablesSet)
-      builder.append(authorizablesSet);
+      list.add(authorizablesSet);
 
     boolean present_groups = true && (isSetGroups());
-    builder.append(present_groups);
+    list.add(present_groups);
     if (present_groups)
-      builder.append(groups);
+      list.add(groups);
 
     boolean present_roleSet = true && (isSetRoleSet());
-    builder.append(present_roleSet);
+    list.add(present_roleSet);
     if (present_roleSet)
-      builder.append(roleSet);
+      list.add(roleSet);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryPrivilegesByAuthRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryPrivilegesByAuthRequest typedOther = (TListSentryPrivilegesByAuthRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(typedOther.isSetServiceName());
+    lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(other.isSetServiceName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetServiceName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, typedOther.serviceName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, other.serviceName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAuthorizablesSet()).compareTo(typedOther.isSetAuthorizablesSet());
+    lastComparison = Boolean.valueOf(isSetAuthorizablesSet()).compareTo(other.isSetAuthorizablesSet());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthorizablesSet()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizablesSet, typedOther.authorizablesSet);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizablesSet, other.authorizablesSet);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(typedOther.isSetGroups());
+    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(other.isSetGroups());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroups()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, typedOther.groups);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, other.groups);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleSet()).compareTo(typedOther.isSetRoleSet());
+    lastComparison = Boolean.valueOf(isSetRoleSet()).compareTo(other.isSetRoleSet());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleSet()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleSet, typedOther.roleSet);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleSet, other.roleSet);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -912,11 +910,11 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
               {
                 org.apache.thrift.protocol.TSet _set122 = iprot.readSetBegin();
                 struct.authorizablesSet = new HashSet<String>(2*_set122.size);
-                for (int _i123 = 0; _i123 < _set122.size; ++_i123)
+                String _elem123;
+                for (int _i124 = 0; _i124 < _set122.size; ++_i124)
                 {
-                  String _elem124; // required
-                  _elem124 = iprot.readString();
-                  struct.authorizablesSet.add(_elem124);
+                  _elem123 = iprot.readString();
+                  struct.authorizablesSet.add(_elem123);
                 }
                 iprot.readSetEnd();
               }
@@ -930,11 +928,11 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
               {
                 org.apache.thrift.protocol.TSet _set125 = iprot.readSetBegin();
                 struct.groups = new HashSet<String>(2*_set125.size);
-                for (int _i126 = 0; _i126 < _set125.size; ++_i126)
+                String _elem126;
+                for (int _i127 = 0; _i127 < _set125.size; ++_i127)
                 {
-                  String _elem127; // required
-                  _elem127 = iprot.readString();
-                  struct.groups.add(_elem127);
+                  _elem126 = iprot.readString();
+                  struct.groups.add(_elem126);
                 }
                 iprot.readSetEnd();
               }
@@ -1080,11 +1078,11 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
       {
         org.apache.thrift.protocol.TSet _set132 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.authorizablesSet = new HashSet<String>(2*_set132.size);
-        for (int _i133 = 0; _i133 < _set132.size; ++_i133)
+        String _elem133;
+        for (int _i134 = 0; _i134 < _set132.size; ++_i134)
         {
-          String _elem134; // required
-          _elem134 = iprot.readString();
-          struct.authorizablesSet.add(_elem134);
+          _elem133 = iprot.readString();
+          struct.authorizablesSet.add(_elem133);
         }
       }
       struct.setAuthorizablesSetIsSet(true);
@@ -1093,11 +1091,11 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
         {
           org.apache.thrift.protocol.TSet _set135 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
           struct.groups = new HashSet<String>(2*_set135.size);
-          for (int _i136 = 0; _i136 < _set135.size; ++_i136)
+          String _elem136;
+          for (int _i137 = 0; _i137 < _set135.size; ++_i137)
           {
-            String _elem137; // required
-            _elem137 = iprot.readString();
-            struct.groups.add(_elem137);
+            _elem136 = iprot.readString();
+            struct.groups.add(_elem136);
           }
         }
         struct.setGroupsIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesByAuthResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesByAuthResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesByAuthResponse.java
index 5309da1..8162613 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesByAuthResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesByAuthResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TBase<TListSentryPrivilegesByAuthResponse, TListSentryPrivilegesByAuthResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TBase<TListSentryPrivilegesByAuthResponse, TListSentryPrivilegesByAuthResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryPrivilegesByAuthResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryPrivilegesByAuthResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -108,7 +112,7 @@ public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TB
   }
 
   // isset id assignments
-  private _Fields optionals[] = {_Fields.PRIVILEGES_MAP_BY_AUTH};
+  private static final _Fields optionals[] = {_Fields.PRIVILEGES_MAP_BY_AUTH};
   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);
@@ -140,7 +144,7 @@ public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TB
       this.status = new org.apache.sentry.service.thrift.TSentryResponseStatus(other.status);
     }
     if (other.isSetPrivilegesMapByAuth()) {
-      Map<String,TSentryPrivilegeMap> __this__privilegesMapByAuth = new HashMap<String,TSentryPrivilegeMap>();
+      Map<String,TSentryPrivilegeMap> __this__privilegesMapByAuth = new HashMap<String,TSentryPrivilegeMap>(other.privilegesMapByAuth.size());
       for (Map.Entry<String, TSentryPrivilegeMap> other_element : other.privilegesMapByAuth.entrySet()) {
 
         String other_element_key = other_element.getKey();
@@ -307,45 +311,45 @@ public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TB
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
     boolean present_privilegesMapByAuth = true && (isSetPrivilegesMapByAuth());
-    builder.append(present_privilegesMapByAuth);
+    list.add(present_privilegesMapByAuth);
     if (present_privilegesMapByAuth)
-      builder.append(privilegesMapByAuth);
+      list.add(privilegesMapByAuth);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryPrivilegesByAuthResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryPrivilegesByAuthResponse typedOther = (TListSentryPrivilegesByAuthResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivilegesMapByAuth()).compareTo(typedOther.isSetPrivilegesMapByAuth());
+    lastComparison = Boolean.valueOf(isSetPrivilegesMapByAuth()).compareTo(other.isSetPrivilegesMapByAuth());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivilegesMapByAuth()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegesMapByAuth, typedOther.privilegesMapByAuth);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegesMapByAuth, other.privilegesMapByAuth);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -451,14 +455,14 @@ public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TB
               {
                 org.apache.thrift.protocol.TMap _map138 = iprot.readMapBegin();
                 struct.privilegesMapByAuth = new HashMap<String,TSentryPrivilegeMap>(2*_map138.size);
-                for (int _i139 = 0; _i139 < _map138.size; ++_i139)
+                String _key139;
+                TSentryPrivilegeMap _val140;
+                for (int _i141 = 0; _i141 < _map138.size; ++_i141)
                 {
-                  String _key140; // required
-                  TSentryPrivilegeMap _val141; // required
-                  _key140 = iprot.readString();
-                  _val141 = new TSentryPrivilegeMap();
-                  _val141.read(iprot);
-                  struct.privilegesMapByAuth.put(_key140, _val141);
+                  _key139 = iprot.readString();
+                  _val140 = new TSentryPrivilegeMap();
+                  _val140.read(iprot);
+                  struct.privilegesMapByAuth.put(_key139, _val140);
                 }
                 iprot.readMapEnd();
               }
@@ -546,14 +550,14 @@ public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TB
         {
           org.apache.thrift.protocol.TMap _map144 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.privilegesMapByAuth = new HashMap<String,TSentryPrivilegeMap>(2*_map144.size);
-          for (int _i145 = 0; _i145 < _map144.size; ++_i145)
+          String _key145;
+          TSentryPrivilegeMap _val146;
+          for (int _i147 = 0; _i147 < _map144.size; ++_i147)
           {
-            String _key146; // required
-            TSentryPrivilegeMap _val147; // required
-            _key146 = iprot.readString();
-            _val147 = new TSentryPrivilegeMap();
-            _val147.read(iprot);
-            struct.privilegesMapByAuth.put(_key146, _val147);
+            _key145 = iprot.readString();
+            _val146 = new TSentryPrivilegeMap();
+            _val146.read(iprot);
+            struct.privilegesMapByAuth.put(_key145, _val146);
           }
         }
         struct.setPrivilegesMapByAuthIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesForProviderRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesForProviderRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesForProviderRequest.java
index 5e443b4..1d534f9 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesForProviderRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesForProviderRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryPrivilegesForProviderRequest implements org.apache.thrift.TBase<TListSentryPrivilegesForProviderRequest, TListSentryPrivilegesForProviderRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryPrivilegesForProviderRequest implements org.apache.thrift.TBase<TListSentryPrivilegesForProviderRequest, TListSentryPrivilegesForProviderRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryPrivilegesForProviderRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryPrivilegesForProviderRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -130,7 +134,7 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
   // isset id assignments
   private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.AUTHORIZABLES};
+  private static final _Fields optionals[] = {_Fields.AUTHORIZABLES};
   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);
@@ -186,17 +190,14 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
       this.serviceName = other.serviceName;
     }
     if (other.isSetGroups()) {
-      Set<String> __this__groups = new HashSet<String>();
-      for (String other_element : other.groups) {
-        __this__groups.add(other_element);
-      }
+      Set<String> __this__groups = new HashSet<String>(other.groups);
       this.groups = __this__groups;
     }
     if (other.isSetRoleSet()) {
       this.roleSet = new TSentryActiveRoleSet(other.roleSet);
     }
     if (other.isSetAuthorizables()) {
-      List<TAuthorizable> __this__authorizables = new ArrayList<TAuthorizable>();
+      List<TAuthorizable> __this__authorizables = new ArrayList<TAuthorizable>(other.authorizables.size());
       for (TAuthorizable other_element : other.authorizables) {
         __this__authorizables.add(new TAuthorizable(other_element));
       }
@@ -442,7 +443,7 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case COMPONENT:
       return getComponent();
@@ -558,105 +559,105 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
     boolean present_serviceName = true && (isSetServiceName());
-    builder.append(present_serviceName);
+    list.add(present_serviceName);
     if (present_serviceName)
-      builder.append(serviceName);
+      list.add(serviceName);
 
     boolean present_groups = true && (isSetGroups());
-    builder.append(present_groups);
+    list.add(present_groups);
     if (present_groups)
-      builder.append(groups);
+      list.add(groups);
 
     boolean present_roleSet = true && (isSetRoleSet());
-    builder.append(present_roleSet);
+    list.add(present_roleSet);
     if (present_roleSet)
-      builder.append(roleSet);
+      list.add(roleSet);
 
     boolean present_authorizables = true && (isSetAuthorizables());
-    builder.append(present_authorizables);
+    list.add(present_authorizables);
     if (present_authorizables)
-      builder.append(authorizables);
+      list.add(authorizables);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryPrivilegesForProviderRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryPrivilegesForProviderRequest typedOther = (TListSentryPrivilegesForProviderRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(typedOther.isSetServiceName());
+    lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(other.isSetServiceName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetServiceName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, typedOther.serviceName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, other.serviceName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(typedOther.isSetGroups());
+    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(other.isSetGroups());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroups()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, typedOther.groups);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, other.groups);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleSet()).compareTo(typedOther.isSetRoleSet());
+    lastComparison = Boolean.valueOf(isSetRoleSet()).compareTo(other.isSetRoleSet());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleSet()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleSet, typedOther.roleSet);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleSet, other.roleSet);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAuthorizables()).compareTo(typedOther.isSetAuthorizables());
+    lastComparison = Boolean.valueOf(isSetAuthorizables()).compareTo(other.isSetAuthorizables());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthorizables()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizables, typedOther.authorizables);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizables, other.authorizables);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -823,11 +824,11 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
               {
                 org.apache.thrift.protocol.TSet _set80 = iprot.readSetBegin();
                 struct.groups = new HashSet<String>(2*_set80.size);
-                for (int _i81 = 0; _i81 < _set80.size; ++_i81)
+                String _elem81;
+                for (int _i82 = 0; _i82 < _set80.size; ++_i82)
                 {
-                  String _elem82; // required
-                  _elem82 = iprot.readString();
-                  struct.groups.add(_elem82);
+                  _elem81 = iprot.readString();
+                  struct.groups.add(_elem81);
                 }
                 iprot.readSetEnd();
               }
@@ -850,12 +851,12 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
               {
                 org.apache.thrift.protocol.TList _list83 = iprot.readListBegin();
                 struct.authorizables = new ArrayList<TAuthorizable>(_list83.size);
-                for (int _i84 = 0; _i84 < _list83.size; ++_i84)
+                TAuthorizable _elem84;
+                for (int _i85 = 0; _i85 < _list83.size; ++_i85)
                 {
-                  TAuthorizable _elem85; // required
-                  _elem85 = new TAuthorizable();
-                  _elem85.read(iprot);
-                  struct.authorizables.add(_elem85);
+                  _elem84 = new TAuthorizable();
+                  _elem84.read(iprot);
+                  struct.authorizables.add(_elem84);
                 }
                 iprot.readListEnd();
               }
@@ -977,11 +978,11 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
       {
         org.apache.thrift.protocol.TSet _set90 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.groups = new HashSet<String>(2*_set90.size);
-        for (int _i91 = 0; _i91 < _set90.size; ++_i91)
+        String _elem91;
+        for (int _i92 = 0; _i92 < _set90.size; ++_i92)
         {
-          String _elem92; // required
-          _elem92 = iprot.readString();
-          struct.groups.add(_elem92);
+          _elem91 = iprot.readString();
+          struct.groups.add(_elem91);
         }
       }
       struct.setGroupsIsSet(true);
@@ -993,12 +994,12 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
         {
           org.apache.thrift.protocol.TList _list93 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.authorizables = new ArrayList<TAuthorizable>(_list93.size);
-          for (int _i94 = 0; _i94 < _list93.size; ++_i94)
+          TAuthorizable _elem94;
+          for (int _i95 = 0; _i95 < _list93.size; ++_i95)
           {
-            TAuthorizable _elem95; // required
-            _elem95 = new TAuthorizable();
-            _elem95.read(iprot);
-            struct.authorizables.add(_elem95);
+            _elem94 = new TAuthorizable();
+            _elem94.read(iprot);
+            struct.authorizables.add(_elem94);
           }
         }
         struct.setAuthorizablesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesForProviderResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesForProviderResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesForProviderResponse.java
index 243a2d4..d8188fc 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesForProviderResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesForProviderResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryPrivilegesForProviderResponse implements org.apache.thrift.TBase<TListSentryPrivilegesForProviderResponse, TListSentryPrivilegesForProviderResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryPrivilegesForProviderResponse implements org.apache.thrift.TBase<TListSentryPrivilegesForProviderResponse, TListSentryPrivilegesForProviderResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryPrivilegesForProviderResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryPrivilegesForProviderResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -140,10 +144,7 @@ public class TListSentryPrivilegesForProviderResponse implements org.apache.thri
       this.status = other.status;
     }
     if (other.isSetPrivileges()) {
-      Set<String> __this__privileges = new HashSet<String>();
-      for (String other_element : other.privileges) {
-        __this__privileges.add(other_element);
-      }
+      Set<String> __this__privileges = new HashSet<String>(other.privileges);
       this.privileges = __this__privileges;
     }
   }
@@ -303,45 +304,45 @@ public class TListSentryPrivilegesForProviderResponse implements org.apache.thri
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
     boolean present_privileges = true && (isSetPrivileges());
-    builder.append(present_privileges);
+    list.add(present_privileges);
     if (present_privileges)
-      builder.append(privileges);
+      list.add(privileges);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryPrivilegesForProviderResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryPrivilegesForProviderResponse typedOther = (TListSentryPrivilegesForProviderResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges());
+    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivileges()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -446,11 +447,11 @@ public class TListSentryPrivilegesForProviderResponse implements org.apache.thri
               {
                 org.apache.thrift.protocol.TSet _set96 = iprot.readSetBegin();
                 struct.privileges = new HashSet<String>(2*_set96.size);
-                for (int _i97 = 0; _i97 < _set96.size; ++_i97)
+                String _elem97;
+                for (int _i98 = 0; _i98 < _set96.size; ++_i98)
                 {
-                  String _elem98; // required
-                  _elem98 = iprot.readString();
-                  struct.privileges.add(_elem98);
+                  _elem97 = iprot.readString();
+                  struct.privileges.add(_elem97);
                 }
                 iprot.readSetEnd();
               }
@@ -525,11 +526,11 @@ public class TListSentryPrivilegesForProviderResponse implements org.apache.thri
       {
         org.apache.thrift.protocol.TSet _set101 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.privileges = new HashSet<String>(2*_set101.size);
-        for (int _i102 = 0; _i102 < _set101.size; ++_i102)
+        String _elem102;
+        for (int _i103 = 0; _i103 < _set101.size; ++_i103)
         {
-          String _elem103; // required
-          _elem103 = iprot.readString();
-          struct.privileges.add(_elem103);
+          _elem102 = iprot.readString();
+          struct.privileges.add(_elem102);
         }
       }
       struct.setPrivilegesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesRequest.java
index d6afe5a..6c8562a 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TListSentryPrivilegesRequest, TListSentryPrivilegesRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TListSentryPrivilegesRequest, TListSentryPrivilegesRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryPrivilegesRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryPrivilegesRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -130,7 +134,7 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
   // isset id assignments
   private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.AUTHORIZABLES};
+  private static final _Fields optionals[] = {_Fields.AUTHORIZABLES};
   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);
@@ -191,7 +195,7 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
       this.serviceName = other.serviceName;
     }
     if (other.isSetAuthorizables()) {
-      List<TAuthorizable> __this__authorizables = new ArrayList<TAuthorizable>();
+      List<TAuthorizable> __this__authorizables = new ArrayList<TAuthorizable>(other.authorizables.size());
       for (TAuthorizable other_element : other.authorizables) {
         __this__authorizables.add(new TAuthorizable(other_element));
       }
@@ -422,7 +426,7 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -538,105 +542,105 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
     boolean present_serviceName = true && (isSetServiceName());
-    builder.append(present_serviceName);
+    list.add(present_serviceName);
     if (present_serviceName)
-      builder.append(serviceName);
+      list.add(serviceName);
 
     boolean present_authorizables = true && (isSetAuthorizables());
-    builder.append(present_authorizables);
+    list.add(present_authorizables);
     if (present_authorizables)
-      builder.append(authorizables);
+      list.add(authorizables);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryPrivilegesRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryPrivilegesRequest typedOther = (TListSentryPrivilegesRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(typedOther.isSetServiceName());
+    lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(other.isSetServiceName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetServiceName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, typedOther.serviceName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, other.serviceName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAuthorizables()).compareTo(typedOther.isSetAuthorizables());
+    lastComparison = Boolean.valueOf(isSetAuthorizables()).compareTo(other.isSetAuthorizables());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthorizables()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizables, typedOther.authorizables);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizables, other.authorizables);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -816,12 +820,12 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
               {
                 org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
                 struct.authorizables = new ArrayList<TAuthorizable>(_list40.size);
-                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
+                TAuthorizable _elem41;
+                for (int _i42 = 0; _i42 < _list40.size; ++_i42)
                 {
-                  TAuthorizable _elem42; // required
-                  _elem42 = new TAuthorizable();
-                  _elem42.read(iprot);
-                  struct.authorizables.add(_elem42);
+                  _elem41 = new TAuthorizable();
+                  _elem41.read(iprot);
+                  struct.authorizables.add(_elem41);
                 }
                 iprot.readListEnd();
               }
@@ -936,12 +940,12 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
         {
           org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.authorizables = new ArrayList<TAuthorizable>(_list45.size);
-          for (int _i46 = 0; _i46 < _list45.size; ++_i46)
+          TAuthorizable _elem46;
+          for (int _i47 = 0; _i47 < _list45.size; ++_i47)
           {
-            TAuthorizable _elem47; // required
-            _elem47 = new TAuthorizable();
-            _elem47.read(iprot);
-            struct.authorizables.add(_elem47);
+            _elem46 = new TAuthorizable();
+            _elem46.read(iprot);
+            struct.authorizables.add(_elem46);
           }
         }
         struct.setAuthorizablesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesResponse.java
index f028c18..a079b41 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryPrivilegesResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TListSentryPrivilegesResponse, TListSentryPrivilegesResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TListSentryPrivilegesResponse, TListSentryPrivilegesResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryPrivilegesResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryPrivilegesResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -108,7 +112,7 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
   }
 
   // isset id assignments
-  private _Fields optionals[] = {_Fields.PRIVILEGES};
+  private static final _Fields optionals[] = {_Fields.PRIVILEGES};
   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);
@@ -139,7 +143,7 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
       this.status = other.status;
     }
     if (other.isSetPrivileges()) {
-      Set<TSentryPrivilege> __this__privileges = new HashSet<TSentryPrivilege>();
+      Set<TSentryPrivilege> __this__privileges = new HashSet<TSentryPrivilege>(other.privileges.size());
       for (TSentryPrivilege other_element : other.privileges) {
         __this__privileges.add(new TSentryPrivilege(other_element));
       }
@@ -302,45 +306,45 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
     boolean present_privileges = true && (isSetPrivileges());
-    builder.append(present_privileges);
+    list.add(present_privileges);
     if (present_privileges)
-      builder.append(privileges);
+      list.add(privileges);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryPrivilegesResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryPrivilegesResponse typedOther = (TListSentryPrivilegesResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges());
+    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivileges()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -443,12 +447,12 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
               {
                 org.apache.thrift.protocol.TSet _set48 = iprot.readSetBegin();
                 struct.privileges = new HashSet<TSentryPrivilege>(2*_set48.size);
-                for (int _i49 = 0; _i49 < _set48.size; ++_i49)
+                TSentryPrivilege _elem49;
+                for (int _i50 = 0; _i50 < _set48.size; ++_i50)
                 {
-                  TSentryPrivilege _elem50; // required
-                  _elem50 = new TSentryPrivilege();
-                  _elem50.read(iprot);
-                  struct.privileges.add(_elem50);
+                  _elem49 = new TSentryPrivilege();
+                  _elem49.read(iprot);
+                  struct.privileges.add(_elem49);
                 }
                 iprot.readSetEnd();
               }
@@ -534,12 +538,12 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
         {
           org.apache.thrift.protocol.TSet _set53 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.privileges = new HashSet<TSentryPrivilege>(2*_set53.size);
-          for (int _i54 = 0; _i54 < _set53.size; ++_i54)
+          TSentryPrivilege _elem54;
+          for (int _i55 = 0; _i55 < _set53.size; ++_i55)
           {
-            TSentryPrivilege _elem55; // required
-            _elem55 = new TSentryPrivilege();
-            _elem55.read(iprot);
-            struct.privileges.add(_elem55);
+            _elem54 = new TSentryPrivilege();
+            _elem54.read(iprot);
+            struct.privileges.add(_elem54);
           }
         }
         struct.setPrivilegesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryRolesRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryRolesRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryRolesRequest.java
index 08a4e36..7e23bb8 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryRolesRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryRolesRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSentryRolesRequest, TListSentryRolesRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSentryRolesRequest, TListSentryRolesRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryRolesRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryRolesRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -120,7 +124,7 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
   // isset id assignments
   private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.GROUP_NAME};
+  private static final _Fields optionals[] = {_Fields.GROUP_NAME};
   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);
@@ -314,7 +318,7 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -402,75 +406,75 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_groupName = true && (isSetGroupName());
-    builder.append(present_groupName);
+    list.add(present_groupName);
     if (present_groupName)
-      builder.append(groupName);
+      list.add(groupName);
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryRolesRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryRolesRequest typedOther = (TListSentryRolesRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGroupName()).compareTo(typedOther.isSetGroupName());
+    lastComparison = Boolean.valueOf(isSetGroupName()).compareTo(other.isSetGroupName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroupName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupName, typedOther.groupName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupName, other.groupName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryRolesResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryRolesResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryRolesResponse.java
index 20ed85e..857b0b6 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryRolesResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TListSentryRolesResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSentryRolesResponse, TListSentryRolesResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSentryRolesResponse, TListSentryRolesResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryRolesResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryRolesResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -108,7 +112,7 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
   }
 
   // isset id assignments
-  private _Fields optionals[] = {_Fields.ROLES};
+  private static final _Fields optionals[] = {_Fields.ROLES};
   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);
@@ -139,7 +143,7 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
       this.status = other.status;
     }
     if (other.isSetRoles()) {
-      Set<TSentryRole> __this__roles = new HashSet<TSentryRole>();
+      Set<TSentryRole> __this__roles = new HashSet<TSentryRole>(other.roles.size());
       for (TSentryRole other_element : other.roles) {
         __this__roles.add(new TSentryRole(other_element));
       }
@@ -302,45 +306,45 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
     boolean present_roles = true && (isSetRoles());
-    builder.append(present_roles);
+    list.add(present_roles);
     if (present_roles)
-      builder.append(roles);
+      list.add(roles);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryRolesResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryRolesResponse typedOther = (TListSentryRolesResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoles()).compareTo(typedOther.isSetRoles());
+    lastComparison = Boolean.valueOf(isSetRoles()).compareTo(other.isSetRoles());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoles()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roles, typedOther.roles);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roles, other.roles);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -443,12 +447,12 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
               {
                 org.apache.thrift.protocol.TSet _set32 = iprot.readSetBegin();
                 struct.roles = new HashSet<TSentryRole>(2*_set32.size);
-                for (int _i33 = 0; _i33 < _set32.size; ++_i33)
+                TSentryRole _elem33;
+                for (int _i34 = 0; _i34 < _set32.size; ++_i34)
                 {
-                  TSentryRole _elem34; // required
-                  _elem34 = new TSentryRole();
-                  _elem34.read(iprot);
-                  struct.roles.add(_elem34);
+                  _elem33 = new TSentryRole();
+                  _elem33.read(iprot);
+                  struct.roles.add(_elem33);
                 }
                 iprot.readSetEnd();
               }
@@ -534,12 +538,12 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
         {
           org.apache.thrift.protocol.TSet _set37 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.roles = new HashSet<TSentryRole>(2*_set37.size);
-          for (int _i38 = 0; _i38 < _set37.size; ++_i38)
+          TSentryRole _elem38;
+          for (int _i39 = 0; _i39 < _set37.size; ++_i39)
           {
-            TSentryRole _elem39; // required
-            _elem39 = new TSentryRole();
-            _elem39.read(iprot);
-            struct.roles.add(_elem39);
+            _elem38 = new TSentryRole();
+            _elem38.read(iprot);
+            struct.roles.add(_elem38);
           }
         }
         struct.setRolesIsSet(true);


[10/11] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)

Posted by sr...@apache.org.
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathsDump.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathsDump.java b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathsDump.java
index caf9ad1..c1b42a0 100644
--- a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathsDump.java
+++ b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathsDump.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.hdfs.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TPathsDump implements org.apache.thrift.TBase<TPathsDump, TPathsDump._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TPathsDump implements org.apache.thrift.TBase<TPathsDump, TPathsDump._Fields>, java.io.Serializable, Cloneable, Comparable<TPathsDump> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPathsDump");
 
   private static final org.apache.thrift.protocol.TField ROOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("rootId", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -143,7 +147,7 @@ public class TPathsDump implements org.apache.thrift.TBase<TPathsDump, TPathsDum
     __isset_bitfield = other.__isset_bitfield;
     this.rootId = other.rootId;
     if (other.isSetNodeMap()) {
-      Map<Integer,TPathEntry> __this__nodeMap = new HashMap<Integer,TPathEntry>();
+      Map<Integer,TPathEntry> __this__nodeMap = new HashMap<Integer,TPathEntry>(other.nodeMap.size());
       for (Map.Entry<Integer, TPathEntry> other_element : other.nodeMap.entrySet()) {
 
         Integer other_element_key = other_element.getKey();
@@ -250,7 +254,7 @@ public class TPathsDump implements org.apache.thrift.TBase<TPathsDump, TPathsDum
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case ROOT_ID:
-      return Integer.valueOf(getRootId());
+      return getRootId();
 
     case NODE_MAP:
       return getNodeMap();
@@ -310,45 +314,45 @@ public class TPathsDump implements org.apache.thrift.TBase<TPathsDump, TPathsDum
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_rootId = true;
-    builder.append(present_rootId);
+    list.add(present_rootId);
     if (present_rootId)
-      builder.append(rootId);
+      list.add(rootId);
 
     boolean present_nodeMap = true && (isSetNodeMap());
-    builder.append(present_nodeMap);
+    list.add(present_nodeMap);
     if (present_nodeMap)
-      builder.append(nodeMap);
+      list.add(nodeMap);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TPathsDump other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TPathsDump typedOther = (TPathsDump)other;
 
-    lastComparison = Boolean.valueOf(isSetRootId()).compareTo(typedOther.isSetRootId());
+    lastComparison = Boolean.valueOf(isSetRootId()).compareTo(other.isSetRootId());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRootId()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rootId, typedOther.rootId);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rootId, other.rootId);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetNodeMap()).compareTo(typedOther.isSetNodeMap());
+    lastComparison = Boolean.valueOf(isSetNodeMap()).compareTo(other.isSetNodeMap());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetNodeMap()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nodeMap, typedOther.nodeMap);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nodeMap, other.nodeMap);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -450,14 +454,14 @@ public class TPathsDump implements org.apache.thrift.TBase<TPathsDump, TPathsDum
               {
                 org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin();
                 struct.nodeMap = new HashMap<Integer,TPathEntry>(2*_map48.size);
-                for (int _i49 = 0; _i49 < _map48.size; ++_i49)
+                int _key49;
+                TPathEntry _val50;
+                for (int _i51 = 0; _i51 < _map48.size; ++_i51)
                 {
-                  int _key50; // required
-                  TPathEntry _val51; // required
-                  _key50 = iprot.readI32();
-                  _val51 = new TPathEntry();
-                  _val51.read(iprot);
-                  struct.nodeMap.put(_key50, _val51);
+                  _key49 = iprot.readI32();
+                  _val50 = new TPathEntry();
+                  _val50.read(iprot);
+                  struct.nodeMap.put(_key49, _val50);
                 }
                 iprot.readMapEnd();
               }
@@ -531,14 +535,14 @@ public class TPathsDump implements org.apache.thrift.TBase<TPathsDump, TPathsDum
       {
         org.apache.thrift.protocol.TMap _map54 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
         struct.nodeMap = new HashMap<Integer,TPathEntry>(2*_map54.size);
-        for (int _i55 = 0; _i55 < _map54.size; ++_i55)
+        int _key55;
+        TPathEntry _val56;
+        for (int _i57 = 0; _i57 < _map54.size; ++_i57)
         {
-          int _key56; // required
-          TPathEntry _val57; // required
-          _key56 = iprot.readI32();
-          _val57 = new TPathEntry();
-          _val57.read(iprot);
-          struct.nodeMap.put(_key56, _val57);
+          _key55 = iprot.readI32();
+          _val56 = new TPathEntry();
+          _val56.read(iprot);
+          struct.nodeMap.put(_key55, _val56);
         }
       }
       struct.setNodeMapIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathsUpdate.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathsUpdate.java b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathsUpdate.java
index f52b4ff..f469d4a 100644
--- a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathsUpdate.java
+++ b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathsUpdate.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.hdfs.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TPathsUpdate implements org.apache.thrift.TBase<TPathsUpdate, TPathsUpdate._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TPathsUpdate implements org.apache.thrift.TBase<TPathsUpdate, TPathsUpdate._Fields>, java.io.Serializable, Cloneable, Comparable<TPathsUpdate> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPathsUpdate");
 
   private static final org.apache.thrift.protocol.TField HAS_FULL_IMAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("hasFullImage", org.apache.thrift.protocol.TType.BOOL, (short)1);
@@ -121,7 +125,7 @@ public class TPathsUpdate implements org.apache.thrift.TBase<TPathsUpdate, TPath
   private static final int __HASFULLIMAGE_ISSET_ID = 0;
   private static final int __SEQNUM_ISSET_ID = 1;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.PATHS_DUMP};
+  private static final _Fields optionals[] = {_Fields.PATHS_DUMP};
   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);
@@ -165,7 +169,7 @@ public class TPathsUpdate implements org.apache.thrift.TBase<TPathsUpdate, TPath
     }
     this.seqNum = other.seqNum;
     if (other.isSetPathChanges()) {
-      List<TPathChanges> __this__pathChanges = new ArrayList<TPathChanges>();
+      List<TPathChanges> __this__pathChanges = new ArrayList<TPathChanges>(other.pathChanges.size());
       for (TPathChanges other_element : other.pathChanges) {
         __this__pathChanges.add(new TPathChanges(other_element));
       }
@@ -332,13 +336,13 @@ public class TPathsUpdate implements org.apache.thrift.TBase<TPathsUpdate, TPath
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case HAS_FULL_IMAGE:
-      return Boolean.valueOf(isHasFullImage());
+      return isHasFullImage();
 
     case PATHS_DUMP:
       return getPathsDump();
 
     case SEQ_NUM:
-      return Long.valueOf(getSeqNum());
+      return getSeqNum();
 
     case PATH_CHANGES:
       return getPathChanges();
@@ -420,75 +424,75 @@ public class TPathsUpdate implements org.apache.thrift.TBase<TPathsUpdate, TPath
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_hasFullImage = true;
-    builder.append(present_hasFullImage);
+    list.add(present_hasFullImage);
     if (present_hasFullImage)
-      builder.append(hasFullImage);
+      list.add(hasFullImage);
 
     boolean present_pathsDump = true && (isSetPathsDump());
-    builder.append(present_pathsDump);
+    list.add(present_pathsDump);
     if (present_pathsDump)
-      builder.append(pathsDump);
+      list.add(pathsDump);
 
     boolean present_seqNum = true;
-    builder.append(present_seqNum);
+    list.add(present_seqNum);
     if (present_seqNum)
-      builder.append(seqNum);
+      list.add(seqNum);
 
     boolean present_pathChanges = true && (isSetPathChanges());
-    builder.append(present_pathChanges);
+    list.add(present_pathChanges);
     if (present_pathChanges)
-      builder.append(pathChanges);
+      list.add(pathChanges);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TPathsUpdate other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TPathsUpdate typedOther = (TPathsUpdate)other;
 
-    lastComparison = Boolean.valueOf(isSetHasFullImage()).compareTo(typedOther.isSetHasFullImage());
+    lastComparison = Boolean.valueOf(isSetHasFullImage()).compareTo(other.isSetHasFullImage());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetHasFullImage()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasFullImage, typedOther.hasFullImage);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasFullImage, other.hasFullImage);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPathsDump()).compareTo(typedOther.isSetPathsDump());
+    lastComparison = Boolean.valueOf(isSetPathsDump()).compareTo(other.isSetPathsDump());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPathsDump()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathsDump, typedOther.pathsDump);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathsDump, other.pathsDump);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetSeqNum()).compareTo(typedOther.isSetSeqNum());
+    lastComparison = Boolean.valueOf(isSetSeqNum()).compareTo(other.isSetSeqNum());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetSeqNum()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.seqNum, typedOther.seqNum);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.seqNum, other.seqNum);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPathChanges()).compareTo(typedOther.isSetPathChanges());
+    lastComparison = Boolean.valueOf(isSetPathChanges()).compareTo(other.isSetPathChanges());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPathChanges()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathChanges, typedOther.pathChanges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathChanges, other.pathChanges);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -628,12 +632,12 @@ public class TPathsUpdate implements org.apache.thrift.TBase<TPathsUpdate, TPath
               {
                 org.apache.thrift.protocol.TList _list58 = iprot.readListBegin();
                 struct.pathChanges = new ArrayList<TPathChanges>(_list58.size);
-                for (int _i59 = 0; _i59 < _list58.size; ++_i59)
+                TPathChanges _elem59;
+                for (int _i60 = 0; _i60 < _list58.size; ++_i60)
                 {
-                  TPathChanges _elem60; // required
-                  _elem60 = new TPathChanges();
-                  _elem60.read(iprot);
-                  struct.pathChanges.add(_elem60);
+                  _elem59 = new TPathChanges();
+                  _elem59.read(iprot);
+                  struct.pathChanges.add(_elem59);
                 }
                 iprot.readListEnd();
               }
@@ -726,12 +730,12 @@ public class TPathsUpdate implements org.apache.thrift.TBase<TPathsUpdate, TPath
       {
         org.apache.thrift.protocol.TList _list63 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
         struct.pathChanges = new ArrayList<TPathChanges>(_list63.size);
-        for (int _i64 = 0; _i64 < _list63.size; ++_i64)
+        TPathChanges _elem64;
+        for (int _i65 = 0; _i65 < _list63.size; ++_i65)
         {
-          TPathChanges _elem65; // required
-          _elem65 = new TPathChanges();
-          _elem65.read(iprot);
-          struct.pathChanges.add(_elem65);
+          _elem64 = new TPathChanges();
+          _elem64.read(iprot);
+          struct.pathChanges.add(_elem64);
         }
       }
       struct.setPathChangesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPermissionsUpdate.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPermissionsUpdate.java b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPermissionsUpdate.java
index bfb6cbc..727b705 100644
--- a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPermissionsUpdate.java
+++ b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPermissionsUpdate.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.hdfs.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TPermissionsUpdate implements org.apache.thrift.TBase<TPermissionsUpdate, TPermissionsUpdate._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TPermissionsUpdate implements org.apache.thrift.TBase<TPermissionsUpdate, TPermissionsUpdate._Fields>, java.io.Serializable, Cloneable, Comparable<TPermissionsUpdate> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPermissionsUpdate");
 
   private static final org.apache.thrift.protocol.TField HASFULL_IMAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("hasfullImage", org.apache.thrift.protocol.TType.BOOL, (short)1);
@@ -166,7 +170,7 @@ public class TPermissionsUpdate implements org.apache.thrift.TBase<TPermissionsU
     this.hasfullImage = other.hasfullImage;
     this.seqNum = other.seqNum;
     if (other.isSetPrivilegeChanges()) {
-      Map<String,TPrivilegeChanges> __this__privilegeChanges = new HashMap<String,TPrivilegeChanges>();
+      Map<String,TPrivilegeChanges> __this__privilegeChanges = new HashMap<String,TPrivilegeChanges>(other.privilegeChanges.size());
       for (Map.Entry<String, TPrivilegeChanges> other_element : other.privilegeChanges.entrySet()) {
 
         String other_element_key = other_element.getKey();
@@ -181,7 +185,7 @@ public class TPermissionsUpdate implements org.apache.thrift.TBase<TPermissionsU
       this.privilegeChanges = __this__privilegeChanges;
     }
     if (other.isSetRoleChanges()) {
-      Map<String,TRoleChanges> __this__roleChanges = new HashMap<String,TRoleChanges>();
+      Map<String,TRoleChanges> __this__roleChanges = new HashMap<String,TRoleChanges>(other.roleChanges.size());
       for (Map.Entry<String, TRoleChanges> other_element : other.roleChanges.entrySet()) {
 
         String other_element_key = other_element.getKey();
@@ -363,10 +367,10 @@ public class TPermissionsUpdate implements org.apache.thrift.TBase<TPermissionsU
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case HASFULL_IMAGE:
-      return Boolean.valueOf(isHasfullImage());
+      return isHasfullImage();
 
     case SEQ_NUM:
-      return Long.valueOf(getSeqNum());
+      return getSeqNum();
 
     case PRIVILEGE_CHANGES:
       return getPrivilegeChanges();
@@ -451,75 +455,75 @@ public class TPermissionsUpdate implements org.apache.thrift.TBase<TPermissionsU
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_hasfullImage = true;
-    builder.append(present_hasfullImage);
+    list.add(present_hasfullImage);
     if (present_hasfullImage)
-      builder.append(hasfullImage);
+      list.add(hasfullImage);
 
     boolean present_seqNum = true;
-    builder.append(present_seqNum);
+    list.add(present_seqNum);
     if (present_seqNum)
-      builder.append(seqNum);
+      list.add(seqNum);
 
     boolean present_privilegeChanges = true && (isSetPrivilegeChanges());
-    builder.append(present_privilegeChanges);
+    list.add(present_privilegeChanges);
     if (present_privilegeChanges)
-      builder.append(privilegeChanges);
+      list.add(privilegeChanges);
 
     boolean present_roleChanges = true && (isSetRoleChanges());
-    builder.append(present_roleChanges);
+    list.add(present_roleChanges);
     if (present_roleChanges)
-      builder.append(roleChanges);
+      list.add(roleChanges);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TPermissionsUpdate other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TPermissionsUpdate typedOther = (TPermissionsUpdate)other;
 
-    lastComparison = Boolean.valueOf(isSetHasfullImage()).compareTo(typedOther.isSetHasfullImage());
+    lastComparison = Boolean.valueOf(isSetHasfullImage()).compareTo(other.isSetHasfullImage());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetHasfullImage()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasfullImage, typedOther.hasfullImage);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasfullImage, other.hasfullImage);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetSeqNum()).compareTo(typedOther.isSetSeqNum());
+    lastComparison = Boolean.valueOf(isSetSeqNum()).compareTo(other.isSetSeqNum());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetSeqNum()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.seqNum, typedOther.seqNum);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.seqNum, other.seqNum);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivilegeChanges()).compareTo(typedOther.isSetPrivilegeChanges());
+    lastComparison = Boolean.valueOf(isSetPrivilegeChanges()).compareTo(other.isSetPrivilegeChanges());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivilegeChanges()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegeChanges, typedOther.privilegeChanges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegeChanges, other.privilegeChanges);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleChanges()).compareTo(typedOther.isSetRoleChanges());
+    lastComparison = Boolean.valueOf(isSetRoleChanges()).compareTo(other.isSetRoleChanges());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleChanges()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleChanges, typedOther.roleChanges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleChanges, other.roleChanges);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -649,14 +653,14 @@ public class TPermissionsUpdate implements org.apache.thrift.TBase<TPermissionsU
               {
                 org.apache.thrift.protocol.TMap _map102 = iprot.readMapBegin();
                 struct.privilegeChanges = new HashMap<String,TPrivilegeChanges>(2*_map102.size);
-                for (int _i103 = 0; _i103 < _map102.size; ++_i103)
+                String _key103;
+                TPrivilegeChanges _val104;
+                for (int _i105 = 0; _i105 < _map102.size; ++_i105)
                 {
-                  String _key104; // required
-                  TPrivilegeChanges _val105; // required
-                  _key104 = iprot.readString();
-                  _val105 = new TPrivilegeChanges();
-                  _val105.read(iprot);
-                  struct.privilegeChanges.put(_key104, _val105);
+                  _key103 = iprot.readString();
+                  _val104 = new TPrivilegeChanges();
+                  _val104.read(iprot);
+                  struct.privilegeChanges.put(_key103, _val104);
                 }
                 iprot.readMapEnd();
               }
@@ -670,14 +674,14 @@ public class TPermissionsUpdate implements org.apache.thrift.TBase<TPermissionsU
               {
                 org.apache.thrift.protocol.TMap _map106 = iprot.readMapBegin();
                 struct.roleChanges = new HashMap<String,TRoleChanges>(2*_map106.size);
-                for (int _i107 = 0; _i107 < _map106.size; ++_i107)
+                String _key107;
+                TRoleChanges _val108;
+                for (int _i109 = 0; _i109 < _map106.size; ++_i109)
                 {
-                  String _key108; // required
-                  TRoleChanges _val109; // required
-                  _key108 = iprot.readString();
-                  _val109 = new TRoleChanges();
-                  _val109.read(iprot);
-                  struct.roleChanges.put(_key108, _val109);
+                  _key107 = iprot.readString();
+                  _val108 = new TRoleChanges();
+                  _val108.read(iprot);
+                  struct.roleChanges.put(_key107, _val108);
                 }
                 iprot.readMapEnd();
               }
@@ -778,28 +782,28 @@ public class TPermissionsUpdate implements org.apache.thrift.TBase<TPermissionsU
       {
         org.apache.thrift.protocol.TMap _map114 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
         struct.privilegeChanges = new HashMap<String,TPrivilegeChanges>(2*_map114.size);
-        for (int _i115 = 0; _i115 < _map114.size; ++_i115)
+        String _key115;
+        TPrivilegeChanges _val116;
+        for (int _i117 = 0; _i117 < _map114.size; ++_i117)
         {
-          String _key116; // required
-          TPrivilegeChanges _val117; // required
-          _key116 = iprot.readString();
-          _val117 = new TPrivilegeChanges();
-          _val117.read(iprot);
-          struct.privilegeChanges.put(_key116, _val117);
+          _key115 = iprot.readString();
+          _val116 = new TPrivilegeChanges();
+          _val116.read(iprot);
+          struct.privilegeChanges.put(_key115, _val116);
         }
       }
       struct.setPrivilegeChangesIsSet(true);
       {
         org.apache.thrift.protocol.TMap _map118 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
         struct.roleChanges = new HashMap<String,TRoleChanges>(2*_map118.size);
-        for (int _i119 = 0; _i119 < _map118.size; ++_i119)
+        String _key119;
+        TRoleChanges _val120;
+        for (int _i121 = 0; _i121 < _map118.size; ++_i121)
         {
-          String _key120; // required
-          TRoleChanges _val121; // required
-          _key120 = iprot.readString();
-          _val121 = new TRoleChanges();
-          _val121.read(iprot);
-          struct.roleChanges.put(_key120, _val121);
+          _key119 = iprot.readString();
+          _val120 = new TRoleChanges();
+          _val120.read(iprot);
+          struct.roleChanges.put(_key119, _val120);
         }
       }
       struct.setRoleChangesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPrivilegeChanges.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPrivilegeChanges.java b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPrivilegeChanges.java
index dc4626e..277118d 100644
--- a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPrivilegeChanges.java
+++ b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPrivilegeChanges.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.hdfs.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TPrivilegeChanges implements org.apache.thrift.TBase<TPrivilegeChanges, TPrivilegeChanges._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TPrivilegeChanges implements org.apache.thrift.TBase<TPrivilegeChanges, TPrivilegeChanges._Fields>, java.io.Serializable, Cloneable, Comparable<TPrivilegeChanges> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPrivilegeChanges");
 
   private static final org.apache.thrift.protocol.TField AUTHZ_OBJ_FIELD_DESC = new org.apache.thrift.protocol.TField("authzObj", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -152,33 +156,11 @@ public class TPrivilegeChanges implements org.apache.thrift.TBase<TPrivilegeChan
       this.authzObj = other.authzObj;
     }
     if (other.isSetAddPrivileges()) {
-      Map<String,String> __this__addPrivileges = new HashMap<String,String>();
-      for (Map.Entry<String, String> other_element : other.addPrivileges.entrySet()) {
-
-        String other_element_key = other_element.getKey();
-        String other_element_value = other_element.getValue();
-
-        String __this__addPrivileges_copy_key = other_element_key;
-
-        String __this__addPrivileges_copy_value = other_element_value;
-
-        __this__addPrivileges.put(__this__addPrivileges_copy_key, __this__addPrivileges_copy_value);
-      }
+      Map<String,String> __this__addPrivileges = new HashMap<String,String>(other.addPrivileges);
       this.addPrivileges = __this__addPrivileges;
     }
     if (other.isSetDelPrivileges()) {
-      Map<String,String> __this__delPrivileges = new HashMap<String,String>();
-      for (Map.Entry<String, String> other_element : other.delPrivileges.entrySet()) {
-
-        String other_element_key = other_element.getKey();
-        String other_element_value = other_element.getValue();
-
-        String __this__delPrivileges_copy_key = other_element_key;
-
-        String __this__delPrivileges_copy_value = other_element_value;
-
-        __this__delPrivileges.put(__this__delPrivileges_copy_key, __this__delPrivileges_copy_value);
-      }
+      Map<String,String> __this__delPrivileges = new HashMap<String,String>(other.delPrivileges);
       this.delPrivileges = __this__delPrivileges;
     }
   }
@@ -391,60 +373,60 @@ public class TPrivilegeChanges implements org.apache.thrift.TBase<TPrivilegeChan
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_authzObj = true && (isSetAuthzObj());
-    builder.append(present_authzObj);
+    list.add(present_authzObj);
     if (present_authzObj)
-      builder.append(authzObj);
+      list.add(authzObj);
 
     boolean present_addPrivileges = true && (isSetAddPrivileges());
-    builder.append(present_addPrivileges);
+    list.add(present_addPrivileges);
     if (present_addPrivileges)
-      builder.append(addPrivileges);
+      list.add(addPrivileges);
 
     boolean present_delPrivileges = true && (isSetDelPrivileges());
-    builder.append(present_delPrivileges);
+    list.add(present_delPrivileges);
     if (present_delPrivileges)
-      builder.append(delPrivileges);
+      list.add(delPrivileges);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TPrivilegeChanges other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TPrivilegeChanges typedOther = (TPrivilegeChanges)other;
 
-    lastComparison = Boolean.valueOf(isSetAuthzObj()).compareTo(typedOther.isSetAuthzObj());
+    lastComparison = Boolean.valueOf(isSetAuthzObj()).compareTo(other.isSetAuthzObj());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthzObj()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzObj, typedOther.authzObj);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzObj, other.authzObj);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAddPrivileges()).compareTo(typedOther.isSetAddPrivileges());
+    lastComparison = Boolean.valueOf(isSetAddPrivileges()).compareTo(other.isSetAddPrivileges());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAddPrivileges()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addPrivileges, typedOther.addPrivileges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addPrivileges, other.addPrivileges);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetDelPrivileges()).compareTo(typedOther.isSetDelPrivileges());
+    lastComparison = Boolean.valueOf(isSetDelPrivileges()).compareTo(other.isSetDelPrivileges());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetDelPrivileges()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delPrivileges, typedOther.delPrivileges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delPrivileges, other.delPrivileges);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -560,13 +542,13 @@ public class TPrivilegeChanges implements org.apache.thrift.TBase<TPrivilegeChan
               {
                 org.apache.thrift.protocol.TMap _map66 = iprot.readMapBegin();
                 struct.addPrivileges = new HashMap<String,String>(2*_map66.size);
-                for (int _i67 = 0; _i67 < _map66.size; ++_i67)
+                String _key67;
+                String _val68;
+                for (int _i69 = 0; _i69 < _map66.size; ++_i69)
                 {
-                  String _key68; // required
-                  String _val69; // required
-                  _key68 = iprot.readString();
-                  _val69 = iprot.readString();
-                  struct.addPrivileges.put(_key68, _val69);
+                  _key67 = iprot.readString();
+                  _val68 = iprot.readString();
+                  struct.addPrivileges.put(_key67, _val68);
                 }
                 iprot.readMapEnd();
               }
@@ -580,13 +562,13 @@ public class TPrivilegeChanges implements org.apache.thrift.TBase<TPrivilegeChan
               {
                 org.apache.thrift.protocol.TMap _map70 = iprot.readMapBegin();
                 struct.delPrivileges = new HashMap<String,String>(2*_map70.size);
-                for (int _i71 = 0; _i71 < _map70.size; ++_i71)
+                String _key71;
+                String _val72;
+                for (int _i73 = 0; _i73 < _map70.size; ++_i73)
                 {
-                  String _key72; // required
-                  String _val73; // required
-                  _key72 = iprot.readString();
-                  _val73 = iprot.readString();
-                  struct.delPrivileges.put(_key72, _val73);
+                  _key71 = iprot.readString();
+                  _val72 = iprot.readString();
+                  struct.delPrivileges.put(_key71, _val72);
                 }
                 iprot.readMapEnd();
               }
@@ -683,26 +665,26 @@ public class TPrivilegeChanges implements org.apache.thrift.TBase<TPrivilegeChan
       {
         org.apache.thrift.protocol.TMap _map78 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.addPrivileges = new HashMap<String,String>(2*_map78.size);
-        for (int _i79 = 0; _i79 < _map78.size; ++_i79)
+        String _key79;
+        String _val80;
+        for (int _i81 = 0; _i81 < _map78.size; ++_i81)
         {
-          String _key80; // required
-          String _val81; // required
-          _key80 = iprot.readString();
-          _val81 = iprot.readString();
-          struct.addPrivileges.put(_key80, _val81);
+          _key79 = iprot.readString();
+          _val80 = iprot.readString();
+          struct.addPrivileges.put(_key79, _val80);
         }
       }
       struct.setAddPrivilegesIsSet(true);
       {
         org.apache.thrift.protocol.TMap _map82 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.delPrivileges = new HashMap<String,String>(2*_map82.size);
-        for (int _i83 = 0; _i83 < _map82.size; ++_i83)
+        String _key83;
+        String _val84;
+        for (int _i85 = 0; _i85 < _map82.size; ++_i85)
         {
-          String _key84; // required
-          String _val85; // required
-          _key84 = iprot.readString();
-          _val85 = iprot.readString();
-          struct.delPrivileges.put(_key84, _val85);
+          _key83 = iprot.readString();
+          _val84 = iprot.readString();
+          struct.delPrivileges.put(_key83, _val84);
         }
       }
       struct.setDelPrivilegesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TRoleChanges.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TRoleChanges.java b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TRoleChanges.java
index 7920872..879f13e 100644
--- a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TRoleChanges.java
+++ b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TRoleChanges.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.hdfs.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TRoleChanges implements org.apache.thrift.TBase<TRoleChanges, TRoleChanges._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TRoleChanges implements org.apache.thrift.TBase<TRoleChanges, TRoleChanges._Fields>, java.io.Serializable, Cloneable, Comparable<TRoleChanges> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRoleChanges");
 
   private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -150,17 +154,11 @@ public class TRoleChanges implements org.apache.thrift.TBase<TRoleChanges, TRole
       this.role = other.role;
     }
     if (other.isSetAddGroups()) {
-      List<String> __this__addGroups = new ArrayList<String>();
-      for (String other_element : other.addGroups) {
-        __this__addGroups.add(other_element);
-      }
+      List<String> __this__addGroups = new ArrayList<String>(other.addGroups);
       this.addGroups = __this__addGroups;
     }
     if (other.isSetDelGroups()) {
-      List<String> __this__delGroups = new ArrayList<String>();
-      for (String other_element : other.delGroups) {
-        __this__delGroups.add(other_element);
-      }
+      List<String> __this__delGroups = new ArrayList<String>(other.delGroups);
       this.delGroups = __this__delGroups;
     }
   }
@@ -381,60 +379,60 @@ public class TRoleChanges implements org.apache.thrift.TBase<TRoleChanges, TRole
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_role = true && (isSetRole());
-    builder.append(present_role);
+    list.add(present_role);
     if (present_role)
-      builder.append(role);
+      list.add(role);
 
     boolean present_addGroups = true && (isSetAddGroups());
-    builder.append(present_addGroups);
+    list.add(present_addGroups);
     if (present_addGroups)
-      builder.append(addGroups);
+      list.add(addGroups);
 
     boolean present_delGroups = true && (isSetDelGroups());
-    builder.append(present_delGroups);
+    list.add(present_delGroups);
     if (present_delGroups)
-      builder.append(delGroups);
+      list.add(delGroups);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TRoleChanges other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TRoleChanges typedOther = (TRoleChanges)other;
 
-    lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
+    lastComparison = Boolean.valueOf(isSetRole()).compareTo(other.isSetRole());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRole()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, other.role);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAddGroups()).compareTo(typedOther.isSetAddGroups());
+    lastComparison = Boolean.valueOf(isSetAddGroups()).compareTo(other.isSetAddGroups());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAddGroups()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addGroups, typedOther.addGroups);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addGroups, other.addGroups);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetDelGroups()).compareTo(typedOther.isSetDelGroups());
+    lastComparison = Boolean.valueOf(isSetDelGroups()).compareTo(other.isSetDelGroups());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetDelGroups()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delGroups, typedOther.delGroups);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delGroups, other.delGroups);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -550,11 +548,11 @@ public class TRoleChanges implements org.apache.thrift.TBase<TRoleChanges, TRole
               {
                 org.apache.thrift.protocol.TList _list86 = iprot.readListBegin();
                 struct.addGroups = new ArrayList<String>(_list86.size);
-                for (int _i87 = 0; _i87 < _list86.size; ++_i87)
+                String _elem87;
+                for (int _i88 = 0; _i88 < _list86.size; ++_i88)
                 {
-                  String _elem88; // required
-                  _elem88 = iprot.readString();
-                  struct.addGroups.add(_elem88);
+                  _elem87 = iprot.readString();
+                  struct.addGroups.add(_elem87);
                 }
                 iprot.readListEnd();
               }
@@ -568,11 +566,11 @@ public class TRoleChanges implements org.apache.thrift.TBase<TRoleChanges, TRole
               {
                 org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
                 struct.delGroups = new ArrayList<String>(_list89.size);
-                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
+                String _elem90;
+                for (int _i91 = 0; _i91 < _list89.size; ++_i91)
                 {
-                  String _elem91; // required
-                  _elem91 = iprot.readString();
-                  struct.delGroups.add(_elem91);
+                  _elem90 = iprot.readString();
+                  struct.delGroups.add(_elem90);
                 }
                 iprot.readListEnd();
               }
@@ -665,22 +663,22 @@ public class TRoleChanges implements org.apache.thrift.TBase<TRoleChanges, TRole
       {
         org.apache.thrift.protocol.TList _list96 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.addGroups = new ArrayList<String>(_list96.size);
-        for (int _i97 = 0; _i97 < _list96.size; ++_i97)
+        String _elem97;
+        for (int _i98 = 0; _i98 < _list96.size; ++_i98)
         {
-          String _elem98; // required
-          _elem98 = iprot.readString();
-          struct.addGroups.add(_elem98);
+          _elem97 = iprot.readString();
+          struct.addGroups.add(_elem97);
         }
       }
       struct.setAddGroupsIsSet(true);
       {
         org.apache.thrift.protocol.TList _list99 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.delGroups = new ArrayList<String>(_list99.size);
-        for (int _i100 = 0; _i100 < _list99.size; ++_i100)
+        String _elem100;
+        for (int _i101 = 0; _i101 < _list99.size; ++_i101)
         {
-          String _elem101; // required
-          _elem101 = iprot.readString();
-          struct.delGroups.add(_elem101);
+          _elem100 = iprot.readString();
+          struct.delGroups.add(_elem100);
         }
       }
       struct.setDelGroupsIsSet(true);


[02/11] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)

Posted by sr...@apache.org.
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesResponse.java
index ad46067..9e8f01b 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TListSentryPrivilegesResponse, TListSentryPrivilegesResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TListSentryPrivilegesResponse, TListSentryPrivilegesResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryPrivilegesResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryPrivilegesResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -108,7 +112,7 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
   }
 
   // isset id assignments
-  private _Fields optionals[] = {_Fields.PRIVILEGES};
+  private static final _Fields optionals[] = {_Fields.PRIVILEGES};
   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);
@@ -139,7 +143,7 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
       this.status = new org.apache.sentry.service.thrift.TSentryResponseStatus(other.status);
     }
     if (other.isSetPrivileges()) {
-      Set<TSentryPrivilege> __this__privileges = new HashSet<TSentryPrivilege>();
+      Set<TSentryPrivilege> __this__privileges = new HashSet<TSentryPrivilege>(other.privileges.size());
       for (TSentryPrivilege other_element : other.privileges) {
         __this__privileges.add(new TSentryPrivilege(other_element));
       }
@@ -302,45 +306,45 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
     boolean present_privileges = true && (isSetPrivileges());
-    builder.append(present_privileges);
+    list.add(present_privileges);
     if (present_privileges)
-      builder.append(privileges);
+      list.add(privileges);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryPrivilegesResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryPrivilegesResponse typedOther = (TListSentryPrivilegesResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges());
+    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivileges()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -446,12 +450,12 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
               {
                 org.apache.thrift.protocol.TSet _set72 = iprot.readSetBegin();
                 struct.privileges = new HashSet<TSentryPrivilege>(2*_set72.size);
-                for (int _i73 = 0; _i73 < _set72.size; ++_i73)
+                TSentryPrivilege _elem73;
+                for (int _i74 = 0; _i74 < _set72.size; ++_i74)
                 {
-                  TSentryPrivilege _elem74; // required
-                  _elem74 = new TSentryPrivilege();
-                  _elem74.read(iprot);
-                  struct.privileges.add(_elem74);
+                  _elem73 = new TSentryPrivilege();
+                  _elem73.read(iprot);
+                  struct.privileges.add(_elem73);
                 }
                 iprot.readSetEnd();
               }
@@ -537,12 +541,12 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
         {
           org.apache.thrift.protocol.TSet _set77 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.privileges = new HashSet<TSentryPrivilege>(2*_set77.size);
-          for (int _i78 = 0; _i78 < _set77.size; ++_i78)
+          TSentryPrivilege _elem78;
+          for (int _i79 = 0; _i79 < _set77.size; ++_i79)
           {
-            TSentryPrivilege _elem79; // required
-            _elem79 = new TSentryPrivilege();
-            _elem79.read(iprot);
-            struct.privileges.add(_elem79);
+            _elem78 = new TSentryPrivilege();
+            _elem78.read(iprot);
+            struct.privileges.add(_elem78);
           }
         }
         struct.setPrivilegesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesForUserRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesForUserRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesForUserRequest.java
index f58775f..9ec6a34 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesForUserRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesForUserRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryRolesForUserRequest implements org.apache.thrift.TBase<TListSentryRolesForUserRequest, TListSentryRolesForUserRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryRolesForUserRequest implements org.apache.thrift.TBase<TListSentryRolesForUserRequest, TListSentryRolesForUserRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryRolesForUserRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryRolesForUserRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -271,7 +275,7 @@ public class TListSentryRolesForUserRequest implements org.apache.thrift.TBase<T
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -345,60 +349,60 @@ public class TListSentryRolesForUserRequest implements org.apache.thrift.TBase<T
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_userName = true && (isSetUserName());
-    builder.append(present_userName);
+    list.add(present_userName);
     if (present_userName)
-      builder.append(userName);
+      list.add(userName);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryRolesForUserRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryRolesForUserRequest typedOther = (TListSentryRolesForUserRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetUserName()).compareTo(typedOther.isSetUserName());
+    lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, typedOther.userName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesRequest.java
index bdab2b7..b4b41eb 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSentryRolesRequest, TListSentryRolesRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSentryRolesRequest, TListSentryRolesRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryRolesRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryRolesRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -115,7 +119,7 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
   // isset id assignments
   private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.GROUP_NAME};
+  private static final _Fields optionals[] = {_Fields.GROUP_NAME};
   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);
@@ -270,7 +274,7 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -344,60 +348,60 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_groupName = true && (isSetGroupName());
-    builder.append(present_groupName);
+    list.add(present_groupName);
     if (present_groupName)
-      builder.append(groupName);
+      list.add(groupName);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryRolesRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryRolesRequest typedOther = (TListSentryRolesRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGroupName()).compareTo(typedOther.isSetGroupName());
+    lastComparison = Boolean.valueOf(isSetGroupName()).compareTo(other.isSetGroupName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroupName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupName, typedOther.groupName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupName, other.groupName);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesResponse.java
index 5a8cff4..26af379 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSentryRolesResponse, TListSentryRolesResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSentryRolesResponse, TListSentryRolesResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryRolesResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryRolesResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -108,7 +112,7 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
   }
 
   // isset id assignments
-  private _Fields optionals[] = {_Fields.ROLES};
+  private static final _Fields optionals[] = {_Fields.ROLES};
   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);
@@ -139,7 +143,7 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
       this.status = new org.apache.sentry.service.thrift.TSentryResponseStatus(other.status);
     }
     if (other.isSetRoles()) {
-      Set<TSentryRole> __this__roles = new HashSet<TSentryRole>();
+      Set<TSentryRole> __this__roles = new HashSet<TSentryRole>(other.roles.size());
       for (TSentryRole other_element : other.roles) {
         __this__roles.add(new TSentryRole(other_element));
       }
@@ -302,45 +306,45 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
     boolean present_roles = true && (isSetRoles());
-    builder.append(present_roles);
+    list.add(present_roles);
     if (present_roles)
-      builder.append(roles);
+      list.add(roles);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryRolesResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryRolesResponse typedOther = (TListSentryRolesResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoles()).compareTo(typedOther.isSetRoles());
+    lastComparison = Boolean.valueOf(isSetRoles()).compareTo(other.isSetRoles());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoles()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roles, typedOther.roles);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roles, other.roles);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -446,12 +450,12 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
               {
                 org.apache.thrift.protocol.TSet _set64 = iprot.readSetBegin();
                 struct.roles = new HashSet<TSentryRole>(2*_set64.size);
-                for (int _i65 = 0; _i65 < _set64.size; ++_i65)
+                TSentryRole _elem65;
+                for (int _i66 = 0; _i66 < _set64.size; ++_i66)
                 {
-                  TSentryRole _elem66; // required
-                  _elem66 = new TSentryRole();
-                  _elem66.read(iprot);
-                  struct.roles.add(_elem66);
+                  _elem65 = new TSentryRole();
+                  _elem65.read(iprot);
+                  struct.roles.add(_elem65);
                 }
                 iprot.readSetEnd();
               }
@@ -537,12 +541,12 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
         {
           org.apache.thrift.protocol.TSet _set69 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.roles = new HashSet<TSentryRole>(2*_set69.size);
-          for (int _i70 = 0; _i70 < _set69.size; ++_i70)
+          TSentryRole _elem70;
+          for (int _i71 = 0; _i71 < _set69.size; ++_i71)
           {
-            TSentryRole _elem71; // required
-            _elem71 = new TSentryRole();
-            _elem71.read(iprot);
-            struct.roles.add(_elem71);
+            _elem70 = new TSentryRole();
+            _elem70.read(iprot);
+            struct.roles.add(_elem70);
           }
         }
         struct.setRolesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TRenamePrivilegesRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TRenamePrivilegesRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TRenamePrivilegesRequest.java
index 989a6c6..8dfa7e0 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TRenamePrivilegesRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TRenamePrivilegesRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRenamePrivilegesRequest, TRenamePrivilegesRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRenamePrivilegesRequest, TRenamePrivilegesRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TRenamePrivilegesRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRenamePrivilegesRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -315,7 +319,7 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -403,75 +407,75 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_oldAuthorizable = true && (isSetOldAuthorizable());
-    builder.append(present_oldAuthorizable);
+    list.add(present_oldAuthorizable);
     if (present_oldAuthorizable)
-      builder.append(oldAuthorizable);
+      list.add(oldAuthorizable);
 
     boolean present_newAuthorizable = true && (isSetNewAuthorizable());
-    builder.append(present_newAuthorizable);
+    list.add(present_newAuthorizable);
     if (present_newAuthorizable)
-      builder.append(newAuthorizable);
+      list.add(newAuthorizable);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TRenamePrivilegesRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TRenamePrivilegesRequest typedOther = (TRenamePrivilegesRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetOldAuthorizable()).compareTo(typedOther.isSetOldAuthorizable());
+    lastComparison = Boolean.valueOf(isSetOldAuthorizable()).compareTo(other.isSetOldAuthorizable());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetOldAuthorizable()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldAuthorizable, typedOther.oldAuthorizable);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldAuthorizable, other.oldAuthorizable);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetNewAuthorizable()).compareTo(typedOther.isSetNewAuthorizable());
+    lastComparison = Boolean.valueOf(isSetNewAuthorizable()).compareTo(other.isSetNewAuthorizable());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetNewAuthorizable()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newAuthorizable, typedOther.newAuthorizable);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newAuthorizable, other.newAuthorizable);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TRenamePrivilegesResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TRenamePrivilegesResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TRenamePrivilegesResponse.java
index 39e7f07..d5dd26a 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TRenamePrivilegesResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TRenamePrivilegesResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TRenamePrivilegesResponse implements org.apache.thrift.TBase<TRenamePrivilegesResponse, TRenamePrivilegesResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TRenamePrivilegesResponse implements org.apache.thrift.TBase<TRenamePrivilegesResponse, TRenamePrivilegesResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TRenamePrivilegesResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRenamePrivilegesResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TRenamePrivilegesResponse implements org.apache.thrift.TBase<TRenam
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TRenamePrivilegesResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TRenamePrivilegesResponse typedOther = (TRenamePrivilegesResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryActiveRoleSet.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryActiveRoleSet.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryActiveRoleSet.java
index 9d96139..2233c70 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryActiveRoleSet.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryActiveRoleSet.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActiveRoleSet, TSentryActiveRoleSet._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActiveRoleSet, TSentryActiveRoleSet._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryActiveRoleSet> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryActiveRoleSet");
 
   private static final org.apache.thrift.protocol.TField ALL_FIELD_DESC = new org.apache.thrift.protocol.TField("all", org.apache.thrift.protocol.TType.BOOL, (short)1);
@@ -142,10 +146,7 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
     __isset_bitfield = other.__isset_bitfield;
     this.all = other.all;
     if (other.isSetRoles()) {
-      Set<String> __this__roles = new HashSet<String>();
-      for (String other_element : other.roles) {
-        __this__roles.add(other_element);
-      }
+      Set<String> __this__roles = new HashSet<String>(other.roles);
       this.roles = __this__roles;
     }
   }
@@ -245,7 +246,7 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case ALL:
-      return Boolean.valueOf(isAll());
+      return isAll();
 
     case ROLES:
       return getRoles();
@@ -305,45 +306,45 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_all = true;
-    builder.append(present_all);
+    list.add(present_all);
     if (present_all)
-      builder.append(all);
+      list.add(all);
 
     boolean present_roles = true && (isSetRoles());
-    builder.append(present_roles);
+    list.add(present_roles);
     if (present_roles)
-      builder.append(roles);
+      list.add(roles);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryActiveRoleSet other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryActiveRoleSet typedOther = (TSentryActiveRoleSet)other;
 
-    lastComparison = Boolean.valueOf(isSetAll()).compareTo(typedOther.isSetAll());
+    lastComparison = Boolean.valueOf(isSetAll()).compareTo(other.isSetAll());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAll()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.all, typedOther.all);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.all, other.all);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoles()).compareTo(typedOther.isSetRoles());
+    lastComparison = Boolean.valueOf(isSetRoles()).compareTo(other.isSetRoles());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoles()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roles, typedOther.roles);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roles, other.roles);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -445,11 +446,11 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
               {
                 org.apache.thrift.protocol.TSet _set80 = iprot.readSetBegin();
                 struct.roles = new HashSet<String>(2*_set80.size);
-                for (int _i81 = 0; _i81 < _set80.size; ++_i81)
+                String _elem81;
+                for (int _i82 = 0; _i82 < _set80.size; ++_i82)
                 {
-                  String _elem82; // required
-                  _elem82 = iprot.readString();
-                  struct.roles.add(_elem82);
+                  _elem81 = iprot.readString();
+                  struct.roles.add(_elem81);
                 }
                 iprot.readSetEnd();
               }
@@ -521,11 +522,11 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
       {
         org.apache.thrift.protocol.TSet _set85 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.roles = new HashSet<String>(2*_set85.size);
-        for (int _i86 = 0; _i86 < _set85.size; ++_i86)
+        String _elem86;
+        for (int _i87 = 0; _i87 < _set85.size; ++_i87)
         {
-          String _elem87; // required
-          _elem87 = iprot.readString();
-          struct.roles.add(_elem87);
+          _elem86 = iprot.readString();
+          struct.roles.add(_elem86);
         }
       }
       struct.setRolesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryAuthorizable.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryAuthorizable.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryAuthorizable.java
index 9923961..2174b42 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryAuthorizable.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryAuthorizable.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryAuthorizable implements org.apache.thrift.TBase<TSentryAuthorizable, TSentryAuthorizable._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryAuthorizable implements org.apache.thrift.TBase<TSentryAuthorizable, TSentryAuthorizable._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryAuthorizable> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryAuthorizable");
 
   private static final org.apache.thrift.protocol.TField SERVER_FIELD_DESC = new org.apache.thrift.protocol.TField("server", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -123,7 +127,7 @@ public class TSentryAuthorizable implements org.apache.thrift.TBase<TSentryAutho
   }
 
   // isset id assignments
-  private _Fields optionals[] = {_Fields.URI,_Fields.DB,_Fields.TABLE,_Fields.COLUMN};
+  private static final _Fields optionals[] = {_Fields.URI,_Fields.DB,_Fields.TABLE,_Fields.COLUMN};
   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);
@@ -450,90 +454,90 @@ public class TSentryAuthorizable implements org.apache.thrift.TBase<TSentryAutho
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_server = true && (isSetServer());
-    builder.append(present_server);
+    list.add(present_server);
     if (present_server)
-      builder.append(server);
+      list.add(server);
 
     boolean present_uri = true && (isSetUri());
-    builder.append(present_uri);
+    list.add(present_uri);
     if (present_uri)
-      builder.append(uri);
+      list.add(uri);
 
     boolean present_db = true && (isSetDb());
-    builder.append(present_db);
+    list.add(present_db);
     if (present_db)
-      builder.append(db);
+      list.add(db);
 
     boolean present_table = true && (isSetTable());
-    builder.append(present_table);
+    list.add(present_table);
     if (present_table)
-      builder.append(table);
+      list.add(table);
 
     boolean present_column = true && (isSetColumn());
-    builder.append(present_column);
+    list.add(present_column);
     if (present_column)
-      builder.append(column);
+      list.add(column);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryAuthorizable other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryAuthorizable typedOther = (TSentryAuthorizable)other;
 
-    lastComparison = Boolean.valueOf(isSetServer()).compareTo(typedOther.isSetServer());
+    lastComparison = Boolean.valueOf(isSetServer()).compareTo(other.isSetServer());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetServer()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.server, typedOther.server);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.server, other.server);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetUri()).compareTo(typedOther.isSetUri());
+    lastComparison = Boolean.valueOf(isSetUri()).compareTo(other.isSetUri());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetUri()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uri, typedOther.uri);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uri, other.uri);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetDb()).compareTo(typedOther.isSetDb());
+    lastComparison = Boolean.valueOf(isSetDb()).compareTo(other.isSetDb());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetDb()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db, typedOther.db);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db, other.db);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable());
+    lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetTable()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
+    lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetColumn()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryConfigValueRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryConfigValueRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryConfigValueRequest.java
index 995cbe2..11cd83a 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryConfigValueRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryConfigValueRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryConfigValueRequest implements org.apache.thrift.TBase<TSentryConfigValueRequest, TSentryConfigValueRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryConfigValueRequest implements org.apache.thrift.TBase<TSentryConfigValueRequest, TSentryConfigValueRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryConfigValueRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryConfigValueRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -115,7 +119,7 @@ public class TSentryConfigValueRequest implements org.apache.thrift.TBase<TSentr
   // isset id assignments
   private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.DEFAULT_VALUE};
+  private static final _Fields optionals[] = {_Fields.DEFAULT_VALUE};
   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);
@@ -270,7 +274,7 @@ public class TSentryConfigValueRequest implements org.apache.thrift.TBase<TSentr
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case PROPERTY_NAME:
       return getPropertyName();
@@ -344,60 +348,60 @@ public class TSentryConfigValueRequest implements org.apache.thrift.TBase<TSentr
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_propertyName = true && (isSetPropertyName());
-    builder.append(present_propertyName);
+    list.add(present_propertyName);
     if (present_propertyName)
-      builder.append(propertyName);
+      list.add(propertyName);
 
     boolean present_defaultValue = true && (isSetDefaultValue());
-    builder.append(present_defaultValue);
+    list.add(present_defaultValue);
     if (present_defaultValue)
-      builder.append(defaultValue);
+      list.add(defaultValue);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryConfigValueRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryConfigValueRequest typedOther = (TSentryConfigValueRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPropertyName()).compareTo(typedOther.isSetPropertyName());
+    lastComparison = Boolean.valueOf(isSetPropertyName()).compareTo(other.isSetPropertyName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPropertyName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.propertyName, typedOther.propertyName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.propertyName, other.propertyName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetDefaultValue()).compareTo(typedOther.isSetDefaultValue());
+    lastComparison = Boolean.valueOf(isSetDefaultValue()).compareTo(other.isSetDefaultValue());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetDefaultValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultValue, typedOther.defaultValue);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultValue, other.defaultValue);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryConfigValueResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryConfigValueResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryConfigValueResponse.java
index e6430e9..441f61e 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryConfigValueResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryConfigValueResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryConfigValueResponse implements org.apache.thrift.TBase<TSentryConfigValueResponse, TSentryConfigValueResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryConfigValueResponse implements org.apache.thrift.TBase<TSentryConfigValueResponse, TSentryConfigValueResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryConfigValueResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryConfigValueResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -108,7 +112,7 @@ public class TSentryConfigValueResponse implements org.apache.thrift.TBase<TSent
   }
 
   // isset id assignments
-  private _Fields optionals[] = {_Fields.VALUE};
+  private static final _Fields optionals[] = {_Fields.VALUE};
   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);
@@ -282,45 +286,45 @@ public class TSentryConfigValueResponse implements org.apache.thrift.TBase<TSent
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
     boolean present_value = true && (isSetValue());
-    builder.append(present_value);
+    list.add(present_value);
     if (present_value)
-      builder.append(value);
+      list.add(value);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryConfigValueResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryConfigValueResponse typedOther = (TSentryConfigValueResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
+    lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryExportMappingDataRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryExportMappingDataRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryExportMappingDataRequest.java
index 3515233..e276b27 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryExportMappingDataRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryExportMappingDataRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryExportMappingDataRequest implements org.apache.thrift.TBase<TSentryExportMappingDataRequest, TSentryExportMappingDataRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryExportMappingDataRequest implements org.apache.thrift.TBase<TSentryExportMappingDataRequest, TSentryExportMappingDataRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryExportMappingDataRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryExportMappingDataRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -115,16 +119,16 @@ public class TSentryExportMappingDataRequest implements org.apache.thrift.TBase<
   // isset id assignments
   private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.OBJECT_PATH};
+  private static final _Fields optionals[] = {_Fields.OBJECT_PATH};
   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.PROTOCOL_VERSION, new org.apache.thrift.meta_data.FieldMetaData("protocol_version", org.apache.thrift.TFieldRequirementType.REQUIRED,
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-    tmpMap.put(_Fields.REQUESTOR_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("requestorUserName", org.apache.thrift.TFieldRequirementType.REQUIRED,
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.OBJECT_PATH, new org.apache.thrift.meta_data.FieldMetaData("objectPath", org.apache.thrift.TFieldRequirementType.OPTIONAL,
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.PROTOCOL_VERSION, new org.apache.thrift.meta_data.FieldMetaData("protocol_version", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+    tmpMap.put(_Fields.REQUESTOR_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("requestorUserName", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.OBJECT_PATH, new org.apache.thrift.meta_data.FieldMetaData("objectPath", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
     metaDataMap = Collections.unmodifiableMap(tmpMap);
     org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TSentryExportMappingDataRequest.class, metaDataMap);
   }
@@ -135,8 +139,8 @@ public class TSentryExportMappingDataRequest implements org.apache.thrift.TBase<
   }
 
   public TSentryExportMappingDataRequest(
-          int protocol_version,
-          String requestorUserName)
+    int protocol_version,
+    String requestorUserName)
   {
     this();
     this.protocol_version = protocol_version;
@@ -240,43 +244,43 @@ public class TSentryExportMappingDataRequest implements org.apache.thrift.TBase<
 
   public void setFieldValue(_Fields field, Object value) {
     switch (field) {
-      case PROTOCOL_VERSION:
-        if (value == null) {
-          unsetProtocol_version();
-        } else {
-          setProtocol_version((Integer)value);
-        }
-        break;
+    case PROTOCOL_VERSION:
+      if (value == null) {
+        unsetProtocol_version();
+      } else {
+        setProtocol_version((Integer)value);
+      }
+      break;
 
-      case REQUESTOR_USER_NAME:
-        if (value == null) {
-          unsetRequestorUserName();
-        } else {
-          setRequestorUserName((String)value);
-        }
-        break;
+    case REQUESTOR_USER_NAME:
+      if (value == null) {
+        unsetRequestorUserName();
+      } else {
+        setRequestorUserName((String)value);
+      }
+      break;
 
-      case OBJECT_PATH:
-        if (value == null) {
-          unsetObjectPath();
-        } else {
-          setObjectPath((String)value);
-        }
-        break;
+    case OBJECT_PATH:
+      if (value == null) {
+        unsetObjectPath();
+      } else {
+        setObjectPath((String)value);
+      }
+      break;
 
     }
   }
 
   public Object getFieldValue(_Fields field) {
     switch (field) {
-      case PROTOCOL_VERSION:
-        return Integer.valueOf(getProtocol_version());
+    case PROTOCOL_VERSION:
+      return getProtocol_version();
 
-      case REQUESTOR_USER_NAME:
-        return getRequestorUserName();
+    case REQUESTOR_USER_NAME:
+      return getRequestorUserName();
 
-      case OBJECT_PATH:
-        return getObjectPath();
+    case OBJECT_PATH:
+      return getObjectPath();
 
     }
     throw new IllegalStateException();
@@ -289,12 +293,12 @@ public class TSentryExportMappingDataRequest implements org.apache.thrift.TBase<
     }
 
     switch (field) {
-      case PROTOCOL_VERSION:
-        return isSetProtocol_version();
-      case REQUESTOR_USER_NAME:
-        return isSetRequestorUserName();
-      case OBJECT_PATH:
-        return isSetObjectPath();
+    case PROTOCOL_VERSION:
+      return isSetProtocol_version();
+    case REQUESTOR_USER_NAME:
+      return isSetRequestorUserName();
+    case OBJECT_PATH:
+      return isSetObjectPath();
     }
     throw new IllegalStateException();
   }
@@ -344,60 +348,60 @@ public class TSentryExportMappingDataRequest implements org.apache.thrift.TBase<
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_objectPath = true && (isSetObjectPath());
-    builder.append(present_objectPath);
+    list.add(present_objectPath);
     if (present_objectPath)
-      builder.append(objectPath);
+      list.add(objectPath);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryExportMappingDataRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryExportMappingDataRequest typedOther = (TSentryExportMappingDataRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetObjectPath()).compareTo(typedOther.isSetObjectPath());
+    lastComparison = Boolean.valueOf(isSetObjectPath()).compareTo(other.isSetObjectPath());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetObjectPath()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectPath, typedOther.objectPath);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectPath, other.objectPath);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -492,7 +496,7 @@ public class TSentryExportMappingDataRequest implements org.apache.thrift.TBase<
       while (true)
       {
         schemeField = iprot.readFieldBegin();
-        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
           break;
         }
         switch (schemeField.id) {
@@ -500,7 +504,7 @@ public class TSentryExportMappingDataRequest implements org.apache.thrift.TBase<
             if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
               struct.protocol_version = iprot.readI32();
               struct.setProtocol_versionIsSet(true);
-            } else {
+            } else { 
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;
@@ -508,7 +512,7 @@ public class TSentryExportMappingDataRequest implements org.apache.thrift.TBase<
             if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
               struct.requestorUserName = iprot.readString();
               struct.setRequestorUserNameIsSet(true);
-            } else {
+            } else { 
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;
@@ -516,7 +520,7 @@ public class TSentryExportMappingDataRequest implements org.apache.thrift.TBase<
             if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
               struct.objectPath = iprot.readString();
               struct.setObjectPathIsSet(true);
-            } else {
+            } else { 
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryExportMappingDataResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryExportMappingDataResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryExportMappingDataResponse.java
index 3809df3..ac8a221 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryExportMappingDataResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryExportMappingDataResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryExportMappingDataResponse implements org.apache.thrift.TBase<TSentryExportMappingDataResponse, TSentryExportMappingDataResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryExportMappingDataResponse implements org.apache.thrift.TBase<TSentryExportMappingDataResponse, TSentryExportMappingDataResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryExportMappingDataResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryExportMappingDataResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -283,45 +287,45 @@ public class TSentryExportMappingDataResponse implements org.apache.thrift.TBase
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
     boolean present_mappingData = true && (isSetMappingData());
-    builder.append(present_mappingData);
+    list.add(present_mappingData);
     if (present_mappingData)
-      builder.append(mappingData);
+      list.add(mappingData);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryExportMappingDataResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryExportMappingDataResponse typedOther = (TSentryExportMappingDataResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetMappingData()).compareTo(typedOther.isSetMappingData());
+    lastComparison = Boolean.valueOf(isSetMappingData()).compareTo(other.isSetMappingData());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetMappingData()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mappingData, typedOther.mappingData);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mappingData, other.mappingData);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryGrantOption.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryGrantOption.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryGrantOption.java
index 856ac21..c056bcc 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryGrantOption.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryGrantOption.java
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated


[05/11] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)

Posted by sr...@apache.org.
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/SentryPolicyService.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/SentryPolicyService.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/SentryPolicyService.java
index 054ae05..521a7db 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/SentryPolicyService.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/SentryPolicyService.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,9 +29,12 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
 public class SentryPolicyService {
 
   public interface Iface {
@@ -75,41 +79,41 @@ public class SentryPolicyService {
 
   public interface AsyncIface {
 
-    public void create_sentry_role(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.create_sentry_role_call> resultHandler) throws org.apache.thrift.TException;
+    public void create_sentry_role(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void drop_sentry_role(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.drop_sentry_role_call> resultHandler) throws org.apache.thrift.TException;
+    public void drop_sentry_role(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_sentry_role_grant_privilege_call> resultHandler) throws org.apache.thrift.TException;
+    public void alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_sentry_role_revoke_privilege_call> resultHandler) throws org.apache.thrift.TException;
+    public void alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_sentry_role_add_groups_call> resultHandler) throws org.apache.thrift.TException;
+    public void alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_sentry_role_delete_groups_call> resultHandler) throws org.apache.thrift.TException;
+    public void alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_sentry_role_add_users(TAlterSentryRoleAddUsersRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_sentry_role_add_users_call> resultHandler) throws org.apache.thrift.TException;
+    public void alter_sentry_role_add_users(TAlterSentryRoleAddUsersRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_sentry_role_delete_users(TAlterSentryRoleDeleteUsersRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_sentry_role_delete_users_call> resultHandler) throws org.apache.thrift.TException;
+    public void alter_sentry_role_delete_users(TAlterSentryRoleDeleteUsersRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void list_sentry_roles_by_group(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.list_sentry_roles_by_group_call> resultHandler) throws org.apache.thrift.TException;
+    public void list_sentry_roles_by_group(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void list_sentry_roles_by_user(TListSentryRolesForUserRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.list_sentry_roles_by_user_call> resultHandler) throws org.apache.thrift.TException;
+    public void list_sentry_roles_by_user(TListSentryRolesForUserRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void list_sentry_privileges_by_role(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.list_sentry_privileges_by_role_call> resultHandler) throws org.apache.thrift.TException;
+    public void list_sentry_privileges_by_role(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.list_sentry_privileges_for_provider_call> resultHandler) throws org.apache.thrift.TException;
+    public void list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void drop_sentry_privilege(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.drop_sentry_privilege_call> resultHandler) throws org.apache.thrift.TException;
+    public void drop_sentry_privilege(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void rename_sentry_privilege(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.rename_sentry_privilege_call> resultHandler) throws org.apache.thrift.TException;
+    public void rename_sentry_privilege(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.list_sentry_privileges_by_authorizable_call> resultHandler) throws org.apache.thrift.TException;
+    public void list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void get_sentry_config_value(TSentryConfigValueRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_sentry_config_value_call> resultHandler) throws org.apache.thrift.TException;
+    public void get_sentry_config_value(TSentryConfigValueRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void export_sentry_mapping_data(TSentryExportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.export_sentry_mapping_data_call> resultHandler) throws org.apache.thrift.TException;
+    public void export_sentry_mapping_data(TSentryExportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void import_sentry_mapping_data(TSentryImportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.import_sentry_mapping_data_call> resultHandler) throws org.apache.thrift.TException;
+    public void import_sentry_mapping_data(TSentryImportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
   }
 
@@ -565,7 +569,7 @@ public class SentryPolicyService {
       super(protocolFactory, clientManager, transport);
     }
 
-    public void create_sentry_role(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback<create_sentry_role_call> resultHandler) throws org.apache.thrift.TException {
+    public void create_sentry_role(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       create_sentry_role_call method_call = new create_sentry_role_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -574,7 +578,7 @@ public class SentryPolicyService {
 
     public static class create_sentry_role_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TCreateSentryRoleRequest request;
-      public create_sentry_role_call(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback<create_sentry_role_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public create_sentry_role_call(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -597,7 +601,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void drop_sentry_role(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback<drop_sentry_role_call> resultHandler) throws org.apache.thrift.TException {
+    public void drop_sentry_role(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       drop_sentry_role_call method_call = new drop_sentry_role_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -606,7 +610,7 @@ public class SentryPolicyService {
 
     public static class drop_sentry_role_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TDropSentryRoleRequest request;
-      public drop_sentry_role_call(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback<drop_sentry_role_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public drop_sentry_role_call(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -629,7 +633,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_grant_privilege_call> resultHandler) throws org.apache.thrift.TException {
+    public void alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       alter_sentry_role_grant_privilege_call method_call = new alter_sentry_role_grant_privilege_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -638,7 +642,7 @@ public class SentryPolicyService {
 
     public static class alter_sentry_role_grant_privilege_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TAlterSentryRoleGrantPrivilegeRequest request;
-      public alter_sentry_role_grant_privilege_call(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_grant_privilege_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public alter_sentry_role_grant_privilege_call(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -661,7 +665,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_revoke_privilege_call> resultHandler) throws org.apache.thrift.TException {
+    public void alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       alter_sentry_role_revoke_privilege_call method_call = new alter_sentry_role_revoke_privilege_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -670,7 +674,7 @@ public class SentryPolicyService {
 
     public static class alter_sentry_role_revoke_privilege_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TAlterSentryRoleRevokePrivilegeRequest request;
-      public alter_sentry_role_revoke_privilege_call(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_revoke_privilege_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public alter_sentry_role_revoke_privilege_call(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -693,7 +697,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_add_groups_call> resultHandler) throws org.apache.thrift.TException {
+    public void alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       alter_sentry_role_add_groups_call method_call = new alter_sentry_role_add_groups_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -702,7 +706,7 @@ public class SentryPolicyService {
 
     public static class alter_sentry_role_add_groups_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TAlterSentryRoleAddGroupsRequest request;
-      public alter_sentry_role_add_groups_call(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_add_groups_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public alter_sentry_role_add_groups_call(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -725,7 +729,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_delete_groups_call> resultHandler) throws org.apache.thrift.TException {
+    public void alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       alter_sentry_role_delete_groups_call method_call = new alter_sentry_role_delete_groups_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -734,7 +738,7 @@ public class SentryPolicyService {
 
     public static class alter_sentry_role_delete_groups_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TAlterSentryRoleDeleteGroupsRequest request;
-      public alter_sentry_role_delete_groups_call(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_delete_groups_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public alter_sentry_role_delete_groups_call(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -757,7 +761,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void alter_sentry_role_add_users(TAlterSentryRoleAddUsersRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_add_users_call> resultHandler) throws org.apache.thrift.TException {
+    public void alter_sentry_role_add_users(TAlterSentryRoleAddUsersRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       alter_sentry_role_add_users_call method_call = new alter_sentry_role_add_users_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -766,7 +770,7 @@ public class SentryPolicyService {
 
     public static class alter_sentry_role_add_users_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TAlterSentryRoleAddUsersRequest request;
-      public alter_sentry_role_add_users_call(TAlterSentryRoleAddUsersRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_add_users_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public alter_sentry_role_add_users_call(TAlterSentryRoleAddUsersRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -789,7 +793,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void alter_sentry_role_delete_users(TAlterSentryRoleDeleteUsersRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_delete_users_call> resultHandler) throws org.apache.thrift.TException {
+    public void alter_sentry_role_delete_users(TAlterSentryRoleDeleteUsersRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       alter_sentry_role_delete_users_call method_call = new alter_sentry_role_delete_users_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -798,7 +802,7 @@ public class SentryPolicyService {
 
     public static class alter_sentry_role_delete_users_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TAlterSentryRoleDeleteUsersRequest request;
-      public alter_sentry_role_delete_users_call(TAlterSentryRoleDeleteUsersRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_delete_users_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public alter_sentry_role_delete_users_call(TAlterSentryRoleDeleteUsersRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -821,7 +825,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void list_sentry_roles_by_group(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_roles_by_group_call> resultHandler) throws org.apache.thrift.TException {
+    public void list_sentry_roles_by_group(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       list_sentry_roles_by_group_call method_call = new list_sentry_roles_by_group_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -830,7 +834,7 @@ public class SentryPolicyService {
 
     public static class list_sentry_roles_by_group_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TListSentryRolesRequest request;
-      public list_sentry_roles_by_group_call(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_roles_by_group_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public list_sentry_roles_by_group_call(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -853,7 +857,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void list_sentry_roles_by_user(TListSentryRolesForUserRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_roles_by_user_call> resultHandler) throws org.apache.thrift.TException {
+    public void list_sentry_roles_by_user(TListSentryRolesForUserRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       list_sentry_roles_by_user_call method_call = new list_sentry_roles_by_user_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -862,7 +866,7 @@ public class SentryPolicyService {
 
     public static class list_sentry_roles_by_user_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TListSentryRolesForUserRequest request;
-      public list_sentry_roles_by_user_call(TListSentryRolesForUserRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_roles_by_user_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public list_sentry_roles_by_user_call(TListSentryRolesForUserRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -885,7 +889,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void list_sentry_privileges_by_role(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_privileges_by_role_call> resultHandler) throws org.apache.thrift.TException {
+    public void list_sentry_privileges_by_role(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       list_sentry_privileges_by_role_call method_call = new list_sentry_privileges_by_role_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -894,7 +898,7 @@ public class SentryPolicyService {
 
     public static class list_sentry_privileges_by_role_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TListSentryPrivilegesRequest request;
-      public list_sentry_privileges_by_role_call(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_privileges_by_role_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public list_sentry_privileges_by_role_call(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -917,7 +921,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_privileges_for_provider_call> resultHandler) throws org.apache.thrift.TException {
+    public void list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       list_sentry_privileges_for_provider_call method_call = new list_sentry_privileges_for_provider_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -926,7 +930,7 @@ public class SentryPolicyService {
 
     public static class list_sentry_privileges_for_provider_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TListSentryPrivilegesForProviderRequest request;
-      public list_sentry_privileges_for_provider_call(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_privileges_for_provider_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public list_sentry_privileges_for_provider_call(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -949,7 +953,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void drop_sentry_privilege(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<drop_sentry_privilege_call> resultHandler) throws org.apache.thrift.TException {
+    public void drop_sentry_privilege(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       drop_sentry_privilege_call method_call = new drop_sentry_privilege_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -958,7 +962,7 @@ public class SentryPolicyService {
 
     public static class drop_sentry_privilege_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TDropPrivilegesRequest request;
-      public drop_sentry_privilege_call(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<drop_sentry_privilege_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public drop_sentry_privilege_call(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -981,7 +985,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void rename_sentry_privilege(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<rename_sentry_privilege_call> resultHandler) throws org.apache.thrift.TException {
+    public void rename_sentry_privilege(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       rename_sentry_privilege_call method_call = new rename_sentry_privilege_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -990,7 +994,7 @@ public class SentryPolicyService {
 
     public static class rename_sentry_privilege_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TRenamePrivilegesRequest request;
-      public rename_sentry_privilege_call(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<rename_sentry_privilege_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public rename_sentry_privilege_call(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -1013,7 +1017,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_privileges_by_authorizable_call> resultHandler) throws org.apache.thrift.TException {
+    public void list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       list_sentry_privileges_by_authorizable_call method_call = new list_sentry_privileges_by_authorizable_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -1022,7 +1026,7 @@ public class SentryPolicyService {
 
     public static class list_sentry_privileges_by_authorizable_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TListSentryPrivilegesByAuthRequest request;
-      public list_sentry_privileges_by_authorizable_call(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_privileges_by_authorizable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public list_sentry_privileges_by_authorizable_call(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -1045,7 +1049,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void get_sentry_config_value(TSentryConfigValueRequest request, org.apache.thrift.async.AsyncMethodCallback<get_sentry_config_value_call> resultHandler) throws org.apache.thrift.TException {
+    public void get_sentry_config_value(TSentryConfigValueRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       get_sentry_config_value_call method_call = new get_sentry_config_value_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -1054,7 +1058,7 @@ public class SentryPolicyService {
 
     public static class get_sentry_config_value_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TSentryConfigValueRequest request;
-      public get_sentry_config_value_call(TSentryConfigValueRequest request, org.apache.thrift.async.AsyncMethodCallback<get_sentry_config_value_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public get_sentry_config_value_call(TSentryConfigValueRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -1077,7 +1081,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void export_sentry_mapping_data(TSentryExportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback<export_sentry_mapping_data_call> resultHandler) throws org.apache.thrift.TException {
+    public void export_sentry_mapping_data(TSentryExportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       export_sentry_mapping_data_call method_call = new export_sentry_mapping_data_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -1086,7 +1090,7 @@ public class SentryPolicyService {
 
     public static class export_sentry_mapping_data_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TSentryExportMappingDataRequest request;
-      public export_sentry_mapping_data_call(TSentryExportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback<export_sentry_mapping_data_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public export_sentry_mapping_data_call(TSentryExportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -1109,7 +1113,7 @@ public class SentryPolicyService {
       }
     }
 
-    public void import_sentry_mapping_data(TSentryImportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback<import_sentry_mapping_data_call> resultHandler) throws org.apache.thrift.TException {
+    public void import_sentry_mapping_data(TSentryImportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       import_sentry_mapping_data_call method_call = new import_sentry_mapping_data_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -1118,7 +1122,7 @@ public class SentryPolicyService {
 
     public static class import_sentry_mapping_data_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TSentryImportMappingDataRequest request;
-      public import_sentry_mapping_data_call(TSentryImportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback<import_sentry_mapping_data_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public import_sentry_mapping_data_call(TSentryImportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -1537,7 +1541,959 @@ public class SentryPolicyService {
 
   }
 
-  public static class create_sentry_role_args implements org.apache.thrift.TBase<create_sentry_role_args, create_sentry_role_args._Fields>, java.io.Serializable, Cloneable   {
+  public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
+    private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
+    public AsyncProcessor(I iface) {
+      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
+    }
+
+    protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
+      super(iface, getProcessMap(processMap));
+    }
+
+    private static <I extends AsyncIface> Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase,?>> getProcessMap(Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
+      processMap.put("create_sentry_role", new create_sentry_role());
+      processMap.put("drop_sentry_role", new drop_sentry_role());
+      processMap.put("alter_sentry_role_grant_privilege", new alter_sentry_role_grant_privilege());
+      processMap.put("alter_sentry_role_revoke_privilege", new alter_sentry_role_revoke_privilege());
+      processMap.put("alter_sentry_role_add_groups", new alter_sentry_role_add_groups());
+      processMap.put("alter_sentry_role_delete_groups", new alter_sentry_role_delete_groups());
+      processMap.put("alter_sentry_role_add_users", new alter_sentry_role_add_users());
+      processMap.put("alter_sentry_role_delete_users", new alter_sentry_role_delete_users());
+      processMap.put("list_sentry_roles_by_group", new list_sentry_roles_by_group());
+      processMap.put("list_sentry_roles_by_user", new list_sentry_roles_by_user());
+      processMap.put("list_sentry_privileges_by_role", new list_sentry_privileges_by_role());
+      processMap.put("list_sentry_privileges_for_provider", new list_sentry_privileges_for_provider());
+      processMap.put("drop_sentry_privilege", new drop_sentry_privilege());
+      processMap.put("rename_sentry_privilege", new rename_sentry_privilege());
+      processMap.put("list_sentry_privileges_by_authorizable", new list_sentry_privileges_by_authorizable());
+      processMap.put("get_sentry_config_value", new get_sentry_config_value());
+      processMap.put("export_sentry_mapping_data", new export_sentry_mapping_data());
+      processMap.put("import_sentry_mapping_data", new import_sentry_mapping_data());
+      return processMap;
+    }
+
+    public static class create_sentry_role<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, create_sentry_role_args, TCreateSentryRoleResponse> {
+      public create_sentry_role() {
+        super("create_sentry_role");
+      }
+
+      public create_sentry_role_args getEmptyArgsInstance() {
+        return new create_sentry_role_args();
+      }
+
+      public AsyncMethodCallback<TCreateSentryRoleResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TCreateSentryRoleResponse>() { 
+          public void onComplete(TCreateSentryRoleResponse o) {
+            create_sentry_role_result result = new create_sentry_role_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            create_sentry_role_result result = new create_sentry_role_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, create_sentry_role_args args, org.apache.thrift.async.AsyncMethodCallback<TCreateSentryRoleResponse> resultHandler) throws TException {
+        iface.create_sentry_role(args.request,resultHandler);
+      }
+    }
+
+    public static class drop_sentry_role<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, drop_sentry_role_args, TDropSentryRoleResponse> {
+      public drop_sentry_role() {
+        super("drop_sentry_role");
+      }
+
+      public drop_sentry_role_args getEmptyArgsInstance() {
+        return new drop_sentry_role_args();
+      }
+
+      public AsyncMethodCallback<TDropSentryRoleResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TDropSentryRoleResponse>() { 
+          public void onComplete(TDropSentryRoleResponse o) {
+            drop_sentry_role_result result = new drop_sentry_role_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            drop_sentry_role_result result = new drop_sentry_role_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, drop_sentry_role_args args, org.apache.thrift.async.AsyncMethodCallback<TDropSentryRoleResponse> resultHandler) throws TException {
+        iface.drop_sentry_role(args.request,resultHandler);
+      }
+    }
+
+    public static class alter_sentry_role_grant_privilege<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_grant_privilege_args, TAlterSentryRoleGrantPrivilegeResponse> {
+      public alter_sentry_role_grant_privilege() {
+        super("alter_sentry_role_grant_privilege");
+      }
+
+      public alter_sentry_role_grant_privilege_args getEmptyArgsInstance() {
+        return new alter_sentry_role_grant_privilege_args();
+      }
+
+      public AsyncMethodCallback<TAlterSentryRoleGrantPrivilegeResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TAlterSentryRoleGrantPrivilegeResponse>() { 
+          public void onComplete(TAlterSentryRoleGrantPrivilegeResponse o) {
+            alter_sentry_role_grant_privilege_result result = new alter_sentry_role_grant_privilege_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            alter_sentry_role_grant_privilege_result result = new alter_sentry_role_grant_privilege_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, alter_sentry_role_grant_privilege_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleGrantPrivilegeResponse> resultHandler) throws TException {
+        iface.alter_sentry_role_grant_privilege(args.request,resultHandler);
+      }
+    }
+
+    public static class alter_sentry_role_revoke_privilege<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_revoke_privilege_args, TAlterSentryRoleRevokePrivilegeResponse> {
+      public alter_sentry_role_revoke_privilege() {
+        super("alter_sentry_role_revoke_privilege");
+      }
+
+      public alter_sentry_role_revoke_privilege_args getEmptyArgsInstance() {
+        return new alter_sentry_role_revoke_privilege_args();
+      }
+
+      public AsyncMethodCallback<TAlterSentryRoleRevokePrivilegeResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TAlterSentryRoleRevokePrivilegeResponse>() { 
+          public void onComplete(TAlterSentryRoleRevokePrivilegeResponse o) {
+            alter_sentry_role_revoke_privilege_result result = new alter_sentry_role_revoke_privilege_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            alter_sentry_role_revoke_privilege_result result = new alter_sentry_role_revoke_privilege_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, alter_sentry_role_revoke_privilege_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleRevokePrivilegeResponse> resultHandler) throws TException {
+        iface.alter_sentry_role_revoke_privilege(args.request,resultHandler);
+      }
+    }
+
+    public static class alter_sentry_role_add_groups<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_add_groups_args, TAlterSentryRoleAddGroupsResponse> {
+      public alter_sentry_role_add_groups() {
+        super("alter_sentry_role_add_groups");
+      }
+
+      public alter_sentry_role_add_groups_args getEmptyArgsInstance() {
+        return new alter_sentry_role_add_groups_args();
+      }
+
+      public AsyncMethodCallback<TAlterSentryRoleAddGroupsResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TAlterSentryRoleAddGroupsResponse>() { 
+          public void onComplete(TAlterSentryRoleAddGroupsResponse o) {
+            alter_sentry_role_add_groups_result result = new alter_sentry_role_add_groups_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            alter_sentry_role_add_groups_result result = new alter_sentry_role_add_groups_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, alter_sentry_role_add_groups_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleAddGroupsResponse> resultHandler) throws TException {
+        iface.alter_sentry_role_add_groups(args.request,resultHandler);
+      }
+    }
+
+    public static class alter_sentry_role_delete_groups<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_delete_groups_args, TAlterSentryRoleDeleteGroupsResponse> {
+      public alter_sentry_role_delete_groups() {
+        super("alter_sentry_role_delete_groups");
+      }
+
+      public alter_sentry_role_delete_groups_args getEmptyArgsInstance() {
+        return new alter_sentry_role_delete_groups_args();
+      }
+
+      public AsyncMethodCallback<TAlterSentryRoleDeleteGroupsResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TAlterSentryRoleDeleteGroupsResponse>() { 
+          public void onComplete(TAlterSentryRoleDeleteGroupsResponse o) {
+            alter_sentry_role_delete_groups_result result = new alter_sentry_role_delete_groups_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            alter_sentry_role_delete_groups_result result = new alter_sentry_role_delete_groups_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, alter_sentry_role_delete_groups_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleDeleteGroupsResponse> resultHandler) throws TException {
+        iface.alter_sentry_role_delete_groups(args.request,resultHandler);
+      }
+    }
+
+    public static class alter_sentry_role_add_users<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_add_users_args, TAlterSentryRoleAddUsersResponse> {
+      public alter_sentry_role_add_users() {
+        super("alter_sentry_role_add_users");
+      }
+
+      public alter_sentry_role_add_users_args getEmptyArgsInstance() {
+        return new alter_sentry_role_add_users_args();
+      }
+
+      public AsyncMethodCallback<TAlterSentryRoleAddUsersResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TAlterSentryRoleAddUsersResponse>() { 
+          public void onComplete(TAlterSentryRoleAddUsersResponse o) {
+            alter_sentry_role_add_users_result result = new alter_sentry_role_add_users_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            alter_sentry_role_add_users_result result = new alter_sentry_role_add_users_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, alter_sentry_role_add_users_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleAddUsersResponse> resultHandler) throws TException {
+        iface.alter_sentry_role_add_users(args.request,resultHandler);
+      }
+    }
+
+    public static class alter_sentry_role_delete_users<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_delete_users_args, TAlterSentryRoleDeleteUsersResponse> {
+      public alter_sentry_role_delete_users() {
+        super("alter_sentry_role_delete_users");
+      }
+
+      public alter_sentry_role_delete_users_args getEmptyArgsInstance() {
+        return new alter_sentry_role_delete_users_args();
+      }
+
+      public AsyncMethodCallback<TAlterSentryRoleDeleteUsersResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TAlterSentryRoleDeleteUsersResponse>() { 
+          public void onComplete(TAlterSentryRoleDeleteUsersResponse o) {
+            alter_sentry_role_delete_users_result result = new alter_sentry_role_delete_users_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            alter_sentry_role_delete_users_result result = new alter_sentry_role_delete_users_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, alter_sentry_role_delete_users_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleDeleteUsersResponse> resultHandler) throws TException {
+        iface.alter_sentry_role_delete_users(args.request,resultHandler);
+      }
+    }
+
+    public static class list_sentry_roles_by_group<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_roles_by_group_args, TListSentryRolesResponse> {
+      public list_sentry_roles_by_group() {
+        super("list_sentry_roles_by_group");
+      }
+
+      public list_sentry_roles_by_group_args getEmptyArgsInstance() {
+        return new list_sentry_roles_by_group_args();
+      }
+
+      public AsyncMethodCallback<TListSentryRolesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TListSentryRolesResponse>() { 
+          public void onComplete(TListSentryRolesResponse o) {
+            list_sentry_roles_by_group_result result = new list_sentry_roles_by_group_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            list_sentry_roles_by_group_result result = new list_sentry_roles_by_group_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, list_sentry_roles_by_group_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryRolesResponse> resultHandler) throws TException {
+        iface.list_sentry_roles_by_group(args.request,resultHandler);
+      }
+    }
+
+    public static class list_sentry_roles_by_user<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_roles_by_user_args, TListSentryRolesResponse> {
+      public list_sentry_roles_by_user() {
+        super("list_sentry_roles_by_user");
+      }
+
+      public list_sentry_roles_by_user_args getEmptyArgsInstance() {
+        return new list_sentry_roles_by_user_args();
+      }
+
+      public AsyncMethodCallback<TListSentryRolesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TListSentryRolesResponse>() { 
+          public void onComplete(TListSentryRolesResponse o) {
+            list_sentry_roles_by_user_result result = new list_sentry_roles_by_user_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            list_sentry_roles_by_user_result result = new list_sentry_roles_by_user_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, list_sentry_roles_by_user_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryRolesResponse> resultHandler) throws TException {
+        iface.list_sentry_roles_by_user(args.request,resultHandler);
+      }
+    }
+
+    public static class list_sentry_privileges_by_role<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_privileges_by_role_args, TListSentryPrivilegesResponse> {
+      public list_sentry_privileges_by_role() {
+        super("list_sentry_privileges_by_role");
+      }
+
+      public list_sentry_privileges_by_role_args getEmptyArgsInstance() {
+        return new list_sentry_privileges_by_role_args();
+      }
+
+      public AsyncMethodCallback<TListSentryPrivilegesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TListSentryPrivilegesResponse>() { 
+          public void onComplete(TListSentryPrivilegesResponse o) {
+            list_sentry_privileges_by_role_result result = new list_sentry_privileges_by_role_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            list_sentry_privileges_by_role_result result = new list_sentry_privileges_by_role_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, list_sentry_privileges_by_role_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryPrivilegesResponse> resultHandler) throws TException {
+        iface.list_sentry_privileges_by_role(args.request,resultHandler);
+      }
+    }
+
+    public static class list_sentry_privileges_for_provider<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_privileges_for_provider_args, TListSentryPrivilegesForProviderResponse> {
+      public list_sentry_privileges_for_provider() {
+        super("list_sentry_privileges_for_provider");
+      }
+
+      public list_sentry_privileges_for_provider_args getEmptyArgsInstance() {
+        return new list_sentry_privileges_for_provider_args();
+      }
+
+      public AsyncMethodCallback<TListSentryPrivilegesForProviderResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TListSentryPrivilegesForProviderResponse>() { 
+          public void onComplete(TListSentryPrivilegesForProviderResponse o) {
+            list_sentry_privileges_for_provider_result result = new list_sentry_privileges_for_provider_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            list_sentry_privileges_for_provider_result result = new list_sentry_privileges_for_provider_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, list_sentry_privileges_for_provider_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryPrivilegesForProviderResponse> resultHandler) throws TException {
+        iface.list_sentry_privileges_for_provider(args.request,resultHandler);
+      }
+    }
+
+    public static class drop_sentry_privilege<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, drop_sentry_privilege_args, TDropPrivilegesResponse> {
+      public drop_sentry_privilege() {
+        super("drop_sentry_privilege");
+      }
+
+      public drop_sentry_privilege_args getEmptyArgsInstance() {
+        return new drop_sentry_privilege_args();
+      }
+
+      public AsyncMethodCallback<TDropPrivilegesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TDropPrivilegesResponse>() { 
+          public void onComplete(TDropPrivilegesResponse o) {
+            drop_sentry_privilege_result result = new drop_sentry_privilege_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            drop_sentry_privilege_result result = new drop_sentry_privilege_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, drop_sentry_privilege_args args, org.apache.thrift.async.AsyncMethodCallback<TDropPrivilegesResponse> resultHandler) throws TException {
+        iface.drop_sentry_privilege(args.request,resultHandler);
+      }
+    }
+
+    public static class rename_sentry_privilege<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, rename_sentry_privilege_args, TRenamePrivilegesResponse> {
+      public rename_sentry_privilege() {
+        super("rename_sentry_privilege");
+      }
+
+      public rename_sentry_privilege_args getEmptyArgsInstance() {
+        return new rename_sentry_privilege_args();
+      }
+
+      public AsyncMethodCallback<TRenamePrivilegesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TRenamePrivilegesResponse>() { 
+          public void onComplete(TRenamePrivilegesResponse o) {
+            rename_sentry_privilege_result result = new rename_sentry_privilege_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            rename_sentry_privilege_result result = new rename_sentry_privilege_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, rename_sentry_privilege_args args, org.apache.thrift.async.AsyncMethodCallback<TRenamePrivilegesResponse> resultHandler) throws TException {
+        iface.rename_sentry_privilege(args.request,resultHandler);
+      }
+    }
+
+    public static class list_sentry_privileges_by_authorizable<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_privileges_by_authorizable_args, TListSentryPrivilegesByAuthResponse> {
+      public list_sentry_privileges_by_authorizable() {
+        super("list_sentry_privileges_by_authorizable");
+      }
+
+      public list_sentry_privileges_by_authorizable_args getEmptyArgsInstance() {
+        return new list_sentry_privileges_by_authorizable_args();
+      }
+
+      public AsyncMethodCallback<TListSentryPrivilegesByAuthResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TListSentryPrivilegesByAuthResponse>() { 
+          public void onComplete(TListSentryPrivilegesByAuthResponse o) {
+            list_sentry_privileges_by_authorizable_result result = new list_sentry_privileges_by_authorizable_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            list_sentry_privileges_by_authorizable_result result = new list_sentry_privileges_by_authorizable_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, list_sentry_privileges_by_authorizable_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryPrivilegesByAuthResponse> resultHandler) throws TException {
+        iface.list_sentry_privileges_by_authorizable(args.request,resultHandler);
+      }
+    }
+
+    public static class get_sentry_config_value<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_sentry_config_value_args, TSentryConfigValueResponse> {
+      public get_sentry_config_value() {
+        super("get_sentry_config_value");
+      }
+
+      public get_sentry_config_value_args getEmptyArgsInstance() {
+        return new get_sentry_config_value_args();
+      }
+
+      public AsyncMethodCallback<TSentryConfigValueResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TSentryConfigValueResponse>() { 
+          public void onComplete(TSentryConfigValueResponse o) {
+            get_sentry_config_value_result result = new get_sentry_config_value_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            get_sentry_config_value_result result = new get_sentry_config_value_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, get_sentry_config_value_args args, org.apache.thrift.async.AsyncMethodCallback<TSentryConfigValueResponse> resultHandler) throws TException {
+        iface.get_sentry_config_value(args.request,resultHandler);
+      }
+    }
+
+    public static class export_sentry_mapping_data<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, export_sentry_mapping_data_args, TSentryExportMappingDataResponse> {
+      public export_sentry_mapping_data() {
+        super("export_sentry_mapping_data");
+      }
+
+      public export_sentry_mapping_data_args getEmptyArgsInstance() {
+        return new export_sentry_mapping_data_args();
+      }
+
+      public AsyncMethodCallback<TSentryExportMappingDataResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TSentryExportMappingDataResponse>() { 
+          public void onComplete(TSentryExportMappingDataResponse o) {
+            export_sentry_mapping_data_result result = new export_sentry_mapping_data_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            export_sentry_mapping_data_result result = new export_sentry_mapping_data_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, export_sentry_mapping_data_args args, org.apache.thrift.async.AsyncMethodCallback<TSentryExportMappingDataResponse> resultHandler) throws TException {
+        iface.export_sentry_mapping_data(args.request,resultHandler);
+      }
+    }
+
+    public static class import_sentry_mapping_data<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, import_sentry_mapping_data_args, TSentryImportMappingDataResponse> {
+      public import_sentry_mapping_data() {
+        super("import_sentry_mapping_data");
+      }
+
+      public import_sentry_mapping_data_args getEmptyArgsInstance() {
+        return new import_sentry_mapping_data_args();
+      }
+
+      public AsyncMethodCallback<TSentryImportMappingDataResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TSentryImportMappingDataResponse>() { 
+          public void onComplete(TSentryImportMappingDataResponse o) {
+            import_sentry_mapping_data_result result = new import_sentry_mapping_data_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            import_sentry_mapping_data_result result = new import_sentry_mapping_data_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, import_sentry_mapping_data_args args, org.apache.thrift.async.AsyncMethodCallback<TSentryImportMappingDataResponse> resultHandler) throws TException {
+        iface.import_sentry_mapping_data(args.request,resultHandler);
+      }
+    }
+
+  }
+
+  public static class create_sentry_role_args implements org.apache.thrift.TBase<create_sentry_role_args, create_sentry_role_args._Fields>, java.io.Serializable, Cloneable, Comparable<create_sentry_role_args>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_sentry_role_args");
 
     private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -1731,30 +2687,30 @@ public class SentryPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_request = true && (isSetRequest());
-      builder.append(present_request);
+      list.add(present_request);
       if (present_request)
-        builder.append(request);
+        list.add(request);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(create_sentry_role_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      create_sentry_role_args typedOther = (create_sentry_role_args)other;
 
-      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest());
+      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetRequest()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -1900,7 +2856,7 @@ public class SentryPolicyService {
 
   }
 
-  public static class create_sentry_role_result implements org.apache.thrift.TBase<creat

<TRUNCATED>

[06/11] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)

Posted by sr...@apache.org.
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesRequest.java
index 6b2ec0a..22b5133 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRenamePrivilegesRequest, TRenamePrivilegesRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRenamePrivilegesRequest, TRenamePrivilegesRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TRenamePrivilegesRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRenamePrivilegesRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -190,14 +194,14 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
       this.serviceName = other.serviceName;
     }
     if (other.isSetOldAuthorizables()) {
-      List<TAuthorizable> __this__oldAuthorizables = new ArrayList<TAuthorizable>();
+      List<TAuthorizable> __this__oldAuthorizables = new ArrayList<TAuthorizable>(other.oldAuthorizables.size());
       for (TAuthorizable other_element : other.oldAuthorizables) {
         __this__oldAuthorizables.add(new TAuthorizable(other_element));
       }
       this.oldAuthorizables = __this__oldAuthorizables;
     }
     if (other.isSetNewAuthorizables()) {
-      List<TAuthorizable> __this__newAuthorizables = new ArrayList<TAuthorizable>();
+      List<TAuthorizable> __this__newAuthorizables = new ArrayList<TAuthorizable>(other.newAuthorizables.size());
       for (TAuthorizable other_element : other.newAuthorizables) {
         __this__newAuthorizables.add(new TAuthorizable(other_element));
       }
@@ -443,7 +447,7 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -559,105 +563,105 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
     boolean present_serviceName = true && (isSetServiceName());
-    builder.append(present_serviceName);
+    list.add(present_serviceName);
     if (present_serviceName)
-      builder.append(serviceName);
+      list.add(serviceName);
 
     boolean present_oldAuthorizables = true && (isSetOldAuthorizables());
-    builder.append(present_oldAuthorizables);
+    list.add(present_oldAuthorizables);
     if (present_oldAuthorizables)
-      builder.append(oldAuthorizables);
+      list.add(oldAuthorizables);
 
     boolean present_newAuthorizables = true && (isSetNewAuthorizables());
-    builder.append(present_newAuthorizables);
+    list.add(present_newAuthorizables);
     if (present_newAuthorizables)
-      builder.append(newAuthorizables);
+      list.add(newAuthorizables);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TRenamePrivilegesRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TRenamePrivilegesRequest typedOther = (TRenamePrivilegesRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(typedOther.isSetServiceName());
+    lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(other.isSetServiceName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetServiceName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, typedOther.serviceName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, other.serviceName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetOldAuthorizables()).compareTo(typedOther.isSetOldAuthorizables());
+    lastComparison = Boolean.valueOf(isSetOldAuthorizables()).compareTo(other.isSetOldAuthorizables());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetOldAuthorizables()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldAuthorizables, typedOther.oldAuthorizables);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldAuthorizables, other.oldAuthorizables);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetNewAuthorizables()).compareTo(typedOther.isSetNewAuthorizables());
+    lastComparison = Boolean.valueOf(isSetNewAuthorizables()).compareTo(other.isSetNewAuthorizables());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetNewAuthorizables()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newAuthorizables, typedOther.newAuthorizables);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newAuthorizables, other.newAuthorizables);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -831,12 +835,12 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
               {
                 org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
                 struct.oldAuthorizables = new ArrayList<TAuthorizable>(_list56.size);
-                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
+                TAuthorizable _elem57;
+                for (int _i58 = 0; _i58 < _list56.size; ++_i58)
                 {
-                  TAuthorizable _elem58; // required
-                  _elem58 = new TAuthorizable();
-                  _elem58.read(iprot);
-                  struct.oldAuthorizables.add(_elem58);
+                  _elem57 = new TAuthorizable();
+                  _elem57.read(iprot);
+                  struct.oldAuthorizables.add(_elem57);
                 }
                 iprot.readListEnd();
               }
@@ -850,12 +854,12 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
               {
                 org.apache.thrift.protocol.TList _list59 = iprot.readListBegin();
                 struct.newAuthorizables = new ArrayList<TAuthorizable>(_list59.size);
-                for (int _i60 = 0; _i60 < _list59.size; ++_i60)
+                TAuthorizable _elem60;
+                for (int _i61 = 0; _i61 < _list59.size; ++_i61)
                 {
-                  TAuthorizable _elem61; // required
-                  _elem61 = new TAuthorizable();
-                  _elem61.read(iprot);
-                  struct.newAuthorizables.add(_elem61);
+                  _elem60 = new TAuthorizable();
+                  _elem60.read(iprot);
+                  struct.newAuthorizables.add(_elem60);
                 }
                 iprot.readListEnd();
               }
@@ -970,24 +974,24 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
       {
         org.apache.thrift.protocol.TList _list66 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
         struct.oldAuthorizables = new ArrayList<TAuthorizable>(_list66.size);
-        for (int _i67 = 0; _i67 < _list66.size; ++_i67)
+        TAuthorizable _elem67;
+        for (int _i68 = 0; _i68 < _list66.size; ++_i68)
         {
-          TAuthorizable _elem68; // required
-          _elem68 = new TAuthorizable();
-          _elem68.read(iprot);
-          struct.oldAuthorizables.add(_elem68);
+          _elem67 = new TAuthorizable();
+          _elem67.read(iprot);
+          struct.oldAuthorizables.add(_elem67);
         }
       }
       struct.setOldAuthorizablesIsSet(true);
       {
         org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
         struct.newAuthorizables = new ArrayList<TAuthorizable>(_list69.size);
-        for (int _i70 = 0; _i70 < _list69.size; ++_i70)
+        TAuthorizable _elem70;
+        for (int _i71 = 0; _i71 < _list69.size; ++_i71)
         {
-          TAuthorizable _elem71; // required
-          _elem71 = new TAuthorizable();
-          _elem71.read(iprot);
-          struct.newAuthorizables.add(_elem71);
+          _elem70 = new TAuthorizable();
+          _elem70.read(iprot);
+          struct.newAuthorizables.add(_elem70);
         }
       }
       struct.setNewAuthorizablesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesResponse.java
index 9ae8be5..98f3d6e 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TRenamePrivilegesResponse implements org.apache.thrift.TBase<TRenamePrivilegesResponse, TRenamePrivilegesResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TRenamePrivilegesResponse implements org.apache.thrift.TBase<TRenamePrivilegesResponse, TRenamePrivilegesResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TRenamePrivilegesResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRenamePrivilegesResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TRenamePrivilegesResponse implements org.apache.thrift.TBase<TRenam
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TRenamePrivilegesResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TRenamePrivilegesResponse typedOther = (TRenamePrivilegesResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryActiveRoleSet.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryActiveRoleSet.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryActiveRoleSet.java
index 82acd44..db3e479 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryActiveRoleSet.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryActiveRoleSet.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActiveRoleSet, TSentryActiveRoleSet._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActiveRoleSet, TSentryActiveRoleSet._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryActiveRoleSet> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryActiveRoleSet");
 
   private static final org.apache.thrift.protocol.TField ALL_FIELD_DESC = new org.apache.thrift.protocol.TField("all", org.apache.thrift.protocol.TType.BOOL, (short)1);
@@ -142,10 +146,7 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
     __isset_bitfield = other.__isset_bitfield;
     this.all = other.all;
     if (other.isSetRoles()) {
-      Set<String> __this__roles = new HashSet<String>();
-      for (String other_element : other.roles) {
-        __this__roles.add(other_element);
-      }
+      Set<String> __this__roles = new HashSet<String>(other.roles);
       this.roles = __this__roles;
     }
   }
@@ -245,7 +246,7 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case ALL:
-      return Boolean.valueOf(isAll());
+      return isAll();
 
     case ROLES:
       return getRoles();
@@ -305,45 +306,45 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_all = true;
-    builder.append(present_all);
+    list.add(present_all);
     if (present_all)
-      builder.append(all);
+      list.add(all);
 
     boolean present_roles = true && (isSetRoles());
-    builder.append(present_roles);
+    list.add(present_roles);
     if (present_roles)
-      builder.append(roles);
+      list.add(roles);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryActiveRoleSet other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryActiveRoleSet typedOther = (TSentryActiveRoleSet)other;
 
-    lastComparison = Boolean.valueOf(isSetAll()).compareTo(typedOther.isSetAll());
+    lastComparison = Boolean.valueOf(isSetAll()).compareTo(other.isSetAll());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAll()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.all, typedOther.all);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.all, other.all);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoles()).compareTo(typedOther.isSetRoles());
+    lastComparison = Boolean.valueOf(isSetRoles()).compareTo(other.isSetRoles());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoles()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roles, typedOther.roles);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roles, other.roles);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -445,11 +446,11 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
               {
                 org.apache.thrift.protocol.TSet _set72 = iprot.readSetBegin();
                 struct.roles = new HashSet<String>(2*_set72.size);
-                for (int _i73 = 0; _i73 < _set72.size; ++_i73)
+                String _elem73;
+                for (int _i74 = 0; _i74 < _set72.size; ++_i74)
                 {
-                  String _elem74; // required
-                  _elem74 = iprot.readString();
-                  struct.roles.add(_elem74);
+                  _elem73 = iprot.readString();
+                  struct.roles.add(_elem73);
                 }
                 iprot.readSetEnd();
               }
@@ -521,11 +522,11 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
       {
         org.apache.thrift.protocol.TSet _set77 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.roles = new HashSet<String>(2*_set77.size);
-        for (int _i78 = 0; _i78 < _set77.size; ++_i78)
+        String _elem78;
+        for (int _i79 = 0; _i79 < _set77.size; ++_i79)
         {
-          String _elem79; // required
-          _elem79 = iprot.readString();
-          struct.roles.add(_elem79);
+          _elem78 = iprot.readString();
+          struct.roles.add(_elem78);
         }
       }
       struct.setRolesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryGrantOption.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryGrantOption.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryGrantOption.java
index 82e7640..9898c08 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryGrantOption.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryGrantOption.java
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilege.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilege.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilege.java
index 2c2ff35..2d0a297 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilege.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilege.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivilege, TSentryPrivilege._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivilege, TSentryPrivilege._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryPrivilege> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryPrivilege");
 
   private static final org.apache.thrift.protocol.TField COMPONENT_FIELD_DESC = new org.apache.thrift.protocol.TField("component", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -139,7 +143,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
   // isset id assignments
   private static final int __CREATETIME_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.CREATE_TIME,_Fields.GRANTOR_PRINCIPAL,_Fields.GRANT_OPTION};
+  private static final _Fields optionals[] = {_Fields.CREATE_TIME,_Fields.GRANTOR_PRINCIPAL,_Fields.GRANT_OPTION};
   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);
@@ -192,7 +196,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
       this.serviceName = other.serviceName;
     }
     if (other.isSetAuthorizables()) {
-      List<TAuthorizable> __this__authorizables = new ArrayList<TAuthorizable>();
+      List<TAuthorizable> __this__authorizables = new ArrayList<TAuthorizable>(other.authorizables.size());
       for (TAuthorizable other_element : other.authorizables) {
         __this__authorizables.add(new TAuthorizable(other_element));
       }
@@ -486,7 +490,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
       return getAction();
 
     case CREATE_TIME:
-      return Long.valueOf(getCreateTime());
+      return getCreateTime();
 
     case GRANTOR_PRINCIPAL:
       return getGrantorPrincipal();
@@ -604,120 +608,120 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
     boolean present_serviceName = true && (isSetServiceName());
-    builder.append(present_serviceName);
+    list.add(present_serviceName);
     if (present_serviceName)
-      builder.append(serviceName);
+      list.add(serviceName);
 
     boolean present_authorizables = true && (isSetAuthorizables());
-    builder.append(present_authorizables);
+    list.add(present_authorizables);
     if (present_authorizables)
-      builder.append(authorizables);
+      list.add(authorizables);
 
     boolean present_action = true && (isSetAction());
-    builder.append(present_action);
+    list.add(present_action);
     if (present_action)
-      builder.append(action);
+      list.add(action);
 
     boolean present_createTime = true && (isSetCreateTime());
-    builder.append(present_createTime);
+    list.add(present_createTime);
     if (present_createTime)
-      builder.append(createTime);
+      list.add(createTime);
 
     boolean present_grantorPrincipal = true && (isSetGrantorPrincipal());
-    builder.append(present_grantorPrincipal);
+    list.add(present_grantorPrincipal);
     if (present_grantorPrincipal)
-      builder.append(grantorPrincipal);
+      list.add(grantorPrincipal);
 
     boolean present_grantOption = true && (isSetGrantOption());
-    builder.append(present_grantOption);
+    list.add(present_grantOption);
     if (present_grantOption)
-      builder.append(grantOption.getValue());
+      list.add(grantOption.getValue());
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryPrivilege other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryPrivilege typedOther = (TSentryPrivilege)other;
 
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(typedOther.isSetServiceName());
+    lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(other.isSetServiceName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetServiceName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, typedOther.serviceName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, other.serviceName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAuthorizables()).compareTo(typedOther.isSetAuthorizables());
+    lastComparison = Boolean.valueOf(isSetAuthorizables()).compareTo(other.isSetAuthorizables());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthorizables()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizables, typedOther.authorizables);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizables, other.authorizables);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAction()).compareTo(typedOther.isSetAction());
+    lastComparison = Boolean.valueOf(isSetAction()).compareTo(other.isSetAction());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAction()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.action, typedOther.action);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.action, other.action);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime());
+    lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetCreateTime()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGrantorPrincipal()).compareTo(typedOther.isSetGrantorPrincipal());
+    lastComparison = Boolean.valueOf(isSetGrantorPrincipal()).compareTo(other.isSetGrantorPrincipal());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGrantorPrincipal()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipal, typedOther.grantorPrincipal);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipal, other.grantorPrincipal);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption());
+    lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(other.isSetGrantOption());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGrantOption()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, other.grantOption);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -881,12 +885,12 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
               {
                 org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
                 struct.authorizables = new ArrayList<TAuthorizable>(_list0.size);
-                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
+                TAuthorizable _elem1;
+                for (int _i2 = 0; _i2 < _list0.size; ++_i2)
                 {
-                  TAuthorizable _elem2; // required
-                  _elem2 = new TAuthorizable();
-                  _elem2.read(iprot);
-                  struct.authorizables.add(_elem2);
+                  _elem1 = new TAuthorizable();
+                  _elem1.read(iprot);
+                  struct.authorizables.add(_elem1);
                 }
                 iprot.readListEnd();
               }
@@ -921,7 +925,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
             break;
           case 7: // GRANT_OPTION
             if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.grantOption = TSentryGrantOption.findByValue(iprot.readI32());
+              struct.grantOption = org.apache.sentry.provider.db.generic.service.thrift.TSentryGrantOption.findByValue(iprot.readI32());
               struct.setGrantOptionIsSet(true);
             } else { 
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@@ -1045,12 +1049,12 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
       {
         org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
         struct.authorizables = new ArrayList<TAuthorizable>(_list5.size);
-        for (int _i6 = 0; _i6 < _list5.size; ++_i6)
+        TAuthorizable _elem6;
+        for (int _i7 = 0; _i7 < _list5.size; ++_i7)
         {
-          TAuthorizable _elem7; // required
-          _elem7 = new TAuthorizable();
-          _elem7.read(iprot);
-          struct.authorizables.add(_elem7);
+          _elem6 = new TAuthorizable();
+          _elem6.read(iprot);
+          struct.authorizables.add(_elem6);
         }
       }
       struct.setAuthorizablesIsSet(true);
@@ -1066,7 +1070,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
         struct.setGrantorPrincipalIsSet(true);
       }
       if (incoming.get(2)) {
-        struct.grantOption = TSentryGrantOption.findByValue(iprot.readI32());
+        struct.grantOption = org.apache.sentry.provider.db.generic.service.thrift.TSentryGrantOption.findByValue(iprot.readI32());
         struct.setGrantOptionIsSet(true);
       }
     }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilegeMap.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilegeMap.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilegeMap.java
index a2945a2..52cb3f3 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilegeMap.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilegeMap.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivilegeMap, TSentryPrivilegeMap._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivilegeMap, TSentryPrivilegeMap._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryPrivilegeMap> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryPrivilegeMap");
 
   private static final org.apache.thrift.protocol.TField PRIVILEGE_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("privilegeMap", org.apache.thrift.protocol.TType.MAP, (short)1);
@@ -130,7 +134,7 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
    */
   public TSentryPrivilegeMap(TSentryPrivilegeMap other) {
     if (other.isSetPrivilegeMap()) {
-      Map<String,Set<TSentryPrivilege>> __this__privilegeMap = new HashMap<String,Set<TSentryPrivilege>>();
+      Map<String,Set<TSentryPrivilege>> __this__privilegeMap = new HashMap<String,Set<TSentryPrivilege>>(other.privilegeMap.size());
       for (Map.Entry<String, Set<TSentryPrivilege>> other_element : other.privilegeMap.entrySet()) {
 
         String other_element_key = other_element.getKey();
@@ -138,7 +142,7 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
 
         String __this__privilegeMap_copy_key = other_element_key;
 
-        Set<TSentryPrivilege> __this__privilegeMap_copy_value = new HashSet<TSentryPrivilege>();
+        Set<TSentryPrivilege> __this__privilegeMap_copy_value = new HashSet<TSentryPrivilege>(other_element_value.size());
         for (TSentryPrivilege other_element_value_element : other_element_value) {
           __this__privilegeMap_copy_value.add(new TSentryPrivilege(other_element_value_element));
         }
@@ -254,30 +258,30 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_privilegeMap = true && (isSetPrivilegeMap());
-    builder.append(present_privilegeMap);
+    list.add(present_privilegeMap);
     if (present_privilegeMap)
-      builder.append(privilegeMap);
+      list.add(privilegeMap);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryPrivilegeMap other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryPrivilegeMap typedOther = (TSentryPrivilegeMap)other;
 
-    lastComparison = Boolean.valueOf(isSetPrivilegeMap()).compareTo(typedOther.isSetPrivilegeMap());
+    lastComparison = Boolean.valueOf(isSetPrivilegeMap()).compareTo(other.isSetPrivilegeMap());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivilegeMap()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegeMap, typedOther.privilegeMap);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegeMap, other.privilegeMap);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -361,24 +365,24 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
               {
                 org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin();
                 struct.privilegeMap = new HashMap<String,Set<TSentryPrivilege>>(2*_map104.size);
-                for (int _i105 = 0; _i105 < _map104.size; ++_i105)
+                String _key105;
+                Set<TSentryPrivilege> _val106;
+                for (int _i107 = 0; _i107 < _map104.size; ++_i107)
                 {
-                  String _key106; // required
-                  Set<TSentryPrivilege> _val107; // required
-                  _key106 = iprot.readString();
+                  _key105 = iprot.readString();
                   {
                     org.apache.thrift.protocol.TSet _set108 = iprot.readSetBegin();
-                    _val107 = new HashSet<TSentryPrivilege>(2*_set108.size);
-                    for (int _i109 = 0; _i109 < _set108.size; ++_i109)
+                    _val106 = new HashSet<TSentryPrivilege>(2*_set108.size);
+                    TSentryPrivilege _elem109;
+                    for (int _i110 = 0; _i110 < _set108.size; ++_i110)
                     {
-                      TSentryPrivilege _elem110; // required
-                      _elem110 = new TSentryPrivilege();
-                      _elem110.read(iprot);
-                      _val107.add(_elem110);
+                      _elem109 = new TSentryPrivilege();
+                      _elem109.read(iprot);
+                      _val106.add(_elem109);
                     }
                     iprot.readSetEnd();
                   }
-                  struct.privilegeMap.put(_key106, _val107);
+                  struct.privilegeMap.put(_key105, _val106);
                 }
                 iprot.readMapEnd();
               }
@@ -459,23 +463,23 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
       {
         org.apache.thrift.protocol.TMap _map115 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
         struct.privilegeMap = new HashMap<String,Set<TSentryPrivilege>>(2*_map115.size);
-        for (int _i116 = 0; _i116 < _map115.size; ++_i116)
+        String _key116;
+        Set<TSentryPrivilege> _val117;
+        for (int _i118 = 0; _i118 < _map115.size; ++_i118)
         {
-          String _key117; // required
-          Set<TSentryPrivilege> _val118; // required
-          _key117 = iprot.readString();
+          _key116 = iprot.readString();
           {
             org.apache.thrift.protocol.TSet _set119 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-            _val118 = new HashSet<TSentryPrivilege>(2*_set119.size);
-            for (int _i120 = 0; _i120 < _set119.size; ++_i120)
+            _val117 = new HashSet<TSentryPrivilege>(2*_set119.size);
+            TSentryPrivilege _elem120;
+            for (int _i121 = 0; _i121 < _set119.size; ++_i121)
             {
-              TSentryPrivilege _elem121; // required
-              _elem121 = new TSentryPrivilege();
-              _elem121.read(iprot);
-              _val118.add(_elem121);
+              _elem120 = new TSentryPrivilege();
+              _elem120.read(iprot);
+              _val117.add(_elem120);
             }
           }
-          struct.privilegeMap.put(_key117, _val118);
+          struct.privilegeMap.put(_key116, _val117);
         }
       }
       struct.setPrivilegeMapIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryRole.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryRole.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryRole.java
index 7676d0c..b043183 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryRole.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryRole.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentryRole._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentryRole._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryRole> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryRole");
 
   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);
@@ -140,10 +144,7 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
       this.roleName = other.roleName;
     }
     if (other.isSetGroups()) {
-      Set<String> __this__groups = new HashSet<String>();
-      for (String other_element : other.groups) {
-        __this__groups.add(other_element);
-      }
+      Set<String> __this__groups = new HashSet<String>(other.groups);
       this.groups = __this__groups;
     }
   }
@@ -303,45 +304,45 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_groups = true && (isSetGroups());
-    builder.append(present_groups);
+    list.add(present_groups);
     if (present_groups)
-      builder.append(groups);
+      list.add(groups);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TSentryRole other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TSentryRole typedOther = (TSentryRole)other;
 
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(typedOther.isSetGroups());
+    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(other.isSetGroups());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroups()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, typedOther.groups);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, other.groups);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -445,11 +446,11 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
               {
                 org.apache.thrift.protocol.TSet _set24 = iprot.readSetBegin();
                 struct.groups = new HashSet<String>(2*_set24.size);
-                for (int _i25 = 0; _i25 < _set24.size; ++_i25)
+                String _elem25;
+                for (int _i26 = 0; _i26 < _set24.size; ++_i26)
                 {
-                  String _elem26; // required
-                  _elem26 = iprot.readString();
-                  struct.groups.add(_elem26);
+                  _elem25 = iprot.readString();
+                  struct.groups.add(_elem25);
                 }
                 iprot.readSetEnd();
               }
@@ -523,11 +524,11 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
       {
         org.apache.thrift.protocol.TSet _set29 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.groups = new HashSet<String>(2*_set29.size);
-        for (int _i30 = 0; _i30 < _set29.size; ++_i30)
+        String _elem30;
+        for (int _i31 = 0; _i31 < _set29.size; ++_i31)
         {
-          String _elem31; // required
-          _elem31 = iprot.readString();
-          struct.groups.add(_elem31);
+          _elem30 = iprot.readString();
+          struct.groups.add(_elem30);
         }
       }
       struct.setGroupsIsSet(true);


[04/11] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)

Posted by sr...@apache.org.
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddGroupsRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddGroupsRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddGroupsRequest.java
index 7ac2069..3823460 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddGroupsRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddGroupsRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase<TAlterSentryRoleAddGroupsRequest, TAlterSentryRoleAddGroupsRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase<TAlterSentryRoleAddGroupsRequest, TAlterSentryRoleAddGroupsRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleAddGroupsRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleAddGroupsRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -168,7 +172,7 @@ public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase
       this.roleName = other.roleName;
     }
     if (other.isSetGroups()) {
-      Set<TSentryGroup> __this__groups = new HashSet<TSentryGroup>();
+      Set<TSentryGroup> __this__groups = new HashSet<TSentryGroup>(other.groups.size());
       for (TSentryGroup other_element : other.groups) {
         __this__groups.add(new TSentryGroup(other_element));
       }
@@ -335,7 +339,7 @@ public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -423,75 +427,75 @@ public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_groups = true && (isSetGroups());
-    builder.append(present_groups);
+    list.add(present_groups);
     if (present_groups)
-      builder.append(groups);
+      list.add(groups);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleAddGroupsRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleAddGroupsRequest typedOther = (TAlterSentryRoleAddGroupsRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(typedOther.isSetGroups());
+    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(other.isSetGroups());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroups()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, typedOther.groups);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, other.groups);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -633,12 +637,12 @@ public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase
               {
                 org.apache.thrift.protocol.TSet _set0 = iprot.readSetBegin();
                 struct.groups = new HashSet<TSentryGroup>(2*_set0.size);
-                for (int _i1 = 0; _i1 < _set0.size; ++_i1)
+                TSentryGroup _elem1;
+                for (int _i2 = 0; _i2 < _set0.size; ++_i2)
                 {
-                  TSentryGroup _elem2; // required
-                  _elem2 = new TSentryGroup();
-                  _elem2.read(iprot);
-                  struct.groups.add(_elem2);
+                  _elem1 = new TSentryGroup();
+                  _elem1.read(iprot);
+                  struct.groups.add(_elem1);
                 }
                 iprot.readSetEnd();
               }
@@ -726,12 +730,12 @@ public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase
       {
         org.apache.thrift.protocol.TSet _set5 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
         struct.groups = new HashSet<TSentryGroup>(2*_set5.size);
-        for (int _i6 = 0; _i6 < _set5.size; ++_i6)
+        TSentryGroup _elem6;
+        for (int _i7 = 0; _i7 < _set5.size; ++_i7)
         {
-          TSentryGroup _elem7; // required
-          _elem7 = new TSentryGroup();
-          _elem7.read(iprot);
-          struct.groups.add(_elem7);
+          _elem6 = new TSentryGroup();
+          _elem6.read(iprot);
+          struct.groups.add(_elem6);
         }
       }
       struct.setGroupsIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddGroupsResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddGroupsResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddGroupsResponse.java
index 15b014e..11bf031 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddGroupsResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddGroupsResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleAddGroupsResponse implements org.apache.thrift.TBase<TAlterSentryRoleAddGroupsResponse, TAlterSentryRoleAddGroupsResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleAddGroupsResponse implements org.apache.thrift.TBase<TAlterSentryRoleAddGroupsResponse, TAlterSentryRoleAddGroupsResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleAddGroupsResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleAddGroupsResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TAlterSentryRoleAddGroupsResponse implements org.apache.thrift.TBas
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleAddGroupsResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleAddGroupsResponse typedOther = (TAlterSentryRoleAddGroupsResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddUsersRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddUsersRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddUsersRequest.java
index 8a71cff..0ba4268 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddUsersRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddUsersRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleAddUsersRequest implements org.apache.thrift.TBase<TAlterSentryRoleAddUsersRequest, TAlterSentryRoleAddUsersRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleAddUsersRequest implements org.apache.thrift.TBase<TAlterSentryRoleAddUsersRequest, TAlterSentryRoleAddUsersRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleAddUsersRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleAddUsersRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -168,10 +172,7 @@ public class TAlterSentryRoleAddUsersRequest implements org.apache.thrift.TBase<
       this.roleName = other.roleName;
     }
     if (other.isSetUsers()) {
-      Set<String> __this__users = new HashSet<String>();
-      for (String other_element : other.users) {
-        __this__users.add(other_element);
-      }
+      Set<String> __this__users = new HashSet<String>(other.users);
       this.users = __this__users;
     }
   }
@@ -335,7 +336,7 @@ public class TAlterSentryRoleAddUsersRequest implements org.apache.thrift.TBase<
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -423,75 +424,75 @@ public class TAlterSentryRoleAddUsersRequest implements org.apache.thrift.TBase<
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_users = true && (isSetUsers());
-    builder.append(present_users);
+    list.add(present_users);
     if (present_users)
-      builder.append(users);
+      list.add(users);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleAddUsersRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleAddUsersRequest typedOther = (TAlterSentryRoleAddUsersRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetUsers()).compareTo(typedOther.isSetUsers());
+    lastComparison = Boolean.valueOf(isSetUsers()).compareTo(other.isSetUsers());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetUsers()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.users, typedOther.users);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.users, other.users);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -633,11 +634,11 @@ public class TAlterSentryRoleAddUsersRequest implements org.apache.thrift.TBase<
               {
                 org.apache.thrift.protocol.TSet _set8 = iprot.readSetBegin();
                 struct.users = new HashSet<String>(2*_set8.size);
-                for (int _i9 = 0; _i9 < _set8.size; ++_i9)
+                String _elem9;
+                for (int _i10 = 0; _i10 < _set8.size; ++_i10)
                 {
-                  String _elem10; // required
-                  _elem10 = iprot.readString();
-                  struct.users.add(_elem10);
+                  _elem9 = iprot.readString();
+                  struct.users.add(_elem9);
                 }
                 iprot.readSetEnd();
               }
@@ -725,11 +726,11 @@ public class TAlterSentryRoleAddUsersRequest implements org.apache.thrift.TBase<
       {
         org.apache.thrift.protocol.TSet _set13 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.users = new HashSet<String>(2*_set13.size);
-        for (int _i14 = 0; _i14 < _set13.size; ++_i14)
+        String _elem14;
+        for (int _i15 = 0; _i15 < _set13.size; ++_i15)
         {
-          String _elem15; // required
-          _elem15 = iprot.readString();
-          struct.users.add(_elem15);
+          _elem14 = iprot.readString();
+          struct.users.add(_elem14);
         }
       }
       struct.setUsersIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddUsersResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddUsersResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddUsersResponse.java
index d94a72b..19b2296 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddUsersResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleAddUsersResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleAddUsersResponse implements org.apache.thrift.TBase<TAlterSentryRoleAddUsersResponse, TAlterSentryRoleAddUsersResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleAddUsersResponse implements org.apache.thrift.TBase<TAlterSentryRoleAddUsersResponse, TAlterSentryRoleAddUsersResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleAddUsersResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleAddUsersResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TAlterSentryRoleAddUsersResponse implements org.apache.thrift.TBase
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleAddUsersResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleAddUsersResponse typedOther = (TAlterSentryRoleAddUsersResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteGroupsRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteGroupsRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteGroupsRequest.java
index fce68e5..dbe91df 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteGroupsRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteGroupsRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TBase<TAlterSentryRoleDeleteGroupsRequest, TAlterSentryRoleDeleteGroupsRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TBase<TAlterSentryRoleDeleteGroupsRequest, TAlterSentryRoleDeleteGroupsRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleDeleteGroupsRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleDeleteGroupsRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -168,7 +172,7 @@ public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TB
       this.roleName = other.roleName;
     }
     if (other.isSetGroups()) {
-      Set<TSentryGroup> __this__groups = new HashSet<TSentryGroup>();
+      Set<TSentryGroup> __this__groups = new HashSet<TSentryGroup>(other.groups.size());
       for (TSentryGroup other_element : other.groups) {
         __this__groups.add(new TSentryGroup(other_element));
       }
@@ -335,7 +339,7 @@ public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TB
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -423,75 +427,75 @@ public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TB
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_groups = true && (isSetGroups());
-    builder.append(present_groups);
+    list.add(present_groups);
     if (present_groups)
-      builder.append(groups);
+      list.add(groups);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleDeleteGroupsRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleDeleteGroupsRequest typedOther = (TAlterSentryRoleDeleteGroupsRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(typedOther.isSetGroups());
+    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(other.isSetGroups());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroups()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, typedOther.groups);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, other.groups);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -633,12 +637,12 @@ public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TB
               {
                 org.apache.thrift.protocol.TSet _set16 = iprot.readSetBegin();
                 struct.groups = new HashSet<TSentryGroup>(2*_set16.size);
-                for (int _i17 = 0; _i17 < _set16.size; ++_i17)
+                TSentryGroup _elem17;
+                for (int _i18 = 0; _i18 < _set16.size; ++_i18)
                 {
-                  TSentryGroup _elem18; // required
-                  _elem18 = new TSentryGroup();
-                  _elem18.read(iprot);
-                  struct.groups.add(_elem18);
+                  _elem17 = new TSentryGroup();
+                  _elem17.read(iprot);
+                  struct.groups.add(_elem17);
                 }
                 iprot.readSetEnd();
               }
@@ -726,12 +730,12 @@ public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TB
       {
         org.apache.thrift.protocol.TSet _set21 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
         struct.groups = new HashSet<TSentryGroup>(2*_set21.size);
-        for (int _i22 = 0; _i22 < _set21.size; ++_i22)
+        TSentryGroup _elem22;
+        for (int _i23 = 0; _i23 < _set21.size; ++_i23)
         {
-          TSentryGroup _elem23; // required
-          _elem23 = new TSentryGroup();
-          _elem23.read(iprot);
-          struct.groups.add(_elem23);
+          _elem22 = new TSentryGroup();
+          _elem22.read(iprot);
+          struct.groups.add(_elem22);
         }
       }
       struct.setGroupsIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteGroupsResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteGroupsResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteGroupsResponse.java
index 0efa544..ac2f69d 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteGroupsResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteGroupsResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleDeleteGroupsResponse implements org.apache.thrift.TBase<TAlterSentryRoleDeleteGroupsResponse, TAlterSentryRoleDeleteGroupsResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleDeleteGroupsResponse implements org.apache.thrift.TBase<TAlterSentryRoleDeleteGroupsResponse, TAlterSentryRoleDeleteGroupsResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleDeleteGroupsResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleDeleteGroupsResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TAlterSentryRoleDeleteGroupsResponse implements org.apache.thrift.T
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleDeleteGroupsResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleDeleteGroupsResponse typedOther = (TAlterSentryRoleDeleteGroupsResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteUsersRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteUsersRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteUsersRequest.java
index cb8be6d..693088e 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteUsersRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteUsersRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleDeleteUsersRequest implements org.apache.thrift.TBase<TAlterSentryRoleDeleteUsersRequest, TAlterSentryRoleDeleteUsersRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleDeleteUsersRequest implements org.apache.thrift.TBase<TAlterSentryRoleDeleteUsersRequest, TAlterSentryRoleDeleteUsersRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleDeleteUsersRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleDeleteUsersRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -168,10 +172,7 @@ public class TAlterSentryRoleDeleteUsersRequest implements org.apache.thrift.TBa
       this.roleName = other.roleName;
     }
     if (other.isSetUsers()) {
-      Set<String> __this__users = new HashSet<String>();
-      for (String other_element : other.users) {
-        __this__users.add(other_element);
-      }
+      Set<String> __this__users = new HashSet<String>(other.users);
       this.users = __this__users;
     }
   }
@@ -335,7 +336,7 @@ public class TAlterSentryRoleDeleteUsersRequest implements org.apache.thrift.TBa
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -423,75 +424,75 @@ public class TAlterSentryRoleDeleteUsersRequest implements org.apache.thrift.TBa
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_users = true && (isSetUsers());
-    builder.append(present_users);
+    list.add(present_users);
     if (present_users)
-      builder.append(users);
+      list.add(users);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleDeleteUsersRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleDeleteUsersRequest typedOther = (TAlterSentryRoleDeleteUsersRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetUsers()).compareTo(typedOther.isSetUsers());
+    lastComparison = Boolean.valueOf(isSetUsers()).compareTo(other.isSetUsers());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetUsers()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.users, typedOther.users);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.users, other.users);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -633,11 +634,11 @@ public class TAlterSentryRoleDeleteUsersRequest implements org.apache.thrift.TBa
               {
                 org.apache.thrift.protocol.TSet _set24 = iprot.readSetBegin();
                 struct.users = new HashSet<String>(2*_set24.size);
-                for (int _i25 = 0; _i25 < _set24.size; ++_i25)
+                String _elem25;
+                for (int _i26 = 0; _i26 < _set24.size; ++_i26)
                 {
-                  String _elem26; // required
-                  _elem26 = iprot.readString();
-                  struct.users.add(_elem26);
+                  _elem25 = iprot.readString();
+                  struct.users.add(_elem25);
                 }
                 iprot.readSetEnd();
               }
@@ -725,11 +726,11 @@ public class TAlterSentryRoleDeleteUsersRequest implements org.apache.thrift.TBa
       {
         org.apache.thrift.protocol.TSet _set29 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.users = new HashSet<String>(2*_set29.size);
-        for (int _i30 = 0; _i30 < _set29.size; ++_i30)
+        String _elem30;
+        for (int _i31 = 0; _i31 < _set29.size; ++_i31)
         {
-          String _elem31; // required
-          _elem31 = iprot.readString();
-          struct.users.add(_elem31);
+          _elem30 = iprot.readString();
+          struct.users.add(_elem30);
         }
       }
       struct.setUsersIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteUsersResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteUsersResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteUsersResponse.java
index 449cd66..af36fc8 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteUsersResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleDeleteUsersResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleDeleteUsersResponse implements org.apache.thrift.TBase<TAlterSentryRoleDeleteUsersResponse, TAlterSentryRoleDeleteUsersResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleDeleteUsersResponse implements org.apache.thrift.TBase<TAlterSentryRoleDeleteUsersResponse, TAlterSentryRoleDeleteUsersResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleDeleteUsersResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleDeleteUsersResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TAlterSentryRoleDeleteUsersResponse implements org.apache.thrift.TB
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleDeleteUsersResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleDeleteUsersResponse typedOther = (TAlterSentryRoleDeleteUsersResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleGrantPrivilegeRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleGrantPrivilegeRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleGrantPrivilegeRequest.java
index d95752f..95ccd01 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleGrantPrivilegeRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleGrantPrivilegeRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleGrantPrivilegeRequest implements org.apache.thrift.TBase<TAlterSentryRoleGrantPrivilegeRequest, TAlterSentryRoleGrantPrivilegeRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleGrantPrivilegeRequest implements org.apache.thrift.TBase<TAlterSentryRoleGrantPrivilegeRequest, TAlterSentryRoleGrantPrivilegeRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleGrantPrivilegeRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleGrantPrivilegeRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -125,7 +129,7 @@ public class TAlterSentryRoleGrantPrivilegeRequest implements org.apache.thrift.
   // isset id assignments
   private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.PRIVILEGE,_Fields.PRIVILEGES};
+  private static final _Fields optionals[] = {_Fields.PRIVILEGE,_Fields.PRIVILEGES};
   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);
@@ -177,7 +181,7 @@ public class TAlterSentryRoleGrantPrivilegeRequest implements org.apache.thrift.
       this.privilege = new TSentryPrivilege(other.privilege);
     }
     if (other.isSetPrivileges()) {
-      Set<TSentryPrivilege> __this__privileges = new HashSet<TSentryPrivilege>();
+      Set<TSentryPrivilege> __this__privileges = new HashSet<TSentryPrivilege>(other.privileges.size());
       for (TSentryPrivilege other_element : other.privileges) {
         __this__privileges.add(new TSentryPrivilege(other_element));
       }
@@ -376,7 +380,7 @@ public class TAlterSentryRoleGrantPrivilegeRequest implements org.apache.thrift.
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -478,90 +482,90 @@ public class TAlterSentryRoleGrantPrivilegeRequest implements org.apache.thrift.
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_privilege = true && (isSetPrivilege());
-    builder.append(present_privilege);
+    list.add(present_privilege);
     if (present_privilege)
-      builder.append(privilege);
+      list.add(privilege);
 
     boolean present_privileges = true && (isSetPrivileges());
-    builder.append(present_privileges);
+    list.add(present_privileges);
     if (present_privileges)
-      builder.append(privileges);
+      list.add(privileges);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleGrantPrivilegeRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleGrantPrivilegeRequest typedOther = (TAlterSentryRoleGrantPrivilegeRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(typedOther.isSetPrivilege());
+    lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(other.isSetPrivilege());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivilege()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, typedOther.privilege);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, other.privilege);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges());
+    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivileges()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -723,12 +727,12 @@ public class TAlterSentryRoleGrantPrivilegeRequest implements org.apache.thrift.
               {
                 org.apache.thrift.protocol.TSet _set32 = iprot.readSetBegin();
                 struct.privileges = new HashSet<TSentryPrivilege>(2*_set32.size);
-                for (int _i33 = 0; _i33 < _set32.size; ++_i33)
+                TSentryPrivilege _elem33;
+                for (int _i34 = 0; _i34 < _set32.size; ++_i34)
                 {
-                  TSentryPrivilege _elem34; // required
-                  _elem34 = new TSentryPrivilege();
-                  _elem34.read(iprot);
-                  struct.privileges.add(_elem34);
+                  _elem33 = new TSentryPrivilege();
+                  _elem33.read(iprot);
+                  struct.privileges.add(_elem33);
                 }
                 iprot.readSetEnd();
               }
@@ -845,12 +849,12 @@ public class TAlterSentryRoleGrantPrivilegeRequest implements org.apache.thrift.
         {
           org.apache.thrift.protocol.TSet _set37 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.privileges = new HashSet<TSentryPrivilege>(2*_set37.size);
-          for (int _i38 = 0; _i38 < _set37.size; ++_i38)
+          TSentryPrivilege _elem38;
+          for (int _i39 = 0; _i39 < _set37.size; ++_i39)
           {
-            TSentryPrivilege _elem39; // required
-            _elem39 = new TSentryPrivilege();
-            _elem39.read(iprot);
-            struct.privileges.add(_elem39);
+            _elem38 = new TSentryPrivilege();
+            _elem38.read(iprot);
+            struct.privileges.add(_elem38);
           }
         }
         struct.setPrivilegesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleGrantPrivilegeResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleGrantPrivilegeResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleGrantPrivilegeResponse.java
index 825abe4..b9a64f1 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleGrantPrivilegeResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleGrantPrivilegeResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleGrantPrivilegeResponse implements org.apache.thrift.TBase<TAlterSentryRoleGrantPrivilegeResponse, TAlterSentryRoleGrantPrivilegeResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleGrantPrivilegeResponse implements org.apache.thrift.TBase<TAlterSentryRoleGrantPrivilegeResponse, TAlterSentryRoleGrantPrivilegeResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleGrantPrivilegeResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleGrantPrivilegeResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -113,7 +117,7 @@ public class TAlterSentryRoleGrantPrivilegeResponse implements org.apache.thrift
   }
 
   // isset id assignments
-  private _Fields optionals[] = {_Fields.PRIVILEGE,_Fields.PRIVILEGES};
+  private static final _Fields optionals[] = {_Fields.PRIVILEGE,_Fields.PRIVILEGES};
   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);
@@ -149,7 +153,7 @@ public class TAlterSentryRoleGrantPrivilegeResponse implements org.apache.thrift
       this.privilege = new TSentryPrivilege(other.privilege);
     }
     if (other.isSetPrivileges()) {
-      Set<TSentryPrivilege> __this__privileges = new HashSet<TSentryPrivilege>();
+      Set<TSentryPrivilege> __this__privileges = new HashSet<TSentryPrivilege>(other.privileges.size());
       for (TSentryPrivilege other_element : other.privileges) {
         __this__privileges.add(new TSentryPrivilege(other_element));
       }
@@ -358,60 +362,60 @@ public class TAlterSentryRoleGrantPrivilegeResponse implements org.apache.thrift
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
     boolean present_privilege = true && (isSetPrivilege());
-    builder.append(present_privilege);
+    list.add(present_privilege);
     if (present_privilege)
-      builder.append(privilege);
+      list.add(privilege);
 
     boolean present_privileges = true && (isSetPrivileges());
-    builder.append(present_privileges);
+    list.add(present_privileges);
     if (present_privileges)
-      builder.append(privileges);
+      list.add(privileges);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleGrantPrivilegeResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleGrantPrivilegeResponse typedOther = (TAlterSentryRoleGrantPrivilegeResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(typedOther.isSetPrivilege());
+    lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(other.isSetPrivilege());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivilege()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, typedOther.privilege);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, other.privilege);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges());
+    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivileges()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -539,12 +543,12 @@ public class TAlterSentryRoleGrantPrivilegeResponse implements org.apache.thrift
               {
                 org.apache.thrift.protocol.TSet _set40 = iprot.readSetBegin();
                 struct.privileges = new HashSet<TSentryPrivilege>(2*_set40.size);
-                for (int _i41 = 0; _i41 < _set40.size; ++_i41)
+                TSentryPrivilege _elem41;
+                for (int _i42 = 0; _i42 < _set40.size; ++_i42)
                 {
-                  TSentryPrivilege _elem42; // required
-                  _elem42 = new TSentryPrivilege();
-                  _elem42.read(iprot);
-                  struct.privileges.add(_elem42);
+                  _elem41 = new TSentryPrivilege();
+                  _elem41.read(iprot);
+                  struct.privileges.add(_elem41);
                 }
                 iprot.readSetEnd();
               }
@@ -648,12 +652,12 @@ public class TAlterSentryRoleGrantPrivilegeResponse implements org.apache.thrift
         {
           org.apache.thrift.protocol.TSet _set45 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.privileges = new HashSet<TSentryPrivilege>(2*_set45.size);
-          for (int _i46 = 0; _i46 < _set45.size; ++_i46)
+          TSentryPrivilege _elem46;
+          for (int _i47 = 0; _i47 < _set45.size; ++_i47)
           {
-            TSentryPrivilege _elem47; // required
-            _elem47 = new TSentryPrivilege();
-            _elem47.read(iprot);
-            struct.privileges.add(_elem47);
+            _elem46 = new TSentryPrivilege();
+            _elem46.read(iprot);
+            struct.privileges.add(_elem46);
           }
         }
         struct.setPrivilegesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleRevokePrivilegeRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleRevokePrivilegeRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleRevokePrivilegeRequest.java
index 57f2722..fc0735e 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleRevokePrivilegeRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleRevokePrivilegeRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleRevokePrivilegeRequest implements org.apache.thrift.TBase<TAlterSentryRoleRevokePrivilegeRequest, TAlterSentryRoleRevokePrivilegeRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleRevokePrivilegeRequest implements org.apache.thrift.TBase<TAlterSentryRoleRevokePrivilegeRequest, TAlterSentryRoleRevokePrivilegeRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleRevokePrivilegeRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleRevokePrivilegeRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -125,7 +129,7 @@ public class TAlterSentryRoleRevokePrivilegeRequest implements org.apache.thrift
   // isset id assignments
   private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.PRIVILEGE,_Fields.PRIVILEGES};
+  private static final _Fields optionals[] = {_Fields.PRIVILEGE,_Fields.PRIVILEGES};
   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);
@@ -177,7 +181,7 @@ public class TAlterSentryRoleRevokePrivilegeRequest implements org.apache.thrift
       this.privilege = new TSentryPrivilege(other.privilege);
     }
     if (other.isSetPrivileges()) {
-      Set<TSentryPrivilege> __this__privileges = new HashSet<TSentryPrivilege>();
+      Set<TSentryPrivilege> __this__privileges = new HashSet<TSentryPrivilege>(other.privileges.size());
       for (TSentryPrivilege other_element : other.privileges) {
         __this__privileges.add(new TSentryPrivilege(other_element));
       }
@@ -376,7 +380,7 @@ public class TAlterSentryRoleRevokePrivilegeRequest implements org.apache.thrift
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -478,90 +482,90 @@ public class TAlterSentryRoleRevokePrivilegeRequest implements org.apache.thrift
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_privilege = true && (isSetPrivilege());
-    builder.append(present_privilege);
+    list.add(present_privilege);
     if (present_privilege)
-      builder.append(privilege);
+      list.add(privilege);
 
     boolean present_privileges = true && (isSetPrivileges());
-    builder.append(present_privileges);
+    list.add(present_privileges);
     if (present_privileges)
-      builder.append(privileges);
+      list.add(privileges);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleRevokePrivilegeRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleRevokePrivilegeRequest typedOther = (TAlterSentryRoleRevokePrivilegeRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(typedOther.isSetPrivilege());
+    lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(other.isSetPrivilege());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivilege()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, typedOther.privilege);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, other.privilege);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges());
+    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivileges()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -723,12 +727,12 @@ public class TAlterSentryRoleRevokePrivilegeRequest implements org.apache.thrift
               {
                 org.apache.thrift.protocol.TSet _set48 = iprot.readSetBegin();
                 struct.privileges = new HashSet<TSentryPrivilege>(2*_set48.size);
-                for (int _i49 = 0; _i49 < _set48.size; ++_i49)
+                TSentryPrivilege _elem49;
+                for (int _i50 = 0; _i50 < _set48.size; ++_i50)
                 {
-                  TSentryPrivilege _elem50; // required
-                  _elem50 = new TSentryPrivilege();
-                  _elem50.read(iprot);
-                  struct.privileges.add(_elem50);
+                  _elem49 = new TSentryPrivilege();
+                  _elem49.read(iprot);
+                  struct.privileges.add(_elem49);
                 }
                 iprot.readSetEnd();
               }
@@ -845,12 +849,12 @@ public class TAlterSentryRoleRevokePrivilegeRequest implements org.apache.thrift
         {
           org.apache.thrift.protocol.TSet _set53 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.privileges = new HashSet<TSentryPrivilege>(2*_set53.size);
-          for (int _i54 = 0; _i54 < _set53.size; ++_i54)
+          TSentryPrivilege _elem54;
+          for (int _i55 = 0; _i55 < _set53.size; ++_i55)
           {
-            TSentryPrivilege _elem55; // required
-            _elem55 = new TSentryPrivilege();
-            _elem55.read(iprot);
-            struct.privileges.add(_elem55);
+            _elem54 = new TSentryPrivilege();
+            _elem54.read(iprot);
+            struct.privileges.add(_elem54);
           }
         }
         struct.setPrivilegesIsSet(true);


[11/11] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)

Posted by sr...@apache.org.
SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)

Change-Id: I204c83de02c8709f2ea72dd846a5b72e4987f5ad


Project: http://git-wip-us.apache.org/repos/asf/sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/sentry/commit/e67bde0d
Tree: http://git-wip-us.apache.org/repos/asf/sentry/tree/e67bde0d
Diff: http://git-wip-us.apache.org/repos/asf/sentry/diff/e67bde0d

Branch: refs/heads/master
Commit: e67bde0daed57eeaf778510f72b8082f99588c7d
Parents: 42744cc
Author: Sravya Tirukkovalur <sr...@apache.org>
Authored: Wed Jun 1 15:01:53 2016 -0700
Committer: Sravya Tirukkovalur <sr...@apache.org>
Committed: Wed Jun 1 15:01:53 2016 -0700

----------------------------------------------------------------------
 pom.xml                                         |    4 +-
 .../hdfs/service/thrift/SentryHDFSService.java  |  449 +++--
 .../service/thrift/TAuthzUpdateResponse.java    |   78 +-
 .../hdfs/service/thrift/TPathChanges.java       |  118 +-
 .../sentry/hdfs/service/thrift/TPathEntry.java  |   94 +-
 .../sentry/hdfs/service/thrift/TPathsDump.java  |   64 +-
 .../hdfs/service/thrift/TPathsUpdate.java       |   76 +-
 .../hdfs/service/thrift/TPermissionsUpdate.java |  112 +-
 .../hdfs/service/thrift/TPrivilegeChanges.java  |  114 +-
 .../hdfs/service/thrift/TRoleChanges.java       |   82 +-
 .../thrift/SentryGenericPolicyService.java      | 1104 +++++++++---
 .../TAlterSentryRoleAddGroupsRequest.java       |   79 +-
 .../TAlterSentryRoleAddGroupsResponse.java      |   24 +-
 .../TAlterSentryRoleDeleteGroupsRequest.java    |   79 +-
 .../TAlterSentryRoleDeleteGroupsResponse.java   |   24 +-
 .../TAlterSentryRoleGrantPrivilegeRequest.java  |   58 +-
 .../TAlterSentryRoleGrantPrivilegeResponse.java |   24 +-
 .../TAlterSentryRoleRevokePrivilegeRequest.java |   58 +-
 ...TAlterSentryRoleRevokePrivilegeResponse.java |   24 +-
 .../generic/service/thrift/TAuthorizable.java   |   32 +-
 .../thrift/TCreateSentryRoleRequest.java        |   50 +-
 .../thrift/TCreateSentryRoleResponse.java       |   24 +-
 .../service/thrift/TDropPrivilegesRequest.java  |   50 +-
 .../service/thrift/TDropPrivilegesResponse.java |   24 +-
 .../service/thrift/TDropSentryRoleRequest.java  |   50 +-
 .../service/thrift/TDropSentryRoleResponse.java |   24 +-
 .../TListSentryPrivilegesByAuthRequest.java     |  118 +-
 .../TListSentryPrivilegesByAuthResponse.java    |   64 +-
 ...TListSentryPrivilegesForProviderRequest.java |  111 +-
 ...ListSentryPrivilegesForProviderResponse.java |   53 +-
 .../thrift/TListSentryPrivilegesRequest.java    |   90 +-
 .../thrift/TListSentryPrivilegesResponse.java   |   56 +-
 .../service/thrift/TListSentryRolesRequest.java |   52 +-
 .../thrift/TListSentryRolesResponse.java        |   56 +-
 .../thrift/TRenamePrivilegesRequest.java        |  110 +-
 .../thrift/TRenamePrivilegesResponse.java       |   24 +-
 .../service/thrift/TSentryActiveRoleSet.java    |   55 +-
 .../service/thrift/TSentryGrantOption.java      |    2 +-
 .../service/thrift/TSentryPrivilege.java        |  102 +-
 .../service/thrift/TSentryPrivilegeMap.java     |   72 +-
 .../db/generic/service/thrift/TSentryRole.java  |   53 +-
 .../db/service/thrift/SentryPolicyService.java  | 1644 ++++++++++++++----
 .../TAlterSentryRoleAddGroupsRequest.java       |   72 +-
 .../TAlterSentryRoleAddGroupsResponse.java      |   24 +-
 .../thrift/TAlterSentryRoleAddUsersRequest.java |   71 +-
 .../TAlterSentryRoleAddUsersResponse.java       |   24 +-
 .../TAlterSentryRoleDeleteGroupsRequest.java    |   72 +-
 .../TAlterSentryRoleDeleteGroupsResponse.java   |   24 +-
 .../TAlterSentryRoleDeleteUsersRequest.java     |   71 +-
 .../TAlterSentryRoleDeleteUsersResponse.java    |   24 +-
 .../TAlterSentryRoleGrantPrivilegeRequest.java  |   82 +-
 .../TAlterSentryRoleGrantPrivilegeResponse.java |   64 +-
 .../TAlterSentryRoleRevokePrivilegeRequest.java |   82 +-
 ...TAlterSentryRoleRevokePrivilegeResponse.java |   24 +-
 .../thrift/TCreateSentryRoleRequest.java        |   42 +-
 .../thrift/TCreateSentryRoleResponse.java       |   24 +-
 .../service/thrift/TDropPrivilegesRequest.java  |   42 +-
 .../service/thrift/TDropPrivilegesResponse.java |   24 +-
 .../service/thrift/TDropSentryRoleRequest.java  |   42 +-
 .../service/thrift/TDropSentryRoleResponse.java |   24 +-
 .../TListSentryPrivilegesByAuthRequest.java     |  103 +-
 .../TListSentryPrivilegesByAuthResponse.java    |   68 +-
 ...TListSentryPrivilegesForProviderRequest.java |  102 +-
 ...ListSentryPrivilegesForProviderResponse.java |   53 +-
 .../thrift/TListSentryPrivilegesRequest.java    |   52 +-
 .../thrift/TListSentryPrivilegesResponse.java   |   56 +-
 .../thrift/TListSentryRolesForUserRequest.java  |   42 +-
 .../service/thrift/TListSentryRolesRequest.java |   44 +-
 .../thrift/TListSentryRolesResponse.java        |   56 +-
 .../thrift/TRenamePrivilegesRequest.java        |   50 +-
 .../thrift/TRenamePrivilegesResponse.java       |   24 +-
 .../db/service/thrift/TSentryActiveRoleSet.java |   55 +-
 .../db/service/thrift/TSentryAuthorizable.java  |   58 +-
 .../thrift/TSentryConfigValueRequest.java       |   44 +-
 .../thrift/TSentryConfigValueResponse.java      |   34 +-
 .../thrift/TSentryExportMappingDataRequest.java |  132 +-
 .../TSentryExportMappingDataResponse.java       |   32 +-
 .../db/service/thrift/TSentryGrantOption.java   |    2 +-
 .../db/service/thrift/TSentryGroup.java         |   24 +-
 .../thrift/TSentryImportMappingDataRequest.java |   52 +-
 .../TSentryImportMappingDataResponse.java       |   24 +-
 .../db/service/thrift/TSentryMappingData.java   |  282 ++-
 .../db/service/thrift/TSentryPrivilege.java     |   96 +-
 .../db/service/thrift/TSentryPrivilegeMap.java  |   72 +-
 .../provider/db/service/thrift/TSentryRole.java |   62 +-
 .../service/thrift/TSentryResponseStatus.java   |   44 +-
 .../thrift/sentry_common_serviceConstants.java  |    7 +-
 87 files changed, 5070 insertions(+), 3013 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 5ce7247..2ea4735 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,8 +77,8 @@ limitations under the License.
     <jettyVersion>8.1.19.v20160209</jettyVersion>
     <joda-time.version>2.5</joda-time.version>
     <junit.version>4.10</junit.version>
-    <libfb303.version>0.9.2</libfb303.version>
-    <libthrift.version>0.9.2</libthrift.version>
+    <libfb303.version>0.9.3</libfb303.version>
+    <libthrift.version>0.9.3</libthrift.version>
     <log4j.version>1.2.16</log4j.version>
     <maven.antrun.plugin.version>1.7</maven.antrun.plugin.version>
     <maven.eclipse.plugin.version>2.9</maven.eclipse.plugin.version>

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/SentryHDFSService.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/SentryHDFSService.java b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/SentryHDFSService.java
index 254f72b..5cbd26c 100644
--- a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/SentryHDFSService.java
+++ b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/SentryHDFSService.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.hdfs.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,9 +29,12 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
 public class SentryHDFSService {
 
   public interface Iface {
@@ -47,13 +51,13 @@ public class SentryHDFSService {
 
   public interface AsyncIface {
 
-    public void handle_hms_notification(TPathsUpdate pathsUpdate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.handle_hms_notification_call> resultHandler) throws org.apache.thrift.TException;
+    public void handle_hms_notification(TPathsUpdate pathsUpdate, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void check_hms_seq_num(long pathSeqNum, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.check_hms_seq_num_call> resultHandler) throws org.apache.thrift.TException;
+    public void check_hms_seq_num(long pathSeqNum, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void get_all_authz_updates_from(long permSeqNum, long pathSeqNum, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_all_authz_updates_from_call> resultHandler) throws org.apache.thrift.TException;
+    public void get_all_authz_updates_from(long permSeqNum, long pathSeqNum, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void get_all_related_paths(String path, boolean exactMatch, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_all_related_paths_call> resultHandler) throws org.apache.thrift.TException;
+    public void get_all_related_paths(String path, boolean exactMatch, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
   }
 
@@ -186,7 +190,7 @@ public class SentryHDFSService {
       super(protocolFactory, clientManager, transport);
     }
 
-    public void handle_hms_notification(TPathsUpdate pathsUpdate, org.apache.thrift.async.AsyncMethodCallback<handle_hms_notification_call> resultHandler) throws org.apache.thrift.TException {
+    public void handle_hms_notification(TPathsUpdate pathsUpdate, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       handle_hms_notification_call method_call = new handle_hms_notification_call(pathsUpdate, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -195,7 +199,7 @@ public class SentryHDFSService {
 
     public static class handle_hms_notification_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TPathsUpdate pathsUpdate;
-      public handle_hms_notification_call(TPathsUpdate pathsUpdate, org.apache.thrift.async.AsyncMethodCallback<handle_hms_notification_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public handle_hms_notification_call(TPathsUpdate pathsUpdate, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.pathsUpdate = pathsUpdate;
       }
@@ -218,7 +222,7 @@ public class SentryHDFSService {
       }
     }
 
-    public void check_hms_seq_num(long pathSeqNum, org.apache.thrift.async.AsyncMethodCallback<check_hms_seq_num_call> resultHandler) throws org.apache.thrift.TException {
+    public void check_hms_seq_num(long pathSeqNum, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       check_hms_seq_num_call method_call = new check_hms_seq_num_call(pathSeqNum, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -227,7 +231,7 @@ public class SentryHDFSService {
 
     public static class check_hms_seq_num_call extends org.apache.thrift.async.TAsyncMethodCall {
       private long pathSeqNum;
-      public check_hms_seq_num_call(long pathSeqNum, org.apache.thrift.async.AsyncMethodCallback<check_hms_seq_num_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public check_hms_seq_num_call(long pathSeqNum, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.pathSeqNum = pathSeqNum;
       }
@@ -250,7 +254,7 @@ public class SentryHDFSService {
       }
     }
 
-    public void get_all_authz_updates_from(long permSeqNum, long pathSeqNum, org.apache.thrift.async.AsyncMethodCallback<get_all_authz_updates_from_call> resultHandler) throws org.apache.thrift.TException {
+    public void get_all_authz_updates_from(long permSeqNum, long pathSeqNum, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       get_all_authz_updates_from_call method_call = new get_all_authz_updates_from_call(permSeqNum, pathSeqNum, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -260,7 +264,7 @@ public class SentryHDFSService {
     public static class get_all_authz_updates_from_call extends org.apache.thrift.async.TAsyncMethodCall {
       private long permSeqNum;
       private long pathSeqNum;
-      public get_all_authz_updates_from_call(long permSeqNum, long pathSeqNum, org.apache.thrift.async.AsyncMethodCallback<get_all_authz_updates_from_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public get_all_authz_updates_from_call(long permSeqNum, long pathSeqNum, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.permSeqNum = permSeqNum;
         this.pathSeqNum = pathSeqNum;
@@ -285,7 +289,7 @@ public class SentryHDFSService {
       }
     }
 
-    public void get_all_related_paths(String path, boolean exactMatch, org.apache.thrift.async.AsyncMethodCallback<get_all_related_paths_call> resultHandler) throws org.apache.thrift.TException {
+    public void get_all_related_paths(String path, boolean exactMatch, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       get_all_related_paths_call method_call = new get_all_related_paths_call(path, exactMatch, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -295,7 +299,7 @@ public class SentryHDFSService {
     public static class get_all_related_paths_call extends org.apache.thrift.async.TAsyncMethodCall {
       private String path;
       private boolean exactMatch;
-      public get_all_related_paths_call(String path, boolean exactMatch, org.apache.thrift.async.AsyncMethodCallback<get_all_related_paths_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public get_all_related_paths_call(String path, boolean exactMatch, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.path = path;
         this.exactMatch = exactMatch;
@@ -423,7 +427,231 @@ public class SentryHDFSService {
 
   }
 
-  public static class handle_hms_notification_args implements org.apache.thrift.TBase<handle_hms_notification_args, handle_hms_notification_args._Fields>, java.io.Serializable, Cloneable   {
+  public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
+    private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
+    public AsyncProcessor(I iface) {
+      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
+    }
+
+    protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
+      super(iface, getProcessMap(processMap));
+    }
+
+    private static <I extends AsyncIface> Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase,?>> getProcessMap(Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
+      processMap.put("handle_hms_notification", new handle_hms_notification());
+      processMap.put("check_hms_seq_num", new check_hms_seq_num());
+      processMap.put("get_all_authz_updates_from", new get_all_authz_updates_from());
+      processMap.put("get_all_related_paths", new get_all_related_paths());
+      return processMap;
+    }
+
+    public static class handle_hms_notification<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, handle_hms_notification_args, Void> {
+      public handle_hms_notification() {
+        super("handle_hms_notification");
+      }
+
+      public handle_hms_notification_args getEmptyArgsInstance() {
+        return new handle_hms_notification_args();
+      }
+
+      public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<Void>() { 
+          public void onComplete(Void o) {
+            handle_hms_notification_result result = new handle_hms_notification_result();
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            handle_hms_notification_result result = new handle_hms_notification_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, handle_hms_notification_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+        iface.handle_hms_notification(args.pathsUpdate,resultHandler);
+      }
+    }
+
+    public static class check_hms_seq_num<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, check_hms_seq_num_args, Long> {
+      public check_hms_seq_num() {
+        super("check_hms_seq_num");
+      }
+
+      public check_hms_seq_num_args getEmptyArgsInstance() {
+        return new check_hms_seq_num_args();
+      }
+
+      public AsyncMethodCallback<Long> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<Long>() { 
+          public void onComplete(Long o) {
+            check_hms_seq_num_result result = new check_hms_seq_num_result();
+            result.success = o;
+            result.setSuccessIsSet(true);
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            check_hms_seq_num_result result = new check_hms_seq_num_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, check_hms_seq_num_args args, org.apache.thrift.async.AsyncMethodCallback<Long> resultHandler) throws TException {
+        iface.check_hms_seq_num(args.pathSeqNum,resultHandler);
+      }
+    }
+
+    public static class get_all_authz_updates_from<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_all_authz_updates_from_args, TAuthzUpdateResponse> {
+      public get_all_authz_updates_from() {
+        super("get_all_authz_updates_from");
+      }
+
+      public get_all_authz_updates_from_args getEmptyArgsInstance() {
+        return new get_all_authz_updates_from_args();
+      }
+
+      public AsyncMethodCallback<TAuthzUpdateResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TAuthzUpdateResponse>() { 
+          public void onComplete(TAuthzUpdateResponse o) {
+            get_all_authz_updates_from_result result = new get_all_authz_updates_from_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            get_all_authz_updates_from_result result = new get_all_authz_updates_from_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, get_all_authz_updates_from_args args, org.apache.thrift.async.AsyncMethodCallback<TAuthzUpdateResponse> resultHandler) throws TException {
+        iface.get_all_authz_updates_from(args.permSeqNum, args.pathSeqNum,resultHandler);
+      }
+    }
+
+    public static class get_all_related_paths<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_all_related_paths_args, Map<String,List<String>>> {
+      public get_all_related_paths() {
+        super("get_all_related_paths");
+      }
+
+      public get_all_related_paths_args getEmptyArgsInstance() {
+        return new get_all_related_paths_args();
+      }
+
+      public AsyncMethodCallback<Map<String,List<String>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<Map<String,List<String>>>() { 
+          public void onComplete(Map<String,List<String>> o) {
+            get_all_related_paths_result result = new get_all_related_paths_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            get_all_related_paths_result result = new get_all_related_paths_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, get_all_related_paths_args args, org.apache.thrift.async.AsyncMethodCallback<Map<String,List<String>>> resultHandler) throws TException {
+        iface.get_all_related_paths(args.path, args.exactMatch,resultHandler);
+      }
+    }
+
+  }
+
+  public static class handle_hms_notification_args implements org.apache.thrift.TBase<handle_hms_notification_args, handle_hms_notification_args._Fields>, java.io.Serializable, Cloneable, Comparable<handle_hms_notification_args>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("handle_hms_notification_args");
 
     private static final org.apache.thrift.protocol.TField PATHS_UPDATE_FIELD_DESC = new org.apache.thrift.protocol.TField("pathsUpdate", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -617,30 +845,30 @@ public class SentryHDFSService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_pathsUpdate = true && (isSetPathsUpdate());
-      builder.append(present_pathsUpdate);
+      list.add(present_pathsUpdate);
       if (present_pathsUpdate)
-        builder.append(pathsUpdate);
+        list.add(pathsUpdate);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(handle_hms_notification_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      handle_hms_notification_args typedOther = (handle_hms_notification_args)other;
 
-      lastComparison = Boolean.valueOf(isSetPathsUpdate()).compareTo(typedOther.isSetPathsUpdate());
+      lastComparison = Boolean.valueOf(isSetPathsUpdate()).compareTo(other.isSetPathsUpdate());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetPathsUpdate()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathsUpdate, typedOther.pathsUpdate);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathsUpdate, other.pathsUpdate);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -786,7 +1014,7 @@ public class SentryHDFSService {
 
   }
 
-  public static class handle_hms_notification_result implements org.apache.thrift.TBase<handle_hms_notification_result, handle_hms_notification_result._Fields>, java.io.Serializable, Cloneable   {
+  public static class handle_hms_notification_result implements org.apache.thrift.TBase<handle_hms_notification_result, handle_hms_notification_result._Fields>, java.io.Serializable, Cloneable, Comparable<handle_hms_notification_result>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("handle_hms_notification_result");
 
 
@@ -916,18 +1144,18 @@ public class SentryHDFSService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(handle_hms_notification_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      handle_hms_notification_result typedOther = (handle_hms_notification_result)other;
 
       return 0;
     }
@@ -1032,7 +1260,7 @@ public class SentryHDFSService {
 
   }
 
-  public static class check_hms_seq_num_args implements org.apache.thrift.TBase<check_hms_seq_num_args, check_hms_seq_num_args._Fields>, java.io.Serializable, Cloneable   {
+  public static class check_hms_seq_num_args implements org.apache.thrift.TBase<check_hms_seq_num_args, check_hms_seq_num_args._Fields>, java.io.Serializable, Cloneable, Comparable<check_hms_seq_num_args>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("check_hms_seq_num_args");
 
     private static final org.apache.thrift.protocol.TField PATH_SEQ_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("pathSeqNum", org.apache.thrift.protocol.TType.I64, (short)1);
@@ -1182,7 +1410,7 @@ public class SentryHDFSService {
     public Object getFieldValue(_Fields field) {
       switch (field) {
       case PATH_SEQ_NUM:
-        return Long.valueOf(getPathSeqNum());
+        return getPathSeqNum();
 
       }
       throw new IllegalStateException();
@@ -1228,30 +1456,30 @@ public class SentryHDFSService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_pathSeqNum = true;
-      builder.append(present_pathSeqNum);
+      list.add(present_pathSeqNum);
       if (present_pathSeqNum)
-        builder.append(pathSeqNum);
+        list.add(pathSeqNum);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(check_hms_seq_num_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      check_hms_seq_num_args typedOther = (check_hms_seq_num_args)other;
 
-      lastComparison = Boolean.valueOf(isSetPathSeqNum()).compareTo(typedOther.isSetPathSeqNum());
+      lastComparison = Boolean.valueOf(isSetPathSeqNum()).compareTo(other.isSetPathSeqNum());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetPathSeqNum()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathSeqNum, typedOther.pathSeqNum);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathSeqNum, other.pathSeqNum);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -1388,7 +1616,7 @@ public class SentryHDFSService {
 
   }
 
-  public static class check_hms_seq_num_result implements org.apache.thrift.TBase<check_hms_seq_num_result, check_hms_seq_num_result._Fields>, java.io.Serializable, Cloneable   {
+  public static class check_hms_seq_num_result implements org.apache.thrift.TBase<check_hms_seq_num_result, check_hms_seq_num_result._Fields>, java.io.Serializable, Cloneable, Comparable<check_hms_seq_num_result>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("check_hms_seq_num_result");
 
     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
@@ -1538,7 +1766,7 @@ public class SentryHDFSService {
     public Object getFieldValue(_Fields field) {
       switch (field) {
       case SUCCESS:
-        return Long.valueOf(getSuccess());
+        return getSuccess();
 
       }
       throw new IllegalStateException();
@@ -1584,30 +1812,30 @@ public class SentryHDFSService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_success = true;
-      builder.append(present_success);
+      list.add(present_success);
       if (present_success)
-        builder.append(success);
+        list.add(success);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(check_hms_seq_num_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      check_hms_seq_num_result typedOther = (check_hms_seq_num_result)other;
 
-      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
+      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetSuccess()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -1746,7 +1974,7 @@ public class SentryHDFSService {
 
   }
 
-  public static class get_all_authz_updates_from_args implements org.apache.thrift.TBase<get_all_authz_updates_from_args, get_all_authz_updates_from_args._Fields>, java.io.Serializable, Cloneable   {
+  public static class get_all_authz_updates_from_args implements org.apache.thrift.TBase<get_all_authz_updates_from_args, get_all_authz_updates_from_args._Fields>, java.io.Serializable, Cloneable, Comparable<get_all_authz_updates_from_args>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_authz_updates_from_args");
 
     private static final org.apache.thrift.protocol.TField PERM_SEQ_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("permSeqNum", org.apache.thrift.protocol.TType.I64, (short)1);
@@ -1940,10 +2168,10 @@ public class SentryHDFSService {
     public Object getFieldValue(_Fields field) {
       switch (field) {
       case PERM_SEQ_NUM:
-        return Long.valueOf(getPermSeqNum());
+        return getPermSeqNum();
 
       case PATH_SEQ_NUM:
-        return Long.valueOf(getPathSeqNum());
+        return getPathSeqNum();
 
       }
       throw new IllegalStateException();
@@ -2000,45 +2228,45 @@ public class SentryHDFSService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_permSeqNum = true;
-      builder.append(present_permSeqNum);
+      list.add(present_permSeqNum);
       if (present_permSeqNum)
-        builder.append(permSeqNum);
+        list.add(permSeqNum);
 
       boolean present_pathSeqNum = true;
-      builder.append(present_pathSeqNum);
+      list.add(present_pathSeqNum);
       if (present_pathSeqNum)
-        builder.append(pathSeqNum);
+        list.add(pathSeqNum);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(get_all_authz_updates_from_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      get_all_authz_updates_from_args typedOther = (get_all_authz_updates_from_args)other;
 
-      lastComparison = Boolean.valueOf(isSetPermSeqNum()).compareTo(typedOther.isSetPermSeqNum());
+      lastComparison = Boolean.valueOf(isSetPermSeqNum()).compareTo(other.isSetPermSeqNum());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetPermSeqNum()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permSeqNum, typedOther.permSeqNum);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permSeqNum, other.permSeqNum);
         if (lastComparison != 0) {
           return lastComparison;
         }
       }
-      lastComparison = Boolean.valueOf(isSetPathSeqNum()).compareTo(typedOther.isSetPathSeqNum());
+      lastComparison = Boolean.valueOf(isSetPathSeqNum()).compareTo(other.isSetPathSeqNum());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetPathSeqNum()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathSeqNum, typedOther.pathSeqNum);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathSeqNum, other.pathSeqNum);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -2200,7 +2428,7 @@ public class SentryHDFSService {
 
   }
 
-  public static class get_all_authz_updates_from_result implements org.apache.thrift.TBase<get_all_authz_updates_from_result, get_all_authz_updates_from_result._Fields>, java.io.Serializable, Cloneable   {
+  public static class get_all_authz_updates_from_result implements org.apache.thrift.TBase<get_all_authz_updates_from_result, get_all_authz_updates_from_result._Fields>, java.io.Serializable, Cloneable, Comparable<get_all_authz_updates_from_result>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_authz_updates_from_result");
 
     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
@@ -2394,30 +2622,30 @@ public class SentryHDFSService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_success = true && (isSetSuccess());
-      builder.append(present_success);
+      list.add(present_success);
       if (present_success)
-        builder.append(success);
+        list.add(success);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(get_all_authz_updates_from_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      get_all_authz_updates_from_result typedOther = (get_all_authz_updates_from_result)other;
 
-      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
+      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetSuccess()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -2563,7 +2791,7 @@ public class SentryHDFSService {
 
   }
 
-  public static class get_all_related_paths_args implements org.apache.thrift.TBase<get_all_related_paths_args, get_all_related_paths_args._Fields>, java.io.Serializable, Cloneable   {
+  public static class get_all_related_paths_args implements org.apache.thrift.TBase<get_all_related_paths_args, get_all_related_paths_args._Fields>, java.io.Serializable, Cloneable, Comparable<get_all_related_paths_args>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_related_paths_args");
 
     private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -2760,7 +2988,7 @@ public class SentryHDFSService {
         return getPath();
 
       case EXACT_MATCH:
-        return Boolean.valueOf(isExactMatch());
+        return isExactMatch();
 
       }
       throw new IllegalStateException();
@@ -2817,45 +3045,45 @@ public class SentryHDFSService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_path = true && (isSetPath());
-      builder.append(present_path);
+      list.add(present_path);
       if (present_path)
-        builder.append(path);
+        list.add(path);
 
       boolean present_exactMatch = true;
-      builder.append(present_exactMatch);
+      list.add(present_exactMatch);
       if (present_exactMatch)
-        builder.append(exactMatch);
+        list.add(exactMatch);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(get_all_related_paths_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      get_all_related_paths_args typedOther = (get_all_related_paths_args)other;
 
-      lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
+      lastComparison = Boolean.valueOf(isSetPath()).compareTo(other.isSetPath());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetPath()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, other.path);
         if (lastComparison != 0) {
           return lastComparison;
         }
       }
-      lastComparison = Boolean.valueOf(isSetExactMatch()).compareTo(typedOther.isSetExactMatch());
+      lastComparison = Boolean.valueOf(isSetExactMatch()).compareTo(other.isSetExactMatch());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetExactMatch()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exactMatch, typedOther.exactMatch);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exactMatch, other.exactMatch);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -3023,7 +3251,7 @@ public class SentryHDFSService {
 
   }
 
-  public static class get_all_related_paths_result implements org.apache.thrift.TBase<get_all_related_paths_result, get_all_related_paths_result._Fields>, java.io.Serializable, Cloneable   {
+  public static class get_all_related_paths_result implements org.apache.thrift.TBase<get_all_related_paths_result, get_all_related_paths_result._Fields>, java.io.Serializable, Cloneable, Comparable<get_all_related_paths_result>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_related_paths_result");
 
     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
@@ -3122,7 +3350,7 @@ public class SentryHDFSService {
      */
     public get_all_related_paths_result(get_all_related_paths_result other) {
       if (other.isSetSuccess()) {
-        Map<String,List<String>> __this__success = new HashMap<String,List<String>>();
+        Map<String,List<String>> __this__success = new HashMap<String,List<String>>(other.success.size());
         for (Map.Entry<String, List<String>> other_element : other.success.entrySet()) {
 
           String other_element_key = other_element.getKey();
@@ -3130,10 +3358,7 @@ public class SentryHDFSService {
 
           String __this__success_copy_key = other_element_key;
 
-          List<String> __this__success_copy_value = new ArrayList<String>();
-          for (String other_element_value_element : other_element_value) {
-            __this__success_copy_value.add(other_element_value_element);
-          }
+          List<String> __this__success_copy_value = new ArrayList<String>(other_element_value);
 
           __this__success.put(__this__success_copy_key, __this__success_copy_value);
         }
@@ -3246,30 +3471,30 @@ public class SentryHDFSService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_success = true && (isSetSuccess());
-      builder.append(present_success);
+      list.add(present_success);
       if (present_success)
-        builder.append(success);
+        list.add(success);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(get_all_related_paths_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      get_all_related_paths_result typedOther = (get_all_related_paths_result)other;
 
-      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
+      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetSuccess()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -3349,23 +3574,23 @@ public class SentryHDFSService {
                 {
                   org.apache.thrift.protocol.TMap _map138 = iprot.readMapBegin();
                   struct.success = new HashMap<String,List<String>>(2*_map138.size);
-                  for (int _i139 = 0; _i139 < _map138.size; ++_i139)
+                  String _key139;
+                  List<String> _val140;
+                  for (int _i141 = 0; _i141 < _map138.size; ++_i141)
                   {
-                    String _key140; // required
-                    List<String> _val141; // required
-                    _key140 = iprot.readString();
+                    _key139 = iprot.readString();
                     {
                       org.apache.thrift.protocol.TList _list142 = iprot.readListBegin();
-                      _val141 = new ArrayList<String>(_list142.size);
-                      for (int _i143 = 0; _i143 < _list142.size; ++_i143)
+                      _val140 = new ArrayList<String>(_list142.size);
+                      String _elem143;
+                      for (int _i144 = 0; _i144 < _list142.size; ++_i144)
                       {
-                        String _elem144; // required
-                        _elem144 = iprot.readString();
-                        _val141.add(_elem144);
+                        _elem143 = iprot.readString();
+                        _val140.add(_elem143);
                       }
                       iprot.readListEnd();
                     }
-                    struct.success.put(_key140, _val141);
+                    struct.success.put(_key139, _val140);
                   }
                   iprot.readMapEnd();
                 }
@@ -3455,22 +3680,22 @@ public class SentryHDFSService {
           {
             org.apache.thrift.protocol.TMap _map149 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32());
             struct.success = new HashMap<String,List<String>>(2*_map149.size);
-            for (int _i150 = 0; _i150 < _map149.size; ++_i150)
+            String _key150;
+            List<String> _val151;
+            for (int _i152 = 0; _i152 < _map149.size; ++_i152)
             {
-              String _key151; // required
-              List<String> _val152; // required
-              _key151 = iprot.readString();
+              _key150 = iprot.readString();
               {
                 org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-                _val152 = new ArrayList<String>(_list153.size);
-                for (int _i154 = 0; _i154 < _list153.size; ++_i154)
+                _val151 = new ArrayList<String>(_list153.size);
+                String _elem154;
+                for (int _i155 = 0; _i155 < _list153.size; ++_i155)
                 {
-                  String _elem155; // required
-                  _elem155 = iprot.readString();
-                  _val152.add(_elem155);
+                  _elem154 = iprot.readString();
+                  _val151.add(_elem154);
                 }
               }
-              struct.success.put(_key151, _val152);
+              struct.success.put(_key150, _val151);
             }
           }
           struct.setSuccessIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TAuthzUpdateResponse.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TAuthzUpdateResponse.java b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TAuthzUpdateResponse.java
index ec1d2af..c21072f 100644
--- a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TAuthzUpdateResponse.java
+++ b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TAuthzUpdateResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.hdfs.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAuthzUpdateResponse implements org.apache.thrift.TBase<TAuthzUpdateResponse, TAuthzUpdateResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAuthzUpdateResponse implements org.apache.thrift.TBase<TAuthzUpdateResponse, TAuthzUpdateResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TAuthzUpdateResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAuthzUpdateResponse");
 
   private static final org.apache.thrift.protocol.TField AUTHZ_PATH_UPDATE_FIELD_DESC = new org.apache.thrift.protocol.TField("authzPathUpdate", org.apache.thrift.protocol.TType.LIST, (short)1);
@@ -108,7 +112,7 @@ public class TAuthzUpdateResponse implements org.apache.thrift.TBase<TAuthzUpdat
   }
 
   // isset id assignments
-  private _Fields optionals[] = {_Fields.AUTHZ_PATH_UPDATE,_Fields.AUTHZ_PERM_UPDATE};
+  private static final _Fields optionals[] = {_Fields.AUTHZ_PATH_UPDATE,_Fields.AUTHZ_PERM_UPDATE};
   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);
@@ -130,14 +134,14 @@ public class TAuthzUpdateResponse implements org.apache.thrift.TBase<TAuthzUpdat
    */
   public TAuthzUpdateResponse(TAuthzUpdateResponse other) {
     if (other.isSetAuthzPathUpdate()) {
-      List<TPathsUpdate> __this__authzPathUpdate = new ArrayList<TPathsUpdate>();
+      List<TPathsUpdate> __this__authzPathUpdate = new ArrayList<TPathsUpdate>(other.authzPathUpdate.size());
       for (TPathsUpdate other_element : other.authzPathUpdate) {
         __this__authzPathUpdate.add(new TPathsUpdate(other_element));
       }
       this.authzPathUpdate = __this__authzPathUpdate;
     }
     if (other.isSetAuthzPermUpdate()) {
-      List<TPermissionsUpdate> __this__authzPermUpdate = new ArrayList<TPermissionsUpdate>();
+      List<TPermissionsUpdate> __this__authzPermUpdate = new ArrayList<TPermissionsUpdate>(other.authzPermUpdate.size());
       for (TPermissionsUpdate other_element : other.authzPermUpdate) {
         __this__authzPermUpdate.add(new TPermissionsUpdate(other_element));
       }
@@ -315,45 +319,45 @@ public class TAuthzUpdateResponse implements org.apache.thrift.TBase<TAuthzUpdat
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_authzPathUpdate = true && (isSetAuthzPathUpdate());
-    builder.append(present_authzPathUpdate);
+    list.add(present_authzPathUpdate);
     if (present_authzPathUpdate)
-      builder.append(authzPathUpdate);
+      list.add(authzPathUpdate);
 
     boolean present_authzPermUpdate = true && (isSetAuthzPermUpdate());
-    builder.append(present_authzPermUpdate);
+    list.add(present_authzPermUpdate);
     if (present_authzPermUpdate)
-      builder.append(authzPermUpdate);
+      list.add(authzPermUpdate);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAuthzUpdateResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAuthzUpdateResponse typedOther = (TAuthzUpdateResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetAuthzPathUpdate()).compareTo(typedOther.isSetAuthzPathUpdate());
+    lastComparison = Boolean.valueOf(isSetAuthzPathUpdate()).compareTo(other.isSetAuthzPathUpdate());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthzPathUpdate()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzPathUpdate, typedOther.authzPathUpdate);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzPathUpdate, other.authzPathUpdate);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAuthzPermUpdate()).compareTo(typedOther.isSetAuthzPermUpdate());
+    lastComparison = Boolean.valueOf(isSetAuthzPermUpdate()).compareTo(other.isSetAuthzPermUpdate());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthzPermUpdate()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzPermUpdate, typedOther.authzPermUpdate);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzPermUpdate, other.authzPermUpdate);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -445,12 +449,12 @@ public class TAuthzUpdateResponse implements org.apache.thrift.TBase<TAuthzUpdat
               {
                 org.apache.thrift.protocol.TList _list122 = iprot.readListBegin();
                 struct.authzPathUpdate = new ArrayList<TPathsUpdate>(_list122.size);
-                for (int _i123 = 0; _i123 < _list122.size; ++_i123)
+                TPathsUpdate _elem123;
+                for (int _i124 = 0; _i124 < _list122.size; ++_i124)
                 {
-                  TPathsUpdate _elem124; // required
-                  _elem124 = new TPathsUpdate();
-                  _elem124.read(iprot);
-                  struct.authzPathUpdate.add(_elem124);
+                  _elem123 = new TPathsUpdate();
+                  _elem123.read(iprot);
+                  struct.authzPathUpdate.add(_elem123);
                 }
                 iprot.readListEnd();
               }
@@ -464,12 +468,12 @@ public class TAuthzUpdateResponse implements org.apache.thrift.TBase<TAuthzUpdat
               {
                 org.apache.thrift.protocol.TList _list125 = iprot.readListBegin();
                 struct.authzPermUpdate = new ArrayList<TPermissionsUpdate>(_list125.size);
-                for (int _i126 = 0; _i126 < _list125.size; ++_i126)
+                TPermissionsUpdate _elem126;
+                for (int _i127 = 0; _i127 < _list125.size; ++_i127)
                 {
-                  TPermissionsUpdate _elem127; // required
-                  _elem127 = new TPermissionsUpdate();
-                  _elem127.read(iprot);
-                  struct.authzPermUpdate.add(_elem127);
+                  _elem126 = new TPermissionsUpdate();
+                  _elem126.read(iprot);
+                  struct.authzPermUpdate.add(_elem126);
                 }
                 iprot.readListEnd();
               }
@@ -572,12 +576,12 @@ public class TAuthzUpdateResponse implements org.apache.thrift.TBase<TAuthzUpdat
         {
           org.apache.thrift.protocol.TList _list132 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.authzPathUpdate = new ArrayList<TPathsUpdate>(_list132.size);
-          for (int _i133 = 0; _i133 < _list132.size; ++_i133)
+          TPathsUpdate _elem133;
+          for (int _i134 = 0; _i134 < _list132.size; ++_i134)
           {
-            TPathsUpdate _elem134; // required
-            _elem134 = new TPathsUpdate();
-            _elem134.read(iprot);
-            struct.authzPathUpdate.add(_elem134);
+            _elem133 = new TPathsUpdate();
+            _elem133.read(iprot);
+            struct.authzPathUpdate.add(_elem133);
           }
         }
         struct.setAuthzPathUpdateIsSet(true);
@@ -586,12 +590,12 @@ public class TAuthzUpdateResponse implements org.apache.thrift.TBase<TAuthzUpdat
         {
           org.apache.thrift.protocol.TList _list135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.authzPermUpdate = new ArrayList<TPermissionsUpdate>(_list135.size);
-          for (int _i136 = 0; _i136 < _list135.size; ++_i136)
+          TPermissionsUpdate _elem136;
+          for (int _i137 = 0; _i137 < _list135.size; ++_i137)
           {
-            TPermissionsUpdate _elem137; // required
-            _elem137 = new TPermissionsUpdate();
-            _elem137.read(iprot);
-            struct.authzPermUpdate.add(_elem137);
+            _elem136 = new TPermissionsUpdate();
+            _elem136.read(iprot);
+            struct.authzPermUpdate.add(_elem136);
           }
         }
         struct.setAuthzPermUpdateIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathChanges.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathChanges.java b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathChanges.java
index 85254d7..4ba4f27 100644
--- a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathChanges.java
+++ b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathChanges.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.hdfs.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TPathChanges implements org.apache.thrift.TBase<TPathChanges, TPathChanges._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TPathChanges implements org.apache.thrift.TBase<TPathChanges, TPathChanges._Fields>, java.io.Serializable, Cloneable, Comparable<TPathChanges> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPathChanges");
 
   private static final org.apache.thrift.protocol.TField AUTHZ_OBJ_FIELD_DESC = new org.apache.thrift.protocol.TField("authzObj", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -152,23 +156,17 @@ public class TPathChanges implements org.apache.thrift.TBase<TPathChanges, TPath
       this.authzObj = other.authzObj;
     }
     if (other.isSetAddPaths()) {
-      List<List<String>> __this__addPaths = new ArrayList<List<String>>();
+      List<List<String>> __this__addPaths = new ArrayList<List<String>>(other.addPaths.size());
       for (List<String> other_element : other.addPaths) {
-        List<String> __this__addPaths_copy = new ArrayList<String>();
-        for (String other_element_element : other_element) {
-          __this__addPaths_copy.add(other_element_element);
-        }
+        List<String> __this__addPaths_copy = new ArrayList<String>(other_element);
         __this__addPaths.add(__this__addPaths_copy);
       }
       this.addPaths = __this__addPaths;
     }
     if (other.isSetDelPaths()) {
-      List<List<String>> __this__delPaths = new ArrayList<List<String>>();
+      List<List<String>> __this__delPaths = new ArrayList<List<String>>(other.delPaths.size());
       for (List<String> other_element : other.delPaths) {
-        List<String> __this__delPaths_copy = new ArrayList<String>();
-        for (String other_element_element : other_element) {
-          __this__delPaths_copy.add(other_element_element);
-        }
+        List<String> __this__delPaths_copy = new ArrayList<String>(other_element);
         __this__delPaths.add(__this__delPaths_copy);
       }
       this.delPaths = __this__delPaths;
@@ -391,60 +389,60 @@ public class TPathChanges implements org.apache.thrift.TBase<TPathChanges, TPath
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_authzObj = true && (isSetAuthzObj());
-    builder.append(present_authzObj);
+    list.add(present_authzObj);
     if (present_authzObj)
-      builder.append(authzObj);
+      list.add(authzObj);
 
     boolean present_addPaths = true && (isSetAddPaths());
-    builder.append(present_addPaths);
+    list.add(present_addPaths);
     if (present_addPaths)
-      builder.append(addPaths);
+      list.add(addPaths);
 
     boolean present_delPaths = true && (isSetDelPaths());
-    builder.append(present_delPaths);
+    list.add(present_delPaths);
     if (present_delPaths)
-      builder.append(delPaths);
+      list.add(delPaths);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TPathChanges other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TPathChanges typedOther = (TPathChanges)other;
 
-    lastComparison = Boolean.valueOf(isSetAuthzObj()).compareTo(typedOther.isSetAuthzObj());
+    lastComparison = Boolean.valueOf(isSetAuthzObj()).compareTo(other.isSetAuthzObj());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthzObj()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzObj, typedOther.authzObj);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzObj, other.authzObj);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAddPaths()).compareTo(typedOther.isSetAddPaths());
+    lastComparison = Boolean.valueOf(isSetAddPaths()).compareTo(other.isSetAddPaths());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAddPaths()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addPaths, typedOther.addPaths);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addPaths, other.addPaths);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetDelPaths()).compareTo(typedOther.isSetDelPaths());
+    lastComparison = Boolean.valueOf(isSetDelPaths()).compareTo(other.isSetDelPaths());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetDelPaths()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delPaths, typedOther.delPaths);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delPaths, other.delPaths);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -560,21 +558,21 @@ public class TPathChanges implements org.apache.thrift.TBase<TPathChanges, TPath
               {
                 org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
                 struct.addPaths = new ArrayList<List<String>>(_list0.size);
-                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
+                List<String> _elem1;
+                for (int _i2 = 0; _i2 < _list0.size; ++_i2)
                 {
-                  List<String> _elem2; // required
                   {
                     org.apache.thrift.protocol.TList _list3 = iprot.readListBegin();
-                    _elem2 = new ArrayList<String>(_list3.size);
-                    for (int _i4 = 0; _i4 < _list3.size; ++_i4)
+                    _elem1 = new ArrayList<String>(_list3.size);
+                    String _elem4;
+                    for (int _i5 = 0; _i5 < _list3.size; ++_i5)
                     {
-                      String _elem5; // required
-                      _elem5 = iprot.readString();
-                      _elem2.add(_elem5);
+                      _elem4 = iprot.readString();
+                      _elem1.add(_elem4);
                     }
                     iprot.readListEnd();
                   }
-                  struct.addPaths.add(_elem2);
+                  struct.addPaths.add(_elem1);
                 }
                 iprot.readListEnd();
               }
@@ -588,21 +586,21 @@ public class TPathChanges implements org.apache.thrift.TBase<TPathChanges, TPath
               {
                 org.apache.thrift.protocol.TList _list6 = iprot.readListBegin();
                 struct.delPaths = new ArrayList<List<String>>(_list6.size);
-                for (int _i7 = 0; _i7 < _list6.size; ++_i7)
+                List<String> _elem7;
+                for (int _i8 = 0; _i8 < _list6.size; ++_i8)
                 {
-                  List<String> _elem8; // required
                   {
                     org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
-                    _elem8 = new ArrayList<String>(_list9.size);
-                    for (int _i10 = 0; _i10 < _list9.size; ++_i10)
+                    _elem7 = new ArrayList<String>(_list9.size);
+                    String _elem10;
+                    for (int _i11 = 0; _i11 < _list9.size; ++_i11)
                     {
-                      String _elem11; // required
-                      _elem11 = iprot.readString();
-                      _elem8.add(_elem11);
+                      _elem10 = iprot.readString();
+                      _elem7.add(_elem10);
                     }
                     iprot.readListEnd();
                   }
-                  struct.delPaths.add(_elem8);
+                  struct.delPaths.add(_elem7);
                 }
                 iprot.readListEnd();
               }
@@ -721,40 +719,40 @@ public class TPathChanges implements org.apache.thrift.TBase<TPathChanges, TPath
       {
         org.apache.thrift.protocol.TList _list20 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, iprot.readI32());
         struct.addPaths = new ArrayList<List<String>>(_list20.size);
-        for (int _i21 = 0; _i21 < _list20.size; ++_i21)
+        List<String> _elem21;
+        for (int _i22 = 0; _i22 < _list20.size; ++_i22)
         {
-          List<String> _elem22; // required
           {
             org.apache.thrift.protocol.TList _list23 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-            _elem22 = new ArrayList<String>(_list23.size);
-            for (int _i24 = 0; _i24 < _list23.size; ++_i24)
+            _elem21 = new ArrayList<String>(_list23.size);
+            String _elem24;
+            for (int _i25 = 0; _i25 < _list23.size; ++_i25)
             {
-              String _elem25; // required
-              _elem25 = iprot.readString();
-              _elem22.add(_elem25);
+              _elem24 = iprot.readString();
+              _elem21.add(_elem24);
             }
           }
-          struct.addPaths.add(_elem22);
+          struct.addPaths.add(_elem21);
         }
       }
       struct.setAddPathsIsSet(true);
       {
         org.apache.thrift.protocol.TList _list26 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, iprot.readI32());
         struct.delPaths = new ArrayList<List<String>>(_list26.size);
-        for (int _i27 = 0; _i27 < _list26.size; ++_i27)
+        List<String> _elem27;
+        for (int _i28 = 0; _i28 < _list26.size; ++_i28)
         {
-          List<String> _elem28; // required
           {
             org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-            _elem28 = new ArrayList<String>(_list29.size);
-            for (int _i30 = 0; _i30 < _list29.size; ++_i30)
+            _elem27 = new ArrayList<String>(_list29.size);
+            String _elem30;
+            for (int _i31 = 0; _i31 < _list29.size; ++_i31)
             {
-              String _elem31; // required
-              _elem31 = iprot.readString();
-              _elem28.add(_elem31);
+              _elem30 = iprot.readString();
+              _elem27.add(_elem30);
             }
           }
-          struct.delPaths.add(_elem28);
+          struct.delPaths.add(_elem27);
         }
       }
       struct.setDelPathsIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathEntry.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathEntry.java b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathEntry.java
index 3e03130..722eaec 100644
--- a/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathEntry.java
+++ b/sentry-hdfs/sentry-hdfs-common/src/gen/thrift/gen-javabean/org/apache/sentry/hdfs/service/thrift/TPathEntry.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.hdfs.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TPathEntry implements org.apache.thrift.TBase<TPathEntry, TPathEntry._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TPathEntry implements org.apache.thrift.TBase<TPathEntry, TPathEntry._Fields>, java.io.Serializable, Cloneable, Comparable<TPathEntry> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPathEntry");
 
   private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.BYTE, (short)1);
@@ -120,7 +124,7 @@ public class TPathEntry implements org.apache.thrift.TBase<TPathEntry, TPathEntr
   // isset id assignments
   private static final int __TYPE_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.AUTHZ_OBJS};
+  private static final _Fields optionals[] = {_Fields.AUTHZ_OBJS};
   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);
@@ -163,17 +167,11 @@ public class TPathEntry implements org.apache.thrift.TBase<TPathEntry, TPathEntr
       this.pathElement = other.pathElement;
     }
     if (other.isSetChildren()) {
-      Set<Integer> __this__children = new HashSet<Integer>();
-      for (Integer other_element : other.children) {
-        __this__children.add(other_element);
-      }
+      Set<Integer> __this__children = new HashSet<Integer>(other.children);
       this.children = __this__children;
     }
     if (other.isSetAuthzObjs()) {
-      Set<String> __this__authzObjs = new HashSet<String>();
-      for (String other_element : other.authzObjs) {
-        __this__authzObjs.add(other_element);
-      }
+      Set<String> __this__authzObjs = new HashSet<String>(other.authzObjs);
       this.authzObjs = __this__authzObjs;
     }
   }
@@ -352,7 +350,7 @@ public class TPathEntry implements org.apache.thrift.TBase<TPathEntry, TPathEntr
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case TYPE:
-      return Byte.valueOf(getType());
+      return getType();
 
     case PATH_ELEMENT:
       return getPathElement();
@@ -440,75 +438,75 @@ public class TPathEntry implements org.apache.thrift.TBase<TPathEntry, TPathEntr
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_type = true;
-    builder.append(present_type);
+    list.add(present_type);
     if (present_type)
-      builder.append(type);
+      list.add(type);
 
     boolean present_pathElement = true && (isSetPathElement());
-    builder.append(present_pathElement);
+    list.add(present_pathElement);
     if (present_pathElement)
-      builder.append(pathElement);
+      list.add(pathElement);
 
     boolean present_children = true && (isSetChildren());
-    builder.append(present_children);
+    list.add(present_children);
     if (present_children)
-      builder.append(children);
+      list.add(children);
 
     boolean present_authzObjs = true && (isSetAuthzObjs());
-    builder.append(present_authzObjs);
+    list.add(present_authzObjs);
     if (present_authzObjs)
-      builder.append(authzObjs);
+      list.add(authzObjs);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TPathEntry other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TPathEntry typedOther = (TPathEntry)other;
 
-    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
+    lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetType()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPathElement()).compareTo(typedOther.isSetPathElement());
+    lastComparison = Boolean.valueOf(isSetPathElement()).compareTo(other.isSetPathElement());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPathElement()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathElement, typedOther.pathElement);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathElement, other.pathElement);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetChildren()).compareTo(typedOther.isSetChildren());
+    lastComparison = Boolean.valueOf(isSetChildren()).compareTo(other.isSetChildren());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetChildren()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.children, typedOther.children);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.children, other.children);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAuthzObjs()).compareTo(typedOther.isSetAuthzObjs());
+    lastComparison = Boolean.valueOf(isSetAuthzObjs()).compareTo(other.isSetAuthzObjs());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthzObjs()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzObjs, typedOther.authzObjs);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzObjs, other.authzObjs);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -640,11 +638,11 @@ public class TPathEntry implements org.apache.thrift.TBase<TPathEntry, TPathEntr
               {
                 org.apache.thrift.protocol.TSet _set32 = iprot.readSetBegin();
                 struct.children = new HashSet<Integer>(2*_set32.size);
-                for (int _i33 = 0; _i33 < _set32.size; ++_i33)
+                int _elem33;
+                for (int _i34 = 0; _i34 < _set32.size; ++_i34)
                 {
-                  int _elem34; // required
-                  _elem34 = iprot.readI32();
-                  struct.children.add(_elem34);
+                  _elem33 = iprot.readI32();
+                  struct.children.add(_elem33);
                 }
                 iprot.readSetEnd();
               }
@@ -658,11 +656,11 @@ public class TPathEntry implements org.apache.thrift.TBase<TPathEntry, TPathEntr
               {
                 org.apache.thrift.protocol.TSet _set35 = iprot.readSetBegin();
                 struct.authzObjs = new HashSet<String>(2*_set35.size);
-                for (int _i36 = 0; _i36 < _set35.size; ++_i36)
+                String _elem36;
+                for (int _i37 = 0; _i37 < _set35.size; ++_i37)
                 {
-                  String _elem37; // required
-                  _elem37 = iprot.readString();
-                  struct.authzObjs.add(_elem37);
+                  _elem36 = iprot.readString();
+                  struct.authzObjs.add(_elem36);
                 }
                 iprot.readSetEnd();
               }
@@ -770,11 +768,11 @@ public class TPathEntry implements org.apache.thrift.TBase<TPathEntry, TPathEntr
       {
         org.apache.thrift.protocol.TSet _set42 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I32, iprot.readI32());
         struct.children = new HashSet<Integer>(2*_set42.size);
-        for (int _i43 = 0; _i43 < _set42.size; ++_i43)
+        int _elem43;
+        for (int _i44 = 0; _i44 < _set42.size; ++_i44)
         {
-          int _elem44; // required
-          _elem44 = iprot.readI32();
-          struct.children.add(_elem44);
+          _elem43 = iprot.readI32();
+          struct.children.add(_elem43);
         }
       }
       struct.setChildrenIsSet(true);
@@ -783,11 +781,11 @@ public class TPathEntry implements org.apache.thrift.TBase<TPathEntry, TPathEntr
         {
           org.apache.thrift.protocol.TSet _set45 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
           struct.authzObjs = new HashSet<String>(2*_set45.size);
-          for (int _i46 = 0; _i46 < _set45.size; ++_i46)
+          String _elem46;
+          for (int _i47 = 0; _i47 < _set45.size; ++_i47)
           {
-            String _elem47; // required
-            _elem47 = iprot.readString();
-            struct.authzObjs.add(_elem47);
+            _elem46 = iprot.readString();
+            struct.authzObjs.add(_elem46);
           }
         }
         struct.setAuthzObjsIsSet(true);


[08/11] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)

Posted by sr...@apache.org.
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleAddGroupsRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleAddGroupsRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleAddGroupsRequest.java
index 330d37c..7e3a14c 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleAddGroupsRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleAddGroupsRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase<TAlterSentryRoleAddGroupsRequest, TAlterSentryRoleAddGroupsRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase<TAlterSentryRoleAddGroupsRequest, TAlterSentryRoleAddGroupsRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleAddGroupsRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleAddGroupsRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -180,10 +184,7 @@ public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase
       this.component = other.component;
     }
     if (other.isSetGroups()) {
-      Set<String> __this__groups = new HashSet<String>();
-      for (String other_element : other.groups) {
-        __this__groups.add(other_element);
-      }
+      Set<String> __this__groups = new HashSet<String>(other.groups);
       this.groups = __this__groups;
     }
   }
@@ -379,7 +380,7 @@ public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -481,90 +482,90 @@ public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
     boolean present_groups = true && (isSetGroups());
-    builder.append(present_groups);
+    list.add(present_groups);
     if (present_groups)
-      builder.append(groups);
+      list.add(groups);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleAddGroupsRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleAddGroupsRequest typedOther = (TAlterSentryRoleAddGroupsRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(typedOther.isSetGroups());
+    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(other.isSetGroups());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroups()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, typedOther.groups);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, other.groups);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -726,11 +727,11 @@ public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase
               {
                 org.apache.thrift.protocol.TSet _set8 = iprot.readSetBegin();
                 struct.groups = new HashSet<String>(2*_set8.size);
-                for (int _i9 = 0; _i9 < _set8.size; ++_i9)
+                String _elem9;
+                for (int _i10 = 0; _i10 < _set8.size; ++_i10)
                 {
-                  String _elem10; // required
-                  _elem10 = iprot.readString();
-                  struct.groups.add(_elem10);
+                  _elem9 = iprot.readString();
+                  struct.groups.add(_elem9);
                 }
                 iprot.readSetEnd();
               }
@@ -826,11 +827,11 @@ public class TAlterSentryRoleAddGroupsRequest implements org.apache.thrift.TBase
       {
         org.apache.thrift.protocol.TSet _set13 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.groups = new HashSet<String>(2*_set13.size);
-        for (int _i14 = 0; _i14 < _set13.size; ++_i14)
+        String _elem14;
+        for (int _i15 = 0; _i15 < _set13.size; ++_i15)
         {
-          String _elem15; // required
-          _elem15 = iprot.readString();
-          struct.groups.add(_elem15);
+          _elem14 = iprot.readString();
+          struct.groups.add(_elem14);
         }
       }
       struct.setGroupsIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleAddGroupsResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleAddGroupsResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleAddGroupsResponse.java
index c21c803..47555a6 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleAddGroupsResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleAddGroupsResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleAddGroupsResponse implements org.apache.thrift.TBase<TAlterSentryRoleAddGroupsResponse, TAlterSentryRoleAddGroupsResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleAddGroupsResponse implements org.apache.thrift.TBase<TAlterSentryRoleAddGroupsResponse, TAlterSentryRoleAddGroupsResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleAddGroupsResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleAddGroupsResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TAlterSentryRoleAddGroupsResponse implements org.apache.thrift.TBas
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleAddGroupsResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleAddGroupsResponse typedOther = (TAlterSentryRoleAddGroupsResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleDeleteGroupsRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleDeleteGroupsRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleDeleteGroupsRequest.java
index e7b65cd..a754fe4 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleDeleteGroupsRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleDeleteGroupsRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TBase<TAlterSentryRoleDeleteGroupsRequest, TAlterSentryRoleDeleteGroupsRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TBase<TAlterSentryRoleDeleteGroupsRequest, TAlterSentryRoleDeleteGroupsRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleDeleteGroupsRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleDeleteGroupsRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -180,10 +184,7 @@ public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TB
       this.component = other.component;
     }
     if (other.isSetGroups()) {
-      Set<String> __this__groups = new HashSet<String>();
-      for (String other_element : other.groups) {
-        __this__groups.add(other_element);
-      }
+      Set<String> __this__groups = new HashSet<String>(other.groups);
       this.groups = __this__groups;
     }
   }
@@ -379,7 +380,7 @@ public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TB
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -481,90 +482,90 @@ public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TB
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
     boolean present_groups = true && (isSetGroups());
-    builder.append(present_groups);
+    list.add(present_groups);
     if (present_groups)
-      builder.append(groups);
+      list.add(groups);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleDeleteGroupsRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleDeleteGroupsRequest typedOther = (TAlterSentryRoleDeleteGroupsRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(typedOther.isSetGroups());
+    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(other.isSetGroups());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroups()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, typedOther.groups);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, other.groups);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -726,11 +727,11 @@ public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TB
               {
                 org.apache.thrift.protocol.TSet _set16 = iprot.readSetBegin();
                 struct.groups = new HashSet<String>(2*_set16.size);
-                for (int _i17 = 0; _i17 < _set16.size; ++_i17)
+                String _elem17;
+                for (int _i18 = 0; _i18 < _set16.size; ++_i18)
                 {
-                  String _elem18; // required
-                  _elem18 = iprot.readString();
-                  struct.groups.add(_elem18);
+                  _elem17 = iprot.readString();
+                  struct.groups.add(_elem17);
                 }
                 iprot.readSetEnd();
               }
@@ -826,11 +827,11 @@ public class TAlterSentryRoleDeleteGroupsRequest implements org.apache.thrift.TB
       {
         org.apache.thrift.protocol.TSet _set21 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.groups = new HashSet<String>(2*_set21.size);
-        for (int _i22 = 0; _i22 < _set21.size; ++_i22)
+        String _elem22;
+        for (int _i23 = 0; _i23 < _set21.size; ++_i23)
         {
-          String _elem23; // required
-          _elem23 = iprot.readString();
-          struct.groups.add(_elem23);
+          _elem22 = iprot.readString();
+          struct.groups.add(_elem22);
         }
       }
       struct.setGroupsIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleDeleteGroupsResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleDeleteGroupsResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleDeleteGroupsResponse.java
index bf9143d..ded6d24 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleDeleteGroupsResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleDeleteGroupsResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleDeleteGroupsResponse implements org.apache.thrift.TBase<TAlterSentryRoleDeleteGroupsResponse, TAlterSentryRoleDeleteGroupsResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleDeleteGroupsResponse implements org.apache.thrift.TBase<TAlterSentryRoleDeleteGroupsResponse, TAlterSentryRoleDeleteGroupsResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleDeleteGroupsResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleDeleteGroupsResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TAlterSentryRoleDeleteGroupsResponse implements org.apache.thrift.T
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleDeleteGroupsResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleDeleteGroupsResponse typedOther = (TAlterSentryRoleDeleteGroupsResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleGrantPrivilegeRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleGrantPrivilegeRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleGrantPrivilegeRequest.java
index 4e245a3..d7b65fd 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleGrantPrivilegeRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleGrantPrivilegeRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleGrantPrivilegeRequest implements org.apache.thrift.TBase<TAlterSentryRoleGrantPrivilegeRequest, TAlterSentryRoleGrantPrivilegeRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleGrantPrivilegeRequest implements org.apache.thrift.TBase<TAlterSentryRoleGrantPrivilegeRequest, TAlterSentryRoleGrantPrivilegeRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleGrantPrivilegeRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleGrantPrivilegeRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -359,7 +363,7 @@ public class TAlterSentryRoleGrantPrivilegeRequest implements org.apache.thrift.
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -461,90 +465,90 @@ public class TAlterSentryRoleGrantPrivilegeRequest implements org.apache.thrift.
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
     boolean present_privilege = true && (isSetPrivilege());
-    builder.append(present_privilege);
+    list.add(present_privilege);
     if (present_privilege)
-      builder.append(privilege);
+      list.add(privilege);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleGrantPrivilegeRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleGrantPrivilegeRequest typedOther = (TAlterSentryRoleGrantPrivilegeRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(typedOther.isSetPrivilege());
+    lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(other.isSetPrivilege());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivilege()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, typedOther.privilege);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, other.privilege);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleGrantPrivilegeResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleGrantPrivilegeResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleGrantPrivilegeResponse.java
index 30be158..fcb1db3 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleGrantPrivilegeResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleGrantPrivilegeResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleGrantPrivilegeResponse implements org.apache.thrift.TBase<TAlterSentryRoleGrantPrivilegeResponse, TAlterSentryRoleGrantPrivilegeResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleGrantPrivilegeResponse implements org.apache.thrift.TBase<TAlterSentryRoleGrantPrivilegeResponse, TAlterSentryRoleGrantPrivilegeResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleGrantPrivilegeResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleGrantPrivilegeResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TAlterSentryRoleGrantPrivilegeResponse implements org.apache.thrift
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleGrantPrivilegeResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleGrantPrivilegeResponse typedOther = (TAlterSentryRoleGrantPrivilegeResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleRevokePrivilegeRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleRevokePrivilegeRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleRevokePrivilegeRequest.java
index e9e06ac..de0b371 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleRevokePrivilegeRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleRevokePrivilegeRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleRevokePrivilegeRequest implements org.apache.thrift.TBase<TAlterSentryRoleRevokePrivilegeRequest, TAlterSentryRoleRevokePrivilegeRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleRevokePrivilegeRequest implements org.apache.thrift.TBase<TAlterSentryRoleRevokePrivilegeRequest, TAlterSentryRoleRevokePrivilegeRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleRevokePrivilegeRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleRevokePrivilegeRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -359,7 +363,7 @@ public class TAlterSentryRoleRevokePrivilegeRequest implements org.apache.thrift
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -461,90 +465,90 @@ public class TAlterSentryRoleRevokePrivilegeRequest implements org.apache.thrift
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
     boolean present_privilege = true && (isSetPrivilege());
-    builder.append(present_privilege);
+    list.add(present_privilege);
     if (present_privilege)
-      builder.append(privilege);
+      list.add(privilege);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleRevokePrivilegeRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleRevokePrivilegeRequest typedOther = (TAlterSentryRoleRevokePrivilegeRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(typedOther.isSetPrivilege());
+    lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(other.isSetPrivilege());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivilege()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, typedOther.privilege);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, other.privilege);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleRevokePrivilegeResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleRevokePrivilegeResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleRevokePrivilegeResponse.java
index 9cf4792..d37fe4e 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleRevokePrivilegeResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAlterSentryRoleRevokePrivilegeResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleRevokePrivilegeResponse implements org.apache.thrift.TBase<TAlterSentryRoleRevokePrivilegeResponse, TAlterSentryRoleRevokePrivilegeResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleRevokePrivilegeResponse implements org.apache.thrift.TBase<TAlterSentryRoleRevokePrivilegeResponse, TAlterSentryRoleRevokePrivilegeResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleRevokePrivilegeResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleRevokePrivilegeResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TAlterSentryRoleRevokePrivilegeResponse implements org.apache.thrif
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleRevokePrivilegeResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleRevokePrivilegeResponse typedOther = (TAlterSentryRoleRevokePrivilegeResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAuthorizable.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAuthorizable.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAuthorizable.java
index 8653365..e0af045 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAuthorizable.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TAuthorizable.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAuthorizable implements org.apache.thrift.TBase<TAuthorizable, TAuthorizable._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAuthorizable implements org.apache.thrift.TBase<TAuthorizable, TAuthorizable._Fields>, java.io.Serializable, Cloneable, Comparable<TAuthorizable> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAuthorizable");
 
   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)1);
@@ -283,45 +287,45 @@ public class TAuthorizable implements org.apache.thrift.TBase<TAuthorizable, TAu
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_type = true && (isSetType());
-    builder.append(present_type);
+    list.add(present_type);
     if (present_type)
-      builder.append(type);
+      list.add(type);
 
     boolean present_name = true && (isSetName());
-    builder.append(present_name);
+    list.add(present_name);
     if (present_name)
-      builder.append(name);
+      list.add(name);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAuthorizable other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAuthorizable typedOther = (TAuthorizable)other;
 
-    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
+    lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetType()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
+    lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TCreateSentryRoleRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TCreateSentryRoleRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TCreateSentryRoleRequest.java
index 824361d..f6a0358 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TCreateSentryRoleRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TCreateSentryRoleRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreateSentryRoleRequest, TCreateSentryRoleRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreateSentryRoleRequest, TCreateSentryRoleRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TCreateSentryRoleRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCreateSentryRoleRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -315,7 +319,7 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -403,75 +407,75 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TCreateSentryRoleRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TCreateSentryRoleRequest typedOther = (TCreateSentryRoleRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TCreateSentryRoleResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TCreateSentryRoleResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TCreateSentryRoleResponse.java
index 5b79d11..f533a7e 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TCreateSentryRoleResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TCreateSentryRoleResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TCreateSentryRoleResponse implements org.apache.thrift.TBase<TCreateSentryRoleResponse, TCreateSentryRoleResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TCreateSentryRoleResponse implements org.apache.thrift.TBase<TCreateSentryRoleResponse, TCreateSentryRoleResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TCreateSentryRoleResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCreateSentryRoleResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TCreateSentryRoleResponse implements org.apache.thrift.TBase<TCreat
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TCreateSentryRoleResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TCreateSentryRoleResponse typedOther = (TCreateSentryRoleResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropPrivilegesRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropPrivilegesRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropPrivilegesRequest.java
index 667be2e..79724d3 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropPrivilegesRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropPrivilegesRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TDropPrivilegesRequest implements org.apache.thrift.TBase<TDropPrivilegesRequest, TDropPrivilegesRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TDropPrivilegesRequest implements org.apache.thrift.TBase<TDropPrivilegesRequest, TDropPrivilegesRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TDropPrivilegesRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDropPrivilegesRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -315,7 +319,7 @@ public class TDropPrivilegesRequest implements org.apache.thrift.TBase<TDropPriv
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -403,75 +407,75 @@ public class TDropPrivilegesRequest implements org.apache.thrift.TBase<TDropPriv
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_privilege = true && (isSetPrivilege());
-    builder.append(present_privilege);
+    list.add(present_privilege);
     if (present_privilege)
-      builder.append(privilege);
+      list.add(privilege);
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TDropPrivilegesRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TDropPrivilegesRequest typedOther = (TDropPrivilegesRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(typedOther.isSetPrivilege());
+    lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(other.isSetPrivilege());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivilege()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, typedOther.privilege);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, other.privilege);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropPrivilegesResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropPrivilegesResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropPrivilegesResponse.java
index 0863d8d..ef17c6b 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropPrivilegesResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropPrivilegesResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TDropPrivilegesResponse implements org.apache.thrift.TBase<TDropPrivilegesResponse, TDropPrivilegesResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TDropPrivilegesResponse implements org.apache.thrift.TBase<TDropPrivilegesResponse, TDropPrivilegesResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TDropPrivilegesResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDropPrivilegesResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TDropPrivilegesResponse implements org.apache.thrift.TBase<TDropPri
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TDropPrivilegesResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TDropPrivilegesResponse typedOther = (TDropPrivilegesResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropSentryRoleRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropSentryRoleRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropSentryRoleRequest.java
index 1e0c997..3952ed1 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropSentryRoleRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TDropSentryRoleRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSentryRoleRequest, TDropSentryRoleRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSentryRoleRequest, TDropSentryRoleRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TDropSentryRoleRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDropSentryRoleRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -315,7 +319,7 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -403,75 +407,75 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_component = true && (isSetComponent());
-    builder.append(present_component);
+    list.add(present_component);
     if (present_component)
-      builder.append(component);
+      list.add(component);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TDropSentryRoleRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TDropSentryRoleRequest typedOther = (TDropSentryRoleRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+    lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetComponent()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
       if (lastComparison != 0) {
         return lastComparison;
       }


[09/11] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)

Posted by sr...@apache.org.
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/SentryGenericPolicyService.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/SentryGenericPolicyService.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/SentryGenericPolicyService.java
index 5090fca..aa56e8d 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/SentryGenericPolicyService.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/SentryGenericPolicyService.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.generic.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,9 +29,12 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
 public class SentryGenericPolicyService {
 
   public interface Iface {
@@ -63,29 +67,29 @@ public class SentryGenericPolicyService {
 
   public interface AsyncIface {
 
-    public void create_sentry_role(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.create_sentry_role_call> resultHandler) throws org.apache.thrift.TException;
+    public void create_sentry_role(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void drop_sentry_role(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.drop_sentry_role_call> resultHandler) throws org.apache.thrift.TException;
+    public void drop_sentry_role(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_sentry_role_grant_privilege_call> resultHandler) throws org.apache.thrift.TException;
+    public void alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_sentry_role_revoke_privilege_call> resultHandler) throws org.apache.thrift.TException;
+    public void alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_sentry_role_add_groups_call> resultHandler) throws org.apache.thrift.TException;
+    public void alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_sentry_role_delete_groups_call> resultHandler) throws org.apache.thrift.TException;
+    public void alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void list_sentry_roles_by_group(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.list_sentry_roles_by_group_call> resultHandler) throws org.apache.thrift.TException;
+    public void list_sentry_roles_by_group(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void list_sentry_privileges_by_role(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.list_sentry_privileges_by_role_call> resultHandler) throws org.apache.thrift.TException;
+    public void list_sentry_privileges_by_role(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.list_sentry_privileges_for_provider_call> resultHandler) throws org.apache.thrift.TException;
+    public void list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.list_sentry_privileges_by_authorizable_call> resultHandler) throws org.apache.thrift.TException;
+    public void list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void drop_sentry_privilege(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.drop_sentry_privilege_call> resultHandler) throws org.apache.thrift.TException;
+    public void drop_sentry_privilege(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void rename_sentry_privilege(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.rename_sentry_privilege_call> resultHandler) throws org.apache.thrift.TException;
+    public void rename_sentry_privilege(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
   }
 
@@ -403,7 +407,7 @@ public class SentryGenericPolicyService {
       super(protocolFactory, clientManager, transport);
     }
 
-    public void create_sentry_role(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback<create_sentry_role_call> resultHandler) throws org.apache.thrift.TException {
+    public void create_sentry_role(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       create_sentry_role_call method_call = new create_sentry_role_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -412,7 +416,7 @@ public class SentryGenericPolicyService {
 
     public static class create_sentry_role_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TCreateSentryRoleRequest request;
-      public create_sentry_role_call(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback<create_sentry_role_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public create_sentry_role_call(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -435,7 +439,7 @@ public class SentryGenericPolicyService {
       }
     }
 
-    public void drop_sentry_role(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback<drop_sentry_role_call> resultHandler) throws org.apache.thrift.TException {
+    public void drop_sentry_role(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       drop_sentry_role_call method_call = new drop_sentry_role_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -444,7 +448,7 @@ public class SentryGenericPolicyService {
 
     public static class drop_sentry_role_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TDropSentryRoleRequest request;
-      public drop_sentry_role_call(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback<drop_sentry_role_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public drop_sentry_role_call(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -467,7 +471,7 @@ public class SentryGenericPolicyService {
       }
     }
 
-    public void alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_grant_privilege_call> resultHandler) throws org.apache.thrift.TException {
+    public void alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       alter_sentry_role_grant_privilege_call method_call = new alter_sentry_role_grant_privilege_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -476,7 +480,7 @@ public class SentryGenericPolicyService {
 
     public static class alter_sentry_role_grant_privilege_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TAlterSentryRoleGrantPrivilegeRequest request;
-      public alter_sentry_role_grant_privilege_call(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_grant_privilege_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public alter_sentry_role_grant_privilege_call(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -499,7 +503,7 @@ public class SentryGenericPolicyService {
       }
     }
 
-    public void alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_revoke_privilege_call> resultHandler) throws org.apache.thrift.TException {
+    public void alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       alter_sentry_role_revoke_privilege_call method_call = new alter_sentry_role_revoke_privilege_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -508,7 +512,7 @@ public class SentryGenericPolicyService {
 
     public static class alter_sentry_role_revoke_privilege_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TAlterSentryRoleRevokePrivilegeRequest request;
-      public alter_sentry_role_revoke_privilege_call(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_revoke_privilege_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public alter_sentry_role_revoke_privilege_call(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -531,7 +535,7 @@ public class SentryGenericPolicyService {
       }
     }
 
-    public void alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_add_groups_call> resultHandler) throws org.apache.thrift.TException {
+    public void alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       alter_sentry_role_add_groups_call method_call = new alter_sentry_role_add_groups_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -540,7 +544,7 @@ public class SentryGenericPolicyService {
 
     public static class alter_sentry_role_add_groups_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TAlterSentryRoleAddGroupsRequest request;
-      public alter_sentry_role_add_groups_call(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_add_groups_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public alter_sentry_role_add_groups_call(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -563,7 +567,7 @@ public class SentryGenericPolicyService {
       }
     }
 
-    public void alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_delete_groups_call> resultHandler) throws org.apache.thrift.TException {
+    public void alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       alter_sentry_role_delete_groups_call method_call = new alter_sentry_role_delete_groups_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -572,7 +576,7 @@ public class SentryGenericPolicyService {
 
     public static class alter_sentry_role_delete_groups_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TAlterSentryRoleDeleteGroupsRequest request;
-      public alter_sentry_role_delete_groups_call(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback<alter_sentry_role_delete_groups_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public alter_sentry_role_delete_groups_call(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -595,7 +599,7 @@ public class SentryGenericPolicyService {
       }
     }
 
-    public void list_sentry_roles_by_group(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_roles_by_group_call> resultHandler) throws org.apache.thrift.TException {
+    public void list_sentry_roles_by_group(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       list_sentry_roles_by_group_call method_call = new list_sentry_roles_by_group_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -604,7 +608,7 @@ public class SentryGenericPolicyService {
 
     public static class list_sentry_roles_by_group_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TListSentryRolesRequest request;
-      public list_sentry_roles_by_group_call(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_roles_by_group_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public list_sentry_roles_by_group_call(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -627,7 +631,7 @@ public class SentryGenericPolicyService {
       }
     }
 
-    public void list_sentry_privileges_by_role(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_privileges_by_role_call> resultHandler) throws org.apache.thrift.TException {
+    public void list_sentry_privileges_by_role(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       list_sentry_privileges_by_role_call method_call = new list_sentry_privileges_by_role_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -636,7 +640,7 @@ public class SentryGenericPolicyService {
 
     public static class list_sentry_privileges_by_role_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TListSentryPrivilegesRequest request;
-      public list_sentry_privileges_by_role_call(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_privileges_by_role_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public list_sentry_privileges_by_role_call(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -659,7 +663,7 @@ public class SentryGenericPolicyService {
       }
     }
 
-    public void list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_privileges_for_provider_call> resultHandler) throws org.apache.thrift.TException {
+    public void list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       list_sentry_privileges_for_provider_call method_call = new list_sentry_privileges_for_provider_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -668,7 +672,7 @@ public class SentryGenericPolicyService {
 
     public static class list_sentry_privileges_for_provider_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TListSentryPrivilegesForProviderRequest request;
-      public list_sentry_privileges_for_provider_call(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_privileges_for_provider_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public list_sentry_privileges_for_provider_call(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -691,7 +695,7 @@ public class SentryGenericPolicyService {
       }
     }
 
-    public void list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_privileges_by_authorizable_call> resultHandler) throws org.apache.thrift.TException {
+    public void list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       list_sentry_privileges_by_authorizable_call method_call = new list_sentry_privileges_by_authorizable_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -700,7 +704,7 @@ public class SentryGenericPolicyService {
 
     public static class list_sentry_privileges_by_authorizable_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TListSentryPrivilegesByAuthRequest request;
-      public list_sentry_privileges_by_authorizable_call(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback<list_sentry_privileges_by_authorizable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public list_sentry_privileges_by_authorizable_call(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -723,7 +727,7 @@ public class SentryGenericPolicyService {
       }
     }
 
-    public void drop_sentry_privilege(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<drop_sentry_privilege_call> resultHandler) throws org.apache.thrift.TException {
+    public void drop_sentry_privilege(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       drop_sentry_privilege_call method_call = new drop_sentry_privilege_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -732,7 +736,7 @@ public class SentryGenericPolicyService {
 
     public static class drop_sentry_privilege_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TDropPrivilegesRequest request;
-      public drop_sentry_privilege_call(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<drop_sentry_privilege_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public drop_sentry_privilege_call(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -755,7 +759,7 @@ public class SentryGenericPolicyService {
       }
     }
 
-    public void rename_sentry_privilege(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<rename_sentry_privilege_call> resultHandler) throws org.apache.thrift.TException {
+    public void rename_sentry_privilege(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       rename_sentry_privilege_call method_call = new rename_sentry_privilege_call(request, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -764,7 +768,7 @@ public class SentryGenericPolicyService {
 
     public static class rename_sentry_privilege_call extends org.apache.thrift.async.TAsyncMethodCall {
       private TRenamePrivilegesRequest request;
-      public rename_sentry_privilege_call(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback<rename_sentry_privilege_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+      public rename_sentry_privilege_call(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
         super(client, protocolFactory, transport, resultHandler, false);
         this.request = request;
       }
@@ -1057,7 +1061,647 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class create_sentry_role_args implements org.apache.thrift.TBase<create_sentry_role_args, create_sentry_role_args._Fields>, java.io.Serializable, Cloneable   {
+  public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
+    private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
+    public AsyncProcessor(I iface) {
+      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
+    }
+
+    protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
+      super(iface, getProcessMap(processMap));
+    }
+
+    private static <I extends AsyncIface> Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase,?>> getProcessMap(Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
+      processMap.put("create_sentry_role", new create_sentry_role());
+      processMap.put("drop_sentry_role", new drop_sentry_role());
+      processMap.put("alter_sentry_role_grant_privilege", new alter_sentry_role_grant_privilege());
+      processMap.put("alter_sentry_role_revoke_privilege", new alter_sentry_role_revoke_privilege());
+      processMap.put("alter_sentry_role_add_groups", new alter_sentry_role_add_groups());
+      processMap.put("alter_sentry_role_delete_groups", new alter_sentry_role_delete_groups());
+      processMap.put("list_sentry_roles_by_group", new list_sentry_roles_by_group());
+      processMap.put("list_sentry_privileges_by_role", new list_sentry_privileges_by_role());
+      processMap.put("list_sentry_privileges_for_provider", new list_sentry_privileges_for_provider());
+      processMap.put("list_sentry_privileges_by_authorizable", new list_sentry_privileges_by_authorizable());
+      processMap.put("drop_sentry_privilege", new drop_sentry_privilege());
+      processMap.put("rename_sentry_privilege", new rename_sentry_privilege());
+      return processMap;
+    }
+
+    public static class create_sentry_role<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, create_sentry_role_args, TCreateSentryRoleResponse> {
+      public create_sentry_role() {
+        super("create_sentry_role");
+      }
+
+      public create_sentry_role_args getEmptyArgsInstance() {
+        return new create_sentry_role_args();
+      }
+
+      public AsyncMethodCallback<TCreateSentryRoleResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TCreateSentryRoleResponse>() { 
+          public void onComplete(TCreateSentryRoleResponse o) {
+            create_sentry_role_result result = new create_sentry_role_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            create_sentry_role_result result = new create_sentry_role_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, create_sentry_role_args args, org.apache.thrift.async.AsyncMethodCallback<TCreateSentryRoleResponse> resultHandler) throws TException {
+        iface.create_sentry_role(args.request,resultHandler);
+      }
+    }
+
+    public static class drop_sentry_role<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, drop_sentry_role_args, TDropSentryRoleResponse> {
+      public drop_sentry_role() {
+        super("drop_sentry_role");
+      }
+
+      public drop_sentry_role_args getEmptyArgsInstance() {
+        return new drop_sentry_role_args();
+      }
+
+      public AsyncMethodCallback<TDropSentryRoleResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TDropSentryRoleResponse>() { 
+          public void onComplete(TDropSentryRoleResponse o) {
+            drop_sentry_role_result result = new drop_sentry_role_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            drop_sentry_role_result result = new drop_sentry_role_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, drop_sentry_role_args args, org.apache.thrift.async.AsyncMethodCallback<TDropSentryRoleResponse> resultHandler) throws TException {
+        iface.drop_sentry_role(args.request,resultHandler);
+      }
+    }
+
+    public static class alter_sentry_role_grant_privilege<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_grant_privilege_args, TAlterSentryRoleGrantPrivilegeResponse> {
+      public alter_sentry_role_grant_privilege() {
+        super("alter_sentry_role_grant_privilege");
+      }
+
+      public alter_sentry_role_grant_privilege_args getEmptyArgsInstance() {
+        return new alter_sentry_role_grant_privilege_args();
+      }
+
+      public AsyncMethodCallback<TAlterSentryRoleGrantPrivilegeResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TAlterSentryRoleGrantPrivilegeResponse>() { 
+          public void onComplete(TAlterSentryRoleGrantPrivilegeResponse o) {
+            alter_sentry_role_grant_privilege_result result = new alter_sentry_role_grant_privilege_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            alter_sentry_role_grant_privilege_result result = new alter_sentry_role_grant_privilege_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, alter_sentry_role_grant_privilege_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleGrantPrivilegeResponse> resultHandler) throws TException {
+        iface.alter_sentry_role_grant_privilege(args.request,resultHandler);
+      }
+    }
+
+    public static class alter_sentry_role_revoke_privilege<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_revoke_privilege_args, TAlterSentryRoleRevokePrivilegeResponse> {
+      public alter_sentry_role_revoke_privilege() {
+        super("alter_sentry_role_revoke_privilege");
+      }
+
+      public alter_sentry_role_revoke_privilege_args getEmptyArgsInstance() {
+        return new alter_sentry_role_revoke_privilege_args();
+      }
+
+      public AsyncMethodCallback<TAlterSentryRoleRevokePrivilegeResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TAlterSentryRoleRevokePrivilegeResponse>() { 
+          public void onComplete(TAlterSentryRoleRevokePrivilegeResponse o) {
+            alter_sentry_role_revoke_privilege_result result = new alter_sentry_role_revoke_privilege_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            alter_sentry_role_revoke_privilege_result result = new alter_sentry_role_revoke_privilege_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, alter_sentry_role_revoke_privilege_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleRevokePrivilegeResponse> resultHandler) throws TException {
+        iface.alter_sentry_role_revoke_privilege(args.request,resultHandler);
+      }
+    }
+
+    public static class alter_sentry_role_add_groups<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_add_groups_args, TAlterSentryRoleAddGroupsResponse> {
+      public alter_sentry_role_add_groups() {
+        super("alter_sentry_role_add_groups");
+      }
+
+      public alter_sentry_role_add_groups_args getEmptyArgsInstance() {
+        return new alter_sentry_role_add_groups_args();
+      }
+
+      public AsyncMethodCallback<TAlterSentryRoleAddGroupsResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TAlterSentryRoleAddGroupsResponse>() { 
+          public void onComplete(TAlterSentryRoleAddGroupsResponse o) {
+            alter_sentry_role_add_groups_result result = new alter_sentry_role_add_groups_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            alter_sentry_role_add_groups_result result = new alter_sentry_role_add_groups_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, alter_sentry_role_add_groups_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleAddGroupsResponse> resultHandler) throws TException {
+        iface.alter_sentry_role_add_groups(args.request,resultHandler);
+      }
+    }
+
+    public static class alter_sentry_role_delete_groups<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_delete_groups_args, TAlterSentryRoleDeleteGroupsResponse> {
+      public alter_sentry_role_delete_groups() {
+        super("alter_sentry_role_delete_groups");
+      }
+
+      public alter_sentry_role_delete_groups_args getEmptyArgsInstance() {
+        return new alter_sentry_role_delete_groups_args();
+      }
+
+      public AsyncMethodCallback<TAlterSentryRoleDeleteGroupsResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TAlterSentryRoleDeleteGroupsResponse>() { 
+          public void onComplete(TAlterSentryRoleDeleteGroupsResponse o) {
+            alter_sentry_role_delete_groups_result result = new alter_sentry_role_delete_groups_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            alter_sentry_role_delete_groups_result result = new alter_sentry_role_delete_groups_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, alter_sentry_role_delete_groups_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleDeleteGroupsResponse> resultHandler) throws TException {
+        iface.alter_sentry_role_delete_groups(args.request,resultHandler);
+      }
+    }
+
+    public static class list_sentry_roles_by_group<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_roles_by_group_args, TListSentryRolesResponse> {
+      public list_sentry_roles_by_group() {
+        super("list_sentry_roles_by_group");
+      }
+
+      public list_sentry_roles_by_group_args getEmptyArgsInstance() {
+        return new list_sentry_roles_by_group_args();
+      }
+
+      public AsyncMethodCallback<TListSentryRolesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TListSentryRolesResponse>() { 
+          public void onComplete(TListSentryRolesResponse o) {
+            list_sentry_roles_by_group_result result = new list_sentry_roles_by_group_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            list_sentry_roles_by_group_result result = new list_sentry_roles_by_group_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, list_sentry_roles_by_group_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryRolesResponse> resultHandler) throws TException {
+        iface.list_sentry_roles_by_group(args.request,resultHandler);
+      }
+    }
+
+    public static class list_sentry_privileges_by_role<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_privileges_by_role_args, TListSentryPrivilegesResponse> {
+      public list_sentry_privileges_by_role() {
+        super("list_sentry_privileges_by_role");
+      }
+
+      public list_sentry_privileges_by_role_args getEmptyArgsInstance() {
+        return new list_sentry_privileges_by_role_args();
+      }
+
+      public AsyncMethodCallback<TListSentryPrivilegesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TListSentryPrivilegesResponse>() { 
+          public void onComplete(TListSentryPrivilegesResponse o) {
+            list_sentry_privileges_by_role_result result = new list_sentry_privileges_by_role_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            list_sentry_privileges_by_role_result result = new list_sentry_privileges_by_role_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, list_sentry_privileges_by_role_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryPrivilegesResponse> resultHandler) throws TException {
+        iface.list_sentry_privileges_by_role(args.request,resultHandler);
+      }
+    }
+
+    public static class list_sentry_privileges_for_provider<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_privileges_for_provider_args, TListSentryPrivilegesForProviderResponse> {
+      public list_sentry_privileges_for_provider() {
+        super("list_sentry_privileges_for_provider");
+      }
+
+      public list_sentry_privileges_for_provider_args getEmptyArgsInstance() {
+        return new list_sentry_privileges_for_provider_args();
+      }
+
+      public AsyncMethodCallback<TListSentryPrivilegesForProviderResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TListSentryPrivilegesForProviderResponse>() { 
+          public void onComplete(TListSentryPrivilegesForProviderResponse o) {
+            list_sentry_privileges_for_provider_result result = new list_sentry_privileges_for_provider_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            list_sentry_privileges_for_provider_result result = new list_sentry_privileges_for_provider_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, list_sentry_privileges_for_provider_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryPrivilegesForProviderResponse> resultHandler) throws TException {
+        iface.list_sentry_privileges_for_provider(args.request,resultHandler);
+      }
+    }
+
+    public static class list_sentry_privileges_by_authorizable<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_privileges_by_authorizable_args, TListSentryPrivilegesByAuthResponse> {
+      public list_sentry_privileges_by_authorizable() {
+        super("list_sentry_privileges_by_authorizable");
+      }
+
+      public list_sentry_privileges_by_authorizable_args getEmptyArgsInstance() {
+        return new list_sentry_privileges_by_authorizable_args();
+      }
+
+      public AsyncMethodCallback<TListSentryPrivilegesByAuthResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TListSentryPrivilegesByAuthResponse>() { 
+          public void onComplete(TListSentryPrivilegesByAuthResponse o) {
+            list_sentry_privileges_by_authorizable_result result = new list_sentry_privileges_by_authorizable_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            list_sentry_privileges_by_authorizable_result result = new list_sentry_privileges_by_authorizable_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, list_sentry_privileges_by_authorizable_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryPrivilegesByAuthResponse> resultHandler) throws TException {
+        iface.list_sentry_privileges_by_authorizable(args.request,resultHandler);
+      }
+    }
+
+    public static class drop_sentry_privilege<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, drop_sentry_privilege_args, TDropPrivilegesResponse> {
+      public drop_sentry_privilege() {
+        super("drop_sentry_privilege");
+      }
+
+      public drop_sentry_privilege_args getEmptyArgsInstance() {
+        return new drop_sentry_privilege_args();
+      }
+
+      public AsyncMethodCallback<TDropPrivilegesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TDropPrivilegesResponse>() { 
+          public void onComplete(TDropPrivilegesResponse o) {
+            drop_sentry_privilege_result result = new drop_sentry_privilege_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            drop_sentry_privilege_result result = new drop_sentry_privilege_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, drop_sentry_privilege_args args, org.apache.thrift.async.AsyncMethodCallback<TDropPrivilegesResponse> resultHandler) throws TException {
+        iface.drop_sentry_privilege(args.request,resultHandler);
+      }
+    }
+
+    public static class rename_sentry_privilege<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, rename_sentry_privilege_args, TRenamePrivilegesResponse> {
+      public rename_sentry_privilege() {
+        super("rename_sentry_privilege");
+      }
+
+      public rename_sentry_privilege_args getEmptyArgsInstance() {
+        return new rename_sentry_privilege_args();
+      }
+
+      public AsyncMethodCallback<TRenamePrivilegesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<TRenamePrivilegesResponse>() { 
+          public void onComplete(TRenamePrivilegesResponse o) {
+            rename_sentry_privilege_result result = new rename_sentry_privilege_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            rename_sentry_privilege_result result = new rename_sentry_privilege_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, rename_sentry_privilege_args args, org.apache.thrift.async.AsyncMethodCallback<TRenamePrivilegesResponse> resultHandler) throws TException {
+        iface.rename_sentry_privilege(args.request,resultHandler);
+      }
+    }
+
+  }
+
+  public static class create_sentry_role_args implements org.apache.thrift.TBase<create_sentry_role_args, create_sentry_role_args._Fields>, java.io.Serializable, Cloneable, Comparable<create_sentry_role_args>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_sentry_role_args");
 
     private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -1251,30 +1895,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_request = true && (isSetRequest());
-      builder.append(present_request);
+      list.add(present_request);
       if (present_request)
-        builder.append(request);
+        list.add(request);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(create_sentry_role_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      create_sentry_role_args typedOther = (create_sentry_role_args)other;
 
-      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest());
+      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetRequest()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -1420,7 +2064,7 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class create_sentry_role_result implements org.apache.thrift.TBase<create_sentry_role_result, create_sentry_role_result._Fields>, java.io.Serializable, Cloneable   {
+  public static class create_sentry_role_result implements org.apache.thrift.TBase<create_sentry_role_result, create_sentry_role_result._Fields>, java.io.Serializable, Cloneable, Comparable<create_sentry_role_result>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_sentry_role_result");
 
     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
@@ -1614,30 +2258,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_success = true && (isSetSuccess());
-      builder.append(present_success);
+      list.add(present_success);
       if (present_success)
-        builder.append(success);
+        list.add(success);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(create_sentry_role_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      create_sentry_role_result typedOther = (create_sentry_role_result)other;
 
-      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
+      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetSuccess()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -1783,7 +2427,7 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class drop_sentry_role_args implements org.apache.thrift.TBase<drop_sentry_role_args, drop_sentry_role_args._Fields>, java.io.Serializable, Cloneable   {
+  public static class drop_sentry_role_args implements org.apache.thrift.TBase<drop_sentry_role_args, drop_sentry_role_args._Fields>, java.io.Serializable, Cloneable, Comparable<drop_sentry_role_args>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_sentry_role_args");
 
     private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -1977,30 +2621,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_request = true && (isSetRequest());
-      builder.append(present_request);
+      list.add(present_request);
       if (present_request)
-        builder.append(request);
+        list.add(request);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(drop_sentry_role_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      drop_sentry_role_args typedOther = (drop_sentry_role_args)other;
 
-      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest());
+      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetRequest()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -2146,7 +2790,7 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class drop_sentry_role_result implements org.apache.thrift.TBase<drop_sentry_role_result, drop_sentry_role_result._Fields>, java.io.Serializable, Cloneable   {
+  public static class drop_sentry_role_result implements org.apache.thrift.TBase<drop_sentry_role_result, drop_sentry_role_result._Fields>, java.io.Serializable, Cloneable, Comparable<drop_sentry_role_result>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_sentry_role_result");
 
     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
@@ -2340,30 +2984,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_success = true && (isSetSuccess());
-      builder.append(present_success);
+      list.add(present_success);
       if (present_success)
-        builder.append(success);
+        list.add(success);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(drop_sentry_role_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      drop_sentry_role_result typedOther = (drop_sentry_role_result)other;
 
-      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
+      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetSuccess()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -2509,7 +3153,7 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class alter_sentry_role_grant_privilege_args implements org.apache.thrift.TBase<alter_sentry_role_grant_privilege_args, alter_sentry_role_grant_privilege_args._Fields>, java.io.Serializable, Cloneable   {
+  public static class alter_sentry_role_grant_privilege_args implements org.apache.thrift.TBase<alter_sentry_role_grant_privilege_args, alter_sentry_role_grant_privilege_args._Fields>, java.io.Serializable, Cloneable, Comparable<alter_sentry_role_grant_privilege_args>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_sentry_role_grant_privilege_args");
 
     private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -2703,30 +3347,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_request = true && (isSetRequest());
-      builder.append(present_request);
+      list.add(present_request);
       if (present_request)
-        builder.append(request);
+        list.add(request);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(alter_sentry_role_grant_privilege_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      alter_sentry_role_grant_privilege_args typedOther = (alter_sentry_role_grant_privilege_args)other;
 
-      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest());
+      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetRequest()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -2872,7 +3516,7 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class alter_sentry_role_grant_privilege_result implements org.apache.thrift.TBase<alter_sentry_role_grant_privilege_result, alter_sentry_role_grant_privilege_result._Fields>, java.io.Serializable, Cloneable   {
+  public static class alter_sentry_role_grant_privilege_result implements org.apache.thrift.TBase<alter_sentry_role_grant_privilege_result, alter_sentry_role_grant_privilege_result._Fields>, java.io.Serializable, Cloneable, Comparable<alter_sentry_role_grant_privilege_result>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_sentry_role_grant_privilege_result");
 
     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
@@ -3066,30 +3710,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_success = true && (isSetSuccess());
-      builder.append(present_success);
+      list.add(present_success);
       if (present_success)
-        builder.append(success);
+        list.add(success);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(alter_sentry_role_grant_privilege_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      alter_sentry_role_grant_privilege_result typedOther = (alter_sentry_role_grant_privilege_result)other;
 
-      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
+      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetSuccess()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -3235,7 +3879,7 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class alter_sentry_role_revoke_privilege_args implements org.apache.thrift.TBase<alter_sentry_role_revoke_privilege_args, alter_sentry_role_revoke_privilege_args._Fields>, java.io.Serializable, Cloneable   {
+  public static class alter_sentry_role_revoke_privilege_args implements org.apache.thrift.TBase<alter_sentry_role_revoke_privilege_args, alter_sentry_role_revoke_privilege_args._Fields>, java.io.Serializable, Cloneable, Comparable<alter_sentry_role_revoke_privilege_args>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_sentry_role_revoke_privilege_args");
 
     private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -3429,30 +4073,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_request = true && (isSetRequest());
-      builder.append(present_request);
+      list.add(present_request);
       if (present_request)
-        builder.append(request);
+        list.add(request);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(alter_sentry_role_revoke_privilege_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      alter_sentry_role_revoke_privilege_args typedOther = (alter_sentry_role_revoke_privilege_args)other;
 
-      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest());
+      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetRequest()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -3598,7 +4242,7 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class alter_sentry_role_revoke_privilege_result implements org.apache.thrift.TBase<alter_sentry_role_revoke_privilege_result, alter_sentry_role_revoke_privilege_result._Fields>, java.io.Serializable, Cloneable   {
+  public static class alter_sentry_role_revoke_privilege_result implements org.apache.thrift.TBase<alter_sentry_role_revoke_privilege_result, alter_sentry_role_revoke_privilege_result._Fields>, java.io.Serializable, Cloneable, Comparable<alter_sentry_role_revoke_privilege_result>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_sentry_role_revoke_privilege_result");
 
     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
@@ -3792,30 +4436,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_success = true && (isSetSuccess());
-      builder.append(present_success);
+      list.add(present_success);
       if (present_success)
-        builder.append(success);
+        list.add(success);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(alter_sentry_role_revoke_privilege_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      alter_sentry_role_revoke_privilege_result typedOther = (alter_sentry_role_revoke_privilege_result)other;
 
-      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
+      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetSuccess()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -3961,7 +4605,7 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class alter_sentry_role_add_groups_args implements org.apache.thrift.TBase<alter_sentry_role_add_groups_args, alter_sentry_role_add_groups_args._Fields>, java.io.Serializable, Cloneable   {
+  public static class alter_sentry_role_add_groups_args implements org.apache.thrift.TBase<alter_sentry_role_add_groups_args, alter_sentry_role_add_groups_args._Fields>, java.io.Serializable, Cloneable, Comparable<alter_sentry_role_add_groups_args>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_sentry_role_add_groups_args");
 
     private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -4155,30 +4799,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_request = true && (isSetRequest());
-      builder.append(present_request);
+      list.add(present_request);
       if (present_request)
-        builder.append(request);
+        list.add(request);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(alter_sentry_role_add_groups_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      alter_sentry_role_add_groups_args typedOther = (alter_sentry_role_add_groups_args)other;
 
-      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest());
+      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetRequest()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -4324,7 +4968,7 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class alter_sentry_role_add_groups_result implements org.apache.thrift.TBase<alter_sentry_role_add_groups_result, alter_sentry_role_add_groups_result._Fields>, java.io.Serializable, Cloneable   {
+  public static class alter_sentry_role_add_groups_result implements org.apache.thrift.TBase<alter_sentry_role_add_groups_result, alter_sentry_role_add_groups_result._Fields>, java.io.Serializable, Cloneable, Comparable<alter_sentry_role_add_groups_result>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_sentry_role_add_groups_result");
 
     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
@@ -4518,30 +5162,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_success = true && (isSetSuccess());
-      builder.append(present_success);
+      list.add(present_success);
       if (present_success)
-        builder.append(success);
+        list.add(success);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(alter_sentry_role_add_groups_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      alter_sentry_role_add_groups_result typedOther = (alter_sentry_role_add_groups_result)other;
 
-      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
+      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetSuccess()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -4687,7 +5331,7 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class alter_sentry_role_delete_groups_args implements org.apache.thrift.TBase<alter_sentry_role_delete_groups_args, alter_sentry_role_delete_groups_args._Fields>, java.io.Serializable, Cloneable   {
+  public static class alter_sentry_role_delete_groups_args implements org.apache.thrift.TBase<alter_sentry_role_delete_groups_args, alter_sentry_role_delete_groups_args._Fields>, java.io.Serializable, Cloneable, Comparable<alter_sentry_role_delete_groups_args>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_sentry_role_delete_groups_args");
 
     private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -4881,30 +5525,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_request = true && (isSetRequest());
-      builder.append(present_request);
+      list.add(present_request);
       if (present_request)
-        builder.append(request);
+        list.add(request);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(alter_sentry_role_delete_groups_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      alter_sentry_role_delete_groups_args typedOther = (alter_sentry_role_delete_groups_args)other;
 
-      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest());
+      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetRequest()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -5050,7 +5694,7 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class alter_sentry_role_delete_groups_result implements org.apache.thrift.TBase<alter_sentry_role_delete_groups_result, alter_sentry_role_delete_groups_result._Fields>, java.io.Serializable, Cloneable   {
+  public static class alter_sentry_role_delete_groups_result implements org.apache.thrift.TBase<alter_sentry_role_delete_groups_result, alter_sentry_role_delete_groups_result._Fields>, java.io.Serializable, Cloneable, Comparable<alter_sentry_role_delete_groups_result>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_sentry_role_delete_groups_result");
 
     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
@@ -5244,30 +5888,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_success = true && (isSetSuccess());
-      builder.append(present_success);
+      list.add(present_success);
       if (present_success)
-        builder.append(success);
+        list.add(success);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(alter_sentry_role_delete_groups_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      alter_sentry_role_delete_groups_result typedOther = (alter_sentry_role_delete_groups_result)other;
 
-      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
+      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetSuccess()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -5413,7 +6057,7 @@ public class SentryGenericPolicyService {
 
   }
 
-  public static class list_sentry_roles_by_group_args implements org.apache.thrift.TBase<list_sentry_roles_by_group_args, list_sentry_roles_by_group_args._Fields>, java.io.Serializable, Cloneable   {
+  public static class list_sentry_roles_by_group_args implements org.apache.thrift.TBase<list_sentry_roles_by_group_args, list_sentry_roles_by_group_args._Fields>, java.io.Serializable, Cloneable, Comparable<list_sentry_roles_by_group_args>   {
     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_sentry_roles_by_group_args");
 
     private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -5607,30 +6251,30 @@ public class SentryGenericPolicyService {
 
     @Override
     public int hashCode() {
-      HashCodeBuilder builder = new HashCodeBuilder();
+      List<Object> list = new ArrayList<Object>();
 
       boolean present_request = true && (isSetRequest());
-      builder.append(present_request);
+      list.add(present_request);
       if (present_request)
-        builder.append(request);
+        list.add(request);
 
-      return builder.toHashCode();
+      return list.hashCode();
     }
 
+    @Override
     public int compareTo(list_sentry_roles_by_group_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
-      list_sentry_roles_by_group_args typedOther = (list_sentry_roles_by_group_args)other;
 
-      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest());
+      lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest());
       if (lastComparison != 0) {
         return lastComparison;
       }
       if (isSetRequest()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request);
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
         if (lastComparison != 0) 

<TRUNCATED>

[03/11] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)

Posted by sr...@apache.org.
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleRevokePrivilegeResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleRevokePrivilegeResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleRevokePrivilegeResponse.java
index d431e37..9f331d3 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleRevokePrivilegeResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TAlterSentryRoleRevokePrivilegeResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TAlterSentryRoleRevokePrivilegeResponse implements org.apache.thrift.TBase<TAlterSentryRoleRevokePrivilegeResponse, TAlterSentryRoleRevokePrivilegeResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TAlterSentryRoleRevokePrivilegeResponse implements org.apache.thrift.TBase<TAlterSentryRoleRevokePrivilegeResponse, TAlterSentryRoleRevokePrivilegeResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TAlterSentryRoleRevokePrivilegeResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAlterSentryRoleRevokePrivilegeResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TAlterSentryRoleRevokePrivilegeResponse implements org.apache.thrif
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TAlterSentryRoleRevokePrivilegeResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TAlterSentryRoleRevokePrivilegeResponse typedOther = (TAlterSentryRoleRevokePrivilegeResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleRequest.java
index 5bf7cb3..a3f9e6b 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreateSentryRoleRequest, TCreateSentryRoleRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreateSentryRoleRequest, TCreateSentryRoleRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TCreateSentryRoleRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCreateSentryRoleRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -271,7 +275,7 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -345,60 +349,60 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TCreateSentryRoleRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TCreateSentryRoleRequest typedOther = (TCreateSentryRoleRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleResponse.java
index fcb3f41..68068a7 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TCreateSentryRoleResponse implements org.apache.thrift.TBase<TCreateSentryRoleResponse, TCreateSentryRoleResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TCreateSentryRoleResponse implements org.apache.thrift.TBase<TCreateSentryRoleResponse, TCreateSentryRoleResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TCreateSentryRoleResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCreateSentryRoleResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TCreateSentryRoleResponse implements org.apache.thrift.TBase<TCreat
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TCreateSentryRoleResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TCreateSentryRoleResponse typedOther = (TCreateSentryRoleResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropPrivilegesRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropPrivilegesRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropPrivilegesRequest.java
index 8f5a2b3..8cd89fd 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropPrivilegesRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropPrivilegesRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TDropPrivilegesRequest implements org.apache.thrift.TBase<TDropPrivilegesRequest, TDropPrivilegesRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TDropPrivilegesRequest implements org.apache.thrift.TBase<TDropPrivilegesRequest, TDropPrivilegesRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TDropPrivilegesRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDropPrivilegesRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -271,7 +275,7 @@ public class TDropPrivilegesRequest implements org.apache.thrift.TBase<TDropPriv
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -345,60 +349,60 @@ public class TDropPrivilegesRequest implements org.apache.thrift.TBase<TDropPriv
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_authorizable = true && (isSetAuthorizable());
-    builder.append(present_authorizable);
+    list.add(present_authorizable);
     if (present_authorizable)
-      builder.append(authorizable);
+      list.add(authorizable);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TDropPrivilegesRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TDropPrivilegesRequest typedOther = (TDropPrivilegesRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAuthorizable()).compareTo(typedOther.isSetAuthorizable());
+    lastComparison = Boolean.valueOf(isSetAuthorizable()).compareTo(other.isSetAuthorizable());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthorizable()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizable, typedOther.authorizable);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizable, other.authorizable);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropPrivilegesResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropPrivilegesResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropPrivilegesResponse.java
index 24f7926..6e49039 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropPrivilegesResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropPrivilegesResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TDropPrivilegesResponse implements org.apache.thrift.TBase<TDropPrivilegesResponse, TDropPrivilegesResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TDropPrivilegesResponse implements org.apache.thrift.TBase<TDropPrivilegesResponse, TDropPrivilegesResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TDropPrivilegesResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDropPrivilegesResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TDropPrivilegesResponse implements org.apache.thrift.TBase<TDropPri
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TDropPrivilegesResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TDropPrivilegesResponse typedOther = (TDropPrivilegesResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleRequest.java
index 753f86c..2255815 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSentryRoleRequest, TDropSentryRoleRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSentryRoleRequest, TDropSentryRoleRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TDropSentryRoleRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDropSentryRoleRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -271,7 +275,7 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -345,60 +349,60 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TDropSentryRoleRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TDropSentryRoleRequest typedOther = (TDropSentryRoleRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleResponse.java
index efcf96d..8036c5b 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TDropSentryRoleResponse implements org.apache.thrift.TBase<TDropSentryRoleResponse, TDropSentryRoleResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TDropSentryRoleResponse implements org.apache.thrift.TBase<TDropSentryRoleResponse, TDropSentryRoleResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TDropSentryRoleResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDropSentryRoleResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TDropSentryRoleResponse implements org.apache.thrift.TBase<TDropSen
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TDropSentryRoleResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TDropSentryRoleResponse typedOther = (TDropSentryRoleResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesByAuthRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesByAuthRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesByAuthRequest.java
index f1188b2..029d531 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesByAuthRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesByAuthRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBase<TListSentryPrivilegesByAuthRequest, TListSentryPrivilegesByAuthRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBase<TListSentryPrivilegesByAuthRequest, TListSentryPrivilegesByAuthRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryPrivilegesByAuthRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryPrivilegesByAuthRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -125,7 +129,7 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
   // isset id assignments
   private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.GROUPS,_Fields.ROLE_SET};
+  private static final _Fields optionals[] = {_Fields.GROUPS,_Fields.ROLE_SET};
   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);
@@ -172,17 +176,14 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
       this.requestorUserName = other.requestorUserName;
     }
     if (other.isSetAuthorizableSet()) {
-      Set<TSentryAuthorizable> __this__authorizableSet = new HashSet<TSentryAuthorizable>();
+      Set<TSentryAuthorizable> __this__authorizableSet = new HashSet<TSentryAuthorizable>(other.authorizableSet.size());
       for (TSentryAuthorizable other_element : other.authorizableSet) {
         __this__authorizableSet.add(new TSentryAuthorizable(other_element));
       }
       this.authorizableSet = __this__authorizableSet;
     }
     if (other.isSetGroups()) {
-      Set<String> __this__groups = new HashSet<String>();
-      for (String other_element : other.groups) {
-        __this__groups.add(other_element);
-      }
+      Set<String> __this__groups = new HashSet<String>(other.groups);
       this.groups = __this__groups;
     }
     if (other.isSetRoleSet()) {
@@ -396,7 +397,7 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -498,90 +499,90 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_authorizableSet = true && (isSetAuthorizableSet());
-    builder.append(present_authorizableSet);
+    list.add(present_authorizableSet);
     if (present_authorizableSet)
-      builder.append(authorizableSet);
+      list.add(authorizableSet);
 
     boolean present_groups = true && (isSetGroups());
-    builder.append(present_groups);
+    list.add(present_groups);
     if (present_groups)
-      builder.append(groups);
+      list.add(groups);
 
     boolean present_roleSet = true && (isSetRoleSet());
-    builder.append(present_roleSet);
+    list.add(present_roleSet);
     if (present_roleSet)
-      builder.append(roleSet);
+      list.add(roleSet);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryPrivilegesByAuthRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryPrivilegesByAuthRequest typedOther = (TListSentryPrivilegesByAuthRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAuthorizableSet()).compareTo(typedOther.isSetAuthorizableSet());
+    lastComparison = Boolean.valueOf(isSetAuthorizableSet()).compareTo(other.isSetAuthorizableSet());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthorizableSet()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizableSet, typedOther.authorizableSet);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizableSet, other.authorizableSet);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(typedOther.isSetGroups());
+    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(other.isSetGroups());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroups()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, typedOther.groups);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, other.groups);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleSet()).compareTo(typedOther.isSetRoleSet());
+    lastComparison = Boolean.valueOf(isSetRoleSet()).compareTo(other.isSetRoleSet());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleSet()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleSet, typedOther.roleSet);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleSet, other.roleSet);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -726,12 +727,12 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
               {
                 org.apache.thrift.protocol.TSet _set130 = iprot.readSetBegin();
                 struct.authorizableSet = new HashSet<TSentryAuthorizable>(2*_set130.size);
-                for (int _i131 = 0; _i131 < _set130.size; ++_i131)
+                TSentryAuthorizable _elem131;
+                for (int _i132 = 0; _i132 < _set130.size; ++_i132)
                 {
-                  TSentryAuthorizable _elem132; // required
-                  _elem132 = new TSentryAuthorizable();
-                  _elem132.read(iprot);
-                  struct.authorizableSet.add(_elem132);
+                  _elem131 = new TSentryAuthorizable();
+                  _elem131.read(iprot);
+                  struct.authorizableSet.add(_elem131);
                 }
                 iprot.readSetEnd();
               }
@@ -745,11 +746,11 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
               {
                 org.apache.thrift.protocol.TSet _set133 = iprot.readSetBegin();
                 struct.groups = new HashSet<String>(2*_set133.size);
-                for (int _i134 = 0; _i134 < _set133.size; ++_i134)
+                String _elem134;
+                for (int _i135 = 0; _i135 < _set133.size; ++_i135)
                 {
-                  String _elem135; // required
-                  _elem135 = iprot.readString();
-                  struct.groups.add(_elem135);
+                  _elem134 = iprot.readString();
+                  struct.groups.add(_elem134);
                 }
                 iprot.readSetEnd();
               }
@@ -879,12 +880,12 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
       {
         org.apache.thrift.protocol.TSet _set140 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
         struct.authorizableSet = new HashSet<TSentryAuthorizable>(2*_set140.size);
-        for (int _i141 = 0; _i141 < _set140.size; ++_i141)
+        TSentryAuthorizable _elem141;
+        for (int _i142 = 0; _i142 < _set140.size; ++_i142)
         {
-          TSentryAuthorizable _elem142; // required
-          _elem142 = new TSentryAuthorizable();
-          _elem142.read(iprot);
-          struct.authorizableSet.add(_elem142);
+          _elem141 = new TSentryAuthorizable();
+          _elem141.read(iprot);
+          struct.authorizableSet.add(_elem141);
         }
       }
       struct.setAuthorizableSetIsSet(true);
@@ -893,11 +894,11 @@ public class TListSentryPrivilegesByAuthRequest implements org.apache.thrift.TBa
         {
           org.apache.thrift.protocol.TSet _set143 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
           struct.groups = new HashSet<String>(2*_set143.size);
-          for (int _i144 = 0; _i144 < _set143.size; ++_i144)
+          String _elem144;
+          for (int _i145 = 0; _i145 < _set143.size; ++_i145)
           {
-            String _elem145; // required
-            _elem145 = iprot.readString();
-            struct.groups.add(_elem145);
+            _elem144 = iprot.readString();
+            struct.groups.add(_elem144);
           }
         }
         struct.setGroupsIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesByAuthResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesByAuthResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesByAuthResponse.java
index 513f88a..2d1a8cf 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesByAuthResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesByAuthResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TBase<TListSentryPrivilegesByAuthResponse, TListSentryPrivilegesByAuthResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TBase<TListSentryPrivilegesByAuthResponse, TListSentryPrivilegesByAuthResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryPrivilegesByAuthResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryPrivilegesByAuthResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -108,7 +112,7 @@ public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TB
   }
 
   // isset id assignments
-  private _Fields optionals[] = {_Fields.PRIVILEGES_MAP_BY_AUTH};
+  private static final _Fields optionals[] = {_Fields.PRIVILEGES_MAP_BY_AUTH};
   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);
@@ -140,7 +144,7 @@ public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TB
       this.status = new org.apache.sentry.service.thrift.TSentryResponseStatus(other.status);
     }
     if (other.isSetPrivilegesMapByAuth()) {
-      Map<TSentryAuthorizable,TSentryPrivilegeMap> __this__privilegesMapByAuth = new HashMap<TSentryAuthorizable,TSentryPrivilegeMap>();
+      Map<TSentryAuthorizable,TSentryPrivilegeMap> __this__privilegesMapByAuth = new HashMap<TSentryAuthorizable,TSentryPrivilegeMap>(other.privilegesMapByAuth.size());
       for (Map.Entry<TSentryAuthorizable, TSentryPrivilegeMap> other_element : other.privilegesMapByAuth.entrySet()) {
 
         TSentryAuthorizable other_element_key = other_element.getKey();
@@ -307,45 +311,45 @@ public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TB
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
     boolean present_privilegesMapByAuth = true && (isSetPrivilegesMapByAuth());
-    builder.append(present_privilegesMapByAuth);
+    list.add(present_privilegesMapByAuth);
     if (present_privilegesMapByAuth)
-      builder.append(privilegesMapByAuth);
+      list.add(privilegesMapByAuth);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryPrivilegesByAuthResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryPrivilegesByAuthResponse typedOther = (TListSentryPrivilegesByAuthResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivilegesMapByAuth()).compareTo(typedOther.isSetPrivilegesMapByAuth());
+    lastComparison = Boolean.valueOf(isSetPrivilegesMapByAuth()).compareTo(other.isSetPrivilegesMapByAuth());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivilegesMapByAuth()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegesMapByAuth, typedOther.privilegesMapByAuth);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegesMapByAuth, other.privilegesMapByAuth);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -451,15 +455,15 @@ public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TB
               {
                 org.apache.thrift.protocol.TMap _map146 = iprot.readMapBegin();
                 struct.privilegesMapByAuth = new HashMap<TSentryAuthorizable,TSentryPrivilegeMap>(2*_map146.size);
-                for (int _i147 = 0; _i147 < _map146.size; ++_i147)
+                TSentryAuthorizable _key147;
+                TSentryPrivilegeMap _val148;
+                for (int _i149 = 0; _i149 < _map146.size; ++_i149)
                 {
-                  TSentryAuthorizable _key148; // required
-                  TSentryPrivilegeMap _val149; // required
-                  _key148 = new TSentryAuthorizable();
-                  _key148.read(iprot);
-                  _val149 = new TSentryPrivilegeMap();
-                  _val149.read(iprot);
-                  struct.privilegesMapByAuth.put(_key148, _val149);
+                  _key147 = new TSentryAuthorizable();
+                  _key147.read(iprot);
+                  _val148 = new TSentryPrivilegeMap();
+                  _val148.read(iprot);
+                  struct.privilegesMapByAuth.put(_key147, _val148);
                 }
                 iprot.readMapEnd();
               }
@@ -547,15 +551,15 @@ public class TListSentryPrivilegesByAuthResponse implements org.apache.thrift.TB
         {
           org.apache.thrift.protocol.TMap _map152 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
           struct.privilegesMapByAuth = new HashMap<TSentryAuthorizable,TSentryPrivilegeMap>(2*_map152.size);
-          for (int _i153 = 0; _i153 < _map152.size; ++_i153)
+          TSentryAuthorizable _key153;
+          TSentryPrivilegeMap _val154;
+          for (int _i155 = 0; _i155 < _map152.size; ++_i155)
           {
-            TSentryAuthorizable _key154; // required
-            TSentryPrivilegeMap _val155; // required
-            _key154 = new TSentryAuthorizable();
-            _key154.read(iprot);
-            _val155 = new TSentryPrivilegeMap();
-            _val155.read(iprot);
-            struct.privilegesMapByAuth.put(_key154, _val155);
+            _key153 = new TSentryAuthorizable();
+            _key153.read(iprot);
+            _val154 = new TSentryPrivilegeMap();
+            _val154.read(iprot);
+            struct.privilegesMapByAuth.put(_key153, _val154);
           }
         }
         struct.setPrivilegesMapByAuthIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderRequest.java
index e695eb0..2c8ad8d 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryPrivilegesForProviderRequest implements org.apache.thrift.TBase<TListSentryPrivilegesForProviderRequest, TListSentryPrivilegesForProviderRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryPrivilegesForProviderRequest implements org.apache.thrift.TBase<TListSentryPrivilegesForProviderRequest, TListSentryPrivilegesForProviderRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryPrivilegesForProviderRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryPrivilegesForProviderRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -125,7 +129,7 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
   // isset id assignments
   private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.AUTHORIZABLE_HIERARCHY,_Fields.USERS};
+  private static final _Fields optionals[] = {_Fields.AUTHORIZABLE_HIERARCHY,_Fields.USERS};
   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);
@@ -169,10 +173,7 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
     __isset_bitfield = other.__isset_bitfield;
     this.protocol_version = other.protocol_version;
     if (other.isSetGroups()) {
-      Set<String> __this__groups = new HashSet<String>();
-      for (String other_element : other.groups) {
-        __this__groups.add(other_element);
-      }
+      Set<String> __this__groups = new HashSet<String>(other.groups);
       this.groups = __this__groups;
     }
     if (other.isSetRoleSet()) {
@@ -182,10 +183,7 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
       this.authorizableHierarchy = new TSentryAuthorizable(other.authorizableHierarchy);
     }
     if (other.isSetUsers()) {
-      Set<String> __this__users = new HashSet<String>();
-      for (String other_element : other.users) {
-        __this__users.add(other_element);
-      }
+      Set<String> __this__users = new HashSet<String>(other.users);
       this.users = __this__users;
     }
   }
@@ -396,7 +394,7 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case GROUPS:
       return getGroups();
@@ -498,90 +496,90 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_groups = true && (isSetGroups());
-    builder.append(present_groups);
+    list.add(present_groups);
     if (present_groups)
-      builder.append(groups);
+      list.add(groups);
 
     boolean present_roleSet = true && (isSetRoleSet());
-    builder.append(present_roleSet);
+    list.add(present_roleSet);
     if (present_roleSet)
-      builder.append(roleSet);
+      list.add(roleSet);
 
     boolean present_authorizableHierarchy = true && (isSetAuthorizableHierarchy());
-    builder.append(present_authorizableHierarchy);
+    list.add(present_authorizableHierarchy);
     if (present_authorizableHierarchy)
-      builder.append(authorizableHierarchy);
+      list.add(authorizableHierarchy);
 
     boolean present_users = true && (isSetUsers());
-    builder.append(present_users);
+    list.add(present_users);
     if (present_users)
-      builder.append(users);
+      list.add(users);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryPrivilegesForProviderRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryPrivilegesForProviderRequest typedOther = (TListSentryPrivilegesForProviderRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(typedOther.isSetGroups());
+    lastComparison = Boolean.valueOf(isSetGroups()).compareTo(other.isSetGroups());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetGroups()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, typedOther.groups);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, other.groups);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleSet()).compareTo(typedOther.isSetRoleSet());
+    lastComparison = Boolean.valueOf(isSetRoleSet()).compareTo(other.isSetRoleSet());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleSet()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleSet, typedOther.roleSet);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleSet, other.roleSet);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAuthorizableHierarchy()).compareTo(typedOther.isSetAuthorizableHierarchy());
+    lastComparison = Boolean.valueOf(isSetAuthorizableHierarchy()).compareTo(other.isSetAuthorizableHierarchy());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthorizableHierarchy()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizableHierarchy, typedOther.authorizableHierarchy);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizableHierarchy, other.authorizableHierarchy);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetUsers()).compareTo(typedOther.isSetUsers());
+    lastComparison = Boolean.valueOf(isSetUsers()).compareTo(other.isSetUsers());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetUsers()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.users, typedOther.users);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.users, other.users);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -721,11 +719,11 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
               {
                 org.apache.thrift.protocol.TSet _set88 = iprot.readSetBegin();
                 struct.groups = new HashSet<String>(2*_set88.size);
-                for (int _i89 = 0; _i89 < _set88.size; ++_i89)
+                String _elem89;
+                for (int _i90 = 0; _i90 < _set88.size; ++_i90)
                 {
-                  String _elem90; // required
-                  _elem90 = iprot.readString();
-                  struct.groups.add(_elem90);
+                  _elem89 = iprot.readString();
+                  struct.groups.add(_elem89);
                 }
                 iprot.readSetEnd();
               }
@@ -757,11 +755,11 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
               {
                 org.apache.thrift.protocol.TSet _set91 = iprot.readSetBegin();
                 struct.users = new HashSet<String>(2*_set91.size);
-                for (int _i92 = 0; _i92 < _set91.size; ++_i92)
+                String _elem92;
+                for (int _i93 = 0; _i93 < _set91.size; ++_i93)
                 {
-                  String _elem93; // required
-                  _elem93 = iprot.readString();
-                  struct.users.add(_elem93);
+                  _elem92 = iprot.readString();
+                  struct.users.add(_elem92);
                 }
                 iprot.readSetEnd();
               }
@@ -880,11 +878,11 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
       {
         org.apache.thrift.protocol.TSet _set98 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.groups = new HashSet<String>(2*_set98.size);
-        for (int _i99 = 0; _i99 < _set98.size; ++_i99)
+        String _elem99;
+        for (int _i100 = 0; _i100 < _set98.size; ++_i100)
         {
-          String _elem100; // required
-          _elem100 = iprot.readString();
-          struct.groups.add(_elem100);
+          _elem99 = iprot.readString();
+          struct.groups.add(_elem99);
         }
       }
       struct.setGroupsIsSet(true);
@@ -901,11 +899,11 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
         {
           org.apache.thrift.protocol.TSet _set101 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
           struct.users = new HashSet<String>(2*_set101.size);
-          for (int _i102 = 0; _i102 < _set101.size; ++_i102)
+          String _elem102;
+          for (int _i103 = 0; _i103 < _set101.size; ++_i103)
           {
-            String _elem103; // required
-            _elem103 = iprot.readString();
-            struct.users.add(_elem103);
+            _elem102 = iprot.readString();
+            struct.users.add(_elem102);
           }
         }
         struct.setUsersIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderResponse.java
index aa6594b..3860b19 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderResponse.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryPrivilegesForProviderResponse implements org.apache.thrift.TBase<TListSentryPrivilegesForProviderResponse, TListSentryPrivilegesForProviderResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryPrivilegesForProviderResponse implements org.apache.thrift.TBase<TListSentryPrivilegesForProviderResponse, TListSentryPrivilegesForProviderResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryPrivilegesForProviderResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryPrivilegesForProviderResponse");
 
   private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -140,10 +144,7 @@ public class TListSentryPrivilegesForProviderResponse implements org.apache.thri
       this.status = new org.apache.sentry.service.thrift.TSentryResponseStatus(other.status);
     }
     if (other.isSetPrivileges()) {
-      Set<String> __this__privileges = new HashSet<String>();
-      for (String other_element : other.privileges) {
-        __this__privileges.add(other_element);
-      }
+      Set<String> __this__privileges = new HashSet<String>(other.privileges);
       this.privileges = __this__privileges;
     }
   }
@@ -303,45 +304,45 @@ public class TListSentryPrivilegesForProviderResponse implements org.apache.thri
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_status = true && (isSetStatus());
-    builder.append(present_status);
+    list.add(present_status);
     if (present_status)
-      builder.append(status);
+      list.add(status);
 
     boolean present_privileges = true && (isSetPrivileges());
-    builder.append(present_privileges);
+    list.add(present_privileges);
     if (present_privileges)
-      builder.append(privileges);
+      list.add(privileges);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryPrivilegesForProviderResponse other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryPrivilegesForProviderResponse typedOther = (TListSentryPrivilegesForProviderResponse)other;
 
-    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetStatus()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges());
+    lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetPrivileges()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -449,11 +450,11 @@ public class TListSentryPrivilegesForProviderResponse implements org.apache.thri
               {
                 org.apache.thrift.protocol.TSet _set104 = iprot.readSetBegin();
                 struct.privileges = new HashSet<String>(2*_set104.size);
-                for (int _i105 = 0; _i105 < _set104.size; ++_i105)
+                String _elem105;
+                for (int _i106 = 0; _i106 < _set104.size; ++_i106)
                 {
-                  String _elem106; // required
-                  _elem106 = iprot.readString();
-                  struct.privileges.add(_elem106);
+                  _elem105 = iprot.readString();
+                  struct.privileges.add(_elem105);
                 }
                 iprot.readSetEnd();
               }
@@ -528,11 +529,11 @@ public class TListSentryPrivilegesForProviderResponse implements org.apache.thri
       {
         org.apache.thrift.protocol.TSet _set109 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
         struct.privileges = new HashSet<String>(2*_set109.size);
-        for (int _i110 = 0; _i110 < _set109.size; ++_i110)
+        String _elem110;
+        for (int _i111 = 0; _i111 < _set109.size; ++_i111)
         {
-          String _elem111; // required
-          _elem111 = iprot.readString();
-          struct.privileges.add(_elem111);
+          _elem110 = iprot.readString();
+          struct.privileges.add(_elem110);
         }
       }
       struct.setPrivilegesIsSet(true);

http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesRequest.java
index 0b9301b..e74495b 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesRequest.java
@@ -1,12 +1,11 @@
 /**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.sentry.provider.db.service.thrift;
 
-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;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
 import org.apache.thrift.protocol.TProtocolException;
 import org.apache.thrift.EncodingUtils;
 import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
 import java.util.BitSet;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
+import javax.annotation.Generated;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TListSentryPrivilegesRequest, TListSentryPrivilegesRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TListSentryPrivilegesRequest, TListSentryPrivilegesRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TListSentryPrivilegesRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TListSentryPrivilegesRequest");
 
   private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -120,7 +124,7 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
   // isset id assignments
   private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
   private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.AUTHORIZABLE_HIERARCHY};
+  private static final _Fields optionals[] = {_Fields.AUTHORIZABLE_HIERARCHY};
   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);
@@ -314,7 +318,7 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
   public Object getFieldValue(_Fields field) {
     switch (field) {
     case PROTOCOL_VERSION:
-      return Integer.valueOf(getProtocol_version());
+      return getProtocol_version();
 
     case REQUESTOR_USER_NAME:
       return getRequestorUserName();
@@ -402,75 +406,75 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
 
   @Override
   public int hashCode() {
-    HashCodeBuilder builder = new HashCodeBuilder();
+    List<Object> list = new ArrayList<Object>();
 
     boolean present_protocol_version = true;
-    builder.append(present_protocol_version);
+    list.add(present_protocol_version);
     if (present_protocol_version)
-      builder.append(protocol_version);
+      list.add(protocol_version);
 
     boolean present_requestorUserName = true && (isSetRequestorUserName());
-    builder.append(present_requestorUserName);
+    list.add(present_requestorUserName);
     if (present_requestorUserName)
-      builder.append(requestorUserName);
+      list.add(requestorUserName);
 
     boolean present_roleName = true && (isSetRoleName());
-    builder.append(present_roleName);
+    list.add(present_roleName);
     if (present_roleName)
-      builder.append(roleName);
+      list.add(roleName);
 
     boolean present_authorizableHierarchy = true && (isSetAuthorizableHierarchy());
-    builder.append(present_authorizableHierarchy);
+    list.add(present_authorizableHierarchy);
     if (present_authorizableHierarchy)
-      builder.append(authorizableHierarchy);
+      list.add(authorizableHierarchy);
 
-    return builder.toHashCode();
+    return list.hashCode();
   }
 
+  @Override
   public int compareTo(TListSentryPrivilegesRequest other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
 
     int lastComparison = 0;
-    TListSentryPrivilegesRequest typedOther = (TListSentryPrivilegesRequest)other;
 
-    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+    lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetProtocol_version()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+    lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRequestorUserName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+    lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetRoleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAuthorizableHierarchy()).compareTo(typedOther.isSetAuthorizableHierarchy());
+    lastComparison = Boolean.valueOf(isSetAuthorizableHierarchy()).compareTo(other.isSetAuthorizableHierarchy());
     if (lastComparison != 0) {
       return lastComparison;
     }
     if (isSetAuthorizableHierarchy()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizableHierarchy, typedOther.authorizableHierarchy);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizableHierarchy, other.authorizableHierarchy);
       if (lastComparison != 0) {
         return lastComparison;
       }