public class RoundRobinManualPartitioner extends Object implements ManualPartitioner
| Constructor and Description |
|---|
RoundRobinManualPartitioner() |
| Modifier and Type | Method and Description |
|---|---|
Set<org.apache.kafka.common.TopicPartition> |
getPartitionsForThisTask(List<org.apache.kafka.common.TopicPartition> allPartitionsSorted,
TopologyContext context)
Filter the list of all partitions handled by this set of spouts to get only the partitions assigned to this task.
|
public Set<org.apache.kafka.common.TopicPartition> getPartitionsForThisTask(List<org.apache.kafka.common.TopicPartition> allPartitionsSorted, TopologyContext context)
ManualPartitionergetPartitionsForThisTask in interface ManualPartitionerallPartitionsSorted - all of the partitions that the set of spouts want to subscribe to
in a strict ordering that is consistent across taskscontext - the context of the topologyCopyright © 2023 The Apache Software Foundation. All rights reserved.