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 Details

    • TopK

      public TopK(List<Contagem> porHeap, OperationMetrics custoHeap, List<Contagem> porOrdenacao, OperationMetrics custoOrdenacao, OperationMetrics custoContagem, int candidatos)
      Creates an instance of a TopK record class.
      Parameters:
      porHeap - the value for the porHeap record component
      custoHeap - the value for the custoHeap record component
      porOrdenacao - the value for the porOrdenacao record component
      custoOrdenacao - the value for the custoOrdenacao record component
      custoContagem - the value for the custoContagem record component
      candidatos - the value for the candidatos record component
  • Method Details

    • 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.
    • porHeap

      public List<Contagem> porHeap()
      Returns the value of the porHeap record component.
      Returns:
      the value of the porHeap record component
    • custoHeap

      public OperationMetrics custoHeap()
      Returns the value of the custoHeap record component.
      Returns:
      the value of the custoHeap record component
    • porOrdenacao

      public List<Contagem> porOrdenacao()
      Returns the value of the porOrdenacao record component.
      Returns:
      the value of the porOrdenacao record component
    • custoOrdenacao

      public OperationMetrics custoOrdenacao()
      Returns the value of the custoOrdenacao record component.
      Returns:
      the value of the custoOrdenacao record component
    • custoContagem

      public OperationMetrics custoContagem()
      Returns the value of the custoContagem record component.
      Returns:
      the value of the custoContagem record component
    • candidatos

      public int candidatos()
      Returns the value of the candidatos record component.
      Returns:
      the value of the candidatos record component