MCPcopy
hub / github.com/segmentio/kafka-go / RecordBatch

Struct RecordBatch

protocol/record_batch.go:287–295  ·  view source on GitHub ↗

RecordBatch is an implementation of the RecordReader interface representing regular record batches (v2).

Source from the content-addressed store, hash-verified

285// RecordBatch is an implementation of the RecordReader interface representing
286// regular record batches (v2).
287type RecordBatch struct {
288 Attributes Attributes
289 PartitionLeaderEpoch int32
290 BaseOffset int64
291 ProducerID int64
292 ProducerEpoch int16
293 BaseSequence int32
294 Records RecordReader
295}
296
297func (r *RecordBatch) ReadRecord() (*Record, error) {
298 return r.Records.ReadRecord()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected