Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
3.2.10, 3.2.9
-
None
-
None
Description
Currently if the AccumuloRdfConfiguration is written to XML and passed into the constructor of AccumuloRdfConfiguration, the table prefix is carried through, but the table layout strategy defaults to the PrefixTableLayoutStrategy with the default prefix. A simple example demonstrates the issue
AccumuloRdfConfiguration initial = new AccumuloRdfConfiguration(); initial.setTablePrefix("rya2_"); ByteArrayOutputStream stream = new ByteArrayOutputStream(); initial.writeXml(stream); AccumuloRdfConfiguration second = new AccumuloRdfConfiguration(); second.addResource(new ByteArrayInputStream(stream.toByteArray())); System.out.println(initial.getTablePrefix().equals(second.getTablePrefix())); System.out.println(initial.getTableLayoutStrategy().getSpo().equals(second.getTableLayoutStrategy().getSpo()));
This primarily seems to be related to the fact that TableLayoutStrategy isn't captured in the configuration.