Record Class ExternalMergeSort.Resultado

java.lang.Object
java.lang.Record
br.unip.aps.estruturas.ExternalMergeSort.Resultado
Enclosing class:
ExternalMergeSort

public static record ExternalMergeSort.Resultado(long registros, int runs, int registrosPorRun, OperationMetrics fase1, OperationMetrics fase2, long bytesEntrada, long nanosFase1, long nanosFase2, long memoriaPicoBytes, int arquivos, Path saida, boolean ordenado) extends Record
Medicoes de uma execucao.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Resultado(long registros, int runs, int registrosPorRun, OperationMetrics fase1, OperationMetrics fase2, long bytesEntrada, long nanosFase1, long nanosFase2, long memoriaPicoBytes, int arquivos, Path saida, boolean ordenado)
    Creates an instance of a Resultado record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the arquivos record component.
    long
    Returns the value of the bytesEntrada record component.
    long
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the fase1 record component.
    Returns the value of the fase2 record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the memoriaPicoBytes record component.
    long
    Returns the value of the nanosFase1 record component.
    long
    Returns the value of the nanosFase2 record component.
    long
     
    boolean
    Returns the value of the ordenado record component.
    long
    Returns the value of the registros record component.
    int
    Returns the value of the registrosPorRun record component.
    int
    Returns the value of the runs record component.
    Returns the value of the saida record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Resultado

      public Resultado(long registros, int runs, int registrosPorRun, OperationMetrics fase1, OperationMetrics fase2, long bytesEntrada, long nanosFase1, long nanosFase2, long memoriaPicoBytes, int arquivos, Path saida, boolean ordenado)
      Creates an instance of a Resultado record class.
      Parameters:
      registros - the value for the registros record component
      runs - the value for the runs record component
      registrosPorRun - the value for the registrosPorRun record component
      fase1 - the value for the fase1 record component
      fase2 - the value for the fase2 record component
      bytesEntrada - the value for the bytesEntrada record component
      nanosFase1 - the value for the nanosFase1 record component
      nanosFase2 - the value for the nanosFase2 record component
      memoriaPicoBytes - the value for the memoriaPicoBytes record component
      arquivos - the value for the arquivos record component
      saida - the value for the saida record component
      ordenado - the value for the ordenado record component
  • Method Details

    • comparacoes

      public long comparacoes()
    • nanosTotal

      public long nanosTotal()
    • 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.
    • registros

      public long registros()
      Returns the value of the registros record component.
      Returns:
      the value of the registros record component
    • runs

      public int runs()
      Returns the value of the runs record component.
      Returns:
      the value of the runs record component
    • registrosPorRun

      public int registrosPorRun()
      Returns the value of the registrosPorRun record component.
      Returns:
      the value of the registrosPorRun record component
    • fase1

      public OperationMetrics fase1()
      Returns the value of the fase1 record component.
      Returns:
      the value of the fase1 record component
    • fase2

      public OperationMetrics fase2()
      Returns the value of the fase2 record component.
      Returns:
      the value of the fase2 record component
    • bytesEntrada

      public long bytesEntrada()
      Returns the value of the bytesEntrada record component.
      Returns:
      the value of the bytesEntrada record component
    • nanosFase1

      public long nanosFase1()
      Returns the value of the nanosFase1 record component.
      Returns:
      the value of the nanosFase1 record component
    • nanosFase2

      public long nanosFase2()
      Returns the value of the nanosFase2 record component.
      Returns:
      the value of the nanosFase2 record component
    • memoriaPicoBytes

      public long memoriaPicoBytes()
      Returns the value of the memoriaPicoBytes record component.
      Returns:
      the value of the memoriaPicoBytes record component
    • arquivos

      public int arquivos()
      Returns the value of the arquivos record component.
      Returns:
      the value of the arquivos record component
    • saida

      public Path saida()
      Returns the value of the saida record component.
      Returns:
      the value of the saida record component
    • ordenado

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