Class KafkaTopicsDescriptor
- java.lang.Object
-
- org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicsDescriptor
-
- All Implemented Interfaces:
Serializable
@Internal public class KafkaTopicsDescriptor extends Object implements Serializable
A Kafka Topics Descriptor describes how the consumer subscribes to Kafka topics - either a fixed list of topics, or a topic pattern.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KafkaTopicsDescriptor(List<String> fixedTopics, Pattern topicPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getFixedTopics()booleanisFixedTopics()booleanisMatchingTopic(String topic)Check if the input topic matches the topics described by this KafkaTopicDescriptor.booleanisTopicPattern()StringtoString()
-
-
-
Method Detail
-
isFixedTopics
public boolean isFixedTopics()
-
isTopicPattern
public boolean isTopicPattern()
-
isMatchingTopic
public boolean isMatchingTopic(String topic)
Check if the input topic matches the topics described by this KafkaTopicDescriptor.- Returns:
- true if found a match.
-
-