Record Class TableChangesSplit

java.lang.Object
java.lang.Record
io.trino.plugin.deltalake.functions.tablechanges.TableChangesSplit
All Implemented Interfaces:
ConnectorSplit

public record TableChangesSplit(String path, long fileSize, Map<String,Optional<String>> partitionKeys, long currentVersionCommitTimestamp, TableChangesFileType fileType, long currentVersion) extends Record implements ConnectorSplit
  • Constructor Details

    • TableChangesSplit

      public TableChangesSplit(String path, long fileSize, Map<String,Optional<String>> partitionKeys, long currentVersionCommitTimestamp, TableChangesFileType fileType, long currentVersion)
      Creates an instance of a TableChangesSplit record class.
      Parameters:
      path - the value for the path record component
      fileSize - the value for the fileSize record component
      partitionKeys - the value for the partitionKeys record component
      currentVersionCommitTimestamp - the value for the currentVersionCommitTimestamp record component
      fileType - the value for the fileType record component
      currentVersion - the value for the currentVersion record component
  • Method Details

    • isRemotelyAccessible

      public boolean isRemotelyAccessible()
      Specified by:
      isRemotelyAccessible in interface ConnectorSplit
    • getAddresses

      public List<HostAddress> getAddresses()
      Specified by:
      getAddresses in interface ConnectorSplit
    • getInfo

      public Object getInfo()
      Specified by:
      getInfo in interface ConnectorSplit
    • getSplitWeight

      public SplitWeight getSplitWeight()
      Specified by:
      getSplitWeight in interface ConnectorSplit
    • getRetainedSizeInBytes

      public long getRetainedSizeInBytes()
      Specified by:
      getRetainedSizeInBytes in interface ConnectorSplit
    • 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.
    • path

      public String path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • fileSize

      public long fileSize()
      Returns the value of the fileSize record component.
      Returns:
      the value of the fileSize record component
    • partitionKeys

      public Map<String,Optional<String>> partitionKeys()
      Returns the value of the partitionKeys record component.
      Returns:
      the value of the partitionKeys record component
    • currentVersionCommitTimestamp

      public long currentVersionCommitTimestamp()
      Returns the value of the currentVersionCommitTimestamp record component.
      Returns:
      the value of the currentVersionCommitTimestamp record component
    • fileType

      public TableChangesFileType fileType()
      Returns the value of the fileType record component.
      Returns:
      the value of the fileType record component
    • currentVersion

      public long currentVersion()
      Returns the value of the currentVersion record component.
      Returns:
      the value of the currentVersion record component