Class RedoSqlDmlEventAdapter
java.lang.Object
io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.LogMinerEventAdapter
io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.DmlEventAdapter
io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.RedoSqlDmlEventAdapter
An Infinispan ProtoStream adapter to marshall
RedoSqlDmlEvent instances.
This class defines a factory for creating RedoSqlDmlEvent instances when hydrating
records from the persisted datastore as well as field handlers to extract values
to be marshalled to the protocol buffer stream.
The underlying protocol buffer record consists of the following structure:
message RedoSqlDmlEvent {
// structure of the super type, DmlEventAdapter
required string entry = 8;
}
- Author:
- Chris Cranford
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfactory(int eventType, String scn, String tableId, String rowId, String rsId, String changeTime, LogMinerDmlEntryImpl entry, String redoSql) A ProtoStream factory that createsRedoSqlDmlEventinstances.getRedoSql(RedoSqlDmlEvent event) A ProtoStream handler to extract theredoSqlfield from theRedoSqlDmlEvent.Methods inherited from class io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.DmlEventAdapter
factory, getEntryMethods inherited from class io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.LogMinerEventAdapter
factory, getChangeTime, getEventType, getRowId, getRsId, getScn, getTableId
-
Constructor Details
-
RedoSqlDmlEventAdapter
public RedoSqlDmlEventAdapter()
-
-
Method Details
-
factory
@ProtoFactory public RedoSqlDmlEvent factory(int eventType, String scn, String tableId, String rowId, String rsId, String changeTime, LogMinerDmlEntryImpl entry, String redoSql) A ProtoStream factory that createsRedoSqlDmlEventinstances.- Parameters:
eventType- the event typescn- the system change number, must not benulltableId- the fully-qualified table namerowId- the Oracle row-id the change is associated withrsId- the Oracle rollback segment identifierchangeTime- the time the change occurredentry- the parsed SQL statement entryredoSql- the redo sql- Returns:
- the constructed RedoSqlDmlEvent
-
getRedoSql
A ProtoStream handler to extract theredoSqlfield from theRedoSqlDmlEvent.- Parameters:
event- the event instance, must not benull- Returns:
- the redo SQL statement
-