Constructor and Description |
---|
FSDownload(org.apache.hadoop.fs.FileContext files,
org.apache.hadoop.security.UserGroupInformation ugi,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path destDirPath,
org.apache.hadoop.yarn.api.records.LocalResource resource) |
FSDownload(org.apache.hadoop.fs.FileContext files,
org.apache.hadoop.security.UserGroupInformation ugi,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path destDirPath,
org.apache.hadoop.yarn.api.records.LocalResource resource,
org.apache.hadoop.thirdparty.com.google.common.cache.LoadingCache<org.apache.hadoop.fs.Path,Future<org.apache.hadoop.fs.FileStatus>> statCache) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.fs.Path |
call() |
static org.apache.hadoop.thirdparty.com.google.common.cache.CacheLoader<org.apache.hadoop.fs.Path,Future<org.apache.hadoop.fs.FileStatus>> |
createStatusCacheLoader(org.apache.hadoop.conf.Configuration conf)
Creates the cache loader for the status loading cache.
|
static boolean |
isPublic(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path current,
org.apache.hadoop.fs.FileStatus sStat,
org.apache.hadoop.thirdparty.com.google.common.cache.LoadingCache<org.apache.hadoop.fs.Path,Future<org.apache.hadoop.fs.FileStatus>> statCache)
Returns a boolean to denote whether a cache file is visible to all (public)
or not.
|
public FSDownload(org.apache.hadoop.fs.FileContext files, org.apache.hadoop.security.UserGroupInformation ugi, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path destDirPath, org.apache.hadoop.yarn.api.records.LocalResource resource)
public FSDownload(org.apache.hadoop.fs.FileContext files, org.apache.hadoop.security.UserGroupInformation ugi, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path destDirPath, org.apache.hadoop.yarn.api.records.LocalResource resource, org.apache.hadoop.thirdparty.com.google.common.cache.LoadingCache<org.apache.hadoop.fs.Path,Future<org.apache.hadoop.fs.FileStatus>> statCache)
public static org.apache.hadoop.thirdparty.com.google.common.cache.CacheLoader<org.apache.hadoop.fs.Path,Future<org.apache.hadoop.fs.FileStatus>> createStatusCacheLoader(org.apache.hadoop.conf.Configuration conf)
conf
- configuration.@InterfaceAudience.Private public static boolean isPublic(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path current, org.apache.hadoop.fs.FileStatus sStat, org.apache.hadoop.thirdparty.com.google.common.cache.LoadingCache<org.apache.hadoop.fs.Path,Future<org.apache.hadoop.fs.FileStatus>> statCache) throws IOException
fs
- fileSystem.current
- current path.sStat
- file status.statCache
- stat cache.IOException
- io error occur.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.