Class SnowflakeSink<IN>

  • Type Parameters:
    IN - type of records that the sink receives to serialize and write to the corresponding Snowflake table
    All Implemented Interfaces:
    Serializable, org.apache.flink.api.connector.sink2.Sink<IN>

    @PublicEvolving
    public class SnowflakeSink<IN>
    extends Object
    implements org.apache.flink.api.connector.sink2.Sink<IN>
    Flink Sink to produce data into a Snowflake table. The sink supports below delivery guarantees as described by DeliveryGuarantee.
      DeliveryGuarantee.NONE does not provide any guarantees: messages may be lost in case of issues on the Snowflake ingest channel and messages may be duplicated in case of a Flink runtime failure.
      DeliveryGuarantee.AT_LEAST_ONCE the sink will flush data on a checkpoint to ensure all received events have successfully been committed to the Snowflake service backend. Ingestion failures are retried to ensure delivery of all received events at least once, but data may be duplicated when Flink restarts.
    See Also:
    for constructing this sink, Serialized Form
    • Method Detail

      • getAppId

        public String getAppId()
      • getConnectionConfigs

        public Properties getConnectionConfigs()
      • createWriter

        public org.apache.flink.api.connector.sink2.SinkWriter<IN> createWriter​(org.apache.flink.api.connector.sink2.Sink.InitContext initContext)
        Specified by:
        createWriter in interface org.apache.flink.api.connector.sink2.Sink<IN>