MCPcopy Index your code
hub / github.com/OpenTSDB/asynchbase / checkKey

Method checkKey

src/KeyValue.java:353–358  ·  view source on GitHub ↗

Validates a row key. @throws IllegalArgumentException if the key is too big. @throws NullPointerException if the key is null.

(final byte[] key)

Source from the content-addressed store, hash-verified

351 * @throws NullPointerException if the key is {@code null}.
352 */
353 static void checkKey(final byte[] key) {
354 if (key.length > Short.MAX_VALUE) {
355 throw new IllegalArgumentException("row key too long: "
356 + key.length + " bytes long " + Bytes.pretty(key));
357 }
358 }
359
360 /**
361 * Validates a column family.

Callers 4

HBaseRpcMethod · 0.95
KeyValueMethod · 0.95
setStartKeyMethod · 0.95
setStopKeyMethod · 0.95

Calls 1

prettyMethod · 0.95

Tested by

no test coverage detected