Class AbstractStreamingAdapter<T extends AbstractOracleStreamingChangeEventSourceMetrics>

java.lang.Object
io.debezium.connector.oracle.AbstractStreamingAdapter<T>
All Implemented Interfaces:
StreamingAdapter<T>
Direct Known Subclasses:
LogMinerAdapter, OpenLogReplicatorAdapter, XStreamAdapter

public abstract class AbstractStreamingAdapter<T extends AbstractOracleStreamingChangeEventSourceMetrics> extends Object implements StreamingAdapter<T>
Abstract implementation of the StreamingAdapter for which all streaming adapters are derived.
Author:
Chris Cranford
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • connectorConfig

      protected final OracleConnectorConfig connectorConfig
  • Constructor Details

  • Method Details

    • resolveScn

      protected Scn resolveScn(Document document)
    • areSameTimestamp

      protected boolean areSameTimestamp(Scn scn1, Scn scn2, OracleConnection connection) throws SQLException
      Checks whether the two specified system change numbers have the same timestamp.
      Parameters:
      scn1 - first scn number, may be null
      scn2 - second scn number, may be null
      connection - the database connection, must not be null
      Returns:
      true if the two system change numbers have the same timestamp; false otherwise
      Throws:
      SQLException - if a database error occurred
    • getLatestTableDdlScn

      Returns the SCN of the latest DDL change to the captured tables. The result will be empty if there is no table to capture as per the configuration.
      Parameters:
      ctx - the snapshot contest, must not be null
      connection - the database connection, must not be null
      Returns:
      the latest table DDL system change number, never null but may be empty.
      Throws:
      SQLException - if a database error occurred