Record Class AfterTableCommitedEvent
java.lang.Object
java.lang.Record
org.apache.polaris.service.events.AfterTableCommitedEvent
- Record Components:
identifier- The identifier.base- The old metadata.metadata- The new metadata.
- All Implemented Interfaces:
PolarisEvent
public record AfterTableCommitedEvent(org.apache.iceberg.catalog.TableIdentifier identifier, org.apache.iceberg.TableMetadata base, org.apache.iceberg.TableMetadata metadata)
extends Record
implements PolarisEvent
Emitted after Polaris performs a commit to a table. This is not emitted if there's an exception
while committing.
-
Constructor Summary
ConstructorsConstructorDescriptionAfterTableCommitedEvent(org.apache.iceberg.catalog.TableIdentifier identifier, org.apache.iceberg.TableMetadata base, org.apache.iceberg.TableMetadata metadata) Creates an instance of aAfterTableCommitedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.iceberg.TableMetadatabase()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.apache.iceberg.catalog.TableIdentifierReturns the value of theidentifierrecord component.org.apache.iceberg.TableMetadatametadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AfterTableCommitedEvent
public AfterTableCommitedEvent(org.apache.iceberg.catalog.TableIdentifier identifier, org.apache.iceberg.TableMetadata base, org.apache.iceberg.TableMetadata metadata) Creates an instance of aAfterTableCommitedEventrecord class.- Parameters:
identifier- the value for theidentifierrecord componentbase- the value for thebaserecord componentmetadata- the value for themetadatarecord 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). -
identifier
public org.apache.iceberg.catalog.TableIdentifier identifier()Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
base
public org.apache.iceberg.TableMetadata base()Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
metadata
public org.apache.iceberg.TableMetadata metadata()Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-