Package br.unip.aps.busca
Record Class ServicoConsultas.Custo
java.lang.Object
java.lang.Record
br.unip.aps.busca.ServicoConsultas.Custo
- Enclosing class:
ServicoConsultas
public static record ServicoConsultas.Custo(ServicoConsultas.Metodo metodo, OperationMetrics construcao, OperationMetrics consultas, int quantidade, long resultados, boolean suportado, String detalhe)
extends Record
Custo de responder um lote de consultas com um metodo.
-
Constructor Summary
ConstructorsConstructorDescriptionCusto(ServicoConsultas.Metodo metodo, OperationMetrics construcao, OperationMetrics consultas, int quantidade, long resultados, boolean suportado, String detalhe) Creates an instance of aCustorecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublelongReturns the value of theconstrucaorecord component.Returns the value of theconsultasrecord component.detalhe()Returns the value of thedetalherecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metodo()Returns the value of themetodorecord component.longdoubleNumero de consultas a partir do qual o preparo compensa em relacao a busca sequencial.intReturns the value of thequantidaderecord component.longReturns the value of theresultadosrecord component.booleanReturns the value of thesuportadorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Custo
public Custo(ServicoConsultas.Metodo metodo, OperationMetrics construcao, OperationMetrics consultas, int quantidade, long resultados, boolean suportado, String detalhe) Creates an instance of aCustorecord class.- Parameters:
metodo- the value for themetodorecord componentconstrucao- the value for theconstrucaorecord componentconsultas- the value for theconsultasrecord componentquantidade- the value for thequantidaderecord componentresultados- the value for theresultadosrecord componentsuportado- the value for thesuportadorecord componentdetalhe- the value for thedetalherecord component
-
-
Method Details
-
comparacoesTotais
public long comparacoesTotais() -
comparacoesPorConsulta
public double comparacoesPorConsulta() -
nanosTotais
public long nanosTotais() -
pontoDeEquilibrio
Numero de consultas a partir do qual o preparo compensa em relacao a busca sequencial. -
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 '=='. -
metodo
Returns the value of themetodorecord component.- Returns:
- the value of the
metodorecord component
-
construcao
Returns the value of theconstrucaorecord component.- Returns:
- the value of the
construcaorecord component
-
consultas
Returns the value of theconsultasrecord component.- Returns:
- the value of the
consultasrecord component
-
quantidade
public int quantidade()Returns the value of thequantidaderecord component.- Returns:
- the value of the
quantidaderecord component
-
resultados
public long resultados()Returns the value of theresultadosrecord component.- Returns:
- the value of the
resultadosrecord component
-
suportado
public boolean suportado()Returns the value of thesuportadorecord component.- Returns:
- the value of the
suportadorecord component
-
detalhe
Returns the value of thedetalherecord component.- Returns:
- the value of the
detalherecord component
-