Class JsonImport

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

public class JsonImport
extends ImportBase
Tools for programmatically executing JSON batch imports.
  • Field Details

    • log

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

    • builder

      public static JsonImportBuilder builder​(String namespace, String table)
      Creates a new JsonImportBuilder 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:
      A new JsonImportBuilder object.
    • run

      public long run() throws IOException
      Executes a JSON batch import as configured for the JsonImport 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.