Class FlinkPravegaTableSink

  • All Implemented Interfaces:
    org.apache.flink.table.sinks.AppendStreamTableSink<org.apache.flink.types.Row>, org.apache.flink.table.sinks.BatchTableSink<org.apache.flink.types.Row>, org.apache.flink.table.sinks.StreamTableSink<org.apache.flink.types.Row>, org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>

    @Deprecated
    public class FlinkPravegaTableSink
    extends java.lang.Object
    implements org.apache.flink.table.sinks.AppendStreamTableSink<org.apache.flink.types.Row>, org.apache.flink.table.sinks.BatchTableSink<org.apache.flink.types.Row>
    Deprecated.
    Please use the new Table API FlinkPravegaDynamicTableSink
    An append-only table sink to emit a streaming table as a Pravega stream.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FlinkPravegaTableSink.RowBasedRouter
      Deprecated.
      An event router that extracts the routing key from a Row by field name.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.function.Function<org.apache.flink.table.api.TableSchema,​FlinkPravegaOutputFormat<org.apache.flink.types.Row>> outputFormatFactory
      Deprecated.
      A factory for output format.
      protected org.apache.flink.table.api.TableSchema schema
      Deprecated.
      The schema of the table.
      protected java.util.function.Function<org.apache.flink.table.api.TableSchema,​FlinkPravegaWriter<org.apache.flink.types.Row>> writerFactory
      Deprecated.
      A factory for the stream writer.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FlinkPravegaTableSink​(java.util.function.Function<org.apache.flink.table.api.TableSchema,​FlinkPravegaWriter<org.apache.flink.types.Row>> writerFactory, java.util.function.Function<org.apache.flink.table.api.TableSchema,​FlinkPravegaOutputFormat<org.apache.flink.types.Row>> outputFormatFactory, org.apache.flink.table.api.TableSchema schema)
      Deprecated.
      Creates a Pravega AppendStreamTableSink.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      FlinkPravegaTableSink configure​(java.lang.String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
      Deprecated.
       
      org.apache.flink.api.java.operators.DataSink<?> consumeDataSet​(org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> dataSet)
      Deprecated.
       
      org.apache.flink.streaming.api.datastream.DataStreamSink<?> consumeDataStream​(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.types.Row> dataStream)
      Deprecated.
       
      org.apache.flink.table.types.DataType getConsumedDataType()
      Deprecated.
       
      org.apache.flink.table.api.TableSchema getTableSchema()
      Deprecated.
       
      • 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.table.sinks.TableSink

        getFieldNames, getFieldTypes, getOutputType
    • Field Detail

      • writerFactory

        protected final java.util.function.Function<org.apache.flink.table.api.TableSchema,​FlinkPravegaWriter<org.apache.flink.types.Row>> writerFactory
        Deprecated.
        A factory for the stream writer.
      • outputFormatFactory

        protected final java.util.function.Function<org.apache.flink.table.api.TableSchema,​FlinkPravegaOutputFormat<org.apache.flink.types.Row>> outputFormatFactory
        Deprecated.
        A factory for output format.
      • schema

        protected org.apache.flink.table.api.TableSchema schema
        Deprecated.
        The schema of the table.
    • Constructor Detail

      • FlinkPravegaTableSink

        protected FlinkPravegaTableSink​(java.util.function.Function<org.apache.flink.table.api.TableSchema,​FlinkPravegaWriter<org.apache.flink.types.Row>> writerFactory,
                                        java.util.function.Function<org.apache.flink.table.api.TableSchema,​FlinkPravegaOutputFormat<org.apache.flink.types.Row>> outputFormatFactory,
                                        org.apache.flink.table.api.TableSchema schema)
        Deprecated.
        Creates a Pravega AppendStreamTableSink.

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

        Parameters:
        writerFactory - A factory for the stream writer.
        outputFormatFactory - A factory for the output format.
        schema - The table schema of the sink.
    • Method Detail

      • consumeDataStream

        public org.apache.flink.streaming.api.datastream.DataStreamSink<?> consumeDataStream​(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.types.Row> dataStream)
        Deprecated.
        Specified by:
        consumeDataStream in interface org.apache.flink.table.sinks.StreamTableSink<org.apache.flink.types.Row>
      • consumeDataSet

        public org.apache.flink.api.java.operators.DataSink<?> consumeDataSet​(org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> dataSet)
        Deprecated.
        Specified by:
        consumeDataSet in interface org.apache.flink.table.sinks.BatchTableSink<org.apache.flink.types.Row>
      • getConsumedDataType

        public org.apache.flink.table.types.DataType getConsumedDataType()
        Deprecated.
        Specified by:
        getConsumedDataType in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>
      • getTableSchema

        public org.apache.flink.table.api.TableSchema getTableSchema()
        Deprecated.
        Specified by:
        getTableSchema in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>
      • configure

        public FlinkPravegaTableSink configure​(java.lang.String[] fieldNames,
                                               org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
        Deprecated.
        Specified by:
        configure in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>