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

Method checkTimestamp

src/KeyValue.java:385–389  ·  view source on GitHub ↗

Validates a timestamp. @throws IllegalArgumentException if the timestamp is zero or negative.

(final long timestamp)

Source from the content-addressed store, hash-verified

383 * @throws IllegalArgumentException if the timestamp is zero or negative.
384 */
385 static void checkTimestamp(final long timestamp) {
386 if (timestamp < 0) {
387 throw new IllegalArgumentException("Negative timestamp: " + timestamp);
388 }
389 }
390
391 /**
392 * Validates a value (the contents of an HBase cell).

Callers 1

KeyValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected