public TListSentryPrivilegesByAuthRequest deepCopy() { return new TListSentryPrivilegesByAuthRequest(this); }
/** * Performs a deep copy on <i>other</i>. */ public list_sentry_privileges_by_authorizable_args(list_sentry_privileges_by_authorizable_args other) { if (other.isSetRequest()) { this.request = new TListSentryPrivilegesByAuthRequest(other.request); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, list_sentry_privileges_by_authorizable_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.request = new TListSentryPrivilegesByAuthRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } } }
public void read(org.apache.thrift.protocol.TProtocol iprot, list_sentry_privileges_by_authorizable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // REQUEST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.request = new TListSentryPrivilegesByAuthRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); struct.validate(); }
Set<String> groups, ActiveRoleSet roleSet) throws SentryUserException { TListSentryPrivilegesByAuthRequest request = new TListSentryPrivilegesByAuthRequest();
TListSentryPrivilegesByAuthRequest request4 = new TListSentryPrivilegesByAuthRequest(); request4.setGroups(Sets.newHashSet(groupName)); request4.setRoleSet(new TSentryActiveRoleSet(true, null)); TListSentryPrivilegesByAuthRequest request5 = new TListSentryPrivilegesByAuthRequest(); request5.setRequestorUserName("not_" + ADMIN_USER); authorizablesSet = Sets.newHashSet("Collection=c1->Field=f2");