Record Class OutputSpoolingOperatorFactory.OutputSpoolingInfo

java.lang.Object
java.lang.Record
io.trino.operator.OutputSpoolingOperatorFactory.OutputSpoolingInfo
All Implemented Interfaces:
OperatorInfo, Mergeable<OutputSpoolingOperatorFactory.OutputSpoolingInfo>
Enclosing class:
OutputSpoolingOperatorFactory

public static record OutputSpoolingOperatorFactory.OutputSpoolingInfo(io.airlift.units.Duration spoolingWallTime, io.airlift.units.Duration spoolingCpuTime, long inlinedPages, long inlinedPositions, long inlinedRawBytes, long spooledPages, long spooledPositions, long spooledRawBytes, long spooledEncodedBytes) extends Record implements Mergeable<OutputSpoolingOperatorFactory.OutputSpoolingInfo>, OperatorInfo
  • Constructor Details

    • OutputSpoolingInfo

      public OutputSpoolingInfo(io.airlift.units.Duration spoolingWallTime, io.airlift.units.Duration spoolingCpuTime, long inlinedPages, long inlinedPositions, long inlinedRawBytes, long spooledPages, long spooledPositions, long spooledRawBytes, long spooledEncodedBytes)
      Creates an instance of a OutputSpoolingInfo record class.
      Parameters:
      spoolingWallTime - the value for the spoolingWallTime record component
      spoolingCpuTime - the value for the spoolingCpuTime record component
      inlinedPages - the value for the inlinedPages record component
      inlinedPositions - the value for the inlinedPositions record component
      inlinedRawBytes - the value for the inlinedRawBytes record component
      spooledPages - the value for the spooledPages record component
      spooledPositions - the value for the spooledPositions record component
      spooledRawBytes - the value for the spooledRawBytes record component
      spooledEncodedBytes - the value for the spooledEncodedBytes record component
  • Method Details

    • mergeWith

    • getEncodedToRawBytesRatio

      public double getEncodedToRawBytesRatio()
    • isFinal

      public boolean isFinal()
      Specified by:
      isFinal in interface OperatorInfo
      Returns:
      true if this OperatorInfo should be collected and sent to the coordinator when the task completes (i.e. it will not be stripped away during summarization).
    • toString

      public 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.
    • spoolingWallTime

      public io.airlift.units.Duration spoolingWallTime()
      Returns the value of the spoolingWallTime record component.
      Returns:
      the value of the spoolingWallTime record component
    • spoolingCpuTime

      public io.airlift.units.Duration spoolingCpuTime()
      Returns the value of the spoolingCpuTime record component.
      Returns:
      the value of the spoolingCpuTime record component
    • inlinedPages

      public long inlinedPages()
      Returns the value of the inlinedPages record component.
      Returns:
      the value of the inlinedPages record component
    • inlinedPositions

      public long inlinedPositions()
      Returns the value of the inlinedPositions record component.
      Returns:
      the value of the inlinedPositions record component
    • inlinedRawBytes

      public long inlinedRawBytes()
      Returns the value of the inlinedRawBytes record component.
      Returns:
      the value of the inlinedRawBytes record component
    • spooledPages

      public long spooledPages()
      Returns the value of the spooledPages record component.
      Returns:
      the value of the spooledPages record component
    • spooledPositions

      public long spooledPositions()
      Returns the value of the spooledPositions record component.
      Returns:
      the value of the spooledPositions record component
    • spooledRawBytes

      public long spooledRawBytes()
      Returns the value of the spooledRawBytes record component.
      Returns:
      the value of the spooledRawBytes record component
    • spooledEncodedBytes

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