Java org.apache.hadoop.fs FileContext fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.fs FileContext fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.fs FileContext.

The text is from its open source code.

Field

Utilutil

Method

FSDataOutputStreamcreate(final Path f, final EnumSet createFlag, Options.CreateOpts... opts)
Create or overwrite file on indicated path and returns an output stream for writing into the file.
booleandelete(final Path f, final boolean recursive)
Delete a file.
AbstractFileSystemgetDefaultFileSystem()
List>getDelegationTokens(Path p, String renewer)
Get delegation tokens for the file systems accessed for a given path.
FileContextgetFileContext(final AbstractFileSystem defaultFS)
Create a FileContext for specified file system using the default config.
FileContextgetFileContext(final URI defaultFsUri)
Create a FileContext for specified URI using the default config.
FileContextgetFileContext(final Configuration aConf)
Create a FileContext using the passed config.
FileContextgetFileContext(final AbstractFileSystem defFS, final Configuration aConf)
Create a FileContext with specified FS as default using the specified config.
FileContextgetFileContext(final URI defaultFsUri, final Configuration aConf)
Create a FileContext for specified default URI using the specified config.
FileContextgetFileContext()
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.
FileStatusgetFileStatus(final Path f)
Return a file status object that represents the path.
PathgetHomeDirectory()
Return the current user's home directory in this file system.
FileContextgetLocalFSFileContext()
FileContextgetLocalFSFileContext(final Configuration aConf)
RemoteIteratorlistStatus(final Path f)
List the statuses of the files/directories in the given path if the path is a directory.
PathmakeQualified(final Path path)
Make the path fully qualified if it is isn't.
voidmkdir(final Path dir, final FsPermission permission, final boolean createParent)
Make(create) a directory and all the non-existent parents.
FSDataInputStreamopen(final Path f)
Opens an FSDataInputStream at the indicated Path using default buffersize.
FSDataInputStreamopen(final Path f, final int bufferSize)
Opens an FSDataInputStream at the indicated Path.
voidrename(final Path src, final Path dst, final Options.Rename... options)
Renames Path src to Path dst
  • Fails if src is a file and dst is a directory.
PathresolvePath(final Path f)
Resolve the path following any symlinks or mount points
voidsetPermission(final Path f, final FsPermission permission)
Set permission of a path.
voidsetTimes(final Path f, final long mtime, final long atime)
Set access time of a file.