public class KeySharedSplitSchedulingStrategy extends Object implements SplitSchedulingStrategy
| Modifier and Type | Field and Description |
|---|---|
static KeySharedSplitSchedulingStrategy |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
addSplitsBack(Map<Integer,List<PulsarPartitionSplit>> pendingPartitionSplitAssignment,
List<PulsarPartitionSplit> splits,
int subtaskId,
int numReaders) |
int |
getIndexOfReader(int numReaders,
PulsarPartitionSplit split) |
public static final KeySharedSplitSchedulingStrategy INSTANCE
public int getIndexOfReader(int numReaders,
PulsarPartitionSplit split)
getIndexOfReader in interface SplitSchedulingStrategypublic void addSplitsBack(Map<Integer,List<PulsarPartitionSplit>> pendingPartitionSplitAssignment, List<PulsarPartitionSplit> splits, int subtaskId, int numReaders)
addSplitsBack in interface SplitSchedulingStrategyCopyright © 2019–2021 The Apache Software Foundation. All rights reserved.