replace individual percentile aggregates with a single one for all
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package org.lucares.pdbui;
|
||||
|
||||
import org.lucares.pdb.plot.api.AggregateHandler;
|
||||
import org.lucares.pdb.plot.api.MeanAggregate;
|
||||
import org.lucares.pdb.plot.api.NullAggregate;
|
||||
import org.lucares.pdb.plot.api.PercentileAggregate;
|
||||
import org.lucares.pdb.plot.api.PlotSettings;
|
||||
@@ -32,12 +31,7 @@ class PlotSettingsTransformer {
|
||||
private static AggregateHandler toAggregateInternal(Aggregate aggregate) {
|
||||
switch (aggregate) {
|
||||
case NONE:return new NullAggregate();
|
||||
case MEAN:return new MeanAggregate();
|
||||
case MEDIAN:return new PercentileAggregate(0.50);
|
||||
case PERCENTILE90:return new PercentileAggregate(0.90);
|
||||
case PERCENTILE95:return new PercentileAggregate(0.95);
|
||||
case PERCENTILE99:return new PercentileAggregate(0.99);
|
||||
case PERCENTILE999:return new PercentileAggregate(0.999);
|
||||
case PERCENTILES:return new PercentileAggregate();
|
||||
}
|
||||
throw new IllegalStateException("unhandled enum: " + aggregate);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package org.lucares.pdbui.domain;
|
||||
|
||||
public enum Aggregate {
|
||||
NONE, MEAN, MEDIAN, PERCENTILE90, PERCENTILE95, PERCENTILE99, PERCENTILE999
|
||||
NONE, PERCENTILES
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<div id="search-input-wrapper">
|
||||
<input id="search-input" placeholder="field=value and anotherField=anotherValue" data-autocomplete="autocomplete"
|
||||
data-autocomplete-empty-message="nothing found" />
|
||||
data-autocomplete-empty-message="nothing found" value="pod=vapfinra01 and method = ViewService.findFieldViewGroup" />
|
||||
</div>
|
||||
<div id="search-bar">
|
||||
<form>
|
||||
@@ -78,12 +78,7 @@
|
||||
<label for="show-aggregate">Aggregate:</label>
|
||||
<select id="show-aggregate">
|
||||
<option value="NONE" selected="selected">-</option>
|
||||
<option value="MEAN">Mean</option>
|
||||
<option value="MEDIAN">Median</option>
|
||||
<option value="PERCENTILE90">90% percentile</option>
|
||||
<option value="PERCENTILE95">95% percentile</option>
|
||||
<option value="PERCENTILE99">99% percentile</option>
|
||||
<option value="PERCENTILE999">99.9% percentile</option>
|
||||
<option value="PERCENTILES">percentiles</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="group">
|
||||
|
||||
Reference in New Issue
Block a user