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:02 UTC
[06/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/generic/service/thrift/TRenamePrivilegesRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesRequest.java
index 6b2ec0a..22b5133 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesRequest.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.sentry.provider.db.generic.service.thrift;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRenamePrivilegesRequest, TRenamePrivilegesRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRenamePrivilegesRequest, TRenamePrivilegesRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TRenamePrivilegesRequest> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRenamePrivilegesRequest");
private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -190,14 +194,14 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
this.serviceName = other.serviceName;
}
if (other.isSetOldAuthorizables()) {
- List<TAuthorizable> __this__oldAuthorizables = new ArrayList<TAuthorizable>();
+ List<TAuthorizable> __this__oldAuthorizables = new ArrayList<TAuthorizable>(other.oldAuthorizables.size());
for (TAuthorizable other_element : other.oldAuthorizables) {
__this__oldAuthorizables.add(new TAuthorizable(other_element));
}
this.oldAuthorizables = __this__oldAuthorizables;
}
if (other.isSetNewAuthorizables()) {
- List<TAuthorizable> __this__newAuthorizables = new ArrayList<TAuthorizable>();
+ List<TAuthorizable> __this__newAuthorizables = new ArrayList<TAuthorizable>(other.newAuthorizables.size());
for (TAuthorizable other_element : other.newAuthorizables) {
__this__newAuthorizables.add(new TAuthorizable(other_element));
}
@@ -443,7 +447,7 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
public Object getFieldValue(_Fields field) {
switch (field) {
case PROTOCOL_VERSION:
- return Integer.valueOf(getProtocol_version());
+ return getProtocol_version();
case REQUESTOR_USER_NAME:
return getRequestorUserName();
@@ -559,105 +563,105 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_protocol_version = true;
- builder.append(present_protocol_version);
+ list.add(present_protocol_version);
if (present_protocol_version)
- builder.append(protocol_version);
+ list.add(protocol_version);
boolean present_requestorUserName = true && (isSetRequestorUserName());
- builder.append(present_requestorUserName);
+ list.add(present_requestorUserName);
if (present_requestorUserName)
- builder.append(requestorUserName);
+ list.add(requestorUserName);
boolean present_component = true && (isSetComponent());
- builder.append(present_component);
+ list.add(present_component);
if (present_component)
- builder.append(component);
+ list.add(component);
boolean present_serviceName = true && (isSetServiceName());
- builder.append(present_serviceName);
+ list.add(present_serviceName);
if (present_serviceName)
- builder.append(serviceName);
+ list.add(serviceName);
boolean present_oldAuthorizables = true && (isSetOldAuthorizables());
- builder.append(present_oldAuthorizables);
+ list.add(present_oldAuthorizables);
if (present_oldAuthorizables)
- builder.append(oldAuthorizables);
+ list.add(oldAuthorizables);
boolean present_newAuthorizables = true && (isSetNewAuthorizables());
- builder.append(present_newAuthorizables);
+ list.add(present_newAuthorizables);
if (present_newAuthorizables)
- builder.append(newAuthorizables);
+ list.add(newAuthorizables);
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(TRenamePrivilegesRequest other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- TRenamePrivilegesRequest typedOther = (TRenamePrivilegesRequest)other;
- lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(typedOther.isSetProtocol_version());
+ lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetProtocol_version()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, typedOther.protocol_version);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(typedOther.isSetRequestorUserName());
+ lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRequestorUserName()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, typedOther.requestorUserName);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+ lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetComponent()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(typedOther.isSetServiceName());
+ lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(other.isSetServiceName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetServiceName()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, typedOther.serviceName);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, other.serviceName);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetOldAuthorizables()).compareTo(typedOther.isSetOldAuthorizables());
+ lastComparison = Boolean.valueOf(isSetOldAuthorizables()).compareTo(other.isSetOldAuthorizables());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetOldAuthorizables()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldAuthorizables, typedOther.oldAuthorizables);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldAuthorizables, other.oldAuthorizables);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetNewAuthorizables()).compareTo(typedOther.isSetNewAuthorizables());
+ lastComparison = Boolean.valueOf(isSetNewAuthorizables()).compareTo(other.isSetNewAuthorizables());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetNewAuthorizables()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newAuthorizables, typedOther.newAuthorizables);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newAuthorizables, other.newAuthorizables);
if (lastComparison != 0) {
return lastComparison;
}
@@ -831,12 +835,12 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
{
org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
struct.oldAuthorizables = new ArrayList<TAuthorizable>(_list56.size);
- for (int _i57 = 0; _i57 < _list56.size; ++_i57)
+ TAuthorizable _elem57;
+ for (int _i58 = 0; _i58 < _list56.size; ++_i58)
{
- TAuthorizable _elem58; // required
- _elem58 = new TAuthorizable();
- _elem58.read(iprot);
- struct.oldAuthorizables.add(_elem58);
+ _elem57 = new TAuthorizable();
+ _elem57.read(iprot);
+ struct.oldAuthorizables.add(_elem57);
}
iprot.readListEnd();
}
@@ -850,12 +854,12 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
{
org.apache.thrift.protocol.TList _list59 = iprot.readListBegin();
struct.newAuthorizables = new ArrayList<TAuthorizable>(_list59.size);
- for (int _i60 = 0; _i60 < _list59.size; ++_i60)
+ TAuthorizable _elem60;
+ for (int _i61 = 0; _i61 < _list59.size; ++_i61)
{
- TAuthorizable _elem61; // required
- _elem61 = new TAuthorizable();
- _elem61.read(iprot);
- struct.newAuthorizables.add(_elem61);
+ _elem60 = new TAuthorizable();
+ _elem60.read(iprot);
+ struct.newAuthorizables.add(_elem60);
}
iprot.readListEnd();
}
@@ -970,24 +974,24 @@ public class TRenamePrivilegesRequest implements org.apache.thrift.TBase<TRename
{
org.apache.thrift.protocol.TList _list66 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.oldAuthorizables = new ArrayList<TAuthorizable>(_list66.size);
- for (int _i67 = 0; _i67 < _list66.size; ++_i67)
+ TAuthorizable _elem67;
+ for (int _i68 = 0; _i68 < _list66.size; ++_i68)
{
- TAuthorizable _elem68; // required
- _elem68 = new TAuthorizable();
- _elem68.read(iprot);
- struct.oldAuthorizables.add(_elem68);
+ _elem67 = new TAuthorizable();
+ _elem67.read(iprot);
+ struct.oldAuthorizables.add(_elem67);
}
}
struct.setOldAuthorizablesIsSet(true);
{
org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.newAuthorizables = new ArrayList<TAuthorizable>(_list69.size);
- for (int _i70 = 0; _i70 < _list69.size; ++_i70)
+ TAuthorizable _elem70;
+ for (int _i71 = 0; _i71 < _list69.size; ++_i71)
{
- TAuthorizable _elem71; // required
- _elem71 = new TAuthorizable();
- _elem71.read(iprot);
- struct.newAuthorizables.add(_elem71);
+ _elem70 = new TAuthorizable();
+ _elem70.read(iprot);
+ struct.newAuthorizables.add(_elem70);
}
}
struct.setNewAuthorizablesIsSet(true);
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesResponse.java
index 9ae8be5..98f3d6e 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TRenamePrivilegesResponse.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.sentry.provider.db.generic.service.thrift;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class TRenamePrivilegesResponse implements org.apache.thrift.TBase<TRenamePrivilegesResponse, TRenamePrivilegesResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TRenamePrivilegesResponse implements org.apache.thrift.TBase<TRenamePrivilegesResponse, TRenamePrivilegesResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TRenamePrivilegesResponse> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRenamePrivilegesResponse");
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
@@ -225,30 +229,30 @@ public class TRenamePrivilegesResponse implements org.apache.thrift.TBase<TRenam
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_status = true && (isSetStatus());
- builder.append(present_status);
+ list.add(present_status);
if (present_status)
- builder.append(status);
+ list.add(status);
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(TRenamePrivilegesResponse other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- TRenamePrivilegesResponse typedOther = (TRenamePrivilegesResponse)other;
- lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
+ lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetStatus()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
if (lastComparison != 0) {
return lastComparison;
}
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryActiveRoleSet.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryActiveRoleSet.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryActiveRoleSet.java
index 82acd44..db3e479 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryActiveRoleSet.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryActiveRoleSet.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.sentry.provider.db.generic.service.thrift;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActiveRoleSet, TSentryActiveRoleSet._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActiveRoleSet, TSentryActiveRoleSet._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryActiveRoleSet> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryActiveRoleSet");
private static final org.apache.thrift.protocol.TField ALL_FIELD_DESC = new org.apache.thrift.protocol.TField("all", org.apache.thrift.protocol.TType.BOOL, (short)1);
@@ -142,10 +146,7 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
__isset_bitfield = other.__isset_bitfield;
this.all = other.all;
if (other.isSetRoles()) {
- Set<String> __this__roles = new HashSet<String>();
- for (String other_element : other.roles) {
- __this__roles.add(other_element);
- }
+ Set<String> __this__roles = new HashSet<String>(other.roles);
this.roles = __this__roles;
}
}
@@ -245,7 +246,7 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
public Object getFieldValue(_Fields field) {
switch (field) {
case ALL:
- return Boolean.valueOf(isAll());
+ return isAll();
case ROLES:
return getRoles();
@@ -305,45 +306,45 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_all = true;
- builder.append(present_all);
+ list.add(present_all);
if (present_all)
- builder.append(all);
+ list.add(all);
boolean present_roles = true && (isSetRoles());
- builder.append(present_roles);
+ list.add(present_roles);
if (present_roles)
- builder.append(roles);
+ list.add(roles);
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(TSentryActiveRoleSet other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- TSentryActiveRoleSet typedOther = (TSentryActiveRoleSet)other;
- lastComparison = Boolean.valueOf(isSetAll()).compareTo(typedOther.isSetAll());
+ lastComparison = Boolean.valueOf(isSetAll()).compareTo(other.isSetAll());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetAll()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.all, typedOther.all);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.all, other.all);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetRoles()).compareTo(typedOther.isSetRoles());
+ lastComparison = Boolean.valueOf(isSetRoles()).compareTo(other.isSetRoles());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRoles()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roles, typedOther.roles);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roles, other.roles);
if (lastComparison != 0) {
return lastComparison;
}
@@ -445,11 +446,11 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
{
org.apache.thrift.protocol.TSet _set72 = iprot.readSetBegin();
struct.roles = new HashSet<String>(2*_set72.size);
- for (int _i73 = 0; _i73 < _set72.size; ++_i73)
+ String _elem73;
+ for (int _i74 = 0; _i74 < _set72.size; ++_i74)
{
- String _elem74; // required
- _elem74 = iprot.readString();
- struct.roles.add(_elem74);
+ _elem73 = iprot.readString();
+ struct.roles.add(_elem73);
}
iprot.readSetEnd();
}
@@ -521,11 +522,11 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
{
org.apache.thrift.protocol.TSet _set77 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.roles = new HashSet<String>(2*_set77.size);
- for (int _i78 = 0; _i78 < _set77.size; ++_i78)
+ String _elem78;
+ for (int _i79 = 0; _i79 < _set77.size; ++_i79)
{
- String _elem79; // required
- _elem79 = iprot.readString();
- struct.roles.add(_elem79);
+ _elem78 = iprot.readString();
+ struct.roles.add(_elem78);
}
}
struct.setRolesIsSet(true);
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryGrantOption.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryGrantOption.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryGrantOption.java
index 82e7640..9898c08 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryGrantOption.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryGrantOption.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilege.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilege.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilege.java
index 2c2ff35..2d0a297 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilege.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilege.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.sentry.provider.db.generic.service.thrift;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivilege, TSentryPrivilege._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivilege, TSentryPrivilege._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryPrivilege> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryPrivilege");
private static final org.apache.thrift.protocol.TField COMPONENT_FIELD_DESC = new org.apache.thrift.protocol.TField("component", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -139,7 +143,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
// isset id assignments
private static final int __CREATETIME_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- private _Fields optionals[] = {_Fields.CREATE_TIME,_Fields.GRANTOR_PRINCIPAL,_Fields.GRANT_OPTION};
+ private static final _Fields optionals[] = {_Fields.CREATE_TIME,_Fields.GRANTOR_PRINCIPAL,_Fields.GRANT_OPTION};
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -192,7 +196,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
this.serviceName = other.serviceName;
}
if (other.isSetAuthorizables()) {
- List<TAuthorizable> __this__authorizables = new ArrayList<TAuthorizable>();
+ List<TAuthorizable> __this__authorizables = new ArrayList<TAuthorizable>(other.authorizables.size());
for (TAuthorizable other_element : other.authorizables) {
__this__authorizables.add(new TAuthorizable(other_element));
}
@@ -486,7 +490,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
return getAction();
case CREATE_TIME:
- return Long.valueOf(getCreateTime());
+ return getCreateTime();
case GRANTOR_PRINCIPAL:
return getGrantorPrincipal();
@@ -604,120 +608,120 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_component = true && (isSetComponent());
- builder.append(present_component);
+ list.add(present_component);
if (present_component)
- builder.append(component);
+ list.add(component);
boolean present_serviceName = true && (isSetServiceName());
- builder.append(present_serviceName);
+ list.add(present_serviceName);
if (present_serviceName)
- builder.append(serviceName);
+ list.add(serviceName);
boolean present_authorizables = true && (isSetAuthorizables());
- builder.append(present_authorizables);
+ list.add(present_authorizables);
if (present_authorizables)
- builder.append(authorizables);
+ list.add(authorizables);
boolean present_action = true && (isSetAction());
- builder.append(present_action);
+ list.add(present_action);
if (present_action)
- builder.append(action);
+ list.add(action);
boolean present_createTime = true && (isSetCreateTime());
- builder.append(present_createTime);
+ list.add(present_createTime);
if (present_createTime)
- builder.append(createTime);
+ list.add(createTime);
boolean present_grantorPrincipal = true && (isSetGrantorPrincipal());
- builder.append(present_grantorPrincipal);
+ list.add(present_grantorPrincipal);
if (present_grantorPrincipal)
- builder.append(grantorPrincipal);
+ list.add(grantorPrincipal);
boolean present_grantOption = true && (isSetGrantOption());
- builder.append(present_grantOption);
+ list.add(present_grantOption);
if (present_grantOption)
- builder.append(grantOption.getValue());
+ list.add(grantOption.getValue());
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(TSentryPrivilege other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- TSentryPrivilege typedOther = (TSentryPrivilege)other;
- lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent());
+ lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetComponent()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(typedOther.isSetServiceName());
+ lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(other.isSetServiceName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetServiceName()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, typedOther.serviceName);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, other.serviceName);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetAuthorizables()).compareTo(typedOther.isSetAuthorizables());
+ lastComparison = Boolean.valueOf(isSetAuthorizables()).compareTo(other.isSetAuthorizables());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetAuthorizables()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizables, typedOther.authorizables);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizables, other.authorizables);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetAction()).compareTo(typedOther.isSetAction());
+ lastComparison = Boolean.valueOf(isSetAction()).compareTo(other.isSetAction());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetAction()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.action, typedOther.action);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.action, other.action);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime());
+ lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCreateTime()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetGrantorPrincipal()).compareTo(typedOther.isSetGrantorPrincipal());
+ lastComparison = Boolean.valueOf(isSetGrantorPrincipal()).compareTo(other.isSetGrantorPrincipal());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetGrantorPrincipal()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipal, typedOther.grantorPrincipal);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipal, other.grantorPrincipal);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption());
+ lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(other.isSetGrantOption());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetGrantOption()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, other.grantOption);
if (lastComparison != 0) {
return lastComparison;
}
@@ -881,12 +885,12 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
{
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
struct.authorizables = new ArrayList<TAuthorizable>(_list0.size);
- for (int _i1 = 0; _i1 < _list0.size; ++_i1)
+ TAuthorizable _elem1;
+ for (int _i2 = 0; _i2 < _list0.size; ++_i2)
{
- TAuthorizable _elem2; // required
- _elem2 = new TAuthorizable();
- _elem2.read(iprot);
- struct.authorizables.add(_elem2);
+ _elem1 = new TAuthorizable();
+ _elem1.read(iprot);
+ struct.authorizables.add(_elem1);
}
iprot.readListEnd();
}
@@ -921,7 +925,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
break;
case 7: // GRANT_OPTION
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.grantOption = TSentryGrantOption.findByValue(iprot.readI32());
+ struct.grantOption = org.apache.sentry.provider.db.generic.service.thrift.TSentryGrantOption.findByValue(iprot.readI32());
struct.setGrantOptionIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@@ -1045,12 +1049,12 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
{
org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.authorizables = new ArrayList<TAuthorizable>(_list5.size);
- for (int _i6 = 0; _i6 < _list5.size; ++_i6)
+ TAuthorizable _elem6;
+ for (int _i7 = 0; _i7 < _list5.size; ++_i7)
{
- TAuthorizable _elem7; // required
- _elem7 = new TAuthorizable();
- _elem7.read(iprot);
- struct.authorizables.add(_elem7);
+ _elem6 = new TAuthorizable();
+ _elem6.read(iprot);
+ struct.authorizables.add(_elem6);
}
}
struct.setAuthorizablesIsSet(true);
@@ -1066,7 +1070,7 @@ public class TSentryPrivilege implements org.apache.thrift.TBase<TSentryPrivileg
struct.setGrantorPrincipalIsSet(true);
}
if (incoming.get(2)) {
- struct.grantOption = TSentryGrantOption.findByValue(iprot.readI32());
+ struct.grantOption = org.apache.sentry.provider.db.generic.service.thrift.TSentryGrantOption.findByValue(iprot.readI32());
struct.setGrantOptionIsSet(true);
}
}
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilegeMap.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilegeMap.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilegeMap.java
index a2945a2..52cb3f3 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilegeMap.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryPrivilegeMap.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.sentry.provider.db.generic.service.thrift;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivilegeMap, TSentryPrivilegeMap._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivilegeMap, TSentryPrivilegeMap._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryPrivilegeMap> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryPrivilegeMap");
private static final org.apache.thrift.protocol.TField PRIVILEGE_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("privilegeMap", org.apache.thrift.protocol.TType.MAP, (short)1);
@@ -130,7 +134,7 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
*/
public TSentryPrivilegeMap(TSentryPrivilegeMap other) {
if (other.isSetPrivilegeMap()) {
- Map<String,Set<TSentryPrivilege>> __this__privilegeMap = new HashMap<String,Set<TSentryPrivilege>>();
+ Map<String,Set<TSentryPrivilege>> __this__privilegeMap = new HashMap<String,Set<TSentryPrivilege>>(other.privilegeMap.size());
for (Map.Entry<String, Set<TSentryPrivilege>> other_element : other.privilegeMap.entrySet()) {
String other_element_key = other_element.getKey();
@@ -138,7 +142,7 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
String __this__privilegeMap_copy_key = other_element_key;
- Set<TSentryPrivilege> __this__privilegeMap_copy_value = new HashSet<TSentryPrivilege>();
+ Set<TSentryPrivilege> __this__privilegeMap_copy_value = new HashSet<TSentryPrivilege>(other_element_value.size());
for (TSentryPrivilege other_element_value_element : other_element_value) {
__this__privilegeMap_copy_value.add(new TSentryPrivilege(other_element_value_element));
}
@@ -254,30 +258,30 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_privilegeMap = true && (isSetPrivilegeMap());
- builder.append(present_privilegeMap);
+ list.add(present_privilegeMap);
if (present_privilegeMap)
- builder.append(privilegeMap);
+ list.add(privilegeMap);
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(TSentryPrivilegeMap other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- TSentryPrivilegeMap typedOther = (TSentryPrivilegeMap)other;
- lastComparison = Boolean.valueOf(isSetPrivilegeMap()).compareTo(typedOther.isSetPrivilegeMap());
+ lastComparison = Boolean.valueOf(isSetPrivilegeMap()).compareTo(other.isSetPrivilegeMap());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPrivilegeMap()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegeMap, typedOther.privilegeMap);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilegeMap, other.privilegeMap);
if (lastComparison != 0) {
return lastComparison;
}
@@ -361,24 +365,24 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
{
org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin();
struct.privilegeMap = new HashMap<String,Set<TSentryPrivilege>>(2*_map104.size);
- for (int _i105 = 0; _i105 < _map104.size; ++_i105)
+ String _key105;
+ Set<TSentryPrivilege> _val106;
+ for (int _i107 = 0; _i107 < _map104.size; ++_i107)
{
- String _key106; // required
- Set<TSentryPrivilege> _val107; // required
- _key106 = iprot.readString();
+ _key105 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set108 = iprot.readSetBegin();
- _val107 = new HashSet<TSentryPrivilege>(2*_set108.size);
- for (int _i109 = 0; _i109 < _set108.size; ++_i109)
+ _val106 = new HashSet<TSentryPrivilege>(2*_set108.size);
+ TSentryPrivilege _elem109;
+ for (int _i110 = 0; _i110 < _set108.size; ++_i110)
{
- TSentryPrivilege _elem110; // required
- _elem110 = new TSentryPrivilege();
- _elem110.read(iprot);
- _val107.add(_elem110);
+ _elem109 = new TSentryPrivilege();
+ _elem109.read(iprot);
+ _val106.add(_elem109);
}
iprot.readSetEnd();
}
- struct.privilegeMap.put(_key106, _val107);
+ struct.privilegeMap.put(_key105, _val106);
}
iprot.readMapEnd();
}
@@ -459,23 +463,23 @@ public class TSentryPrivilegeMap implements org.apache.thrift.TBase<TSentryPrivi
{
org.apache.thrift.protocol.TMap _map115 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.privilegeMap = new HashMap<String,Set<TSentryPrivilege>>(2*_map115.size);
- for (int _i116 = 0; _i116 < _map115.size; ++_i116)
+ String _key116;
+ Set<TSentryPrivilege> _val117;
+ for (int _i118 = 0; _i118 < _map115.size; ++_i118)
{
- String _key117; // required
- Set<TSentryPrivilege> _val118; // required
- _key117 = iprot.readString();
+ _key116 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set119 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- _val118 = new HashSet<TSentryPrivilege>(2*_set119.size);
- for (int _i120 = 0; _i120 < _set119.size; ++_i120)
+ _val117 = new HashSet<TSentryPrivilege>(2*_set119.size);
+ TSentryPrivilege _elem120;
+ for (int _i121 = 0; _i121 < _set119.size; ++_i121)
{
- TSentryPrivilege _elem121; // required
- _elem121 = new TSentryPrivilege();
- _elem121.read(iprot);
- _val118.add(_elem121);
+ _elem120 = new TSentryPrivilege();
+ _elem120.read(iprot);
+ _val117.add(_elem120);
}
}
- struct.privilegeMap.put(_key117, _val118);
+ struct.privilegeMap.put(_key116, _val117);
}
}
struct.setPrivilegeMapIsSet(true);
http://git-wip-us.apache.org/repos/asf/sentry/blob/e67bde0d/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryRole.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryRole.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryRole.java
index 7676d0c..b043183 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryRole.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/generic/service/thrift/TSentryRole.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.sentry.provider.db.generic.service.thrift;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentryRole._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-05")
+public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentryRole._Fields>, java.io.Serializable, Cloneable, Comparable<TSentryRole> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSentryRole");
private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -140,10 +144,7 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
this.roleName = other.roleName;
}
if (other.isSetGroups()) {
- Set<String> __this__groups = new HashSet<String>();
- for (String other_element : other.groups) {
- __this__groups.add(other_element);
- }
+ Set<String> __this__groups = new HashSet<String>(other.groups);
this.groups = __this__groups;
}
}
@@ -303,45 +304,45 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_roleName = true && (isSetRoleName());
- builder.append(present_roleName);
+ list.add(present_roleName);
if (present_roleName)
- builder.append(roleName);
+ list.add(roleName);
boolean present_groups = true && (isSetGroups());
- builder.append(present_groups);
+ list.add(present_groups);
if (present_groups)
- builder.append(groups);
+ list.add(groups);
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(TSentryRole other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- TSentryRole typedOther = (TSentryRole)other;
- lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+ lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRoleName()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetGroups()).compareTo(typedOther.isSetGroups());
+ lastComparison = Boolean.valueOf(isSetGroups()).compareTo(other.isSetGroups());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetGroups()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, typedOther.groups);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groups, other.groups);
if (lastComparison != 0) {
return lastComparison;
}
@@ -445,11 +446,11 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
{
org.apache.thrift.protocol.TSet _set24 = iprot.readSetBegin();
struct.groups = new HashSet<String>(2*_set24.size);
- for (int _i25 = 0; _i25 < _set24.size; ++_i25)
+ String _elem25;
+ for (int _i26 = 0; _i26 < _set24.size; ++_i26)
{
- String _elem26; // required
- _elem26 = iprot.readString();
- struct.groups.add(_elem26);
+ _elem25 = iprot.readString();
+ struct.groups.add(_elem25);
}
iprot.readSetEnd();
}
@@ -523,11 +524,11 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
{
org.apache.thrift.protocol.TSet _set29 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.groups = new HashSet<String>(2*_set29.size);
- for (int _i30 = 0; _i30 < _set29.size; ++_i30)
+ String _elem30;
+ for (int _i31 = 0; _i31 < _set29.size; ++_i31)
{
- String _elem31; // required
- _elem31 = iprot.readString();
- struct.groups.add(_elem31);
+ _elem30 = iprot.readString();
+ struct.groups.add(_elem30);
}
}
struct.setGroupsIsSet(true);