Class TableLoggerUtil
java.lang.Object
com.illumon.iris.db.tables.dataimport.TableLoggerUtil
Given a Table, log to a
TableLogger
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
logTable
(TableLogger tableLogger, Table tableToLog, Index index, TableLoggerBase.Flags flags, boolean logUpdates, boolean logPrevValues, Collection<String> prevColumnsToLog) Log the given tableToLog to the tableLogger.
-
Constructor Details
-
TableLoggerUtil
public TableLoggerUtil()
-
-
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 TableLoggertableToLog
- the table to logindex
- the rows that should initially be loggedflags
- 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 updatelogPrevValues
- should previous modified values be loggedprevColumnsToLog
- the columns to log for previous modifications and removals (null for all columns)- Throws:
IOException
- if the underlying logger fails
-