Class TableMapLoggerUtil

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

public class TableMapLoggerUtil
extends Object
Given a TableMap, log all of the constituents that tick on a given cycle to a TableLogger. When multiple consituent tables tick within a cycle, they are all part of the same transaction when the TableLoggerBase.Flags.Atomic flag is specified.
  • Constructor Details

  • Method Details

    • logTableMap

      public static void logTableMap​(TableLogger tableLogger, TableMap tableMapToLog, TableLoggerBase.Flags flags, boolean logUpdates, boolean logPrevValues, Collection<String> prevColumnsToLog)
      Log the table map to the tableLogger.
      Parameters:
      tableLogger - the logger to write to
      tableMapToLog - the TableMap to log to the the TableLogger
      flags - SingleRow or Atomic, when Atomic all rows in a cycle are logged in the same transaction
      logUpdates - if true, log table updates and new keys be on each cycle
      logPrevValues - if true, previous row values for modifications are logged
      prevColumnsToLog - a Collection of columns that should be logged for removed and ModifiedOld rows