Class SelectLobLocatorEventAdapter
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.SelectLobLocatorEventAdapter
@ProtoAdapter(SelectLobLocatorEvent.class)
public class SelectLobLocatorEventAdapter
extends DmlEventAdapter
An Infinispan ProtoStream adapter to marshall
SelectLobLocatorEvent instances.
This class defines a factory for creating SelectLobLocatorEvent 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 SelectLobLocatorEvent {
// structure of the super type, DmlEventAdapter
required string columnName = 8;
required boolean binary = 9;
}
- 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 columnName, Boolean binary) A ProtoStream factory that createsSelectLobLocatorEventinstances.getBinary(SelectLobLocatorEvent event) A ProtoStream handler to extract thebinaryfield from aSelectLobLocatorEventtype.A ProtoStream handler to extract thecolumnNamefield from aSelectLobLocatorEventtype.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
-
SelectLobLocatorEventAdapter
public SelectLobLocatorEventAdapter()
-
-
Method Details
-
factory
@ProtoFactory public SelectLobLocatorEvent factory(int eventType, String scn, String tableId, String rowId, String rsId, String changeTime, LogMinerDmlEntryImpl entry, String columnName, Boolean binary) A ProtoStream factory that createsSelectLobLocatorEventinstances.- 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 entrycolumnName- the column name references by the SelectLobLocatorEventbinary- whether the data is binary- or character- based- Returns:
- the constructed SelectLobLocatorEvent
-
getColumnName
A ProtoStream handler to extract thecolumnNamefield from aSelectLobLocatorEventtype.- Parameters:
event- the event instance, must not benull- Returns:
- the column name
-
getBinary
A ProtoStream handler to extract thebinaryfield from aSelectLobLocatorEventtype.- Parameters:
event- the event instance, must not benull- Returns:
- the binary data flag
-