Package io.debezium.pipeline.source.spi
Class ChangeTableResultSet<C extends ChangeTable,T extends Comparable<T>>
java.lang.Object
io.debezium.pipeline.source.spi.ChangeTableResultSet<C,T>
- Type Parameters:
C- source connector implementation ofChangeTableT- source connector implementation of transaction log position
public abstract class ChangeTableResultSet<C extends ChangeTable,T extends Comparable<T>>
extends Object
A wrapper around a JDBC
ResultSet for a change table for processing rows.- Author:
- Jiri Pechanec, Chris Cranford
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChangeTableResultSet(C changeTable, ResultSet resultSet, int columnDataOffset) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ChangeTableResultSet<C, T> other) protected ObjectgetColumnData(ResultSet resultSet, int columnIndex) Get the value of a specific column in the result-set.Object[]getData()Get the column data from the source change table's result-setprotected abstract TgetNextChangePosition(ResultSet resultSet) intprotected abstract intgetOperation(ResultSet resultSet) protected Tbooleanbooleanbooleannext()toString()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
changeTable
-
resultSet
-
columnDataOffset
private final int columnDataOffset -
completed
private boolean completed -
currentChangePosition
-
previousChangePosition
-
-
Constructor Details
-
ChangeTableResultSet
-
-
Method Details
-
getChangeTable
-
getChangePosition
- Throws:
SQLException
-
getPreviousChangePosition
-
getOperation
- Throws:
SQLException
-
isCurrentPositionSmallerThanPreviousPosition
public boolean isCurrentPositionSmallerThanPreviousPosition() -
next
- Throws:
SQLException
-
getData
Get the column data from the source change table's result-set- Throws:
SQLException
-
getColumnData
Get the value of a specific column in the result-set.- Throws:
SQLException
-
isCompleted
public boolean isCompleted() -
compareTo
- Throws:
SQLException
-
toString
-
getOperation
- Throws:
SQLException
-
getNextChangePosition
- Throws:
SQLException
-