Class LcrEventHandler

java.lang.Object
io.debezium.connector.oracle.xstream.LcrEventHandler
All Implemented Interfaces:
oracle.streams.XStreamLCRCallbackHandler

class LcrEventHandler extends Object implements oracle.streams.XStreamLCRCallbackHandler
Handler for Oracle DDL and DML events. Just forwards events to the EventDispatcher.
Author:
Gunnar Morling
  • Field Details

  • Constructor Details

  • Method Details

    • processLCR

      public void processLCR(oracle.streams.LCR lcr) throws oracle.streams.StreamsException
      Specified by:
      processLCR in interface oracle.streams.XStreamLCRCallbackHandler
      Throws:
      oracle.streams.StreamsException
    • processRowLCR

      private void processRowLCR(oracle.streams.RowLCR row) throws InterruptedException
      Throws:
      InterruptedException
    • dispatchDataChangeEvent

      private void dispatchDataChangeEvent(oracle.streams.RowLCR lcr, Map<String,Object> chunkValues) throws InterruptedException
      Throws:
      InterruptedException
    • dispatchSchemaChangeEvent

      private void dispatchSchemaChangeEvent(oracle.streams.DDLLCR ddlLcr) throws InterruptedException
      Throws:
      InterruptedException
    • processTruncateEvent

      private void processTruncateEvent(oracle.streams.DDLLCR ddlLcr)
    • getTableId

      private TableId getTableId(oracle.streams.LCR lcr)
    • getTableMetadataDdl

      private String getTableMetadataDdl(TableId tableId)
    • setWatermark

      private void setWatermark()
    • processChunk

      public void processChunk(oracle.streams.ChunkColumnValue chunk) throws oracle.streams.StreamsException
      Specified by:
      processChunk in interface oracle.streams.XStreamLCRCallbackHandler
      Throws:
      oracle.streams.StreamsException
    • createLCR

      public oracle.streams.LCR createLCR() throws oracle.streams.StreamsException
      Specified by:
      createLCR in interface oracle.streams.XStreamLCRCallbackHandler
      Throws:
      oracle.streams.StreamsException
    • createChunk

      public oracle.streams.ChunkColumnValue createChunk() throws oracle.streams.StreamsException
      Specified by:
      createChunk in interface oracle.streams.XStreamLCRCallbackHandler
      Throws:
      oracle.streams.StreamsException
    • resolveAndDispatchCurrentChunkedRow

      private void resolveAndDispatchCurrentChunkedRow()