Class LobWriteEventAdapter
java.lang.Object
io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.LogMinerEventAdapter
io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.LobWriteEventAdapter
An Infinispan ProtoStream adapter to marshall
LobWriteEvent instances.
This class defines a factory for creating LobWriteEvent instances 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 -
Method Summary
Modifier and TypeMethodDescriptionfactory(int eventType, String scn, String tableId, String rowId, String rsId, String changeTime, String data, int offset, int length) A ProtoStream factory that createsLobWriteEventinstances.getData(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
-
Constructor Details
-
LobWriteEventAdapter
public LobWriteEventAdapter()
-
-
Method Details
-
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
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
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
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
-