THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Status
...
Page properties | |
---|---|
|
...
...
|
...
|
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
...
package org.apache.flink.api.connector.sink;
import org.apache.flink.api.common.eventtime.Watermark;
@Experimental
public interface SinkWriter<InputT, CommT, WriterStateT> extends AutoCloseable {
/**
* Add a watermark to the writer.
*
* @param watermark The watermark.
* @throws IOException if fail to add a watermark.
*/
default void writeWatermark(Watermark watermark) throws IOException {}
void write(InputT element, Context context) throws IOException;
}
...
- Combine a process function and a sink function to achieve similar effects with increased complexity.
- Introduce event-time timers to sink functions. This approach seems too element-centric for the use cases. Also, event-time timers are generally keyed.
Future Enhancements
- Add support for idleness. A sink operator may become idled due to upstream status changes. A future enhancement would be to inform the sink function in this situation.