Class FlinkPravegaDynamicTableSink

  • All Implemented Interfaces:
    org.apache.flink.table.connector.sink.DynamicTableSink

    public class FlinkPravegaDynamicTableSink
    extends java.lang.Object
    implements org.apache.flink.table.connector.sink.DynamicTableSink
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FlinkPravegaDynamicTableSink.RowDataBasedRouter
      An event router that extracts the routing key from a RowData by field name.
      • Nested classes/interfaces inherited from interface org.apache.flink.table.connector.sink.DynamicTableSink

        org.apache.flink.table.connector.sink.DynamicTableSink.Context, org.apache.flink.table.connector.sink.DynamicTableSink.DataStructureConverter, org.apache.flink.table.connector.sink.DynamicTableSink.SinkRuntimeProvider
    • Constructor Summary

      Constructors 
      Constructor Description
      FlinkPravegaDynamicTableSink​(org.apache.flink.table.api.TableSchema tableSchema, org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> encodingFormat, PravegaConfig pravegaConfig, io.pravega.client.stream.Stream stream, PravegaWriterMode writerMode, long txnLeaseRenewalIntervalMillis, boolean enableWatermarkPropagation, java.lang.String routingKeyFieldName)
      Creates a Pravega DynamicTableSink.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String asSummaryString()  
      org.apache.flink.table.connector.sink.DynamicTableSink copy()  
      boolean equals​(java.lang.Object o)  
      org.apache.flink.table.connector.ChangelogMode getChangelogMode​(org.apache.flink.table.connector.ChangelogMode requestedMode)  
      org.apache.flink.table.connector.sink.DynamicTableSink.SinkRuntimeProvider getSinkRuntimeProvider​(org.apache.flink.table.connector.sink.DynamicTableSink.Context context)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • FlinkPravegaDynamicTableSink

        public FlinkPravegaDynamicTableSink​(org.apache.flink.table.api.TableSchema tableSchema,
                                            org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> encodingFormat,
                                            PravegaConfig pravegaConfig,
                                            io.pravega.client.stream.Stream stream,
                                            PravegaWriterMode writerMode,
                                            long txnLeaseRenewalIntervalMillis,
                                            boolean enableWatermarkPropagation,
                                            @Nullable
                                            java.lang.String routingKeyFieldName)
        Creates a Pravega DynamicTableSink.

        Each row is written to a Pravega stream with a routing key based on the routingKeyFieldName. The specified field must of type STRING.

        Parameters:
        tableSchema - The table schema
        encodingFormat - sink format for encoding records to Pravega
        pravegaConfig - Pravega connection configuration
        stream - Pravega sink stream
        writerMode - Pravega writer mode
        txnLeaseRenewalIntervalMillis - transaction lease renewal period
        enableWatermarkPropagation - enable watermark propagation from Flink table to Pravega stream
        routingKeyFieldName - field name as Pravega routing key
    • Method Detail

      • getChangelogMode

        public org.apache.flink.table.connector.ChangelogMode getChangelogMode​(org.apache.flink.table.connector.ChangelogMode requestedMode)
        Specified by:
        getChangelogMode in interface org.apache.flink.table.connector.sink.DynamicTableSink
      • getSinkRuntimeProvider

        public org.apache.flink.table.connector.sink.DynamicTableSink.SinkRuntimeProvider getSinkRuntimeProvider​(org.apache.flink.table.connector.sink.DynamicTableSink.Context context)
        Specified by:
        getSinkRuntimeProvider in interface org.apache.flink.table.connector.sink.DynamicTableSink
      • copy

        public org.apache.flink.table.connector.sink.DynamicTableSink copy()
        Specified by:
        copy in interface org.apache.flink.table.connector.sink.DynamicTableSink
      • asSummaryString

        public java.lang.String asSummaryString()
        Specified by:
        asSummaryString in interface org.apache.flink.table.connector.sink.DynamicTableSink
      • 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