"Backup for table '%s' contains no layout.", tableName);
LOG.info("Creating table '{}'.", tableName);
// The initial entry is the entry with the lowest timestamp.
long lowestTimestamp = KConstants.END_OF_TIME;
TableLayoutBackupEntry initialEntry = null;
for (TableLayoutBackupEntry entry : layouts) {
if (entry.getTimestamp() < lowestTimestamp) {
lowestTimestamp = entry.getTimestamp();
initialEntry = entry;
}
}
try {
kiji.createTable(initialEntry.getLayout());
} catch (KijiAlreadyExistsException kaee) {
LOG.info("Table already exists in HBase. Continuing with restore operation.");
}
LOG.info("Restoring layout history for table '%s' (%d layouts).", tableName,