Attributes
- Companion
- class
- Source
- CommittableOffsetBatch.scala
- Graph
-
- Supertypes
- Self type
Members list
Value members
Concrete methods
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.
Attributes
- See also
- Source
- CommittableOffsetBatch.scala
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.
Attributes
- See also
- Source
- CommittableOffsetBatch.scala
Creates a CommittableOffsetBatch from a Foldable
containing A
s, by applying f
to each A
to get the CommittableOffset.
Creates a CommittableOffsetBatch from a Foldable
containing A
s, by applying f
to each A
to get the CommittableOffset. Guaranteed to be equivalent to the following, but implemented more efficiently.
ga.foldLeft(CommittableOffsetBatch.empty[F])(_ updated f(_))
Note that just like for updated
, offsets
have to be in order per topic-partition.
Attributes
- See also
- Source
- CommittableOffsetBatch.scala
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.
Attributes
- See also
- Source
- CommittableOffsetBatch.scala
Implicits
Implicits
Attributes
- Source
- CommittableOffsetBatch.scala