Package io.debezium.connector.sqlserver
Class SqlServerChangeRecordEmitter
- java.lang.Object
-
- io.debezium.pipeline.AbstractChangeRecordEmitter<TableSchema>
-
- io.debezium.relational.RelationalChangeRecordEmitter
-
- io.debezium.connector.sqlserver.SqlServerChangeRecordEmitter
-
- All Implemented Interfaces:
ChangeRecordEmitter
public class SqlServerChangeRecordEmitter extends RelationalChangeRecordEmitter
Emits change data based on a single (or two in case of updates) CDC data row(s).- Author:
- Jiri Pechanec
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.debezium.pipeline.spi.ChangeRecordEmitter
ChangeRecordEmitter.Receiver
-
-
Field Summary
Fields Modifier and Type Field Description private Object[]dataprivate Object[]dataNextstatic intOP_DELETEstatic intOP_INSERTstatic intOP_UPDATE_AFTERstatic intOP_UPDATE_BEFOREprivate intoperation-
Fields inherited from class io.debezium.relational.RelationalChangeRecordEmitter
PK_UPDATE_NEWKEY_FIELD, PK_UPDATE_OLDKEY_FIELD
-
-
Constructor Summary
Constructors Constructor Description SqlServerChangeRecordEmitter(Partition partition, OffsetContext offset, int operation, Object[] data, Object[] dataNext, Clock clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object[]getNewColumnValues()protected Object[]getOldColumnValues()Envelope.OperationgetOperation()-
Methods inherited from class io.debezium.relational.RelationalChangeRecordEmitter
emitChangeRecords, emitCreateRecord, emitDeleteRecord, emitReadRecord, emitTruncateRecord, emitUpdateRecord, skipEmptyMessages
-
Methods inherited from class io.debezium.pipeline.AbstractChangeRecordEmitter
getClock, getOffset, getPartition
-
-
-
-
Field Detail
-
OP_DELETE
public static final int OP_DELETE
- See Also:
- Constant Field Values
-
OP_INSERT
public static final int OP_INSERT
- See Also:
- Constant Field Values
-
OP_UPDATE_BEFORE
public static final int OP_UPDATE_BEFORE
- See Also:
- Constant Field Values
-
OP_UPDATE_AFTER
public static final int OP_UPDATE_AFTER
- See Also:
- Constant Field Values
-
operation
private final int operation
-
data
private final Object[] data
-
dataNext
private final Object[] dataNext
-
-
Constructor Detail
-
SqlServerChangeRecordEmitter
public SqlServerChangeRecordEmitter(Partition partition, OffsetContext offset, int operation, Object[] data, Object[] dataNext, Clock clock)
-
-
Method Detail
-
getOperation
public Envelope.Operation getOperation()
-
getOldColumnValues
protected Object[] getOldColumnValues()
- Specified by:
getOldColumnValuesin classRelationalChangeRecordEmitter
-
getNewColumnValues
protected Object[] getNewColumnValues()
- Specified by:
getNewColumnValuesin classRelationalChangeRecordEmitter
-
-