Sets the start time for the query @param timestamp Unix epoch timestamp in seconds or milliseconds @throws IllegalArgumentException if the timestamp is invalid or greater than the end time (if set)
(final long timestamp)
| 265 | * than the end time (if set) |
| 266 | */ |
| 267 | @Override |
| 268 | public void setStartTime(final long timestamp) { |
| 269 | if (timestamp < 0 || ((timestamp & Const.SECOND_MASK) != 0 && |
| 270 | timestamp > 9999999999999L)) { |
| 271 | throw new IllegalArgumentException("Invalid timestamp: " + timestamp); |
| 272 | } else if (end_time != UNSET && timestamp >= getEndTime()) { |
| 273 | throw new IllegalArgumentException("new start time (" + timestamp |
| 274 | + ") is greater than or equal to end time: " + getEndTime()); |
| 275 | } |
| 276 | start_time = timestamp; |
| 277 | } |
| 278 | |
| 279 | /** |
| 280 | * @return the start time for the query |