Class TableLoggerUtil

java.lang.Object
com.illumon.iris.db.tables.dataimport.TableLoggerUtil

public class TableLoggerUtil
extends Object
Given a Table, log to a TableLogger.
  • Constructor Details

  • Method Details

    • logTable

      public static void logTable​(TableLogger tableLogger, Table tableToLog, Index index, TableLoggerBase.Flags flags, boolean logUpdates, boolean logPrevValues, Collection<String> prevColumnsToLog) throws IOException
      Log the given tableToLog to the tableLogger.
      Parameters:
      tableLogger - the destination TableLogger
      tableToLog - the table to log
      index - the rows that should initially be logged
      flags - Atomic if the initial state and each update should be logged as a transaction or RowByRow if each row should be logged independently.
      logUpdates - if true, Listen to the table and log each update
      logPrevValues - should previous modified values be logged
      prevColumnsToLog - the columns to log for previous modifications and removals (null for all columns)
      Throws:
      IOException - if the underlying logger fails