Class 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
      IcebergSinkTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close​(java.util.Collection<org.apache.kafka.common.TopicPartition> partitions)  
      void flush​(java.util.Map<org.apache.kafka.common.TopicPartition,​org.apache.kafka.clients.consumer.OffsetAndMetadata> currentOffsets)  
      void open​(java.util.Collection<org.apache.kafka.common.TopicPartition> partitions)  
      java.util.Map<org.apache.kafka.common.TopicPartition,​org.apache.kafka.clients.consumer.OffsetAndMetadata> preCommit​(java.util.Map<org.apache.kafka.common.TopicPartition,​org.apache.kafka.clients.consumer.OffsetAndMetadata> currentOffsets)  
      void put​(java.util.Collection<org.apache.kafka.connect.sink.SinkRecord> sinkRecords)  
      void start​(java.util.Map<java.lang.String,​java.lang.String> props)  
      void stop()  
      java.lang.String version()  
      • 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 Detail

      • IcebergSinkTask

        public IcebergSinkTask()
    • Method Detail

      • version

        public java.lang.String version()
      • start

        public void start​(java.util.Map<java.lang.String,​java.lang.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​(java.util.Collection<org.apache.kafka.common.TopicPartition> partitions)
        Overrides:
        open in class org.apache.kafka.connect.sink.SinkTask
      • close

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

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

        public void flush​(java.util.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 java.util.Map<org.apache.kafka.common.TopicPartition,​org.apache.kafka.clients.consumer.OffsetAndMetadata> preCommit​(java.util.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