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

Method setMaxTimestamp

src/GetRequest.java:364–374  ·  view source on GitHub ↗

Sets the maximum timestamp to scan (exclusive). KeyValues that have a timestamp greater than or equal to this one will not be returned by the scanner. HBase has internal optimizations to avoid loading in memory data filtered out in some cases. @param timestamp The maximum timestamp to s

(final long timestamp)

Source from the content-addressed store, hash-verified

362 * @since 1.7
363 */
364 public GetRequest setMaxTimestamp(final long timestamp) {
365 if (timestamp < 0) {
366 throw new IllegalArgumentException("Negative timestamp: " + timestamp);
367 } else if (timestamp < min_timestamp) {
368 throw new IllegalArgumentException("New maximum timestamp (" + timestamp
369 + ") is greater than the minimum"
370 + " timestamp: " + min_timestamp);
371 }
372 max_timestamp = timestamp;
373 return this;
374 }
375
376 /**
377 * Returns the maximum timestamp to scan (exclusive).

Callers 1

timestampsOnGetMethod · 0.95

Calls

no outgoing calls

Tested by 1

timestampsOnGetMethod · 0.76