Record Class OutputStatsEstimator.OutputStatsEstimateResult

java.lang.Object
java.lang.Record
io.trino.execution.scheduler.faulttolerant.OutputStatsEstimator.OutputStatsEstimateResult
Enclosing interface:
OutputStatsEstimator

public static record OutputStatsEstimator.OutputStatsEstimateResult(OutputDataSizeEstimate outputDataSizeEstimate, long outputRowCountEstimate, String kind, boolean isAccurate) extends Record
  • Constructor Details

    • OutputStatsEstimateResult

      public OutputStatsEstimateResult(com.google.common.primitives.ImmutableLongArray partitionDataSizes, long outputRowCountEstimate, String kind, boolean isAccurate)
    • OutputStatsEstimateResult

      public OutputStatsEstimateResult(OutputDataSizeEstimate outputDataSizeEstimate, long outputRowCountEstimate, String kind, boolean isAccurate)
      Creates an instance of a OutputStatsEstimateResult record class.
      Parameters:
      outputDataSizeEstimate - the value for the outputDataSizeEstimate record component
      outputRowCountEstimate - the value for the outputRowCountEstimate record component
      kind - the value for the kind record component
      isAccurate - the value for the isAccurate record component
  • Method Details

    • unknown

    • isUnknown

      public boolean isUnknown()
    • 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.
    • outputDataSizeEstimate

      public OutputDataSizeEstimate outputDataSizeEstimate()
      Returns the value of the outputDataSizeEstimate record component.
      Returns:
      the value of the outputDataSizeEstimate record component
    • outputRowCountEstimate

      public long outputRowCountEstimate()
      Returns the value of the outputRowCountEstimate record component.
      Returns:
      the value of the outputRowCountEstimate record component
    • kind

      public String kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • isAccurate

      public boolean isAccurate()
      Returns the value of the isAccurate record component.
      Returns:
      the value of the isAccurate record component