Class FlussDataSource
- java.lang.Object
-
- org.apache.flink.cdc.connectors.fluss.source.FlussDataSource
-
- All Implemented Interfaces:
DataSource
public class FlussDataSource extends Object implements DataSource
A CDC-specificDataSourceimplementation for Fluss. This is the layer where the genericFlussSourceis bound to CDC types by providing aFlussRecordDeserializerthat producesEventobjects.
-
-
Constructor Summary
Constructors Constructor Description FlussDataSource(org.apache.fluss.config.Configuration flussConfig, Configuration sourceConfig, TableDiscoverer discoverer, org.apache.fluss.client.initializer.OffsetsInitializer offsetsInitializer, long scanDiscoveryIntervalMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSourceProvidergetEventSourceProvider()Get theEventSourceProviderfor reading events from external systems.MetadataAccessorgetMetadataAccessor()Get theMetadataAccessorfor accessing metadata from external systems.booleanisParallelMetadataSource()Indicating if this source may generate metadata events (SchemaChangeEvents) in parallel for each table.-
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
supportedMetadataColumns
-
-
-
-
Constructor Detail
-
FlussDataSource
public FlussDataSource(org.apache.fluss.config.Configuration flussConfig, Configuration sourceConfig, TableDiscoverer discoverer, org.apache.fluss.client.initializer.OffsetsInitializer offsetsInitializer, long scanDiscoveryIntervalMs)
-
-
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
-
isParallelMetadataSource
public boolean isParallelMetadataSource()
Description copied from interface:DataSourceIndicating if this source may generate metadata events (SchemaChangeEvents) in parallel for each table. If returnsfalse, you'll get a regular operator topology that is compatible with single-incremented sources like MySQL. Returnstruefor sources that does not maintain a globally sequential schema change events stream, like MongoDB or Kafka.
Note that new topology still an experimental feature. Returnfalseby default to avoid unexpected behaviors.- Specified by:
isParallelMetadataSourcein interfaceDataSource
-
-