public interface TableLoggerBase
Modifier and Type | Interface and Description |
---|---|
static class |
TableLoggerBase.Flags
Flags for controlling the transactional behavior of this log call.
|
static interface |
TableLoggerBase.Handle
Marker interface for log handles
|
static class |
TableLoggerBase.Operation
Indicator of the source table update event that resulted in a log call.
|
Modifier and Type | Method and Description |
---|---|
TableLoggerBase.Handle |
getLogHandle(Table tableToLog,
Collection keyColumns)
Gets a handle suitable for use with logTableHandle.
|
default void |
logTable(Table tableToLog)
Writes a snapshot of
tableToLog to the target. |
default void |
logTable(Table tableToLog,
Index index)
Writes a subset of
tableToLog to the binary log. |
default void |
logTable(Table tableToLog,
Index index,
TableLoggerBase.Flags flags,
boolean logUpdates,
boolean logPrevValues)
Writes a subset of
tableToLog to the target. |
void |
logTable(Table tableToLog,
Index index,
TableLoggerBase.Flags flags,
boolean logUpdates,
boolean logPrevValues,
Collection keyColumns)
Writes a subset of
tableToLog to the target. |
default void |
logTable(Table tableToLog,
TableLoggerBase.Flags flags)
Writes a snapshot of
tableToLog to the target. |
default void |
logTable(Table tableToLog,
TableLoggerBase.Flags flags,
boolean logUpdates)
Writes
tableToLog to the target. |
default void |
logTable(Table tableToLog,
TableLoggerBase.Flags flags,
boolean logUpdates,
boolean logPrevValues)
Writes
tableToLog to the target. |
default void |
logTable(Table tableToLog,
TableLoggerBase.Flags flags,
boolean logUpdates,
boolean logPrevValues,
Collection keyColumns)
Writes
tableToLog to the target. |
default void |
logTable(Table tableToLog,
TableLoggerBase.Flags flags,
Index index)
Writes a subset of
tableToLog to the target. |
void logTable(Table tableToLog, Index index, TableLoggerBase.Flags flags, boolean logUpdates, boolean logPrevValues, Collection keyColumns)
tableToLog
to the target. Optionally, continue to listen for updates and log them.
Also optionally, log the previous values as a separate row when rows are modified or removed. When logging
previous values, only a subset of columns may be necessary to identify the row, specified with the
keyColumns
parameter. If keyColumns
is null, previous values for all columns are logged.tableToLog
- the table to log, must conform to the definition used to create this loggerindex
- the subset of the table to logflags
- controls the transaction behaviorlogUpdates
- if true, continue to log updates to the tablelogPrevValues
- if true, log the old version of each row when rows are modified (only applicable when logUpdates is true)keyColumns
- if not null, gives the columns for which to log previous values on remove and row modification (only applicable if logPrevValues is true)IOException
- if the log call failsdefault void logTable(Table tableToLog, Index index, TableLoggerBase.Flags flags, boolean logUpdates, boolean logPrevValues)
tableToLog
to the target. Optionally, continue to listen for updates and log them.
Also optionally, log the previous values as a separate row when rows are modified or removed. If
logPrevValues
is true, previous values for all columns are logged.tableToLog
- the table to log, must conform to the definition used to create this loggerindex
- the subset of the table to logflags
- controls the transaction behaviorlogUpdates
- if true, continue to log updates to the tablelogPrevValues
- if true, log the old version of each row when rows are modified (only applicable when logUpdates is true)IOException
- if the log call failsdefault void logTable(Table tableToLog, TableLoggerBase.Flags flags, boolean logUpdates, boolean logPrevValues)
tableToLog
to the target. Optionally, continue to listen for updates and log them. Also
optionally, log the previous values as a separate row when rows are modified or removed. If logPrevValues
is true, previous values for all columns are logged.tableToLog
- the table to log, must conform to the definition used to create this loggerflags
- controls the transaction behaviorlogUpdates
- if true, continue to log updates to the tablelogPrevValues
- if true, log the old version of each row when rows are modified (only applicable when logUpdates is true)IOException
- if the log call failsdefault void logTable(Table tableToLog, TableLoggerBase.Flags flags, boolean logUpdates, boolean logPrevValues, Collection keyColumns)
tableToLog
to the target. Optionally, continue to listen for updates and log them. Also
optionally, log the previous values as a separate row when rows are modified or removed. When logging previous
values, only a subset of columns may be necessary to identify the row, specified with the
keyColumns
parameter. If keyColumns
is null, previous values for all columns are logged.tableToLog
- the table to log, must conform to the definition used to create this loggerflags
- controls the transaction behaviorlogUpdates
- if true, continue to log updates to the tablelogPrevValues
- if true, log the old version of each row when rows are modified (only applicable when logUpdates is true)keyColumns
- if specified (not null), gives the columns for which to log previous values on remove and row modification (only applicable if logPrevValues is true)IOException
- if the log call failsdefault void logTable(Table tableToLog, TableLoggerBase.Flags flags, Index index)
tableToLog
to the target.tableToLog
- the table to log, must conform to the definition used to create this loggerflags
- controls the transaction behaviorindex
- the subset of the table to logIOException
- if the log call failsdefault void logTable(Table tableToLog, TableLoggerBase.Flags flags, boolean logUpdates)
tableToLog
to the target. Optionally, continue to listen for updates and log them.
Delegates to TableLoggerBase.logTable(Table, Flags, boolean, boolean)
with logPrevValues
set to true.tableToLog
- the table to log, must conform to the definition used to create this loggerflags
- controls the transaction behaviorlogUpdates
- if true, continue to log updates to the tableIOException
- if the log call failsdefault void logTable(Table tableToLog, TableLoggerBase.Flags flags)
tableToLog
to the target.
Delegates to TableLoggerBase.logTable(Table, Flags, boolean, boolean)
with logUpdates
and logPrevValues
set to false.tableToLog
- the table to log, must conform to the definition used to create this loggerflags
- controls the transaction behaviorIOException
- if the log call failsdefault void logTable(Table tableToLog)
tableToLog
to the target.
Delegates to TableLoggerBase.logTable(Table, Flags)
with flags
set to TableLoggerBase.DEFAULT_TABLELOGGER_FLAGS
.tableToLog
- the table to log, must conform to the definition used to create this loggerIOException
- if the log call failsdefault void logTable(Table tableToLog, Index index)
tableToLog
to the binary log.
Delegates to TableLoggerBase.logTable(Table, Flags, Index)
with flags
set to TableLoggerBase.DEFAULT_TABLELOGGER_FLAGS
.tableToLog
- the table to log, must conform to the definition used to create this loggerindex
- which rows to log from the table (initial snapshot only)IOException
TableLoggerBase.Handle getLogHandle(Table tableToLog, Collection keyColumns)
tableToLog
- the table to log, must conform to the definition used to create this loggerkeyColumns
- if not null, gives the columns for which to log previous values on remove and row modification