Class BaseSourceConfig
- java.lang.Object
-
- org.apache.flink.cdc.connectors.base.config.BaseSourceConfig
-
- All Implemented Interfaces:
Serializable,SourceConfig
- Direct Known Subclasses:
JdbcSourceConfig
public abstract class BaseSourceConfig extends Object implements SourceConfig
A basic Source configuration which is used byIncrementalSource.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.cdc.connectors.base.config.SourceConfig
SourceConfig.Factory<C extends SourceConfig>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanassignUnboundedChunkFirstprotected booleancloseIdleReadersprotected io.debezium.config.ConfigurationdbzConfigurationprotected PropertiesdbzPropertiesprotected doubledistributionFactorLowerprotected doubledistributionFactorUpperprotected booleanincludeSchemaChangesprotected booleanisScanNewlyAddedTableEnabledprotected booleanreleaseSnapshotMetadataEnabledprotected booleanskipSnapshotBackfillprotected intsplitMetaGroupSizeprotected intsplitSizeprotected StartupOptionsstartupOptions
-
Constructor Summary
Constructors Constructor Description BaseSourceConfig(StartupOptions startupOptions, int splitSize, int splitMetaGroupSize, double distributionFactorUpper, double distributionFactorLower, boolean includeSchemaChanges, boolean closeIdleReaders, boolean skipSnapshotBackfill, boolean isScanNewlyAddedTableEnabled, Properties dbzProperties, io.debezium.config.Configuration dbzConfiguration, boolean assignUnboundedChunkFirst, boolean releaseSnapshotMetadataEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.debezium.config.ConfigurationgetDbzConfiguration()PropertiesgetDbzProperties()doublegetDistributionFactorLower()doublegetDistributionFactorUpper()intgetSplitMetaGroupSize()intgetSplitSize()StartupOptionsgetStartupOptions()booleanisAssignUnboundedChunkFirst()booleanisCloseIdleReaders()booleanisIncludeSchemaChanges()booleanisReleaseSnapshotMetadataEnabled()Whether releasing the snapshot split metadata held by the source coordinator once the stream split is assembled and checkpoint-covered is enabled.booleanisSkipSnapshotBackfill()-
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.connectors.base.config.SourceConfig
isScanNewlyAddedTableEnabled
-
-
-
-
Field Detail
-
startupOptions
protected final StartupOptions startupOptions
-
splitSize
protected final int splitSize
-
splitMetaGroupSize
protected final int splitMetaGroupSize
-
distributionFactorUpper
protected final double distributionFactorUpper
-
distributionFactorLower
protected final double distributionFactorLower
-
includeSchemaChanges
protected final boolean includeSchemaChanges
-
closeIdleReaders
protected final boolean closeIdleReaders
-
skipSnapshotBackfill
protected final boolean skipSnapshotBackfill
-
isScanNewlyAddedTableEnabled
protected final boolean isScanNewlyAddedTableEnabled
-
assignUnboundedChunkFirst
protected final boolean assignUnboundedChunkFirst
-
releaseSnapshotMetadataEnabled
protected final boolean releaseSnapshotMetadataEnabled
-
dbzProperties
protected final Properties dbzProperties
-
dbzConfiguration
protected transient io.debezium.config.Configuration dbzConfiguration
-
-
Constructor Detail
-
BaseSourceConfig
public BaseSourceConfig(StartupOptions startupOptions, int splitSize, int splitMetaGroupSize, double distributionFactorUpper, double distributionFactorLower, boolean includeSchemaChanges, boolean closeIdleReaders, boolean skipSnapshotBackfill, boolean isScanNewlyAddedTableEnabled, Properties dbzProperties, io.debezium.config.Configuration dbzConfiguration, boolean assignUnboundedChunkFirst, boolean releaseSnapshotMetadataEnabled)
-
-
Method Detail
-
getStartupOptions
public StartupOptions getStartupOptions()
- Specified by:
getStartupOptionsin interfaceSourceConfig
-
getSplitSize
public int getSplitSize()
- Specified by:
getSplitSizein interfaceSourceConfig
-
getSplitMetaGroupSize
public int getSplitMetaGroupSize()
- Specified by:
getSplitMetaGroupSizein interfaceSourceConfig
-
getDistributionFactorUpper
public double getDistributionFactorUpper()
-
getDistributionFactorLower
public double getDistributionFactorLower()
-
isIncludeSchemaChanges
public boolean isIncludeSchemaChanges()
- Specified by:
isIncludeSchemaChangesin interfaceSourceConfig
-
isCloseIdleReaders
public boolean isCloseIdleReaders()
- Specified by:
isCloseIdleReadersin interfaceSourceConfig
-
getDbzProperties
public Properties getDbzProperties()
-
getDbzConfiguration
public io.debezium.config.Configuration getDbzConfiguration()
-
isSkipSnapshotBackfill
public boolean isSkipSnapshotBackfill()
- Specified by:
isSkipSnapshotBackfillin interfaceSourceConfig
-
isAssignUnboundedChunkFirst
public boolean isAssignUnboundedChunkFirst()
- Specified by:
isAssignUnboundedChunkFirstin interfaceSourceConfig
-
isReleaseSnapshotMetadataEnabled
public boolean isReleaseSnapshotMetadataEnabled()
Description copied from interface:SourceConfigWhether releasing the snapshot split metadata held by the source coordinator once the stream split is assembled and checkpoint-covered is enabled. Defaultfalseso existing jobs and configs that do not set the option are unaffected.- Specified by:
isReleaseSnapshotMetadataEnabledin interfaceSourceConfig
-
-