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 2014/05/29 08:39:05 UTC
[2/3] SENTRY-191: Sentry Policy Service should not require passing
the RPC requestor's user/group information ( Prasad Mujumdar via Sravya
Tirukkovalur)
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/61a67cb9/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleRequest.java
index 6067a25..fc7c5dd 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TCreateSentryRoleRequest.java
@@ -36,8 +36,7 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
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);
private static final org.apache.thrift.protocol.TField REQUESTOR_USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("requestorUserName", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField REQUESTOR_GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("requestorGroupNames", org.apache.thrift.protocol.TType.SET, (short)3);
- 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)4);
+ 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)3);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -47,15 +46,13 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
private int protocol_version; // required
private String requestorUserName; // required
- private Set<String> requestorGroupNames; // required
private String roleName; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PROTOCOL_VERSION((short)1, "protocol_version"),
REQUESTOR_USER_NAME((short)2, "requestorUserName"),
- REQUESTOR_GROUP_NAMES((short)3, "requestorGroupNames"),
- ROLE_NAME((short)4, "roleName");
+ ROLE_NAME((short)3, "roleName");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -74,9 +71,7 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
return PROTOCOL_VERSION;
case 2: // REQUESTOR_USER_NAME
return REQUESTOR_USER_NAME;
- case 3: // REQUESTOR_GROUP_NAMES
- return REQUESTOR_GROUP_NAMES;
- case 4: // ROLE_NAME
+ case 3: // ROLE_NAME
return ROLE_NAME;
default:
return null;
@@ -127,9 +122,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.REQUESTOR_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("requestorUserName", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.REQUESTOR_GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("requestorGroupNames", org.apache.thrift.TFieldRequirementType.REQUIRED,
- new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
@@ -144,14 +136,12 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
public TCreateSentryRoleRequest(
int protocol_version,
String requestorUserName,
- Set<String> requestorGroupNames,
String roleName)
{
this();
this.protocol_version = protocol_version;
setProtocol_versionIsSet(true);
this.requestorUserName = requestorUserName;
- this.requestorGroupNames = requestorGroupNames;
this.roleName = roleName;
}
@@ -164,13 +154,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
if (other.isSetRequestorUserName()) {
this.requestorUserName = other.requestorUserName;
}
- if (other.isSetRequestorGroupNames()) {
- Set<String> __this__requestorGroupNames = new HashSet<String>();
- for (String other_element : other.requestorGroupNames) {
- __this__requestorGroupNames.add(other_element);
- }
- this.requestorGroupNames = __this__requestorGroupNames;
- }
if (other.isSetRoleName()) {
this.roleName = other.roleName;
}
@@ -185,7 +168,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
this.protocol_version = 1;
this.requestorUserName = null;
- this.requestorGroupNames = null;
this.roleName = null;
}
@@ -234,44 +216,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
}
}
- public int getRequestorGroupNamesSize() {
- return (this.requestorGroupNames == null) ? 0 : this.requestorGroupNames.size();
- }
-
- public java.util.Iterator<String> getRequestorGroupNamesIterator() {
- return (this.requestorGroupNames == null) ? null : this.requestorGroupNames.iterator();
- }
-
- public void addToRequestorGroupNames(String elem) {
- if (this.requestorGroupNames == null) {
- this.requestorGroupNames = new HashSet<String>();
- }
- this.requestorGroupNames.add(elem);
- }
-
- public Set<String> getRequestorGroupNames() {
- return this.requestorGroupNames;
- }
-
- public void setRequestorGroupNames(Set<String> requestorGroupNames) {
- this.requestorGroupNames = requestorGroupNames;
- }
-
- public void unsetRequestorGroupNames() {
- this.requestorGroupNames = null;
- }
-
- /** Returns true if field requestorGroupNames is set (has been assigned a value) and false otherwise */
- public boolean isSetRequestorGroupNames() {
- return this.requestorGroupNames != null;
- }
-
- public void setRequestorGroupNamesIsSet(boolean value) {
- if (!value) {
- this.requestorGroupNames = null;
- }
- }
-
public String getRoleName() {
return this.roleName;
}
@@ -313,14 +257,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
}
break;
- case REQUESTOR_GROUP_NAMES:
- if (value == null) {
- unsetRequestorGroupNames();
- } else {
- setRequestorGroupNames((Set<String>)value);
- }
- break;
-
case ROLE_NAME:
if (value == null) {
unsetRoleName();
@@ -340,9 +276,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
case REQUESTOR_USER_NAME:
return getRequestorUserName();
- case REQUESTOR_GROUP_NAMES:
- return getRequestorGroupNames();
-
case ROLE_NAME:
return getRoleName();
@@ -361,8 +294,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
return isSetProtocol_version();
case REQUESTOR_USER_NAME:
return isSetRequestorUserName();
- case REQUESTOR_GROUP_NAMES:
- return isSetRequestorGroupNames();
case ROLE_NAME:
return isSetRoleName();
}
@@ -400,15 +331,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
return false;
}
- boolean this_present_requestorGroupNames = true && this.isSetRequestorGroupNames();
- boolean that_present_requestorGroupNames = true && that.isSetRequestorGroupNames();
- if (this_present_requestorGroupNames || that_present_requestorGroupNames) {
- if (!(this_present_requestorGroupNames && that_present_requestorGroupNames))
- return false;
- if (!this.requestorGroupNames.equals(that.requestorGroupNames))
- return false;
- }
-
boolean this_present_roleName = true && this.isSetRoleName();
boolean that_present_roleName = true && that.isSetRoleName();
if (this_present_roleName || that_present_roleName) {
@@ -435,11 +357,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
if (present_requestorUserName)
builder.append(requestorUserName);
- boolean present_requestorGroupNames = true && (isSetRequestorGroupNames());
- builder.append(present_requestorGroupNames);
- if (present_requestorGroupNames)
- builder.append(requestorGroupNames);
-
boolean present_roleName = true && (isSetRoleName());
builder.append(present_roleName);
if (present_roleName)
@@ -476,16 +393,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetRequestorGroupNames()).compareTo(typedOther.isSetRequestorGroupNames());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetRequestorGroupNames()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorGroupNames, typedOther.requestorGroupNames);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
if (lastComparison != 0) {
return lastComparison;
@@ -528,14 +435,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
}
first = false;
if (!first) sb.append(", ");
- sb.append("requestorGroupNames:");
- if (this.requestorGroupNames == null) {
- sb.append("null");
- } else {
- sb.append(this.requestorGroupNames);
- }
- first = false;
- if (!first) sb.append(", ");
sb.append("roleName:");
if (this.roleName == null) {
sb.append("null");
@@ -557,10 +456,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
throw new org.apache.thrift.protocol.TProtocolException("Required field 'requestorUserName' is unset! Struct:" + toString());
}
- if (!isSetRequestorGroupNames()) {
- throw new org.apache.thrift.protocol.TProtocolException("Required field 'requestorGroupNames' is unset! Struct:" + toString());
- }
-
if (!isSetRoleName()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'roleName' is unset! Struct:" + toString());
}
@@ -620,25 +515,7 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case 3: // REQUESTOR_GROUP_NAMES
- if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
- {
- org.apache.thrift.protocol.TSet _set0 = iprot.readSetBegin();
- struct.requestorGroupNames = new HashSet<String>(2*_set0.size);
- for (int _i1 = 0; _i1 < _set0.size; ++_i1)
- {
- String _elem2; // required
- _elem2 = iprot.readString();
- struct.requestorGroupNames.add(_elem2);
- }
- iprot.readSetEnd();
- }
- struct.setRequestorGroupNamesIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 4: // ROLE_NAME
+ case 3: // ROLE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.roleName = iprot.readString();
struct.setRoleNameIsSet(true);
@@ -667,18 +544,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
oprot.writeString(struct.requestorUserName);
oprot.writeFieldEnd();
}
- if (struct.requestorGroupNames != null) {
- oprot.writeFieldBegin(REQUESTOR_GROUP_NAMES_FIELD_DESC);
- {
- oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.requestorGroupNames.size()));
- for (String _iter3 : struct.requestorGroupNames)
- {
- oprot.writeString(_iter3);
- }
- oprot.writeSetEnd();
- }
- oprot.writeFieldEnd();
- }
if (struct.roleName != null) {
oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
oprot.writeString(struct.roleName);
@@ -703,13 +568,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
TTupleProtocol oprot = (TTupleProtocol) prot;
oprot.writeI32(struct.protocol_version);
oprot.writeString(struct.requestorUserName);
- {
- oprot.writeI32(struct.requestorGroupNames.size());
- for (String _iter4 : struct.requestorGroupNames)
- {
- oprot.writeString(_iter4);
- }
- }
oprot.writeString(struct.roleName);
}
@@ -720,17 +578,6 @@ public class TCreateSentryRoleRequest implements org.apache.thrift.TBase<TCreate
struct.setProtocol_versionIsSet(true);
struct.requestorUserName = iprot.readString();
struct.setRequestorUserNameIsSet(true);
- {
- org.apache.thrift.protocol.TSet _set5 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.requestorGroupNames = new HashSet<String>(2*_set5.size);
- for (int _i6 = 0; _i6 < _set5.size; ++_i6)
- {
- String _elem7; // required
- _elem7 = iprot.readString();
- struct.requestorGroupNames.add(_elem7);
- }
- }
- struct.setRequestorGroupNamesIsSet(true);
struct.roleName = iprot.readString();
struct.setRoleNameIsSet(true);
}
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/61a67cb9/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleRequest.java
index d804e2f..e2971ec 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TDropSentryRoleRequest.java
@@ -36,8 +36,7 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
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);
private static final org.apache.thrift.protocol.TField REQUESTOR_USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("requestorUserName", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField REQUESTOR_GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("requestorGroupNames", org.apache.thrift.protocol.TType.SET, (short)3);
- 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)4);
+ 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)3);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -47,15 +46,13 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
private int protocol_version; // required
private String requestorUserName; // required
- private Set<String> requestorGroupNames; // required
private String roleName; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PROTOCOL_VERSION((short)1, "protocol_version"),
REQUESTOR_USER_NAME((short)2, "requestorUserName"),
- REQUESTOR_GROUP_NAMES((short)3, "requestorGroupNames"),
- ROLE_NAME((short)4, "roleName");
+ ROLE_NAME((short)3, "roleName");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -74,9 +71,7 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
return PROTOCOL_VERSION;
case 2: // REQUESTOR_USER_NAME
return REQUESTOR_USER_NAME;
- case 3: // REQUESTOR_GROUP_NAMES
- return REQUESTOR_GROUP_NAMES;
- case 4: // ROLE_NAME
+ case 3: // ROLE_NAME
return ROLE_NAME;
default:
return null;
@@ -127,9 +122,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.REQUESTOR_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("requestorUserName", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.REQUESTOR_GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("requestorGroupNames", org.apache.thrift.TFieldRequirementType.REQUIRED,
- new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
@@ -144,14 +136,12 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
public TDropSentryRoleRequest(
int protocol_version,
String requestorUserName,
- Set<String> requestorGroupNames,
String roleName)
{
this();
this.protocol_version = protocol_version;
setProtocol_versionIsSet(true);
this.requestorUserName = requestorUserName;
- this.requestorGroupNames = requestorGroupNames;
this.roleName = roleName;
}
@@ -164,13 +154,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
if (other.isSetRequestorUserName()) {
this.requestorUserName = other.requestorUserName;
}
- if (other.isSetRequestorGroupNames()) {
- Set<String> __this__requestorGroupNames = new HashSet<String>();
- for (String other_element : other.requestorGroupNames) {
- __this__requestorGroupNames.add(other_element);
- }
- this.requestorGroupNames = __this__requestorGroupNames;
- }
if (other.isSetRoleName()) {
this.roleName = other.roleName;
}
@@ -185,7 +168,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
this.protocol_version = 1;
this.requestorUserName = null;
- this.requestorGroupNames = null;
this.roleName = null;
}
@@ -234,44 +216,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
}
}
- public int getRequestorGroupNamesSize() {
- return (this.requestorGroupNames == null) ? 0 : this.requestorGroupNames.size();
- }
-
- public java.util.Iterator<String> getRequestorGroupNamesIterator() {
- return (this.requestorGroupNames == null) ? null : this.requestorGroupNames.iterator();
- }
-
- public void addToRequestorGroupNames(String elem) {
- if (this.requestorGroupNames == null) {
- this.requestorGroupNames = new HashSet<String>();
- }
- this.requestorGroupNames.add(elem);
- }
-
- public Set<String> getRequestorGroupNames() {
- return this.requestorGroupNames;
- }
-
- public void setRequestorGroupNames(Set<String> requestorGroupNames) {
- this.requestorGroupNames = requestorGroupNames;
- }
-
- public void unsetRequestorGroupNames() {
- this.requestorGroupNames = null;
- }
-
- /** Returns true if field requestorGroupNames is set (has been assigned a value) and false otherwise */
- public boolean isSetRequestorGroupNames() {
- return this.requestorGroupNames != null;
- }
-
- public void setRequestorGroupNamesIsSet(boolean value) {
- if (!value) {
- this.requestorGroupNames = null;
- }
- }
-
public String getRoleName() {
return this.roleName;
}
@@ -313,14 +257,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
}
break;
- case REQUESTOR_GROUP_NAMES:
- if (value == null) {
- unsetRequestorGroupNames();
- } else {
- setRequestorGroupNames((Set<String>)value);
- }
- break;
-
case ROLE_NAME:
if (value == null) {
unsetRoleName();
@@ -340,9 +276,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
case REQUESTOR_USER_NAME:
return getRequestorUserName();
- case REQUESTOR_GROUP_NAMES:
- return getRequestorGroupNames();
-
case ROLE_NAME:
return getRoleName();
@@ -361,8 +294,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
return isSetProtocol_version();
case REQUESTOR_USER_NAME:
return isSetRequestorUserName();
- case REQUESTOR_GROUP_NAMES:
- return isSetRequestorGroupNames();
case ROLE_NAME:
return isSetRoleName();
}
@@ -400,15 +331,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
return false;
}
- boolean this_present_requestorGroupNames = true && this.isSetRequestorGroupNames();
- boolean that_present_requestorGroupNames = true && that.isSetRequestorGroupNames();
- if (this_present_requestorGroupNames || that_present_requestorGroupNames) {
- if (!(this_present_requestorGroupNames && that_present_requestorGroupNames))
- return false;
- if (!this.requestorGroupNames.equals(that.requestorGroupNames))
- return false;
- }
-
boolean this_present_roleName = true && this.isSetRoleName();
boolean that_present_roleName = true && that.isSetRoleName();
if (this_present_roleName || that_present_roleName) {
@@ -435,11 +357,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
if (present_requestorUserName)
builder.append(requestorUserName);
- boolean present_requestorGroupNames = true && (isSetRequestorGroupNames());
- builder.append(present_requestorGroupNames);
- if (present_requestorGroupNames)
- builder.append(requestorGroupNames);
-
boolean present_roleName = true && (isSetRoleName());
builder.append(present_roleName);
if (present_roleName)
@@ -476,16 +393,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetRequestorGroupNames()).compareTo(typedOther.isSetRequestorGroupNames());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetRequestorGroupNames()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorGroupNames, typedOther.requestorGroupNames);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
if (lastComparison != 0) {
return lastComparison;
@@ -528,14 +435,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
}
first = false;
if (!first) sb.append(", ");
- sb.append("requestorGroupNames:");
- if (this.requestorGroupNames == null) {
- sb.append("null");
- } else {
- sb.append(this.requestorGroupNames);
- }
- first = false;
- if (!first) sb.append(", ");
sb.append("roleName:");
if (this.roleName == null) {
sb.append("null");
@@ -557,10 +456,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
throw new org.apache.thrift.protocol.TProtocolException("Required field 'requestorUserName' is unset! Struct:" + toString());
}
- if (!isSetRequestorGroupNames()) {
- throw new org.apache.thrift.protocol.TProtocolException("Required field 'requestorGroupNames' is unset! Struct:" + toString());
- }
-
if (!isSetRoleName()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'roleName' is unset! Struct:" + toString());
}
@@ -620,25 +515,7 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case 3: // REQUESTOR_GROUP_NAMES
- if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
- {
- org.apache.thrift.protocol.TSet _set8 = iprot.readSetBegin();
- struct.requestorGroupNames = new HashSet<String>(2*_set8.size);
- for (int _i9 = 0; _i9 < _set8.size; ++_i9)
- {
- String _elem10; // required
- _elem10 = iprot.readString();
- struct.requestorGroupNames.add(_elem10);
- }
- iprot.readSetEnd();
- }
- struct.setRequestorGroupNamesIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 4: // ROLE_NAME
+ case 3: // ROLE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.roleName = iprot.readString();
struct.setRoleNameIsSet(true);
@@ -667,18 +544,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
oprot.writeString(struct.requestorUserName);
oprot.writeFieldEnd();
}
- if (struct.requestorGroupNames != null) {
- oprot.writeFieldBegin(REQUESTOR_GROUP_NAMES_FIELD_DESC);
- {
- oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.requestorGroupNames.size()));
- for (String _iter11 : struct.requestorGroupNames)
- {
- oprot.writeString(_iter11);
- }
- oprot.writeSetEnd();
- }
- oprot.writeFieldEnd();
- }
if (struct.roleName != null) {
oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
oprot.writeString(struct.roleName);
@@ -703,13 +568,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
TTupleProtocol oprot = (TTupleProtocol) prot;
oprot.writeI32(struct.protocol_version);
oprot.writeString(struct.requestorUserName);
- {
- oprot.writeI32(struct.requestorGroupNames.size());
- for (String _iter12 : struct.requestorGroupNames)
- {
- oprot.writeString(_iter12);
- }
- }
oprot.writeString(struct.roleName);
}
@@ -720,17 +578,6 @@ public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSent
struct.setProtocol_versionIsSet(true);
struct.requestorUserName = iprot.readString();
struct.setRequestorUserNameIsSet(true);
- {
- org.apache.thrift.protocol.TSet _set13 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.requestorGroupNames = new HashSet<String>(2*_set13.size);
- for (int _i14 = 0; _i14 < _set13.size; ++_i14)
- {
- String _elem15; // required
- _elem15 = iprot.readString();
- struct.requestorGroupNames.add(_elem15);
- }
- }
- struct.setRequestorGroupNamesIsSet(true);
struct.roleName = iprot.readString();
struct.setRoleNameIsSet(true);
}
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/61a67cb9/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderRequest.java
index 09704ae..65fd5b5 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderRequest.java
@@ -533,13 +533,13 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
case 2: // GROUPS
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- org.apache.thrift.protocol.TSet _set112 = iprot.readSetBegin();
- struct.groups = new HashSet<String>(2*_set112.size);
- for (int _i113 = 0; _i113 < _set112.size; ++_i113)
+ org.apache.thrift.protocol.TSet _set48 = iprot.readSetBegin();
+ struct.groups = new HashSet<String>(2*_set48.size);
+ for (int _i49 = 0; _i49 < _set48.size; ++_i49)
{
- String _elem114; // required
- _elem114 = iprot.readString();
- struct.groups.add(_elem114);
+ String _elem50; // required
+ _elem50 = iprot.readString();
+ struct.groups.add(_elem50);
}
iprot.readSetEnd();
}
@@ -577,9 +577,9 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
oprot.writeFieldBegin(GROUPS_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.groups.size()));
- for (String _iter115 : struct.groups)
+ for (String _iter51 : struct.groups)
{
- oprot.writeString(_iter115);
+ oprot.writeString(_iter51);
}
oprot.writeSetEnd();
}
@@ -610,9 +610,9 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
oprot.writeI32(struct.protocol_version);
{
oprot.writeI32(struct.groups.size());
- for (String _iter116 : struct.groups)
+ for (String _iter52 : struct.groups)
{
- oprot.writeString(_iter116);
+ oprot.writeString(_iter52);
}
}
struct.roleSet.write(oprot);
@@ -624,13 +624,13 @@ public class TListSentryPrivilegesForProviderRequest implements org.apache.thrif
struct.protocol_version = iprot.readI32();
struct.setProtocol_versionIsSet(true);
{
- org.apache.thrift.protocol.TSet _set117 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.groups = new HashSet<String>(2*_set117.size);
- for (int _i118 = 0; _i118 < _set117.size; ++_i118)
+ org.apache.thrift.protocol.TSet _set53 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.groups = new HashSet<String>(2*_set53.size);
+ for (int _i54 = 0; _i54 < _set53.size; ++_i54)
{
- String _elem119; // required
- _elem119 = iprot.readString();
- struct.groups.add(_elem119);
+ String _elem55; // required
+ _elem55 = iprot.readString();
+ struct.groups.add(_elem55);
}
}
struct.setGroupsIsSet(true);
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/61a67cb9/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderResponse.java
index dff80b6..4c571c2 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesForProviderResponse.java
@@ -447,13 +447,13 @@ public class TListSentryPrivilegesForProviderResponse implements org.apache.thri
case 2: // PRIVILEGES
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- org.apache.thrift.protocol.TSet _set120 = iprot.readSetBegin();
- struct.privileges = new HashSet<String>(2*_set120.size);
- for (int _i121 = 0; _i121 < _set120.size; ++_i121)
+ org.apache.thrift.protocol.TSet _set56 = iprot.readSetBegin();
+ struct.privileges = new HashSet<String>(2*_set56.size);
+ for (int _i57 = 0; _i57 < _set56.size; ++_i57)
{
- String _elem122; // required
- _elem122 = iprot.readString();
- struct.privileges.add(_elem122);
+ String _elem58; // required
+ _elem58 = iprot.readString();
+ struct.privileges.add(_elem58);
}
iprot.readSetEnd();
}
@@ -484,9 +484,9 @@ public class TListSentryPrivilegesForProviderResponse implements org.apache.thri
oprot.writeFieldBegin(PRIVILEGES_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.privileges.size()));
- for (String _iter123 : struct.privileges)
+ for (String _iter59 : struct.privileges)
{
- oprot.writeString(_iter123);
+ oprot.writeString(_iter59);
}
oprot.writeSetEnd();
}
@@ -512,9 +512,9 @@ public class TListSentryPrivilegesForProviderResponse implements org.apache.thri
struct.status.write(oprot);
{
oprot.writeI32(struct.privileges.size());
- for (String _iter124 : struct.privileges)
+ for (String _iter60 : struct.privileges)
{
- oprot.writeString(_iter124);
+ oprot.writeString(_iter60);
}
}
}
@@ -526,13 +526,13 @@ public class TListSentryPrivilegesForProviderResponse implements org.apache.thri
struct.status.read(iprot);
struct.setStatusIsSet(true);
{
- org.apache.thrift.protocol.TSet _set125 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.privileges = new HashSet<String>(2*_set125.size);
- for (int _i126 = 0; _i126 < _set125.size; ++_i126)
+ org.apache.thrift.protocol.TSet _set61 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.privileges = new HashSet<String>(2*_set61.size);
+ for (int _i62 = 0; _i62 < _set61.size; ++_i62)
{
- String _elem127; // required
- _elem127 = iprot.readString();
- struct.privileges.add(_elem127);
+ String _elem63; // required
+ _elem63 = iprot.readString();
+ struct.privileges.add(_elem63);
}
}
struct.setPrivilegesIsSet(true);
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/61a67cb9/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesRequest.java
index 56e4cc7..89afb70 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesRequest.java
@@ -36,8 +36,7 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
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);
private static final org.apache.thrift.protocol.TField REQUESTOR_USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("requestorUserName", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField REQUESTOR_GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("requestorGroupNames", org.apache.thrift.protocol.TType.SET, (short)3);
- 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)4);
+ 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)3);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -47,15 +46,13 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
private int protocol_version; // required
private String requestorUserName; // required
- private Set<String> requestorGroupNames; // required
private String roleName; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PROTOCOL_VERSION((short)1, "protocol_version"),
REQUESTOR_USER_NAME((short)2, "requestorUserName"),
- REQUESTOR_GROUP_NAMES((short)3, "requestorGroupNames"),
- ROLE_NAME((short)4, "roleName");
+ ROLE_NAME((short)3, "roleName");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -74,9 +71,7 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
return PROTOCOL_VERSION;
case 2: // REQUESTOR_USER_NAME
return REQUESTOR_USER_NAME;
- case 3: // REQUESTOR_GROUP_NAMES
- return REQUESTOR_GROUP_NAMES;
- case 4: // ROLE_NAME
+ case 3: // ROLE_NAME
return ROLE_NAME;
default:
return null;
@@ -127,9 +122,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.REQUESTOR_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("requestorUserName", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.REQUESTOR_GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("requestorGroupNames", org.apache.thrift.TFieldRequirementType.REQUIRED,
- new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
@@ -144,14 +136,12 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
public TListSentryPrivilegesRequest(
int protocol_version,
String requestorUserName,
- Set<String> requestorGroupNames,
String roleName)
{
this();
this.protocol_version = protocol_version;
setProtocol_versionIsSet(true);
this.requestorUserName = requestorUserName;
- this.requestorGroupNames = requestorGroupNames;
this.roleName = roleName;
}
@@ -164,13 +154,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
if (other.isSetRequestorUserName()) {
this.requestorUserName = other.requestorUserName;
}
- if (other.isSetRequestorGroupNames()) {
- Set<String> __this__requestorGroupNames = new HashSet<String>();
- for (String other_element : other.requestorGroupNames) {
- __this__requestorGroupNames.add(other_element);
- }
- this.requestorGroupNames = __this__requestorGroupNames;
- }
if (other.isSetRoleName()) {
this.roleName = other.roleName;
}
@@ -185,7 +168,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
this.protocol_version = 1;
this.requestorUserName = null;
- this.requestorGroupNames = null;
this.roleName = null;
}
@@ -234,44 +216,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
}
}
- public int getRequestorGroupNamesSize() {
- return (this.requestorGroupNames == null) ? 0 : this.requestorGroupNames.size();
- }
-
- public java.util.Iterator<String> getRequestorGroupNamesIterator() {
- return (this.requestorGroupNames == null) ? null : this.requestorGroupNames.iterator();
- }
-
- public void addToRequestorGroupNames(String elem) {
- if (this.requestorGroupNames == null) {
- this.requestorGroupNames = new HashSet<String>();
- }
- this.requestorGroupNames.add(elem);
- }
-
- public Set<String> getRequestorGroupNames() {
- return this.requestorGroupNames;
- }
-
- public void setRequestorGroupNames(Set<String> requestorGroupNames) {
- this.requestorGroupNames = requestorGroupNames;
- }
-
- public void unsetRequestorGroupNames() {
- this.requestorGroupNames = null;
- }
-
- /** Returns true if field requestorGroupNames is set (has been assigned a value) and false otherwise */
- public boolean isSetRequestorGroupNames() {
- return this.requestorGroupNames != null;
- }
-
- public void setRequestorGroupNamesIsSet(boolean value) {
- if (!value) {
- this.requestorGroupNames = null;
- }
- }
-
public String getRoleName() {
return this.roleName;
}
@@ -313,14 +257,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
}
break;
- case REQUESTOR_GROUP_NAMES:
- if (value == null) {
- unsetRequestorGroupNames();
- } else {
- setRequestorGroupNames((Set<String>)value);
- }
- break;
-
case ROLE_NAME:
if (value == null) {
unsetRoleName();
@@ -340,9 +276,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
case REQUESTOR_USER_NAME:
return getRequestorUserName();
- case REQUESTOR_GROUP_NAMES:
- return getRequestorGroupNames();
-
case ROLE_NAME:
return getRoleName();
@@ -361,8 +294,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
return isSetProtocol_version();
case REQUESTOR_USER_NAME:
return isSetRequestorUserName();
- case REQUESTOR_GROUP_NAMES:
- return isSetRequestorGroupNames();
case ROLE_NAME:
return isSetRoleName();
}
@@ -400,15 +331,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
return false;
}
- boolean this_present_requestorGroupNames = true && this.isSetRequestorGroupNames();
- boolean that_present_requestorGroupNames = true && that.isSetRequestorGroupNames();
- if (this_present_requestorGroupNames || that_present_requestorGroupNames) {
- if (!(this_present_requestorGroupNames && that_present_requestorGroupNames))
- return false;
- if (!this.requestorGroupNames.equals(that.requestorGroupNames))
- return false;
- }
-
boolean this_present_roleName = true && this.isSetRoleName();
boolean that_present_roleName = true && that.isSetRoleName();
if (this_present_roleName || that_present_roleName) {
@@ -435,11 +357,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
if (present_requestorUserName)
builder.append(requestorUserName);
- boolean present_requestorGroupNames = true && (isSetRequestorGroupNames());
- builder.append(present_requestorGroupNames);
- if (present_requestorGroupNames)
- builder.append(requestorGroupNames);
-
boolean present_roleName = true && (isSetRoleName());
builder.append(present_roleName);
if (present_roleName)
@@ -476,16 +393,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetRequestorGroupNames()).compareTo(typedOther.isSetRequestorGroupNames());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetRequestorGroupNames()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorGroupNames, typedOther.requestorGroupNames);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
if (lastComparison != 0) {
return lastComparison;
@@ -528,14 +435,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
}
first = false;
if (!first) sb.append(", ");
- sb.append("requestorGroupNames:");
- if (this.requestorGroupNames == null) {
- sb.append("null");
- } else {
- sb.append(this.requestorGroupNames);
- }
- first = false;
- if (!first) sb.append(", ");
sb.append("roleName:");
if (this.roleName == null) {
sb.append("null");
@@ -557,10 +456,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
throw new org.apache.thrift.protocol.TProtocolException("Required field 'requestorUserName' is unset! Struct:" + toString());
}
- if (!isSetRequestorGroupNames()) {
- throw new org.apache.thrift.protocol.TProtocolException("Required field 'requestorGroupNames' is unset! Struct:" + toString());
- }
-
if (!isSetRoleName()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'roleName' is unset! Struct:" + toString());
}
@@ -620,25 +515,7 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case 3: // REQUESTOR_GROUP_NAMES
- if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
- {
- org.apache.thrift.protocol.TSet _set88 = iprot.readSetBegin();
- struct.requestorGroupNames = new HashSet<String>(2*_set88.size);
- for (int _i89 = 0; _i89 < _set88.size; ++_i89)
- {
- String _elem90; // required
- _elem90 = iprot.readString();
- struct.requestorGroupNames.add(_elem90);
- }
- iprot.readSetEnd();
- }
- struct.setRequestorGroupNamesIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 4: // ROLE_NAME
+ case 3: // ROLE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.roleName = iprot.readString();
struct.setRoleNameIsSet(true);
@@ -667,18 +544,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
oprot.writeString(struct.requestorUserName);
oprot.writeFieldEnd();
}
- if (struct.requestorGroupNames != null) {
- oprot.writeFieldBegin(REQUESTOR_GROUP_NAMES_FIELD_DESC);
- {
- oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.requestorGroupNames.size()));
- for (String _iter91 : struct.requestorGroupNames)
- {
- oprot.writeString(_iter91);
- }
- oprot.writeSetEnd();
- }
- oprot.writeFieldEnd();
- }
if (struct.roleName != null) {
oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
oprot.writeString(struct.roleName);
@@ -703,13 +568,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
TTupleProtocol oprot = (TTupleProtocol) prot;
oprot.writeI32(struct.protocol_version);
oprot.writeString(struct.requestorUserName);
- {
- oprot.writeI32(struct.requestorGroupNames.size());
- for (String _iter92 : struct.requestorGroupNames)
- {
- oprot.writeString(_iter92);
- }
- }
oprot.writeString(struct.roleName);
}
@@ -720,17 +578,6 @@ public class TListSentryPrivilegesRequest implements org.apache.thrift.TBase<TLi
struct.setProtocol_versionIsSet(true);
struct.requestorUserName = iprot.readString();
struct.setRequestorUserNameIsSet(true);
- {
- org.apache.thrift.protocol.TSet _set93 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.requestorGroupNames = new HashSet<String>(2*_set93.size);
- for (int _i94 = 0; _i94 < _set93.size; ++_i94)
- {
- String _elem95; // required
- _elem95 = iprot.readString();
- struct.requestorGroupNames.add(_elem95);
- }
- }
- struct.setRequestorGroupNamesIsSet(true);
struct.roleName = iprot.readString();
struct.setRoleNameIsSet(true);
}
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/61a67cb9/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesResponse.java
index 53a0f78..7d1e18b 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryPrivilegesResponse.java
@@ -447,14 +447,14 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
case 2: // PRIVILEGES
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- org.apache.thrift.protocol.TSet _set96 = iprot.readSetBegin();
- struct.privileges = new HashSet<TSentryPrivilege>(2*_set96.size);
- for (int _i97 = 0; _i97 < _set96.size; ++_i97)
+ 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 _elem98; // required
- _elem98 = new TSentryPrivilege();
- _elem98.read(iprot);
- struct.privileges.add(_elem98);
+ TSentryPrivilege _elem34; // required
+ _elem34 = new TSentryPrivilege();
+ _elem34.read(iprot);
+ struct.privileges.add(_elem34);
}
iprot.readSetEnd();
}
@@ -485,9 +485,9 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
oprot.writeFieldBegin(PRIVILEGES_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, struct.privileges.size()));
- for (TSentryPrivilege _iter99 : struct.privileges)
+ for (TSentryPrivilege _iter35 : struct.privileges)
{
- _iter99.write(oprot);
+ _iter35.write(oprot);
}
oprot.writeSetEnd();
}
@@ -513,9 +513,9 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
struct.status.write(oprot);
{
oprot.writeI32(struct.privileges.size());
- for (TSentryPrivilege _iter100 : struct.privileges)
+ for (TSentryPrivilege _iter36 : struct.privileges)
{
- _iter100.write(oprot);
+ _iter36.write(oprot);
}
}
}
@@ -527,14 +527,14 @@ public class TListSentryPrivilegesResponse implements org.apache.thrift.TBase<TL
struct.status.read(iprot);
struct.setStatusIsSet(true);
{
- org.apache.thrift.protocol.TSet _set101 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.privileges = new HashSet<TSentryPrivilege>(2*_set101.size);
- for (int _i102 = 0; _i102 < _set101.size; ++_i102)
+ 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 _elem103; // required
- _elem103 = new TSentryPrivilege();
- _elem103.read(iprot);
- struct.privileges.add(_elem103);
+ TSentryPrivilege _elem39; // required
+ _elem39 = new TSentryPrivilege();
+ _elem39.read(iprot);
+ struct.privileges.add(_elem39);
}
}
struct.setPrivilegesIsSet(true);
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/61a67cb9/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesRequest.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesRequest.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesRequest.java
index c8873a8..4eec1ed 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesRequest.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesRequest.java
@@ -36,8 +36,7 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
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);
private static final org.apache.thrift.protocol.TField REQUESTOR_USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("requestorUserName", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField REQUESTOR_GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("requestorGroupNames", org.apache.thrift.protocol.TType.SET, (short)3);
- private static final org.apache.thrift.protocol.TField GROUP_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("groupName", org.apache.thrift.protocol.TType.STRING, (short)4);
+ private static final org.apache.thrift.protocol.TField GROUP_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("groupName", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -47,15 +46,13 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
private int protocol_version; // required
private String requestorUserName; // required
- private Set<String> requestorGroupNames; // required
private String groupName; // optional
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PROTOCOL_VERSION((short)1, "protocol_version"),
REQUESTOR_USER_NAME((short)2, "requestorUserName"),
- REQUESTOR_GROUP_NAMES((short)3, "requestorGroupNames"),
- GROUP_NAME((short)4, "groupName");
+ GROUP_NAME((short)3, "groupName");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -74,9 +71,7 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
return PROTOCOL_VERSION;
case 2: // REQUESTOR_USER_NAME
return REQUESTOR_USER_NAME;
- case 3: // REQUESTOR_GROUP_NAMES
- return REQUESTOR_GROUP_NAMES;
- case 4: // GROUP_NAME
+ case 3: // GROUP_NAME
return GROUP_NAME;
default:
return null;
@@ -128,9 +123,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.REQUESTOR_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("requestorUserName", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.REQUESTOR_GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("requestorGroupNames", org.apache.thrift.TFieldRequirementType.REQUIRED,
- new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.GROUP_NAME, new org.apache.thrift.meta_data.FieldMetaData("groupName", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
@@ -144,14 +136,12 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
public TListSentryRolesRequest(
int protocol_version,
- String requestorUserName,
- Set<String> requestorGroupNames)
+ String requestorUserName)
{
this();
this.protocol_version = protocol_version;
setProtocol_versionIsSet(true);
this.requestorUserName = requestorUserName;
- this.requestorGroupNames = requestorGroupNames;
}
/**
@@ -163,13 +153,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
if (other.isSetRequestorUserName()) {
this.requestorUserName = other.requestorUserName;
}
- if (other.isSetRequestorGroupNames()) {
- Set<String> __this__requestorGroupNames = new HashSet<String>();
- for (String other_element : other.requestorGroupNames) {
- __this__requestorGroupNames.add(other_element);
- }
- this.requestorGroupNames = __this__requestorGroupNames;
- }
if (other.isSetGroupName()) {
this.groupName = other.groupName;
}
@@ -184,7 +167,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
this.protocol_version = 1;
this.requestorUserName = null;
- this.requestorGroupNames = null;
this.groupName = null;
}
@@ -233,44 +215,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
}
}
- public int getRequestorGroupNamesSize() {
- return (this.requestorGroupNames == null) ? 0 : this.requestorGroupNames.size();
- }
-
- public java.util.Iterator<String> getRequestorGroupNamesIterator() {
- return (this.requestorGroupNames == null) ? null : this.requestorGroupNames.iterator();
- }
-
- public void addToRequestorGroupNames(String elem) {
- if (this.requestorGroupNames == null) {
- this.requestorGroupNames = new HashSet<String>();
- }
- this.requestorGroupNames.add(elem);
- }
-
- public Set<String> getRequestorGroupNames() {
- return this.requestorGroupNames;
- }
-
- public void setRequestorGroupNames(Set<String> requestorGroupNames) {
- this.requestorGroupNames = requestorGroupNames;
- }
-
- public void unsetRequestorGroupNames() {
- this.requestorGroupNames = null;
- }
-
- /** Returns true if field requestorGroupNames is set (has been assigned a value) and false otherwise */
- public boolean isSetRequestorGroupNames() {
- return this.requestorGroupNames != null;
- }
-
- public void setRequestorGroupNamesIsSet(boolean value) {
- if (!value) {
- this.requestorGroupNames = null;
- }
- }
-
public String getGroupName() {
return this.groupName;
}
@@ -312,14 +256,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
}
break;
- case REQUESTOR_GROUP_NAMES:
- if (value == null) {
- unsetRequestorGroupNames();
- } else {
- setRequestorGroupNames((Set<String>)value);
- }
- break;
-
case GROUP_NAME:
if (value == null) {
unsetGroupName();
@@ -339,9 +275,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
case REQUESTOR_USER_NAME:
return getRequestorUserName();
- case REQUESTOR_GROUP_NAMES:
- return getRequestorGroupNames();
-
case GROUP_NAME:
return getGroupName();
@@ -360,8 +293,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
return isSetProtocol_version();
case REQUESTOR_USER_NAME:
return isSetRequestorUserName();
- case REQUESTOR_GROUP_NAMES:
- return isSetRequestorGroupNames();
case GROUP_NAME:
return isSetGroupName();
}
@@ -399,15 +330,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
return false;
}
- boolean this_present_requestorGroupNames = true && this.isSetRequestorGroupNames();
- boolean that_present_requestorGroupNames = true && that.isSetRequestorGroupNames();
- if (this_present_requestorGroupNames || that_present_requestorGroupNames) {
- if (!(this_present_requestorGroupNames && that_present_requestorGroupNames))
- return false;
- if (!this.requestorGroupNames.equals(that.requestorGroupNames))
- return false;
- }
-
boolean this_present_groupName = true && this.isSetGroupName();
boolean that_present_groupName = true && that.isSetGroupName();
if (this_present_groupName || that_present_groupName) {
@@ -434,11 +356,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
if (present_requestorUserName)
builder.append(requestorUserName);
- boolean present_requestorGroupNames = true && (isSetRequestorGroupNames());
- builder.append(present_requestorGroupNames);
- if (present_requestorGroupNames)
- builder.append(requestorGroupNames);
-
boolean present_groupName = true && (isSetGroupName());
builder.append(present_groupName);
if (present_groupName)
@@ -475,16 +392,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetRequestorGroupNames()).compareTo(typedOther.isSetRequestorGroupNames());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetRequestorGroupNames()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorGroupNames, typedOther.requestorGroupNames);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
lastComparison = Boolean.valueOf(isSetGroupName()).compareTo(typedOther.isSetGroupName());
if (lastComparison != 0) {
return lastComparison;
@@ -526,14 +433,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
sb.append(this.requestorUserName);
}
first = false;
- if (!first) sb.append(", ");
- sb.append("requestorGroupNames:");
- if (this.requestorGroupNames == null) {
- sb.append("null");
- } else {
- sb.append(this.requestorGroupNames);
- }
- first = false;
if (isSetGroupName()) {
if (!first) sb.append(", ");
sb.append("groupName:");
@@ -558,10 +457,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
throw new org.apache.thrift.protocol.TProtocolException("Required field 'requestorUserName' is unset! Struct:" + toString());
}
- if (!isSetRequestorGroupNames()) {
- throw new org.apache.thrift.protocol.TProtocolException("Required field 'requestorGroupNames' is unset! Struct:" + toString());
- }
-
// check for sub-struct validity
}
@@ -617,25 +512,7 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case 3: // REQUESTOR_GROUP_NAMES
- if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
- {
- org.apache.thrift.protocol.TSet _set64 = iprot.readSetBegin();
- struct.requestorGroupNames = new HashSet<String>(2*_set64.size);
- for (int _i65 = 0; _i65 < _set64.size; ++_i65)
- {
- String _elem66; // required
- _elem66 = iprot.readString();
- struct.requestorGroupNames.add(_elem66);
- }
- iprot.readSetEnd();
- }
- struct.setRequestorGroupNamesIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 4: // GROUP_NAME
+ case 3: // GROUP_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.groupName = iprot.readString();
struct.setGroupNameIsSet(true);
@@ -664,18 +541,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
oprot.writeString(struct.requestorUserName);
oprot.writeFieldEnd();
}
- if (struct.requestorGroupNames != null) {
- oprot.writeFieldBegin(REQUESTOR_GROUP_NAMES_FIELD_DESC);
- {
- oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.requestorGroupNames.size()));
- for (String _iter67 : struct.requestorGroupNames)
- {
- oprot.writeString(_iter67);
- }
- oprot.writeSetEnd();
- }
- oprot.writeFieldEnd();
- }
if (struct.groupName != null) {
if (struct.isSetGroupName()) {
oprot.writeFieldBegin(GROUP_NAME_FIELD_DESC);
@@ -702,13 +567,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
TTupleProtocol oprot = (TTupleProtocol) prot;
oprot.writeI32(struct.protocol_version);
oprot.writeString(struct.requestorUserName);
- {
- oprot.writeI32(struct.requestorGroupNames.size());
- for (String _iter68 : struct.requestorGroupNames)
- {
- oprot.writeString(_iter68);
- }
- }
BitSet optionals = new BitSet();
if (struct.isSetGroupName()) {
optionals.set(0);
@@ -726,17 +584,6 @@ public class TListSentryRolesRequest implements org.apache.thrift.TBase<TListSen
struct.setProtocol_versionIsSet(true);
struct.requestorUserName = iprot.readString();
struct.setRequestorUserNameIsSet(true);
- {
- org.apache.thrift.protocol.TSet _set69 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.requestorGroupNames = new HashSet<String>(2*_set69.size);
- for (int _i70 = 0; _i70 < _set69.size; ++_i70)
- {
- String _elem71; // required
- _elem71 = iprot.readString();
- struct.requestorGroupNames.add(_elem71);
- }
- }
- struct.setRequestorGroupNamesIsSet(true);
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.groupName = iprot.readString();
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/61a67cb9/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesResponse.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesResponse.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesResponse.java
index 3440b5e..f3dfac2 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesResponse.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TListSentryRolesResponse.java
@@ -447,14 +447,14 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
case 2: // ROLES
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- org.apache.thrift.protocol.TSet _set80 = iprot.readSetBegin();
- struct.roles = new HashSet<TSentryRole>(2*_set80.size);
- for (int _i81 = 0; _i81 < _set80.size; ++_i81)
+ org.apache.thrift.protocol.TSet _set24 = iprot.readSetBegin();
+ struct.roles = new HashSet<TSentryRole>(2*_set24.size);
+ for (int _i25 = 0; _i25 < _set24.size; ++_i25)
{
- TSentryRole _elem82; // required
- _elem82 = new TSentryRole();
- _elem82.read(iprot);
- struct.roles.add(_elem82);
+ TSentryRole _elem26; // required
+ _elem26 = new TSentryRole();
+ _elem26.read(iprot);
+ struct.roles.add(_elem26);
}
iprot.readSetEnd();
}
@@ -485,9 +485,9 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
oprot.writeFieldBegin(ROLES_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, struct.roles.size()));
- for (TSentryRole _iter83 : struct.roles)
+ for (TSentryRole _iter27 : struct.roles)
{
- _iter83.write(oprot);
+ _iter27.write(oprot);
}
oprot.writeSetEnd();
}
@@ -513,9 +513,9 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
struct.status.write(oprot);
{
oprot.writeI32(struct.roles.size());
- for (TSentryRole _iter84 : struct.roles)
+ for (TSentryRole _iter28 : struct.roles)
{
- _iter84.write(oprot);
+ _iter28.write(oprot);
}
}
}
@@ -527,14 +527,14 @@ public class TListSentryRolesResponse implements org.apache.thrift.TBase<TListSe
struct.status.read(iprot);
struct.setStatusIsSet(true);
{
- org.apache.thrift.protocol.TSet _set85 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.roles = new HashSet<TSentryRole>(2*_set85.size);
- for (int _i86 = 0; _i86 < _set85.size; ++_i86)
+ org.apache.thrift.protocol.TSet _set29 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.roles = new HashSet<TSentryRole>(2*_set29.size);
+ for (int _i30 = 0; _i30 < _set29.size; ++_i30)
{
- TSentryRole _elem87; // required
- _elem87 = new TSentryRole();
- _elem87.read(iprot);
- struct.roles.add(_elem87);
+ TSentryRole _elem31; // required
+ _elem31 = new TSentryRole();
+ _elem31.read(iprot);
+ struct.roles.add(_elem31);
}
}
struct.setRolesIsSet(true);
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/61a67cb9/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryActiveRoleSet.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryActiveRoleSet.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryActiveRoleSet.java
index 8a4f62a..573dc26 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryActiveRoleSet.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryActiveRoleSet.java
@@ -443,13 +443,13 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
case 2: // ROLES
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- org.apache.thrift.protocol.TSet _set104 = iprot.readSetBegin();
- struct.roles = new HashSet<String>(2*_set104.size);
- for (int _i105 = 0; _i105 < _set104.size; ++_i105)
+ org.apache.thrift.protocol.TSet _set40 = iprot.readSetBegin();
+ struct.roles = new HashSet<String>(2*_set40.size);
+ for (int _i41 = 0; _i41 < _set40.size; ++_i41)
{
- String _elem106; // required
- _elem106 = iprot.readString();
- struct.roles.add(_elem106);
+ String _elem42; // required
+ _elem42 = iprot.readString();
+ struct.roles.add(_elem42);
}
iprot.readSetEnd();
}
@@ -478,9 +478,9 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
oprot.writeFieldBegin(ROLES_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.roles.size()));
- for (String _iter107 : struct.roles)
+ for (String _iter43 : struct.roles)
{
- oprot.writeString(_iter107);
+ oprot.writeString(_iter43);
}
oprot.writeSetEnd();
}
@@ -506,9 +506,9 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
oprot.writeBool(struct.all);
{
oprot.writeI32(struct.roles.size());
- for (String _iter108 : struct.roles)
+ for (String _iter44 : struct.roles)
{
- oprot.writeString(_iter108);
+ oprot.writeString(_iter44);
}
}
}
@@ -519,13 +519,13 @@ public class TSentryActiveRoleSet implements org.apache.thrift.TBase<TSentryActi
struct.all = iprot.readBool();
struct.setAllIsSet(true);
{
- org.apache.thrift.protocol.TSet _set109 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.roles = new HashSet<String>(2*_set109.size);
- for (int _i110 = 0; _i110 < _set109.size; ++_i110)
+ org.apache.thrift.protocol.TSet _set45 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.roles = new HashSet<String>(2*_set45.size);
+ for (int _i46 = 0; _i46 < _set45.size; ++_i46)
{
- String _elem111; // required
- _elem111 = iprot.readString();
- struct.roles.add(_elem111);
+ String _elem47; // required
+ _elem47 = iprot.readString();
+ struct.roles.add(_elem47);
}
}
struct.setRolesIsSet(true);
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/61a67cb9/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryRole.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryRole.java b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryRole.java
index 0e004f6..f43a6d5 100644
--- a/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryRole.java
+++ b/sentry-provider/sentry-provider-db/src/gen/thrift/gen-javabean/org/apache/sentry/provider/db/service/thrift/TSentryRole.java
@@ -528,14 +528,14 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
case 2: // GROUPS
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- org.apache.thrift.protocol.TSet _set72 = iprot.readSetBegin();
- struct.groups = new HashSet<TSentryGroup>(2*_set72.size);
- for (int _i73 = 0; _i73 < _set72.size; ++_i73)
+ 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 _elem74; // required
- _elem74 = new TSentryGroup();
- _elem74.read(iprot);
- struct.groups.add(_elem74);
+ TSentryGroup _elem18; // required
+ _elem18 = new TSentryGroup();
+ _elem18.read(iprot);
+ struct.groups.add(_elem18);
}
iprot.readSetEnd();
}
@@ -574,9 +574,9 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
oprot.writeFieldBegin(GROUPS_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, struct.groups.size()));
- for (TSentryGroup _iter75 : struct.groups)
+ for (TSentryGroup _iter19 : struct.groups)
{
- _iter75.write(oprot);
+ _iter19.write(oprot);
}
oprot.writeSetEnd();
}
@@ -607,9 +607,9 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
oprot.writeString(struct.roleName);
{
oprot.writeI32(struct.groups.size());
- for (TSentryGroup _iter76 : struct.groups)
+ for (TSentryGroup _iter20 : struct.groups)
{
- _iter76.write(oprot);
+ _iter20.write(oprot);
}
}
oprot.writeString(struct.grantorPrincipal);
@@ -621,14 +621,14 @@ public class TSentryRole implements org.apache.thrift.TBase<TSentryRole, TSentry
struct.roleName = iprot.readString();
struct.setRoleNameIsSet(true);
{
- org.apache.thrift.protocol.TSet _set77 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.groups = new HashSet<TSentryGroup>(2*_set77.size);
- for (int _i78 = 0; _i78 < _set77.size; ++_i78)
+ 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 _elem79; // required
- _elem79 = new TSentryGroup();
- _elem79.read(iprot);
- struct.groups.add(_elem79);
+ TSentryGroup _elem23; // required
+ _elem23 = new TSentryGroup();
+ _elem23.read(iprot);
+ struct.groups.add(_elem23);
}
}
struct.setGroupsIsSet(true);