limit the number of plots

This commit is contained in:
2017-02-12 18:17:36 +01:00
parent e47519e6d9
commit d137f7c9cb
11 changed files with 215 additions and 17 deletions

View File

@@ -0,0 +1,5 @@
package org.lucares.pdbui.domain;
public enum LimitBy {
NO_LIMIT, MOST_VALUES, FEWEST_VALUES
}

View File

@@ -9,6 +9,10 @@ public class PlotRequest {
private String groupBy;
private LimitBy limitBy = LimitBy.NO_LIMIT;
private int limit = Integer.MAX_VALUE;
public String getQuery() {
return query;
}
@@ -45,4 +49,20 @@ public class PlotRequest {
public void setGroupBy(final String groupBy) {
this.groupBy = groupBy;
}
public LimitBy getLimitBy() {
return limitBy;
}
public void setLimitBy(final LimitBy limitBy) {
this.limitBy = limitBy;
}
public int getLimit() {
return limit;
}
public void setLimit(final int limit) {
this.limit = limit;
}
}