Validates a column family. @throws IllegalArgumentException if the family name is too big. @throws NullPointerException if the family is null.
(final byte[] family)
| 363 | * @throws NullPointerException if the family is {@code null}. |
| 364 | */ |
| 365 | static void checkFamily(final byte[] family) { |
| 366 | if (family.length > Byte.MAX_VALUE) { |
| 367 | throw new IllegalArgumentException("column family too long: " |
| 368 | + family.length + " bytes long " + Bytes.pretty(family)); |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | /** |
| 373 | * Validates a column qualifier. |
no test coverage detected