@PublicEvolving public final class KafkaTopicPartition extends Object implements Serializable
Note: This class must not change in its structure, because it would change the serialization format and make previous savepoints unreadable.
Modifier and Type | Class and Description |
---|---|
static class |
KafkaTopicPartition.Comparator
A
Comparator for KafkaTopicPartition s. |
Constructor and Description |
---|
KafkaTopicPartition(String topic,
int partition) |
Modifier and Type | Method and Description |
---|---|
static List<KafkaTopicPartition> |
dropLeaderData(List<KafkaTopicPartitionLeader> partitionInfos) |
boolean |
equals(Object o) |
int |
getPartition() |
String |
getTopic() |
int |
hashCode() |
String |
toString() |
static String |
toString(List<KafkaTopicPartition> partitions) |
static String |
toString(Map<KafkaTopicPartition,Long> map) |
public KafkaTopicPartition(String topic, int partition)
public String getTopic()
public int getPartition()
public static String toString(Map<KafkaTopicPartition,Long> map)
public static String toString(List<KafkaTopicPartition> partitions)
public static List<KafkaTopicPartition> dropLeaderData(List<KafkaTopicPartitionLeader> partitionInfos)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.