Class XmlImport

java.lang.Object
com.illumon.iris.importers.util.ImportBase
com.illumon.iris.importers.util.XmlImport

public class XmlImport
extends ImportBase
Tools for programmatically executing XML batch imports.
  • Field Details

    • log

      public static final com.fishlib.io.logger.Logger log
  • Method Details

    • builder

      public static XmlImportBuilder builder​(String namespace, String table)
      Creates a new XmlImportBuilder object. Method calls on this object can then be used to configure the import and run it.
      Parameters:
      namespace - The String name of the namespace into which data will be imported.
      table - The String name of the table into which data will be imported.
      Returns:
      new XmlImportBuilder object.
    • run

      public long run() throws IOException
      Executes an XML batch import as configured for the XmlImport object.
      Specified by:
      run in class ImportBase
      Returns:
      A long of the number of rows imported.
      Throws:
      IOException - If the import cannot be executed or fails during processing.