mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
label fix for relevance metrics
This commit is contained in:
parent
340e5ac483
commit
5cf0fbcaec
@ -20,7 +20,7 @@ scenarios:
|
|||||||
default:
|
default:
|
||||||
schema: run tags='block:schema' labels='target:astra' threads===1
|
schema: run tags='block:schema' labels='target:astra' threads===1
|
||||||
rampup: run tags='block:rampup' labels='target:astra' threads=100 cycles=TEMPLATE(trainsize)
|
rampup: run tags='block:rampup' labels='target:astra' threads=100 cycles=TEMPLATE(trainsize)
|
||||||
search_and_index: run tags='block:search_and_index,optype=select' labels='target:astra' cycles=TEMPLATE(testsize)
|
search_and_index: run tags='block:search_and_index,optype=select' labels='target:astra' cycles=TEMPLATE(testsize) threads=2000 testsize=1000000 errors=count
|
||||||
# one activity or two? data leap-frog? or concurrency separate for both?
|
# one activity or two? data leap-frog? or concurrency separate for both?
|
||||||
# await_index: run tags='block:await_index' # This would need to exit when a condition is met
|
# await_index: run tags='block:await_index' # This would need to exit when a condition is met
|
||||||
# stop_search_and_index: stop search_and_index
|
# stop_search_and_index: stop search_and_index
|
||||||
|
@ -245,4 +245,8 @@ public class MapLabels implements NBLabels {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public NBLabels getLabels() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ import java.util.function.Function;
|
|||||||
* since these elements will be consulted frequently, such as when rendering metrics values.
|
* since these elements will be consulted frequently, such as when rendering metrics values.
|
||||||
* </P>
|
* </P>
|
||||||
*/
|
*/
|
||||||
public interface NBLabels {
|
public interface NBLabels extends NBLabeledElement {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a string representation of the label data, including only the values.
|
* Create a string representation of the label data, including only the values.
|
||||||
|
@ -57,7 +57,7 @@ public class RelevancyMeasures implements NBLabeledElement {
|
|||||||
public RelevancyMeasures addFunction(RelevancyFunction... f) {
|
public RelevancyMeasures addFunction(RelevancyFunction... f) {
|
||||||
for (RelevancyFunction function : f) {
|
for (RelevancyFunction function : f) {
|
||||||
this.functions.add(function);
|
this.functions.add(function);
|
||||||
DoubleSummaryGauge gauge = ActivityMetrics.summaryGauge(function, function.getUniqueName());
|
DoubleSummaryGauge gauge = ActivityMetrics.summaryGauge(parent.getLabels().and(function.getLabels()), function.getUniqueName());
|
||||||
this.gauges.add(gauge);
|
this.gauges.add(gauge);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
Loading…
Reference in New Issue
Block a user