Class SnowflakeSink<IN>

java.lang.Object
io.deltastream.flink.connector.snowflake.sink.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:
  • Method Details

    • getAppId

      public String getAppId()
    • getConnectionConfigs

      public Properties getConnectionConfigs()
    • getWriterConfig

      public SnowflakeWriterConfig getWriterConfig()
    • getChannelConfig

      public SnowflakeChannelConfig getChannelConfig()
    • getSerializationSchema

      public SnowflakeRowSerializationSchema<IN> getSerializationSchema()
    • builder

      public static <IN> SnowflakeSinkBuilder<IN> builder()
    • 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>