Record Class GrantsMutation
java.lang.Object
java.lang.Record
org.apache.polaris.persistence.nosql.metastore.mutation.GrantsMutation
public record GrantsMutation(org.apache.polaris.persistence.nosql.api.Persistence persistence, MemoizedIndexedAccess memoizedIndexedAccess, org.apache.polaris.persistence.nosql.authz.api.Privileges privileges, boolean doGrant, boolean validateEntityReferences, SecurableGranteePrivilegeTuple[] grants)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionGrantsMutation(org.apache.polaris.persistence.nosql.api.Persistence persistence, MemoizedIndexedAccess memoizedIndexedAccess, org.apache.polaris.persistence.nosql.authz.api.Privileges privileges, boolean doGrant, boolean validateEntityReferences, SecurableGranteePrivilegeTuple... grants) Creates an instance of aGrantsMutationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply()booleandoGrant()Returns the value of thedoGrantrecord component.final booleanIndicates whether some other object is "equal to" this one.grants()Returns the value of thegrantsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thememoizedIndexedAccessrecord component.org.apache.polaris.persistence.nosql.api.PersistenceReturns the value of thepersistencerecord component.org.apache.polaris.persistence.nosql.authz.api.PrivilegesReturns the value of theprivilegesrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevalidateEntityReferencesrecord component.
-
Constructor Details
-
GrantsMutation
public GrantsMutation(org.apache.polaris.persistence.nosql.api.Persistence persistence, MemoizedIndexedAccess memoizedIndexedAccess, org.apache.polaris.persistence.nosql.authz.api.Privileges privileges, boolean doGrant, boolean validateEntityReferences, SecurableGranteePrivilegeTuple... grants) Creates an instance of aGrantsMutationrecord class.- Parameters:
persistence- the value for thepersistencerecord componentmemoizedIndexedAccess- the value for thememoizedIndexedAccessrecord componentprivileges- the value for theprivilegesrecord componentdoGrant- the value for thedoGrantrecord componentvalidateEntityReferences- the value for thevalidateEntityReferencesrecord componentgrants- the value for thegrantsrecord component
-
-
Method Details
-
apply
public boolean apply() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
persistence
public org.apache.polaris.persistence.nosql.api.Persistence persistence()Returns the value of thepersistencerecord component.- Returns:
- the value of the
persistencerecord component
-
memoizedIndexedAccess
Returns the value of thememoizedIndexedAccessrecord component.- Returns:
- the value of the
memoizedIndexedAccessrecord component
-
privileges
public org.apache.polaris.persistence.nosql.authz.api.Privileges privileges()Returns the value of theprivilegesrecord component.- Returns:
- the value of the
privilegesrecord component
-
doGrant
public boolean doGrant()Returns the value of thedoGrantrecord component.- Returns:
- the value of the
doGrantrecord component
-
validateEntityReferences
public boolean validateEntityReferences()Returns the value of thevalidateEntityReferencesrecord component.- Returns:
- the value of the
validateEntityReferencesrecord component
-
grants
Returns the value of thegrantsrecord component.- Returns:
- the value of the
grantsrecord component
-