Package br.unip.aps.estruturas
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
ConstructorsConstructorDescriptionResultado(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 aResultadorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintarquivos()Returns the value of thearquivosrecord component.longReturns the value of thebytesEntradarecord component.longfinal booleanIndicates whether some other object is "equal to" this one.fase1()Returns the value of thefase1record component.fase2()Returns the value of thefase2record component.final inthashCode()Returns a hash code value for this object.longReturns the value of thememoriaPicoBytesrecord component.longReturns the value of thenanosFase1record component.longReturns the value of thenanosFase2record component.longbooleanordenado()Returns the value of theordenadorecord component.longReturns the value of theregistrosrecord component.intReturns the value of theregistrosPorRunrecord component.intruns()Returns the value of therunsrecord component.saida()Returns the value of thesaidarecord component.final StringtoString()Returns a string representation of this record class.
-
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 aResultadorecord class.- Parameters:
registros- the value for theregistrosrecord componentruns- the value for therunsrecord componentregistrosPorRun- the value for theregistrosPorRunrecord componentfase1- the value for thefase1record componentfase2- the value for thefase2record componentbytesEntrada- the value for thebytesEntradarecord componentnanosFase1- the value for thenanosFase1record componentnanosFase2- the value for thenanosFase2record componentmemoriaPicoBytes- the value for thememoriaPicoBytesrecord componentarquivos- the value for thearquivosrecord componentsaida- the value for thesaidarecord componentordenado- the value for theordenadorecord component
-
-
Method Details
-
comparacoes
public long comparacoes() -
nanosTotal
public long nanosTotal() -
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
registros
public long registros()Returns the value of theregistrosrecord component.- Returns:
- the value of the
registrosrecord component
-
runs
public int runs()Returns the value of therunsrecord component.- Returns:
- the value of the
runsrecord component
-
registrosPorRun
public int registrosPorRun()Returns the value of theregistrosPorRunrecord component.- Returns:
- the value of the
registrosPorRunrecord component
-
fase1
Returns the value of thefase1record component.- Returns:
- the value of the
fase1record component
-
fase2
Returns the value of thefase2record component.- Returns:
- the value of the
fase2record component
-
bytesEntrada
public long bytesEntrada()Returns the value of thebytesEntradarecord component.- Returns:
- the value of the
bytesEntradarecord component
-
nanosFase1
public long nanosFase1()Returns the value of thenanosFase1record component.- Returns:
- the value of the
nanosFase1record component
-
nanosFase2
public long nanosFase2()Returns the value of thenanosFase2record component.- Returns:
- the value of the
nanosFase2record component
-
memoriaPicoBytes
public long memoriaPicoBytes()Returns the value of thememoriaPicoBytesrecord component.- Returns:
- the value of the
memoriaPicoBytesrecord component
-
arquivos
public int arquivos()Returns the value of thearquivosrecord component.- Returns:
- the value of the
arquivosrecord component
-
saida
Returns the value of thesaidarecord component.- Returns:
- the value of the
saidarecord component
-
ordenado
public boolean ordenado()Returns the value of theordenadorecord component.- Returns:
- the value of the
ordenadorecord component
-