public interface UfsBlockLocationCache
| Modifier and Type | Interface and Description |
|---|---|
static class |
UfsBlockLocationCache.Factory
Factory class for
UfsBlockLocationCache. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
get(long blockId) |
java.util.List<java.lang.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.
|
java.util.List<java.lang.String> get(long blockId)
blockId - the block IDjava.util.List<java.lang.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 © 2020. All Rights Reserved.