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

Method checkFamily

src/KeyValue.java:365–370  ·  view source on GitHub ↗

Validates a column family. @throws IllegalArgumentException if the family name is too big. @throws NullPointerException if the family is null.

(final byte[] family)

Source from the content-addressed store, hash-verified

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.

Callers 9

PutRequestMethod · 0.95
familyMethod · 0.95
KeyValueMethod · 0.95
setFamilyMethod · 0.95
setFamiliesMethod · 0.95
DeleteRequestMethod · 0.95
AppendRequestMethod · 0.95

Calls 1

prettyMethod · 0.95

Tested by

no test coverage detected