MCPcopy
hub / github.com/IBM/sarama / AddBatch

Method AddBatch

produce_request.go:313–316  ·  view source on GitHub ↗
(topic string, partition int32, batch *RecordBatch)

Source from the content-addressed store, hash-verified

311}
312
313func (r *ProduceRequest) AddBatch(topic string, partition int32, batch *RecordBatch) {
314 r.ensureRecords(topic, partition)
315 r.records[topic][partition] = newDefaultRecords(batch)
316}

Callers 2

buildRequestMethod · 0.95
TestProduceRequestFunction · 0.80

Calls 2

ensureRecordsMethod · 0.95
newDefaultRecordsFunction · 0.85

Tested by 1

TestProduceRequestFunction · 0.64