protected abstract class FileContext.FSLinkResolver<T> extends Object
Modifier | Constructor and Description |
---|---|
protected |
FileContext.FSLinkResolver() |
Modifier and Type | Method and Description |
---|---|
abstract T |
next(AbstractFileSystem fs,
Path p)
Generic helper function overridden on instantiation to perform a
specific operation on the given file system using the given path
which may result in an UnresolvedLinkException.
|
T |
resolve(FileContext fc,
Path p)
Performs the operation specified by the next function, calling it
repeatedly until all symlinks in the given path are resolved.
|
protected FileContext.FSLinkResolver()
public abstract T next(AbstractFileSystem fs, Path p) throws IOException, org.apache.hadoop.fs.UnresolvedLinkException
fs
- AbstractFileSystem to perform the operation on.p
- Path given the file system.org.apache.hadoop.fs.UnresolvedLinkException
- If symbolic link path
could
not be resolvedIOException
- an I/O error occuredpublic T resolve(FileContext fc, Path p) throws IOException
fc
- FileContext used to access file systems.p
- The path to resolve symlinks in.IOException
Copyright © 2013 Apache Software Foundation. All Rights Reserved.