Record Class SecurableGranteePrivilegeTuple
java.lang.Object
java.lang.Record
org.apache.polaris.persistence.nosql.metastore.privs.SecurableGranteePrivilegeTuple
public record SecurableGranteePrivilegeTuple(@NonNull org.apache.polaris.core.entity.PolarisEntityCore securable, @NonNull org.apache.polaris.core.entity.PolarisEntityCore grantee, @NonNull org.apache.polaris.core.entity.PolarisPrivilege privilege)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSecurableGranteePrivilegeTuple(@NonNull org.apache.polaris.core.entity.PolarisEntityCore securable, @NonNull org.apache.polaris.core.entity.PolarisEntityCore grantee, @NonNull org.apache.polaris.core.entity.PolarisPrivilege privilege) Creates an instance of aSecurableGranteePrivilegeTuplerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NonNull org.apache.polaris.core.entity.PolarisEntityCoregrantee()Returns the value of thegranteerecord component.final inthashCode()Returns a hash code value for this object.@NonNull org.apache.polaris.core.entity.PolarisPrivilegeReturns the value of theprivilegerecord component.@NonNull org.apache.polaris.core.entity.PolarisEntityCoreReturns the value of thesecurablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SecurableGranteePrivilegeTuple
public SecurableGranteePrivilegeTuple(@NonNull org.apache.polaris.core.entity.PolarisEntityCore securable, @NonNull org.apache.polaris.core.entity.PolarisEntityCore grantee, @NonNull org.apache.polaris.core.entity.PolarisPrivilege privilege) Creates an instance of aSecurableGranteePrivilegeTuplerecord class.- Parameters:
securable- the value for thesecurablerecord componentgrantee- the value for thegranteerecord componentprivilege- the value for theprivilegerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
securable
public @NonNull org.apache.polaris.core.entity.PolarisEntityCore securable()Returns the value of thesecurablerecord component.- Returns:
- the value of the
securablerecord component
-
grantee
public @NonNull org.apache.polaris.core.entity.PolarisEntityCore grantee()Returns the value of thegranteerecord component.- Returns:
- the value of the
granteerecord component
-
privilege
public @NonNull org.apache.polaris.core.entity.PolarisPrivilege privilege()Returns the value of theprivilegerecord component.- Returns:
- the value of the
privilegerecord component
-