public TListSentryPrivilegesByAuthResponse deepCopy() { return new TListSentryPrivilegesByAuthResponse(this); }
/** * Performs a deep copy on <i>other</i>. */ public list_sentry_privileges_by_authorizable_result(list_sentry_privileges_by_authorizable_result other) { if (other.isSetSuccess()) { this.success = new TListSentryPrivilegesByAuthResponse(other.success); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, list_sentry_privileges_by_authorizable_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = new TListSentryPrivilegesByAuthResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } } }
public void read(org.apache.thrift.protocol.TProtocol iprot, list_sentry_privileges_by_authorizable_result 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 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new TListSentryPrivilegesByAuthResponse(); struct.success.read(iprot); struct.setSuccessIsSet(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(); }
@Override public TListSentryPrivilegesByAuthResponse list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request) throws TException { TListSentryPrivilegesByAuthResponse response = new TListSentryPrivilegesByAuthResponse(); Map<String, TSentryPrivilegeMap> authRoleMap = Maps.newHashMap();