java.util.concurrent.Callable<org.apache.hadoop.fs.Path>@LimitedPrivate({"YARN","MapReduce"})
public class FSDownload
extends java.lang.Object
implements java.util.concurrent.Callable<org.apache.hadoop.fs.Path>
| Constructor | 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,java.util.concurrent.Future<org.apache.hadoop.fs.FileStatus>> statCache) |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.fs.Path |
call() |
|
static org.apache.hadoop.thirdparty.com.google.common.cache.CacheLoader<org.apache.hadoop.fs.Path,java.util.concurrent.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,java.util.concurrent.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,java.util.concurrent.Future<org.apache.hadoop.fs.FileStatus>> statCache)
public static org.apache.hadoop.thirdparty.com.google.common.cache.CacheLoader<org.apache.hadoop.fs.Path,java.util.concurrent.Future<org.apache.hadoop.fs.FileStatus>> createStatusCacheLoader(org.apache.hadoop.conf.Configuration conf)
conf - configuration.@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,java.util.concurrent.Future<org.apache.hadoop.fs.FileStatus>> statCache)
throws java.io.IOException
fs - fileSystem.current - current path.sStat - file status.statCache - stat cache.java.io.IOException - io error occur.public org.apache.hadoop.fs.Path call()
throws java.lang.Exception
call in interface java.util.concurrent.Callable<org.apache.hadoop.fs.Path>java.lang.ExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.