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, int offset, int length)A ProtoStream factory that createsLobWriteEventinstances.StringgetData(LobWriteEvent event)A ProtoStream handler to extract thedatafield from aLobWriteEventtype.intgetLength(LobWriteEvent event)A ProtoStream handler to extract thelengthfield from aLobWriteEventtype.intgetOffset(LobWriteEvent event)A ProtoStream handler to extract theoffsetfield 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, int offset, int length)
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 dataoffset- the LOB data offset (0-based)length- the LOB data length- 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
-
getOffset
@ProtoField(number=8, required=true) public int getOffset(LobWriteEvent event)A ProtoStream handler to extract theoffsetfield from aLobWriteEventtype.- Parameters:
event- the event instance, must not benull- Returns:
- the offset of the data to be written for a LOB field
-
getLength
@ProtoField(number=9, required=true) public int getLength(LobWriteEvent event)A ProtoStream handler to extract thelengthfield from aLobWriteEventtype.- Parameters:
event- the event instance, must not benull- Returns:
- the length of the data to be written for a LOB field
-
-