limit the number of plots
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package org.lucares.pdbui.domain;
|
||||
|
||||
public enum LimitBy {
|
||||
NO_LIMIT, MOST_VALUES, FEWEST_VALUES
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user