MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / setTimeRange

Method setTimeRange

src/GetRequest.java:400–414  ·  view source on GitHub ↗

Sets the time range to scan. KeyValues that have a timestamp that do not fall in the range [min_timestamp; max_timestamp[ will not be returned by the scanner. HBase has internal optimizations to avoid loading in memory data filtered out in some cases. @param min_timestamp The mi

(final long min_timestamp, final long max_timestamp)

Source from the content-addressed store, hash-verified

398 * @since 1.7
399 */
400 public GetRequest setTimeRange(final long min_timestamp, final long max_timestamp) {
401 if (min_timestamp > max_timestamp) {
402 throw new IllegalArgumentException("New minimum timestamp (" + min_timestamp
403 + ") is greater than the new maximum"
404 + " timestamp: " + max_timestamp);
405 } else if (min_timestamp < 0) {
406 throw new IllegalArgumentException("Negative minimum timestamp: "
407 + min_timestamp);
408 }
409
410 // We now have the guarantee that max_timestamp >= 0, no need to check it.
411 this.min_timestamp = min_timestamp;
412 this.max_timestamp = max_timestamp;
413 return this;
414 }
415
416 /**
417 * Specifies the filter to apply to cells in this row.

Callers 1

getPBMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected