Class DownsampleImport

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

public class DownsampleImport
extends ImportBase
Easy to use wrapper for downsampling data.
  • Field Details

  • Method Details

    • run

      public long run()
      Executes a downsample batch import as configured for the DownsampleImport object.
      Specified by:
      run in class ImportBase
      Returns:
      A long of the number of rows imported.
    • builder

      public static DownsampleImportBuilder builder​(Database db, String namespace, String table, String timestampColumn, String period, String... keyColumns)
      Creates a new DownsampleImportBuilder object. Method calls on this object can then be used to configure the import and run it.
      Parameters:
      db - database.
      namespace - namespace into which data will be imported.
      table - name of the table into which data will be imported.
      timestampColumn - timestamp column.
      period - downsample period.
      keyColumns - key columns.
      Returns:
      A new DownsampleImportBuilder object.