Package br.unip.aps.busca
Record Class ServicoConsultas.TopK
java.lang.Object
java.lang.Record
br.unip.aps.busca.ServicoConsultas.TopK
- Enclosing class:
ServicoConsultas
public static record ServicoConsultas.TopK(List<Contagem> porHeap, OperationMetrics custoHeap, List<Contagem> porOrdenacao, OperationMetrics custoOrdenacao, OperationMetrics custoContagem, int candidatos)
extends Record
Top K por heap x por ordenacao completa.
-
Constructor Summary
ConstructorsConstructorDescriptionTopK(List<Contagem> porHeap, OperationMetrics custoHeap, List<Contagem> porOrdenacao, OperationMetrics custoOrdenacao, OperationMetrics custoContagem, int candidatos) Creates an instance of aTopKrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecandidatosrecord component.Returns the value of thecustoContagemrecord component.Returns the value of thecustoHeaprecord component.Returns the value of thecustoOrdenacaorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.porHeap()Returns the value of theporHeaprecord component.Returns the value of theporOrdenacaorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TopK
public TopK(List<Contagem> porHeap, OperationMetrics custoHeap, List<Contagem> porOrdenacao, OperationMetrics custoOrdenacao, OperationMetrics custoContagem, int candidatos) Creates an instance of aTopKrecord class.- Parameters:
porHeap- the value for theporHeaprecord componentcustoHeap- the value for thecustoHeaprecord componentporOrdenacao- the value for theporOrdenacaorecord componentcustoOrdenacao- the value for thecustoOrdenacaorecord componentcustoContagem- the value for thecustoContagemrecord componentcandidatos- the value for thecandidatosrecord component
-
-
Method Details
-
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 '=='. -
porHeap
Returns the value of theporHeaprecord component.- Returns:
- the value of the
porHeaprecord component
-
custoHeap
Returns the value of thecustoHeaprecord component.- Returns:
- the value of the
custoHeaprecord component
-
porOrdenacao
Returns the value of theporOrdenacaorecord component.- Returns:
- the value of the
porOrdenacaorecord component
-
custoOrdenacao
Returns the value of thecustoOrdenacaorecord component.- Returns:
- the value of the
custoOrdenacaorecord component
-
custoContagem
Returns the value of thecustoContagemrecord component.- Returns:
- the value of the
custoContagemrecord component
-
candidatos
public int candidatos()Returns the value of thecandidatosrecord component.- Returns:
- the value of the
candidatosrecord component
-