public class PartitionExchange extends Object
Constructor and Description |
---|
PartitionExchange(Set<WorkerInfo> myDependencyWorkerSet,
Map<WorkerInfo,List<Integer>> sendWorkerPartitionMap)
Only constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doExchange()
Is this worker involved in a partition exchange? Receiving or sending?
|
Set<WorkerInfo> |
getMyDependencyWorkerSet()
Get the workers that I must wait for
|
Map<WorkerInfo,List<Integer>> |
getSendWorkerPartitionMap()
Get a mapping of worker to list of partition ids I need to send to.
|
public PartitionExchange(Set<WorkerInfo> myDependencyWorkerSet, Map<WorkerInfo,List<Integer>> sendWorkerPartitionMap)
myDependencyWorkerSet
- All the workers I must wait forsendWorkerPartitionMap
- Partitions I need to send to other workerspublic Set<WorkerInfo> getMyDependencyWorkerSet()
public Map<WorkerInfo,List<Integer>> getSendWorkerPartitionMap()
public boolean doExchange()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.