Class FlinkPravegaDynamicTableSource

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

    public class FlinkPravegaDynamicTableSource
    extends java.lang.Object
    implements org.apache.flink.table.connector.source.ScanTableSource
    • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      FlinkPravegaDynamicTableSource​(org.apache.flink.table.types.DataType producedDataType, org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> decodingFormat, java.lang.String readerGroupName, PravegaConfig pravegaConfig, java.util.List<StreamWithBoundaries> streams, long readerGroupRefreshTimeMillis, long checkpointInitiateTimeoutMillis, long eventReadTimeoutMillis, int maxOutstandingCheckpointRequest, java.lang.String uid, boolean isStreamingReader, boolean isBounded)
      Creates a Pravega DynamicTableSource.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String asSummaryString()  
      org.apache.flink.table.connector.source.DynamicTableSource copy()  
      boolean equals​(java.lang.Object o)  
      org.apache.flink.table.connector.ChangelogMode getChangelogMode()  
      org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider​(org.apache.flink.table.connector.source.ScanTableSource.ScanContext runtimeProviderContext)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FlinkPravegaDynamicTableSource

        public FlinkPravegaDynamicTableSource​(org.apache.flink.table.types.DataType producedDataType,
                                              org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> decodingFormat,
                                              java.lang.String readerGroupName,
                                              PravegaConfig pravegaConfig,
                                              java.util.List<StreamWithBoundaries> streams,
                                              long readerGroupRefreshTimeMillis,
                                              long checkpointInitiateTimeoutMillis,
                                              long eventReadTimeoutMillis,
                                              int maxOutstandingCheckpointRequest,
                                              java.lang.String uid,
                                              boolean isStreamingReader,
                                              boolean isBounded)
        Creates a Pravega DynamicTableSource.
        Parameters:
        producedDataType - source produced data type
        decodingFormat - scan format for decoding records from Pravega
        readerGroupName - the reader group name
        pravegaConfig - Pravega connection configuration
        streams - list of Pravega source streams with start and end streamcuts
        uid - uid of the table source
        readerGroupRefreshTimeMillis - refresh interval for reader group
        checkpointInitiateTimeoutMillis - timeout for call that initiates the Pravega checkpoint
        eventReadTimeoutMillis - timeout for event read call
        maxOutstandingCheckpointRequest - maximum outstanding Pravega checkpoint requests
        isStreamingReader - flag to determine streaming or batch read
        isBounded - flag to determine if the source stream is bounded
    • 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 runtimeProviderContext)
        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
      • asSummaryString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object