group by multiple fields

Before we could only group by a single field. But it is acutally
very useful to group by multiple fields. For example to see the
graph for a small set of methods grouped by host and project.
This commit is contained in:
2017-04-12 19:16:19 +02:00
parent 6cc6e679a4
commit 8baf05962f
9 changed files with 169 additions and 72 deletions

View File

@@ -1,5 +1,7 @@
package org.lucares.pdbui.domain;
import java.util.List;
public class PlotRequest {
private String query;
@@ -7,7 +9,7 @@ public class PlotRequest {
private int width = 1000;
private String groupBy;
private List<String> groupBy;
private LimitBy limitBy = LimitBy.NO_LIMIT;
@@ -46,11 +48,11 @@ public class PlotRequest {
return query + ":" + height + "x" + width;
}
public String getGroupBy() {
public List<String> getGroupBy() {
return groupBy;
}
public void setGroupBy(final String groupBy) {
public void setGroupBy(final List<String> groupBy) {
this.groupBy = groupBy;
}