sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject [08/18] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3 (Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)
Date Mon, 13 Jun 2016 02:52:12 GMT
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);


Mime
View raw message