Package org.apache.iceberg.connect
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
stop()
version()
Methods inherited from class org.apache.kafka.connect.sink.SinkTask
initialize, onPartitionsAssigned, onPartitionsRevoked
-
Constructor Details
-
IcebergSinkTask
public IcebergSinkTask()
-
-
Method Details
-
version
-
start
- Specified by:
start
in interfaceorg.apache.kafka.connect.connector.Task
- Specified by:
start
in classorg.apache.kafka.connect.sink.SinkTask
-
open
- Overrides:
open
in classorg.apache.kafka.connect.sink.SinkTask
-
close
- Overrides:
close
in classorg.apache.kafka.connect.sink.SinkTask
-
put
- Specified by:
put
in classorg.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 classorg.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 classorg.apache.kafka.connect.sink.SinkTask
-
stop
public void stop()- Specified by:
stop
in interfaceorg.apache.kafka.connect.connector.Task
- Specified by:
stop
in classorg.apache.kafka.connect.sink.SinkTask
-