public final class JobUtils extends Object
Modifier and Type | Method and Description |
---|---|
static BlockWorkerInfo |
getWorkerWithMostBlocks(List<BlockWorkerInfo> workers,
List<FileBlockInfo> fileBlockInfos)
Returns whichever specified worker stores the most blocks from the block info list.
|
public static BlockWorkerInfo getWorkerWithMostBlocks(List<BlockWorkerInfo> workers, List<FileBlockInfo> fileBlockInfos)
workers
- a list of workers to considerfileBlockInfos
- a list of file block informationCopyright © 2023. All Rights Reserved.