Class OptimizationReport
- java.lang.Object
-
- com.yahoo.searchlib.rankingexpression.evaluation.OptimizationReport
-
public class OptimizationReport extends Object
Reports the result of optimizations of a ranking expression.- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description OptimizationReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMetric(String name)
Returns the value of a metric, or null if it is not setvoid
incMetric(String name, int increment)
Increases the metric by the given name by increment, if the metric is not previously set, this will assign it the value increment as expectedvoid
note(String note)
void
setMetric(String name, int value)
String
toString()
Returns all the content of this report as a multiline string
-
-
-
Method Detail
-
setMetric
public void setMetric(String name, int value)
-
getMetric
public int getMetric(String name)
Returns the value of a metric, or null if it is not set
-
incMetric
public void incMetric(String name, int increment)
Increases the metric by the given name by increment, if the metric is not previously set, this will assign it the value increment as expected
-
note
public void note(String note)
-
-