public class BlockLocationUtils extends Object
Constructor and Description |
---|
BlockLocationUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
evictByWorkerId(long workerId)
Evict cache entries by worker id.
|
static Block.BlockLocation |
getCached(Block.BlockLocation blockLocation)
Get a shared grpc block location object.
|
static Block.BlockLocation |
getCached(long workerId,
String tierAlias,
String mediumType)
Get a shared grpc block location object.
|
static int |
getCachedBlockLocationSize()
Gets the cached block location size.
|
public static Block.BlockLocation getCached(long workerId, String tierAlias, String mediumType)
workerId
- the worker idtierAlias
- the tier aliasmediumType
- the medium typepublic static Block.BlockLocation getCached(Block.BlockLocation blockLocation)
blockLocation
- the block location to cachepublic static void evictByWorkerId(long workerId)
workerId
- the worker idpublic static int getCachedBlockLocationSize()
Copyright © 2023. All Rights Reserved.