Record Class MemorySplit

java.lang.Object
java.lang.Record
io.trino.plugin.memory.MemorySplit
All Implemented Interfaces:
ConnectorSplit

public record MemorySplit(long table, int partNumber, int totalPartsPerWorker, HostAddress address, long expectedRows, OptionalLong limit) extends Record implements ConnectorSplit
  • Constructor Details

    • MemorySplit

      public MemorySplit(long table, int partNumber, int totalPartsPerWorker, HostAddress address, long expectedRows, OptionalLong limit)
      Creates an instance of a MemorySplit record class.
      Parameters:
      table - the value for the table record component
      partNumber - the value for the partNumber record component
      totalPartsPerWorker - the value for the totalPartsPerWorker record component
      address - the value for the address record component
      expectedRows - the value for the expectedRows record component
      limit - the value for the limit record component
  • Method Details

    • getSplitInfo

      public Map<String,String> getSplitInfo()
      Specified by:
      getSplitInfo in interface ConnectorSplit
    • getRetainedSizeInBytes

      public long getRetainedSizeInBytes()
      Specified by:
      getRetainedSizeInBytes in interface ConnectorSplit
    • isRemotelyAccessible

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

      public List<HostAddress> getAddresses()
      Specified by:
      getAddresses 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 the compare method from their corresponding wrapper classes.
      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.
    • table

      public long table()
      Returns the value of the table record component.
      Returns:
      the value of the table record component
    • partNumber

      public int partNumber()
      Returns the value of the partNumber record component.
      Returns:
      the value of the partNumber record component
    • totalPartsPerWorker

      public int totalPartsPerWorker()
      Returns the value of the totalPartsPerWorker record component.
      Returns:
      the value of the totalPartsPerWorker record component
    • address

      public HostAddress address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • expectedRows

      public long expectedRows()
      Returns the value of the expectedRows record component.
      Returns:
      the value of the expectedRows record component
    • limit

      public OptionalLong limit()
      Returns the value of the limit record component.
      Returns:
      the value of the limit record component