Class MergeData

java.lang.Object
com.illumon.iris.importers.util.MergeData
All Implemented Interfaces:
StatusCallback

public class MergeData
extends Object
implements StatusCallback
Easy to use wrapper for merging data.
  • Field Details

    • log

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

    • builder

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

      public void run()
      Executes a merge.
    • update

      public void update​(int progress, Supplier<String> statusSupplier)
      Update the progress % and status message.
      Specified by:
      update in interface StatusCallback
      Parameters:
      progress - percent complete (0-100).
      statusSupplier - optional message supplier.
    • getValue

      public int getValue()
      Gets the percent complete.
      Specified by:
      getValue in interface StatusCallback
      Returns:
      percent complete.