MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / setStartTime

Method setStartTime

src/core/TsdbQuery.java:267–277  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 5

setEndTimeMethod · 0.95
runAsyncMergesResultsMethod · 0.95
configureFromQueryMethod · 0.95

Calls 1

getEndTimeMethod · 0.95

Tested by 3

setEndTimeMethod · 0.76
runAsyncMergesResultsMethod · 0.76