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.
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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<KafkaTopicPartition> dropLeaderData(List<KafkaTopicPartitionLeader> partitionInfos) Deprecated.booleanDeprecated.intDeprecated.getTopic()Deprecated.inthashCode()Deprecated.toString()Deprecated.static StringtoString(List<KafkaTopicPartition> partitions) Deprecated.static StringtoString(Map<KafkaTopicPartition, Long> map) Deprecated.
-
Constructor Details
-
KafkaTopicPartition
Deprecated.
-
-
Method Details
-
getTopic
Deprecated. -
getPartition
public int getPartition()Deprecated. -
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
toString
Deprecated. -
dropLeaderData
public static List<KafkaTopicPartition> dropLeaderData(List<KafkaTopicPartitionLeader> partitionInfos) Deprecated.
-
FlinkKafkaProduceris removed. Replace withTopicPartition.