Class DmlEventAdapter
java.lang.Object
io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.LogMinerEventAdapter
io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.DmlEventAdapter
- Direct Known Subclasses:
RedoSqlDmlEventAdapter,SelectLobLocatorEventAdapter,XmlBeginEventAdapter
An Infinispan ProtoStream adapter to marshall
DmlEvent instances.
This class defines a factory for creating DmlEvent 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 DmlEvent {
// structure of the super type, LogMinerEventAdapter
required LogMinerDmlEntryImpl entry = 7;
}
- Author:
- Chris Cranford
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.LogMinerEventAdapter
factory, getChangeTime, getEventType, getRowId, getRsId, getScn, getTableId
-
Constructor Details
-
DmlEventAdapter
public DmlEventAdapter()
-
-
Method Details
-
factory
@ProtoFactory public DmlEvent factory(int eventType, String scn, String tableId, String rowId, String rsId, String changeTime, LogMinerDmlEntryImpl entry) A ProtoStream factory that createsDmlEventinstances.- 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 entry- Returns:
- the constructed DmlEvent
-
getEntry
A ProtoStream handler to extract theentryfield from theDmlEvent.- Parameters:
event- the event instance, must not benull- Returns:
- the LogMinerDmlEntryImpl instance
-