private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authorizable = new TSentryAuthorizable(); struct.authorizable.read(iprot); struct.setAuthorizableIsSet(true); } else {
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authorizableHierarchy = new TSentryAuthorizable(); struct.authorizableHierarchy.read(iprot); struct.setAuthorizableHierarchyIsSet(true); } else {
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.oldAuthorizable = new TSentryAuthorizable(); struct.oldAuthorizable.read(iprot); struct.setOldAuthorizableIsSet(true); } else { if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.newAuthorizable = new TSentryAuthorizable(); struct.newAuthorizable.read(iprot); struct.setNewAuthorizableIsSet(true); } else {
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TRenamePrivilegesRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.protocol_version = iprot.readI32(); struct.setProtocol_versionIsSet(true); struct.requestorUserName = iprot.readString(); struct.setRequestorUserNameIsSet(true); struct.oldAuthorizable = new TSentryAuthorizable(); struct.oldAuthorizable.read(iprot); struct.setOldAuthorizableIsSet(true); struct.newAuthorizable = new TSentryAuthorizable(); struct.newAuthorizable.read(iprot); struct.setNewAuthorizableIsSet(true); } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authorizableHierarchy = new TSentryAuthorizable(); struct.authorizableHierarchy.read(iprot); struct.setAuthorizableHierarchyIsSet(true); } else {
_key124.read(iprot); _val125 = new TSentryPrivilegeMap(); _val125.read(iprot);
_elem108.read(iprot); struct.authorizableSet.add(_elem108);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TDropPrivilegesRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.protocol_version = iprot.readI32(); struct.setProtocol_versionIsSet(true); struct.requestorUserName = iprot.readString(); struct.setRequestorUserNameIsSet(true); struct.authorizable = new TSentryAuthorizable(); struct.authorizable.read(iprot); struct.setAuthorizableIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TListSentryPrivilegesByAuthResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.status = new org.apache.sentry.service.thrift.TSentryResponseStatus(); struct.status.read(iprot); struct.setStatusIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map128 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.privilegesMapByAuth = new HashMap<TSentryAuthorizable,TSentryPrivilegeMap>(2*_map128.size); for (int _i129 = 0; _i129 < _map128.size; ++_i129) { TSentryAuthorizable _key130; // required TSentryPrivilegeMap _val131; // required _key130 = new TSentryAuthorizable(); _key130.read(iprot); _val131 = new TSentryPrivilegeMap(); _val131.read(iprot); struct.privilegesMapByAuth.put(_key130, _val131); } } struct.setPrivilegesMapByAuthIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TListSentryPrivilegesRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.protocol_version = iprot.readI32(); struct.setProtocol_versionIsSet(true); struct.requestorUserName = iprot.readString(); struct.setRequestorUserNameIsSet(true); struct.roleName = iprot.readString(); struct.setRoleNameIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.authorizableHierarchy = new TSentryAuthorizable(); struct.authorizableHierarchy.read(iprot); struct.setAuthorizableHierarchyIsSet(true); } } }
_elem118.read(iprot); struct.authorizableSet.add(_elem118);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TListSentryPrivilegesForProviderRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.protocol_version = iprot.readI32(); struct.setProtocol_versionIsSet(true); { org.apache.thrift.protocol.TSet _set77 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.groups = new HashSet<String>(2*_set77.size); for (int _i78 = 0; _i78 < _set77.size; ++_i78) { String _elem79; // required _elem79 = iprot.readString(); struct.groups.add(_elem79); } } struct.setGroupsIsSet(true); struct.roleSet = new TSentryActiveRoleSet(); struct.roleSet.read(iprot); struct.setRoleSetIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.authorizableHierarchy = new TSentryAuthorizable(); struct.authorizableHierarchy.read(iprot); struct.setAuthorizableHierarchyIsSet(true); } } }