Class ExtendedStringWriteEventAdapter

java.lang.Object
io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.LogMinerEventAdapter
io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.ExtendedStringWriteEventAdapter

@ProtoAdapter(ExtendedStringWriteEvent.class) public class ExtendedStringWriteEventAdapter extends LogMinerEventAdapter
An Infinispan ProtoStream adapter to marshall ExtendedStringWriteEvent instances. This class defines a factory for creating ExtendedStringWriteEvent instances when hydrating records from the persisted datastore as well as field handlers to extract values to be marshalled to the protocol buffer stream.
Author:
Chris Cranford
  • Constructor Details

    • ExtendedStringWriteEventAdapter

      public ExtendedStringWriteEventAdapter()
  • Method Details

    • factory

      @ProtoFactory public ExtendedStringWriteEvent factory(int eventType, String scn, String tableId, String rowId, String rsId, String changeTime, String data)
      A ProtoStream factory that creates ExtendedStringWriteEvent instances.
      Parameters:
      eventType - the event type
      scn - the system change number, must not be null
      tableId - the fully-qualified table name
      rowId - the Oracle row-id the change is associated with
      rsId - the Oracle rollback segment identifier
      changeTime - the time the change occurred
      data - the LOB data
      Returns:
      the constructed ExtendedStringWriteEvent
    • getData

      @ProtoField(number=7) public String getData(ExtendedStringWriteEvent event)
      A ProtoStream handler to extract the data field from a ExtendedStringWriteEvent type.
      Parameters:
      event - the event instance, must not be null
      Returns:
      the data to be written for a LOB field, may be null