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
  • 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 a GrantsMutation record class.
      Parameters:
      persistence - the value for the persistence record component
      memoizedIndexedAccess - the value for the memoizedIndexedAccess record component
      privileges - the value for the privileges record component
      doGrant - the value for the doGrant record component
      validateEntityReferences - the value for the validateEntityReferences record component
      grants - the value for the grants record component
  • Method Details

    • apply

      public boolean apply()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • persistence

      public org.apache.polaris.persistence.nosql.api.Persistence persistence()
      Returns the value of the persistence record component.
      Returns:
      the value of the persistence record component
    • memoizedIndexedAccess

      public MemoizedIndexedAccess memoizedIndexedAccess()
      Returns the value of the memoizedIndexedAccess record component.
      Returns:
      the value of the memoizedIndexedAccess record component
    • privileges

      public org.apache.polaris.persistence.nosql.authz.api.Privileges privileges()
      Returns the value of the privileges record component.
      Returns:
      the value of the privileges record component
    • doGrant

      public boolean doGrant()
      Returns the value of the doGrant record component.
      Returns:
      the value of the doGrant record component
    • validateEntityReferences

      public boolean validateEntityReferences()
      Returns the value of the validateEntityReferences record component.
      Returns:
      the value of the validateEntityReferences record component
    • grants

      public SecurableGranteePrivilegeTuple[] grants()
      Returns the value of the grants record component.
      Returns:
      the value of the grants record component