Package io.debezium.connector.oracle.olr
Class OpenLogReplicatorAdapter
java.lang.Object
io.debezium.connector.oracle.AbstractStreamingAdapter<OpenLogReplicatorStreamingChangeEventSourceMetrics>
io.debezium.connector.oracle.olr.OpenLogReplicatorAdapter
- All Implemented Interfaces:
StreamingAdapter<OpenLogReplicatorStreamingChangeEventSourceMetrics>
public class OpenLogReplicatorAdapter
extends AbstractStreamingAdapter<OpenLogReplicatorStreamingChangeEventSourceMetrics>
The streaming adapter for OpenLogReplicator.
- Author:
- Chris Cranford
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.debezium.connector.oracle.StreamingAdapter
StreamingAdapter.TableNameCaseSensitivity -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final StringFields inherited from class io.debezium.connector.oracle.AbstractStreamingAdapter
connectorConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetermineSnapshotOffset(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<OraclePartition, OracleOffsetContext> ctx, OracleConnectorConfig connectorConfig, OracleConnection connection) Returns the offset context based on the snapshot state.getSource(OracleConnection connection, EventDispatcher<OraclePartition, TableId> dispatcher, ErrorHandler errorHandler, Clock clock, OracleDatabaseSchema schema, OracleTaskContext taskContext, Configuration jdbcConfig, OpenLogReplicatorStreamingChangeEventSourceMetrics streamingMetrics) getStreamingMetrics(OracleTaskContext taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider metadataProvider, OracleConnectorConfig connectorConfig) getType()getValueConverter(OracleConnectorConfig connectorConfig, OracleConnection connection) Returns the value converter for the streaming adapter.Methods inherited from class io.debezium.connector.oracle.AbstractStreamingAdapter
areSameTimestamp, getLatestTableDdlScn, resolveScnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.connector.oracle.StreamingAdapter
getTableNameCaseSensitivity
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TYPE
- See Also:
-
-
Constructor Details
-
OpenLogReplicatorAdapter
-
-
Method Details
-
getType
-
getHistoryRecordComparator
-
getOffsetContextLoader
-
getSource
public StreamingChangeEventSource<OraclePartition,OracleOffsetContext> getSource(OracleConnection connection, EventDispatcher<OraclePartition, TableId> dispatcher, ErrorHandler errorHandler, Clock clock, OracleDatabaseSchema schema, OracleTaskContext taskContext, Configuration jdbcConfig, OpenLogReplicatorStreamingChangeEventSourceMetrics streamingMetrics) -
getStreamingMetrics
public OpenLogReplicatorStreamingChangeEventSourceMetrics getStreamingMetrics(OracleTaskContext taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider metadataProvider, OracleConnectorConfig connectorConfig) -
determineSnapshotOffset
public OracleOffsetContext determineSnapshotOffset(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<OraclePartition, OracleOffsetContext> ctx, OracleConnectorConfig connectorConfig, OracleConnection connection) throws SQLExceptionDescription copied from interface:StreamingAdapterReturns the offset context based on the snapshot state.- Parameters:
ctx- the relational snapshot context, should never benullconnectorConfig- the connector configuration, should never benullconnection- the database connection, should never benull- Returns:
- the offset context, never
null - Throws:
SQLException- if a database error occurred
-
getValueConverter
public OracleValueConverters getValueConverter(OracleConnectorConfig connectorConfig, OracleConnection connection) Description copied from interface:StreamingAdapterReturns the value converter for the streaming adapter.- Parameters:
connectorConfig- the connector configuration, shoudl never benullconnection- the database connection, should never benull- Returns:
- the value converter to be used
-