public LogKafkaSourceBuilder setTopicPattern(Pattern topicPattern) {
    ensureSubscriberIsNull("topic pattern");
    subscriber = KafkaSubscriber.getTopicPatternSubscriber(topicPattern);
    return this;
  }
Set a topic pattern to consume from use the java {@link Pattern}.

@param topicPattern the pattern of the topic name to consume from.
@return this LogKafkaSourceBuilder.
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/main/java/org/apache/amoro/flink/read/source/log/kafka/LogKafkaSourceBuilder.java