@Internal public final class TopicNameUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
distinctTopics(List<String> topics)
Merge the same topics into one topics.
|
static boolean |
isPartitioned(String topic) |
static String |
topicName(String topic)
Ensure the given topic name should be a topic without partition information.
|
static String |
topicNameWithNonPartition(String topic)
Get a non-partitioned topic name that does not belong to any partitioned topic.
|
static String |
topicNameWithPartition(String topic,
int partitionId)
Create a topic name with partition information.
|
public static String topicName(String topic)
public static String topicNameWithPartition(String topic, int partitionId)
public static String topicNameWithNonPartition(String topic)
public static boolean isPartitioned(String topic)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.