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 Summary
Constructors Constructor Description TableMapLoggerUtil()
-
Method Summary
Modifier and Type Method Description static void
logTableMap(TableLogger tableLogger, TableMap tableMapToLog, TableLoggerBase.Flags flags, boolean logUpdates, boolean logPrevValues, Collection<String> prevColumnsToLog)
Log the table map to the tableLogger.
-
Constructor Details
-
TableMapLoggerUtil
public TableMapLoggerUtil()
-
-
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 totableMapToLog
- the TableMap to log to the the TableLoggerflags
- SingleRow or Atomic, when Atomic all rows in a cycle are logged in the same transactionlogUpdates
- if true, log table updates and new keys be on each cyclelogPrevValues
- if true, previous row values for modifications are loggedprevColumnsToLog
- a Collection of columns that should be logged for removed and ModifiedOld rows
-