An empty CommittableOffsetBatch which does not include any
offsets and commit
will not commit offsets.
An empty CommittableOffsetBatch which does not include any
offsets and commit
will not commit offsets. This can be used
together with updated
to create a batch from some offsets.
Creates a CommittableOffsetBatch from some CommittableOffsets,
where the containing type has a Foldable
instance.
Creates a CommittableOffsetBatch from some CommittableOffsets,
where the containing type has a Foldable
instance. Guaranteed to be
equivalent to the following, but implemented more efficiently.
offsets.foldLeft(CommittableOffsetBatch.empty[F])(_ updated _)
Note that just like for updated
, offsets
have to be in order
per topic-partition.
Creates a CommittableOffsetBatch from some CommittableOffsets wrapped
in Option
, where the containing type has a Foldable
instance.
Creates a CommittableOffsetBatch from some CommittableOffsets wrapped
in Option
, where the containing type has a Foldable
instance. Guaranteed
to be equivalent to the following, but implemented more efficiently.
offsets.foldLeft(CommittableOffsetBatch.empty[F]) { case (batch, Some(offset)) => batch.updated(offset) case (batch, None) => batch }
Note that just like for updated
, offsets
have to be in order
per topic-partition.