Class SnowflakeSinkBuilder<IN>

  • Type Parameters:
    IN - type of the events produced by Flink

    @PublicEvolving
    public class SnowflakeSinkBuilder<IN>
    extends Object
    Builder for constructing a SnowflakeSink with appropriate configurations.
    • Constructor Detail

      • SnowflakeSinkBuilder

        public SnowflakeSinkBuilder()
    • Method Detail

      • url

        public SnowflakeSinkBuilder<IN> url​(String connectionUrl)
        Set the connection URL for connecting to the Snowflake service.
        Parameters:
        connectionUrl - String
        Returns:
        this
      • user

        public SnowflakeSinkBuilder<IN> user​(String connectionUser)
        Set the user connecting to the Snowflake service.
        Parameters:
        connectionUser - String
        Returns:
        this
      • role

        public SnowflakeSinkBuilder<IN> role​(String connectionRole)
        Set the role as to connect to the Snowflake service.
        Parameters:
        connectionRole - String
        Returns:
        this
      • privateKey

        public SnowflakeSinkBuilder<IN> privateKey​(String connectionPrivateKey)
        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
      • 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

        public SnowflakeSinkBuilder<IN> bufferTimeMillis​(long 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 the DeliveryGuarantee to provide for writing to Snowflake.
        Parameters:
        deliveryGuarantee - DeliveryGuarantee
        Returns:
        this