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,
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 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,
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, com.google.common.cache.LoadingCache<org.apache.hadoop.fs.Path,Future<org.apache.hadoop.fs.FileStatus>> statCache)
public static com.google.common.cache.CacheLoader<org.apache.hadoop.fs.Path,Future<org.apache.hadoop.fs.FileStatus>> createStatusCacheLoader(org.apache.hadoop.conf.Configuration conf)
@InterfaceAudience.Private public static boolean isPublic(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path current, org.apache.hadoop.fs.FileStatus sStat, com.google.common.cache.LoadingCache<org.apache.hadoop.fs.Path,Future<org.apache.hadoop.fs.FileStatus>> statCache) throws IOException
IOException
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.