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

Method Partition

partitioner.go:16–16  ·  view source on GitHub ↗

Partition takes a message and partition count and chooses a partition

(message *ProducerMessage, numPartitions int32)

Source from the content-addressed store, hash-verified

14type Partitioner interface {
15 // Partition takes a message and partition count and chooses a partition
16 Partition(message *ProducerMessage, numPartitions int32) (int32, error)
17
18 // RequiresConsistency indicates to the user of the partitioner whether the
19 // mapping of key->partition is consistent or not. Specifically, if a

Implementers 6

manualPartitionerpartitioner.go
randomPartitionerpartitioner.go
roundRobinPartitionerpartitioner.go
hashPartitionerpartitioner.go
murmur2Partitionerpartitioner.go
brokePartitionermocks/async_producer_test.go

Calls

no outgoing calls