Class LobWriteEventAdapter
- java.lang.Object
-
- io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.LogMinerEventAdapter
-
- io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.LobWriteEventAdapter
-
@ProtoAdapter(LobWriteEvent.class) public class LobWriteEventAdapter extends LogMinerEventAdapter
An Infinispan ProtoStream adapter to marshallLobWriteEventinstances. This class defines a factory for creatingLobWriteEventinstances when hydrating records from the persisted datastore asa 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 LobWriteEvent { // structure of the super type, LogMinerEventAdapter string data = 7; }- Author:
- Chris Cranford
-
-
Constructor Summary
Constructors Constructor Description LobWriteEventAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LobWriteEventfactory(int eventType, String scn, String tableId, String rowId, String rsId, String changeTime, String data)A ProtoStream factory that createsLobWriteEventinstances.StringgetData(LobWriteEvent event)A ProtoStream handler to extract thedatafield from aLobWriteEventtype.-
Methods inherited from class io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.LogMinerEventAdapter
factory, getChangeTime, getEventType, getRowId, getRsId, getScn, getTableId
-
-
-
-
Method Detail
-
factory
@ProtoFactory public LobWriteEvent factory(int eventType, String scn, String tableId, String rowId, String rsId, String changeTime, String data)
A ProtoStream factory that createsLobWriteEventinstances.- 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 occurreddata- the LOB data- Returns:
- the constructed DmlEvent
-
getData
@ProtoField(number=7) public String getData(LobWriteEvent event)
A ProtoStream handler to extract thedatafield from aLobWriteEventtype.- Parameters:
event- the event instance, must not benull- Returns:
- the data to be written for a LOB field, may be
null
-
-