@Internal public class KafkaPartitionSplit extends Object implements SourceSplit
SourceSplit
for a Kafka partition.Modifier and Type | Field and Description |
---|---|
static long |
COMMITTED_OFFSET |
static long |
EARLIEST_OFFSET |
static long |
LATEST_OFFSET |
static long |
NO_STOPPING_OFFSET |
static Set<Long> |
VALID_STARTING_OFFSET_MARKERS |
static Set<Long> |
VALID_STOPPING_OFFSET_MARKERS |
Constructor and Description |
---|
KafkaPartitionSplit(org.apache.kafka.common.TopicPartition tp,
long startingOffset) |
KafkaPartitionSplit(org.apache.kafka.common.TopicPartition tp,
long startingOffset,
long stoppingOffset) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getPartition() |
long |
getStartingOffset() |
Optional<Long> |
getStoppingOffset() |
String |
getTopic() |
org.apache.kafka.common.TopicPartition |
getTopicPartition() |
int |
hashCode() |
String |
splitId()
Get the split id of this source split.
|
static String |
toSplitId(org.apache.kafka.common.TopicPartition tp) |
String |
toString() |
public static final long NO_STOPPING_OFFSET
public static final long LATEST_OFFSET
public static final long EARLIEST_OFFSET
public static final long COMMITTED_OFFSET
public KafkaPartitionSplit(org.apache.kafka.common.TopicPartition tp, long startingOffset)
public KafkaPartitionSplit(org.apache.kafka.common.TopicPartition tp, long startingOffset, long stoppingOffset)
public String getTopic()
public int getPartition()
public org.apache.kafka.common.TopicPartition getTopicPartition()
public long getStartingOffset()
public String splitId()
SourceSplit
splitId
in interface SourceSplit
public static String toSplitId(org.apache.kafka.common.TopicPartition tp)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.