Package org.hotrod.torcs.rankings
Class RankingEntry
- java.lang.Object
-
- org.hotrod.torcs.rankings.RankingEntry
-
public class RankingEntry extends Object
-
-
Constructor Summary
Constructors Constructor Description RankingEntry(QueryExecution execution)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(QueryExecution execution)voidapply(QueryExecution execution, long currentTime)RankingEntryclone()longgetAverageTime()StringgetCompactSQL()DataSourceReferencegetDataSourceReference()intgetErrors()intgetExecutions()QueryExecutiongetFastestExecution()QueryExecutiongetFirstExecution()longgetFirstExecutionAt()longgetImpact()ThrowablegetLastException()longgetLastExceptionTimestamp()QueryExecutiongetLastExecution()longgetLastExecutionAt()longgetMaxTime()longgetMinTime()QueryExecutiongetSlowestExecution()StringgetSQL()doublegetTimeStandardDeviation()See Welford's online algorithm: https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Online_algorithmStringtoString()
-
-
-
Constructor Detail
-
RankingEntry
public RankingEntry(QueryExecution execution)
-
-
Method Detail
-
apply
public void apply(QueryExecution execution)
-
apply
public void apply(QueryExecution execution, long currentTime)
-
clone
public RankingEntry clone()
-
getDataSourceReference
public DataSourceReference getDataSourceReference()
-
getSQL
public String getSQL()
-
getCompactSQL
public String getCompactSQL()
-
getMinTime
public long getMinTime()
-
getMaxTime
public long getMaxTime()
-
getExecutions
public int getExecutions()
-
getErrors
public int getErrors()
-
getFirstExecutionAt
public long getFirstExecutionAt()
-
getLastExecutionAt
public long getLastExecutionAt()
-
getLastException
public Throwable getLastException()
-
getLastExceptionTimestamp
public long getLastExceptionTimestamp()
-
getAverageTime
public long getAverageTime()
-
getImpact
public long getImpact()
-
getTimeStandardDeviation
public double getTimeStandardDeviation()
See Welford's online algorithm: https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Online_algorithm- Returns:
- the standard deviation
-
getSlowestExecution
public QueryExecution getSlowestExecution()
-
getFastestExecution
public QueryExecution getFastestExecution()
-
getFirstExecution
public QueryExecution getFirstExecution()
-
getLastExecution
public QueryExecution getLastExecution()
-
-