* Ensure a row key format (version 1) specified in a layout file is sane.
* @param format The RowKeyFormat created from the layout file for a table.
* @throws InvalidLayoutException If the format is invalid.
*/
private void isValidRowKeyFormat1(RowKeyFormat format) throws InvalidLayoutException {
RowKeyEncoding rowKeyEncoding = format.getEncoding();
if (rowKeyEncoding != RowKeyEncoding.RAW
&& rowKeyEncoding != RowKeyEncoding.HASH
&& rowKeyEncoding != RowKeyEncoding.HASH_PREFIX) {
throw new InvalidLayoutException("RowKeyFormat only supports encodings"
+ "of type RAW, HASH and HASH_PREFIX. Use RowKeyFormat2 instead");