Search in sources :

Example 1 with Partition

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());
    }
}
Also used : Partition(alluxio.master.table.Partition) Layout(alluxio.table.common.Layout) Map(java.util.Map)

Aggregations

Partition (alluxio.master.table.Partition)1 Layout (alluxio.table.common.Layout)1 Map (java.util.Map)1