Class OracleDataSource
- java.lang.Object
-
- org.apache.flink.cdc.connectors.oracle.source.OracleDataSource
-
- All Implemented Interfaces:
DataSource,org.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
public class OracleDataSource extends Object implements DataSource, org.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
ADynamicTableSourcethat describes how to create a Oracle redo log from a logical description.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>metadataKeysMetadata that is appended at the end of a physical source row.protected org.apache.flink.table.types.DataTypeproducedDataTypeData type that describes the final output of the source.
-
Constructor Summary
Constructors Constructor Description OracleDataSource(OracleSourceConfigFactory configFactory, Configuration config, List<OracleReadableMetaData> readableMetadataList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyReadableMetadata(List<String> metadataKeys, org.apache.flink.table.types.DataType producedDataType)EventSourceProvidergetEventSourceProvider()Get theEventSourceProviderfor reading events from external systems.MetadataAccessorgetMetadataAccessor()Get theMetadataAccessorfor accessing metadata from external systems.OracleSourceConfiggetSourceConfig()Map<String,org.apache.flink.table.types.DataType>listReadableMetadata()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.cdc.common.source.DataSource
isParallelMetadataSource, supportedMetadataColumns
-
-
-
-
Constructor Detail
-
OracleDataSource
public OracleDataSource(OracleSourceConfigFactory configFactory, Configuration config, List<OracleReadableMetaData> readableMetadataList)
-
-
Method Detail
-
getEventSourceProvider
public EventSourceProvider getEventSourceProvider()
Description copied from interface:DataSourceGet theEventSourceProviderfor reading events from external systems.- Specified by:
getEventSourceProviderin interfaceDataSource
-
getMetadataAccessor
public MetadataAccessor getMetadataAccessor()
Description copied from interface:DataSourceGet theMetadataAccessorfor accessing metadata from external systems.- Specified by:
getMetadataAccessorin interfaceDataSource
-
listReadableMetadata
public Map<String,org.apache.flink.table.types.DataType> listReadableMetadata()
- Specified by:
listReadableMetadatain interfaceorg.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
-
applyReadableMetadata
public void applyReadableMetadata(List<String> metadataKeys, org.apache.flink.table.types.DataType producedDataType)
- Specified by:
applyReadableMetadatain interfaceorg.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
-
getSourceConfig
@VisibleForTesting public OracleSourceConfig getSourceConfig()
-
-