Class IcebergSinkTask

java.lang.Object
org.apache.kafka.connect.sink.SinkTask
org.apache.iceberg.connect.IcebergSinkTask
All Implemented Interfaces:
org.apache.kafka.connect.connector.Task

public class IcebergSinkTask extends org.apache.kafka.connect.sink.SinkTask
  • Field Summary

    Fields inherited from class org.apache.kafka.connect.sink.SinkTask

    context, TOPICS_CONFIG, TOPICS_REGEX_CONFIG
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(Collection<org.apache.kafka.common.TopicPartition> partitions)
     
    void
    flush(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> currentOffsets)
     
    void
    open(Collection<org.apache.kafka.common.TopicPartition> partitions)
     
    Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata>
    preCommit(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> currentOffsets)
     
    void
    put(Collection<org.apache.kafka.connect.sink.SinkRecord> sinkRecords)
     
    void
     
    void
     
     

    Methods inherited from class org.apache.kafka.connect.sink.SinkTask

    initialize, onPartitionsAssigned, onPartitionsRevoked

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IcebergSinkTask

      public IcebergSinkTask()
  • Method Details

    • version

      public String version()
    • start

      public void start(Map<String,String> props)
      Specified by:
      start in interface org.apache.kafka.connect.connector.Task
      Specified by:
      start in class org.apache.kafka.connect.sink.SinkTask
    • open

      public void open(Collection<org.apache.kafka.common.TopicPartition> partitions)
      Overrides:
      open in class org.apache.kafka.connect.sink.SinkTask
    • close

      public void close(Collection<org.apache.kafka.common.TopicPartition> partitions)
      Overrides:
      close in class org.apache.kafka.connect.sink.SinkTask
    • put

      public void put(Collection<org.apache.kafka.connect.sink.SinkRecord> sinkRecords)
      Specified by:
      put in class org.apache.kafka.connect.sink.SinkTask
    • flush

      public void flush(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> currentOffsets)
      Overrides:
      flush in class org.apache.kafka.connect.sink.SinkTask
    • preCommit

      public Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> preCommit(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> currentOffsets)
      Overrides:
      preCommit in class org.apache.kafka.connect.sink.SinkTask
    • stop

      public void stop()
      Specified by:
      stop in interface org.apache.kafka.connect.connector.Task
      Specified by:
      stop in class org.apache.kafka.connect.sink.SinkTask