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)
| 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). |
no outgoing calls