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.
|
static void |
loadBlock(FileSystem fs,
FileSystemContext context,
String path,
long blockId)
Loads a block into the local worker.
|
public static BlockWorkerInfo getWorkerWithMostBlocks(List<BlockWorkerInfo> workers, List<FileBlockInfo> fileBlockInfos)
workers
- a list of workers to considerfileBlockInfos
- a list of file block informationpublic static void loadBlock(FileSystem fs, FileSystemContext context, String path, long blockId) throws AlluxioException, IOException
fs
- the filesystemcontext
- filesystem contextpath
- the file path of the block to loadblockId
- the id of the block to loadAlluxioException
IOException
Copyright © 2023. All Rights Reserved.