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:06:00 UTC
[04/11] sentry git commit: SENTRY-1236: Bump thrift version to 0.9.3
(Sravya Tirukkovalur, Reviewed by: Lenni Kuff and Hao Hao)
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);