Package com.illumon.iris.importers.util
Class XmlImport
java.lang.Object
com.illumon.iris.importers.util.ImportBase
com.illumon.iris.importers.util.XmlImport
Tools for programmatically executing XML batch imports.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Builder class allows setting properties for an XML import and provides aXmlImport.Builder.build()method which returns a XmlImport object that will use the configured properties to import batch data. -
Field Summary
FieldsFields inherited from class com.illumon.iris.importers.util.ImportBase
destinationDirectory, destinationPartitions, namespace, outputMode, schemaService, table -
Method Summary
Methods inherited from class com.illumon.iris.importers.util.ImportBase
getFileList, getImportTableWriterFactory, getSourceFiles
-
Field Details
-
log
public static final com.fishlib.io.logger.Logger log
-
-
Method Details
-
builder
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
XmlImportBuilderobject.
-
run
Executes an XML batch import as configured for theXmlImportobject.- Specified by:
runin classImportBase- Returns:
- A long of the number of rows imported.
- Throws:
IOException- If the import cannot be executed or fails during processing.
-