Record Class BeforeViewCommitedEvent

java.lang.Object
java.lang.Record
org.apache.polaris.service.events.BeforeViewCommitedEvent
Record Components:
identifier - The identifier.
base - The old metadata.
metadata - The new metadata.
All Implemented Interfaces:
PolarisEvent

public record BeforeViewCommitedEvent(org.apache.iceberg.catalog.TableIdentifier identifier, org.apache.iceberg.view.ViewMetadata base, org.apache.iceberg.view.ViewMetadata metadata) extends Record implements PolarisEvent
Emitted when Polaris intends to perform a commit to a view. There is no guarantee on the order of this event relative to the validation checks we've performed, which means the commit may still fail Polaris-side validation checks.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BeforeViewCommitedEvent(org.apache.iceberg.catalog.TableIdentifier identifier, org.apache.iceberg.view.ViewMetadata base, org.apache.iceberg.view.ViewMetadata metadata)
    Creates an instance of a BeforeViewCommitedEvent record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.iceberg.view.ViewMetadata
    Returns the value of the base record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.apache.iceberg.catalog.TableIdentifier
    Returns the value of the identifier record component.
    org.apache.iceberg.view.ViewMetadata
    Returns the value of the metadata record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BeforeViewCommitedEvent

      public BeforeViewCommitedEvent(org.apache.iceberg.catalog.TableIdentifier identifier, org.apache.iceberg.view.ViewMetadata base, org.apache.iceberg.view.ViewMetadata metadata)
      Creates an instance of a BeforeViewCommitedEvent record class.
      Parameters:
      identifier - the value for the identifier record component
      base - the value for the base record component
      metadata - the value for the metadata record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • identifier

      public org.apache.iceberg.catalog.TableIdentifier identifier()
      Returns the value of the identifier record component.
      Returns:
      the value of the identifier record component
    • base

      public org.apache.iceberg.view.ViewMetadata base()
      Returns the value of the base record component.
      Returns:
      the value of the base record component
    • metadata

      public org.apache.iceberg.view.ViewMetadata metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component