Class KafkaTopicPartition
- java.lang.Object
-
- org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartition
-
- All Implemented Interfaces:
Serializable
@PublicEvolving @Deprecated public final class KafkaTopicPartition extends Object implements Serializable
Deprecated.Will be turned into internal class whenFlinkKafkaProduceris removed. Replace withTopicPartition.Flink's description of a partition in a Kafka topic. Serializable, and common across all Kafka consumer subclasses (0.8, 0.9, ...)Note: This class must not change in its structure, because it would change the serialization format and make previous savepoints unreadable.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKafkaTopicPartition.ComparatorDeprecated.AComparatorforKafkaTopicPartitions.
-
Constructor Summary
Constructors Constructor Description KafkaTopicPartition(String topic, int partition)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static List<KafkaTopicPartition>dropLeaderData(List<KafkaTopicPartitionLeader> partitionInfos)Deprecated.booleanequals(Object o)Deprecated.intgetPartition()Deprecated.StringgetTopic()Deprecated.inthashCode()Deprecated.StringtoString()Deprecated.static StringtoString(List<KafkaTopicPartition> partitions)Deprecated.static StringtoString(Map<KafkaTopicPartition,Long> map)Deprecated.
-
-
-
Constructor Detail
-
KafkaTopicPartition
public KafkaTopicPartition(String topic, int partition)
Deprecated.
-
-
Method Detail
-
getTopic
public String getTopic()
Deprecated.
-
getPartition
public int getPartition()
Deprecated.
-
toString
public static String toString(Map<KafkaTopicPartition,Long> map)
Deprecated.
-
toString
public static String toString(List<KafkaTopicPartition> partitions)
Deprecated.
-
dropLeaderData
public static List<KafkaTopicPartition> dropLeaderData(List<KafkaTopicPartitionLeader> partitionInfos)
Deprecated.
-
-