public class ExecSorterByConnectionCount extends Object implements IExecSorter
| Modifier and Type | Field and Description |
|---|---|
protected TopologyDetails |
topologyDetails |
| Constructor and Description |
|---|
ExecSorterByConnectionCount(TopologyDetails topologyDetails) |
| Modifier and Type | Method and Description |
|---|---|
List<ExecutorDetails> |
sortExecutors(Set<ExecutorDetails> unassignedExecutors)
Order executors based on how many in and out connections it will potentially need to make, in descending order.
|
protected TopologyDetails topologyDetails
public ExecSorterByConnectionCount(TopologyDetails topologyDetails)
public List<ExecutorDetails> sortExecutors(Set<ExecutorDetails> unassignedExecutors)
sortExecutors in interface IExecSorterunassignedExecutors - an unmodifiable set of executors that need to be scheduled.Copyright © 2023 The Apache Software Foundation. All rights reserved.