private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; 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); } }
_elem94.read(iprot); _val91.add(_elem94);
_elem58.read(iprot); struct.privileges.add(_elem58);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TAlterSentryRoleGrantPrivilegeResponse 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(2); if (incoming.get(0)) { struct.privilege = new TSentryPrivilege(); struct.privilege.read(iprot); struct.setPrivilegeIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TSet _set29 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.privileges = new HashSet<TSentryPrivilege>(2*_set29.size); for (int _i30 = 0; _i30 < _set29.size; ++_i30) { TSentryPrivilege _elem31; // required _elem31 = new TSentryPrivilege(); _elem31.read(iprot); struct.privileges.add(_elem31); } } struct.setPrivilegesIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TSentryPrivilegeMap struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TMap _map99 = 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*_map99.size); for (int _i100 = 0; _i100 < _map99.size; ++_i100) { String _key101; // required Set<TSentryPrivilege> _val102; // required _key101 = iprot.readString(); { org.apache.thrift.protocol.TSet _set103 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val102 = new HashSet<TSentryPrivilege>(2*_set103.size); for (int _i104 = 0; _i104 < _set103.size; ++_i104) { TSentryPrivilege _elem105; // required _elem105 = new TSentryPrivilege(); _elem105.read(iprot); _val102.add(_elem105); } } struct.privilegeMap.put(_key101, _val102); } } struct.setPrivilegeMapIsSet(true); } }
_elem145.read(iprot); _val142.add(_elem145);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TListSentryPrivilegesResponse 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.TSet _set61 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.privileges = new HashSet<TSentryPrivilege>(2*_set61.size); for (int _i62 = 0; _i62 < _set61.size; ++_i62) { TSentryPrivilege _elem63; // required _elem63 = new TSentryPrivilege(); _elem63.read(iprot); struct.privileges.add(_elem63); } } struct.setPrivilegesIsSet(true); } } }
_elem167.read(iprot); _val164.add(_elem167);