Class SnowflakeSinkServiceV2

  • All Implemented Interfaces:
    SnowflakeSinkService

    public class SnowflakeSinkServiceV2
    extends Object
    implements SnowflakeSinkService
    This is per task configuration. A task can be assigned multiple partitions. Major methods are startTask, insert, getOffset and close methods.

    StartTask: Called when partitions are assigned. Responsible for generating the POJOs.

    Insert and getOffset are called when SnowflakeSinkTask.put(Collection) and SnowflakeSinkTask.preCommit(Map) APIs are called.

    This implementation of SinkService uses Streaming Snowpipe (Streaming Ingestion)

    Hence this initializes the channel, opens, closes. The StreamingIngestChannel resides inside TopicPartitionChannel which is per partition.