Class PgProtoReplicationMessage
java.lang.Object
io.debezium.connector.postgresql.connection.pgproto.PgProtoReplicationMessage
- All Implemented Interfaces:
ReplicationMessage
Replication message representing message sent by Postgres Decoderbufsinvalid input: '<'/>
- Author:
- Jiri Pechanec
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.debezium.connector.postgresql.connection.ReplicationMessage
ReplicationMessage.Column, ReplicationMessage.ColumnTypeMetadata, ReplicationMessage.ColumnValue<T>, ReplicationMessage.NoopMessage, ReplicationMessage.Operation -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPgProtoReplicationMessage(PgProto.RowMessage rawMessage, TypeRegistry typeRegistry) -
Method Summary
Modifier and TypeMethodDescriptiongetTable()getValue(String columnName, PostgresType type, String fullType, PgProto.DatumMessage datumMessage, PostgresStreamingChangeEventSource.PgConnectionSupplier connection, boolean includeUnknownDatatypes) booleanprivate booleantoString()private List<ReplicationMessage.Column> transform(List<PgProto.DatumMessage> messageList, List<PgProto.TypeInfo> typeInfoList) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.debezium.connector.postgresql.connection.ReplicationMessage
isTransactionalMessage, shouldSchemaBeSynchronized
-
Field Details
-
rawMessage
-
typeRegistry
-
-
Constructor Details
-
PgProtoReplicationMessage
PgProtoReplicationMessage(PgProto.RowMessage rawMessage, TypeRegistry typeRegistry)
-
-
Method Details
-
getOperation
- Specified by:
getOperationin interfaceReplicationMessage- Returns:
- A data operation executed
-
getCommitTime
- Specified by:
getCommitTimein interfaceReplicationMessage- Returns:
- Transaction commit time for this change
-
getTransactionId
- Specified by:
getTransactionIdin interfaceReplicationMessage- Returns:
- An id of transaction to which this change belongs; will not be present for non-transactional logical decoding messages for instance
-
getTable
- Specified by:
getTablein interfaceReplicationMessage- Returns:
- Table changed
-
getOldTupleList
- Specified by:
getOldTupleListin interfaceReplicationMessage- Returns:
- Set of original values of table columns, null for INSERT
-
getNewTupleList
- Specified by:
getNewTupleListin interfaceReplicationMessage- Returns:
- Set of new values of table columns, null for DELETE
-
missingTypeMetadata
private boolean missingTypeMetadata() -
transform
private List<ReplicationMessage.Column> transform(List<PgProto.DatumMessage> messageList, List<PgProto.TypeInfo> typeInfoList) -
isLastEventForLsn
public boolean isLastEventForLsn()- Specified by:
isLastEventForLsnin interfaceReplicationMessage- Returns:
- true if this is the last message in the batch of messages with same LSN
-
getValue
public Object getValue(String columnName, PostgresType type, String fullType, PgProto.DatumMessage datumMessage, PostgresStreamingChangeEventSource.PgConnectionSupplier connection, boolean includeUnknownDatatypes) -
toString
-