Package com.illumon.iris.importers.util
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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XmlImport.Builder
The 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
Fields Modifier and Type Field Description static com.fishlib.io.logger.Logger
log
Fields 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
XmlImportBuilder
object.
-
run
Executes an XML batch import as configured for theXmlImport
object.- Specified by:
run
in classImportBase
- Returns:
- A long of the number of rows imported.
- Throws:
IOException
- If the import cannot be executed or fails during processing.
-