public LogKafkaSourceBuilder setPartitions(Set<TopicPartition> partitions) {
    ensureSubscriberIsNull("partitions");
    subscriber = KafkaSubscriber.getPartitionSetSubscriber(partitions);
    return this;
  }
Set a set of partitions to consume from.

@param partitions the set of partitions 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