Package io.debezium.connector.db2
Class Db2StreamingChangeEventSource.ChangeTablePointer
- java.lang.Object
-
- io.debezium.pipeline.source.spi.ChangeTableResultSet<Db2ChangeTable,TxLogPosition>
-
- io.debezium.connector.db2.Db2StreamingChangeEventSource.ChangeTablePointer
-
- Enclosing class:
- Db2StreamingChangeEventSource
private static class Db2StreamingChangeEventSource.ChangeTablePointer extends io.debezium.pipeline.source.spi.ChangeTableResultSet<Db2ChangeTable,TxLogPosition>
The logical representation of a position for the change in the transaction log. During each sourcing cycle it is necessary to query all change tables and then make a total order of changes across all tables.
This class represents an open database cursor over the change table that is able to move the cursor forward and report the LSN for the change to which the cursor now points.- Author:
- Jiri Pechanec
-
-
Constructor Summary
Constructors Constructor Description ChangeTablePointer(Db2ChangeTable changeTable, ResultSet resultSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TxLogPositiongetNextChangePosition(ResultSet resultSet)protected intgetOperation(ResultSet resultSet)
-
-
-
Constructor Detail
-
ChangeTablePointer
public ChangeTablePointer(Db2ChangeTable changeTable, ResultSet resultSet)
-
-
Method Detail
-
getOperation
protected int getOperation(ResultSet resultSet) throws SQLException
- Specified by:
getOperationin classio.debezium.pipeline.source.spi.ChangeTableResultSet<Db2ChangeTable,TxLogPosition>- Throws:
SQLException
-
getNextChangePosition
protected TxLogPosition getNextChangePosition(ResultSet resultSet) throws SQLException
- Specified by:
getNextChangePositionin classio.debezium.pipeline.source.spi.ChangeTableResultSet<Db2ChangeTable,TxLogPosition>- Throws:
SQLException
-
-