Class PravegaEventSink<T>

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.flink.api.connector.sink2.Sink

        org.apache.flink.api.connector.sink2.Sink.InitContext
    • Constructor Summary

      Constructors 
      Constructor Description
      PravegaEventSink​(io.pravega.client.ClientConfig clientConfig, io.pravega.client.stream.Stream stream, PravegaWriterMode writerMode, org.apache.flink.api.common.serialization.SerializationSchema<T> serializationSchema, PravegaEventRouter<T> eventRouter)
      Creates a new Pravega Event Sink instance which can be added as a sink to a Flink job.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.flink.api.connector.sink2.SinkWriter<T> createWriter​(org.apache.flink.api.connector.sink2.Sink.InitContext context)  
      • Methods inherited from class java.lang.Object

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

      • PravegaEventSink

        public PravegaEventSink​(io.pravega.client.ClientConfig clientConfig,
                                io.pravega.client.stream.Stream stream,
                                PravegaWriterMode writerMode,
                                org.apache.flink.api.common.serialization.SerializationSchema<T> serializationSchema,
                                PravegaEventRouter<T> eventRouter)
        Creates a new Pravega Event Sink instance which can be added as a sink to a Flink job. It will create a PravegaEventWriter on demand with following parameters. We can use PravegaSinkBuilder to build such a sink.
        Parameters:
        clientConfig - The Pravega client configuration.
        stream - The destination stream.
        writerMode - The writer mode of the sink.
        serializationSchema - The implementation for serializing every event into pravega's storage format.
        eventRouter - The implementation to extract the partition key from the event.
    • Method Detail

      • createWriter

        public org.apache.flink.api.connector.sink2.SinkWriter<T> createWriter​(org.apache.flink.api.connector.sink2.Sink.InitContext context)
                                                                        throws java.io.IOException
        Throws:
        java.io.IOException