public Select limit(int limit, long offSet) {
if (limit > 0 && offSet > 0L) {
this.limit = Optional.of(limit);
this.offSet = Optional.of(offSet);
return this;
} else {
throw new IllegalArgumentException("Invalid LIMIT and OFFSET Value, must be strictly positive");
}
}
influxdb allow ” limit = 0 and offset =0 “
public Select limit(int limit, long offSet) {
if (limit > 0 && offSet > 0L) {
this.limit = Optional.of(limit);
this.offSet = Optional.of(offSet);
return this;
} else {
throw new IllegalArgumentException("Invalid LIMIT and OFFSET Value, must be strictly positive");
}
}
influxdb allow ” limit = 0 and offset =0 “