Validates a row key. @throws IllegalArgumentException if the key is too big. @throws NullPointerException if the key is null.
(final byte[] key)
| 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. |
no test coverage detected