Search in sources :

Example 1 with LayoutRegistry

use of alluxio.table.common.LayoutRegistry in project alluxio by Alluxio.

the class HiveLayoutTest method registryCreate.

@Test
public void registryCreate() throws Exception {
    HiveLayout layout = createRandom();
    assertNotNull(new HiveLayout.HiveLayoutFactory().create(layout.toProto()));
    LayoutRegistry registry = new LayoutRegistry();
    registry.refresh();
    Layout instance = registry.create(layout.toProto());
    assertNotNull(instance);
    assertEquals(layout.toProto(), instance.toProto());
}
Also used : LayoutRegistry(alluxio.table.common.LayoutRegistry) Layout(alluxio.table.common.Layout) Test(org.junit.Test)

Aggregations

Layout (alluxio.table.common.Layout)1 LayoutRegistry (alluxio.table.common.LayoutRegistry)1 Test (org.junit.Test)1