Interface ElementConverter<InputT,RequestEntryT>
- All Superinterfaces:
Serializable
This interface specifies the mapping between elements of a stream to request entries that can be
sent to the destination. The mapping is provided by the end-user of a sink, not the sink creator.
The request entries contain all relevant information required to create and sent the actual request. Eg, for Kinesis Data Streams, the request entry includes the payload and the partition key.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidopen(org.apache.flink.api.connector.sink2.WriterInitContext context)
-
Method Details
-
apply
RequestEntryT apply(InputT element, org.apache.flink.api.connector.sink2.SinkWriter.Context context) -
open
default void open(org.apache.flink.api.connector.sink2.WriterInitContext context)
-