Class SqlServerTableSource

  • All Implemented Interfaces:
    org.apache.flink.table.connector.source.abilities.SupportsReadingMetadata, org.apache.flink.table.connector.source.DynamicTableSource, org.apache.flink.table.connector.source.ScanTableSource

    public class SqlServerTableSource
    extends Object
    implements org.apache.flink.table.connector.source.ScanTableSource, org.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
    A DynamicTableSource that describes how to create a SqlServer source from a logical description.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.flink.table.connector.source.DynamicTableSource

        org.apache.flink.table.connector.source.DynamicTableSource.Context, org.apache.flink.table.connector.source.DynamicTableSource.DataStructureConverter
      • Nested classes/interfaces inherited from interface org.apache.flink.table.connector.source.ScanTableSource

        org.apache.flink.table.connector.source.ScanTableSource.ScanContext, org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected List<String> metadataKeys
      Metadata that is appended at the end of a physical source row.
      protected org.apache.flink.table.types.DataType producedDataType
      Data type that describes the final output of the source.
    • Constructor Summary

      Constructors 
      Constructor Description
      SqlServerTableSource​(org.apache.flink.table.catalog.ResolvedSchema physicalSchema, int port, String hostname, String database, String tableName, java.time.ZoneId serverTimeZone, String username, String password, Properties dbzProperties, StartupOptions startupOptions, boolean enableParallelRead, int splitSize, int splitMetaGroupSize, int fetchSize, java.time.Duration connectTimeout, int connectMaxRetries, int connectionPoolSize, double distributionFactorUpper, double distributionFactorLower, String chunkKeyColumn, boolean closeIdleReaders, boolean skipSnapshotBackfill, boolean assignUnboundedChunkFirst, boolean releaseSnapshotMetadataEnabled)  
    • Field Detail

      • producedDataType

        protected org.apache.flink.table.types.DataType producedDataType
        Data type that describes the final output of the source.
      • metadataKeys

        protected List<String> metadataKeys
        Metadata that is appended at the end of a physical source row.
    • Constructor Detail

      • SqlServerTableSource

        public SqlServerTableSource​(org.apache.flink.table.catalog.ResolvedSchema physicalSchema,
                                    int port,
                                    String hostname,
                                    String database,
                                    String tableName,
                                    java.time.ZoneId serverTimeZone,
                                    String username,
                                    String password,
                                    Properties dbzProperties,
                                    StartupOptions startupOptions,
                                    boolean enableParallelRead,
                                    int splitSize,
                                    int splitMetaGroupSize,
                                    int fetchSize,
                                    java.time.Duration connectTimeout,
                                    int connectMaxRetries,
                                    int connectionPoolSize,
                                    double distributionFactorUpper,
                                    double distributionFactorLower,
                                    @Nullable
                                    String chunkKeyColumn,
                                    boolean closeIdleReaders,
                                    boolean skipSnapshotBackfill,
                                    boolean assignUnboundedChunkFirst,
                                    boolean releaseSnapshotMetadataEnabled)
    • Method Detail

      • getChangelogMode

        public org.apache.flink.table.connector.ChangelogMode getChangelogMode()
        Specified by:
        getChangelogMode in interface org.apache.flink.table.connector.source.ScanTableSource
      • getScanRuntimeProvider

        public org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider​(org.apache.flink.table.connector.source.ScanTableSource.ScanContext scanContext)
        Specified by:
        getScanRuntimeProvider in interface org.apache.flink.table.connector.source.ScanTableSource
      • copy

        public org.apache.flink.table.connector.source.DynamicTableSource copy()
        Specified by:
        copy in interface org.apache.flink.table.connector.source.DynamicTableSource
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • asSummaryString

        public String asSummaryString()
        Specified by:
        asSummaryString in interface org.apache.flink.table.connector.source.DynamicTableSource
      • listReadableMetadata

        public Map<String,​org.apache.flink.table.types.DataType> listReadableMetadata()
        Specified by:
        listReadableMetadata in interface org.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
      • applyReadableMetadata

        public void applyReadableMetadata​(List<String> metadataKeys,
                                          org.apache.flink.table.types.DataType producedDataType)
        Specified by:
        applyReadableMetadata in interface org.apache.flink.table.connector.source.abilities.SupportsReadingMetadata