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 byDeliveryGuarantee.DeliveryGuarantee.NONEdoes 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_ONCEthe 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <IN> SnowflakeSinkBuilder<IN>builder()org.apache.flink.api.connector.sink2.SinkWriter<IN>createWriter(org.apache.flink.api.connector.sink2.Sink.InitContext initContext)StringgetAppId()SnowflakeChannelConfiggetChannelConfig()PropertiesgetConnectionConfigs()SnowflakeRowSerializationSchema<IN>getSerializationSchema()SnowflakeWriterConfiggetWriterConfig()
-
-
-
Method Detail
-
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()
-
-