Class KafkaPartitionSplitState
java.lang.Object
org.apache.flink.connector.kafka.source.split.KafkaPartitionSplit
org.apache.flink.connector.kafka.source.split.KafkaPartitionSplitState
- All Implemented Interfaces:
org.apache.flink.api.connector.source.SourceSplit
This class extends KafkaPartitionSplit to track a mutable current offset.
-
Field Summary
Fields inherited from class org.apache.flink.connector.kafka.source.split.KafkaPartitionSplit
COMMITTED_OFFSET, EARLIEST_OFFSET, LATEST_OFFSET, NO_STOPPING_OFFSET, VALID_STARTING_OFFSET_MARKERS, VALID_STOPPING_OFFSET_MARKERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongvoidsetCurrentOffset(long currentOffset) Use the current offset as the starting offset to create a new KafkaPartitionSplit.Methods inherited from class org.apache.flink.connector.kafka.source.split.KafkaPartitionSplit
equals, getPartition, getStartingOffset, getStoppingOffset, getTopic, getTopicPartition, hashCode, splitId, toSplitId, toString
-
Constructor Details
-
KafkaPartitionSplitState
-
-
Method Details
-
getCurrentOffset
public long getCurrentOffset() -
setCurrentOffset
public void setCurrentOffset(long currentOffset) -
toKafkaPartitionSplit
Use the current offset as the starting offset to create a new KafkaPartitionSplit.- Returns:
- a new KafkaPartitionSplit which uses the current offset as its starting offset.
-