Example usage for Java org.apache.hadoop.fs FileContext fields, constructors, methods, implement or subclass
The text is from its open source code.
Util | util |
FSDataOutputStream | create(final Path f, final EnumSet Create or overwrite file on indicated path and returns an output stream for writing into the file. |
boolean | delete(final Path f, final boolean recursive) Delete a file. |
AbstractFileSystem | getDefaultFileSystem() |
List | getDelegationTokens(Path p, String renewer) Get delegation tokens for the file systems accessed for a given path. |
FileContext | getFileContext(final AbstractFileSystem defaultFS) Create a FileContext for specified file system using the default config. |
FileContext | getFileContext(final URI defaultFsUri) Create a FileContext for specified URI using the default config. |
FileContext | getFileContext(final Configuration aConf) Create a FileContext using the passed config. |
FileContext | getFileContext(final AbstractFileSystem defFS, final Configuration aConf) Create a FileContext with specified FS as default using the specified config. |
FileContext | getFileContext(final URI defaultFsUri, final Configuration aConf) Create a FileContext for specified default URI using the specified config. |
FileContext | getFileContext() Create a FileContext using the default config read from the $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted from core-defaults.xml in the release jar. |
FileStatus | getFileStatus(final Path f) Return a file status object that represents the path. |
Path | getHomeDirectory() Return the current user's home directory in this file system. |
FileContext | getLocalFSFileContext() |
FileContext | getLocalFSFileContext(final Configuration aConf) |
RemoteIterator | listStatus(final Path f) List the statuses of the files/directories in the given path if the path is a directory. |
Path | makeQualified(final Path path) Make the path fully qualified if it is isn't. |
void | mkdir(final Path dir, final FsPermission permission, final boolean createParent) Make(create) a directory and all the non-existent parents. |
FSDataInputStream | open(final Path f) Opens an FSDataInputStream at the indicated Path using default buffersize. |
FSDataInputStream | open(final Path f, final int bufferSize) Opens an FSDataInputStream at the indicated Path. |
void | rename(final Path src, final Path dst, final Options.Rename... options) Renames Path src to Path dst
|
Path | resolvePath(final Path f) Resolve the path following any symlinks or mount points |
void | setPermission(final Path f, final FsPermission permission) Set permission of a path. |
void | setTimes(final Path f, final long mtime, final long atime) Set access time of a file. |