public interface UfsBlockLocationCache
Modifier and Type | Interface and Description |
---|---|
static class |
UfsBlockLocationCache.Factory
Factory class for
UfsBlockLocationCache . |
Modifier and Type | Method and Description |
---|---|
List<String> |
get(long blockId) |
List<String> |
get(long blockId,
AlluxioURI fileUri,
long offset)
If the locations exist in the cache, return them, otherwise, retrieves the block locations
from UFS, and caches the result.
|
void |
invalidate(long blockId)
Invalidates the UFS locations for the block.
|
List<String> get(long blockId)
blockId
- the block IDList<String> get(long blockId, AlluxioURI fileUri, long offset)
null
is returned and nothing is cached.blockId
- the block IDfileUri
- the URI of the file which contains the blockoffset
- the block's offset in the filevoid invalidate(long blockId)
blockId
- the block IDCopyright © 2023. All Rights Reserved.