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());
}
Aggregations