use of alluxio.master.table.Partition in project alluxio by Alluxio.
the class TransformManagerTest method checkLayout.
/**
* Checks that the layouts of table partitions are the transformed layouts in info.
*
* @param info the job information
* @param table the table
*/
private void checkLayout(TransformJobInfo info, String table) throws IOException {
for (Map.Entry<String, Layout> specLayouts : info.getTransformedLayouts().entrySet()) {
String spec = specLayouts.getKey();
Layout layout = specLayouts.getValue();
Partition partition = mTableMaster.getTable(DB, table).getPartition(spec);
assertTrue(partition.isTransformed(info.getDefinition()));
assertEquals(layout, partition.getLayout());
}
}