Class LogOffsetsFetcher


  • public class LogOffsetsFetcher
    extends Object
    • Constructor Detail

      • LogOffsetsFetcher

        public LogOffsetsFetcher()
    • Method Detail

      • fetchLogEndOffsetsFor

        public static <K,​V> Map<org.apache.kafka.common.TopicPartition,​Long> fetchLogEndOffsetsFor​(org.apache.kafka.clients.consumer.Consumer<K,​V> consumer,
                                                                                                               Collection<org.apache.kafka.common.TopicPartition> partitions)
      • fetchLogStartOffsetsFor

        public static <K,​V> Map<org.apache.kafka.common.TopicPartition,​Long> fetchLogStartOffsetsFor​(org.apache.kafka.clients.consumer.Consumer<K,​V> consumer,
                                                                                                                 Collection<org.apache.kafka.common.TopicPartition> partitions)