@Internal
public static interface KafkaRecordSerializationSchema.KafkaSinkContext
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getNumberOfParallelInstances() |
int |
getParallelInstanceId()
Get the ID of the subtask the KafkaSink is running on.
|
int[] |
getPartitionsForTopic(String topic)
For a given topic id retrieve the available partitions.
|
int getParallelInstanceId()
getNumberOfParallelInstances()int getNumberOfParallelInstances()
int[] getPartitionsForTopic(String topic)
After the first retrieval the returned partitions are cached. If the partitions are updated the job has to be restarted to make the change visible.
topic - kafka topic with partitionsCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.