Class SnowflakeSinkBuilder<IN>
java.lang.Object
io.deltastream.flink.connector.snowflake.sink.SnowflakeSinkBuilder<IN>
- Type Parameters:
IN- type of the events produced by Flink
Builder for constructing a
SnowflakeSink with appropriate configurations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbufferTimeMillis(long bufferTimeMillis) Sets the maximum time, in milliseconds, to buffer incoming elements.Creates aSnowflakeSinkwith provided configuration.Set the database name to sink to in Snowflake.deliveryGuarantee(org.apache.flink.connector.base.DeliveryGuarantee deliveryGuarantee) Sets theDeliveryGuaranteeto provide for writing to Snowflake.keyPassphrase(String connectionKeyPassphrase) Set the private key password for the private key inprivateKey(String).onErrorOption(net.snowflake.ingest.streaming.OpenChannelRequest.OnErrorOption option) Set the option for handling errors within a Snowflake ingest channel.privateKey(String connectionPrivateKey) Set the private key to connect with to the Snowflake service.Set the role as to connect to the Snowflake service.Set the schema name to sink to in Snowflake.serializationSchema(SnowflakeRowSerializationSchema<IN> serializationSchema) Sets the serialization schema that provides serialization fromSnowflakeSinkBuildertoMaprow as documented above and by the Snowflake service.Set the table name to sink to in Snowflake.Set the connection URL for connecting to the Snowflake service.Set the user connecting to the Snowflake service.
-
Constructor Details
-
SnowflakeSinkBuilder
public SnowflakeSinkBuilder()
-
-
Method Details
-
url
Set the connection URL for connecting to the Snowflake service.- Parameters:
connectionUrl-String- Returns:
this
-
user
Set the user connecting to the Snowflake service.- Parameters:
connectionUser-String- Returns:
this
-
role
Set the role as to connect to the Snowflake service.- Parameters:
connectionRole-String- Returns:
this
-
privateKey
Set the private key to connect with to the Snowflake service. The private key must only include the key content without any header, footer, or newline feeds.- Parameters:
connectionPrivateKey-String- Returns:
this
-
keyPassphrase
Set the private key password for the private key inprivateKey(String).- Parameters:
connectionKeyPassphrase-String- Returns:
this
-
database
Set the database name to sink to in Snowflake.- Parameters:
database-String- Returns:
this
-
schema
Set the schema name to sink to in Snowflake.- Parameters:
schema-String- Returns:
this
-
table
Set the table name to sink to in Snowflake.- Parameters:
table-String- Returns:
this
-
onErrorOption
public SnowflakeSinkBuilder<IN> onErrorOption(net.snowflake.ingest.streaming.OpenChannelRequest.OnErrorOption option) Set the option for handling errors within a Snowflake ingest channel.- Parameters:
option-OpenChannelRequest.OnErrorOption- Returns:
this
-
bufferTimeMillis
Sets the maximum time, in milliseconds, to buffer incoming elements.- Parameters:
bufferTimeMillis-long- Returns:
this
-
deliveryGuarantee
public SnowflakeSinkBuilder<IN> deliveryGuarantee(org.apache.flink.connector.base.DeliveryGuarantee deliveryGuarantee) Sets theDeliveryGuaranteeto provide for writing to Snowflake.- Parameters:
deliveryGuarantee-DeliveryGuarantee- Returns:
this
-
serializationSchema
public SnowflakeSinkBuilder<IN> serializationSchema(SnowflakeRowSerializationSchema<IN> serializationSchema) Sets the serialization schema that provides serialization fromSnowflakeSinkBuildertoMaprow as documented above and by the Snowflake service.- Parameters:
serializationSchema-SnowflakeRowSerializationSchema- Returns:
this
-
build
Creates aSnowflakeSinkwith provided configuration.- Returns:
SnowflakeSink
-