search

Home  >  Q&A  >  body text

java - Kafka的consumer如何根据offset来确定读取哪个patition呢?

天蓬老师天蓬老师2767 days ago457

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-18 10:43:48

    The internal storage unit is map
    key is TopicPartition, which records topic and partition
    value is offset
    So there is no situation where only offset exists but the partition is not known

    reply
    0
  • Cancelreply