public class XmlMigrator extends Object implements AutoCloseable
| Constructor and Description |
|---|
XmlMigrator(File xmlFileOrDir)
Construct a XmlMigrator to migrate data in the given file or dir
|
XmlMigrator(Reader reader)
Construct a XmlMigrator to migrate data in given reader
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the readers
|
java.util.stream.Stream<Map<String,Object>> |
convert()
Migrate each of the given XML objects as a nested Map structure
|
XmlMigrator |
element(String element) |
static void |
main(String[] args) |
static void |
runXml(XmlMigrationOptions options) |
XmlMigrator |
schema(XmlSchema schema) |
public XmlMigrator(File xmlFileOrDir)
xmlFileOrDir - either a XML file or a directory containing XML filespublic XmlMigrator(Reader reader)
reader - reader over the data to be migratedpublic static void main(String[] args)
public static void runXml(XmlMigrationOptions options)
public XmlMigrator element(String element)
public XmlMigrator schema(XmlSchema schema)
public java.util.stream.Stream<Map<String,Object>> convert()
public void close()
close in interface AutoCloseableExceptionCopyright © 2017 Grakn Labs Ltd. All rights reserved.