| Constructor and Description |
|---|
FSDownload(FileContext files,
UserGroupInformation ugi,
Configuration conf,
Path destDirPath,
LocalResource resource) |
FSDownload(FileContext files,
UserGroupInformation ugi,
Configuration conf,
Path destDirPath,
LocalResource resource,
com.google.common.cache.LoadingCache<Path,Future<FileStatus>> statCache) |
| Modifier and Type | Method and Description |
|---|---|
Path |
call() |
static com.google.common.cache.CacheLoader<Path,Future<FileStatus>> |
createStatusCacheLoader(Configuration conf)
Creates the cache loader for the status loading cache.
|
static boolean |
isPublic(FileSystem fs,
Path current,
FileStatus sStat,
com.google.common.cache.LoadingCache<Path,Future<FileStatus>> statCache)
Returns a boolean to denote whether a cache file is visible to all (public)
or not
|
public FSDownload(FileContext files, UserGroupInformation ugi, Configuration conf, Path destDirPath, LocalResource resource)
public FSDownload(FileContext files, UserGroupInformation ugi, Configuration conf, Path destDirPath, LocalResource resource, com.google.common.cache.LoadingCache<Path,Future<FileStatus>> statCache)
public static com.google.common.cache.CacheLoader<Path,Future<FileStatus>> createStatusCacheLoader(Configuration conf)
@InterfaceAudience.Private public static boolean isPublic(FileSystem fs, Path current, FileStatus sStat, com.google.common.cache.LoadingCache<Path,Future<FileStatus>> statCache) throws IOException
IOExceptionCopyright © 2018 CERN. All Rights Reserved.