Class OffsetReader<P extends Partition,​O extends OffsetContext,​L extends OffsetContext.Loader<O>>

    • Field Detail

      • reader

        private final org.apache.kafka.connect.storage.OffsetStorageReader reader
    • Constructor Detail

      • OffsetReader

        public OffsetReader​(org.apache.kafka.connect.storage.OffsetStorageReader reader,
                            L loader)
    • Method Detail

      • offsets

        public Map<P,​O> offsets​(Set<P> partitions)
        Given the collection of connector-specific task partitions, returns their respective connector-specific offsets. If there is no offset stored for a given partition, the corresponding key will be mapped to a null.