|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Path | |
---|---|
org.apache.hadoop.conf | Configuration of system parameters. |
org.apache.hadoop.dfs | A distributed implementation of FileSystem . |
org.apache.hadoop.filecache | |
org.apache.hadoop.fs | An abstract file system API. |
org.apache.hadoop.fs.kfs | A client for the Kosmos filesystem (KFS) |
org.apache.hadoop.fs.s3 | A distributed implementation of FileSystem that uses Amazon S3. |
org.apache.hadoop.hbase | Provides Hbase, the Hadoop simple database. |
org.apache.hadoop.hbase.util | |
org.apache.hadoop.io | Generic i/o code for use when reading and writing data to the network, to databases, and to files. |
org.apache.hadoop.io.compress | |
org.apache.hadoop.mapred | A software framework for easily writing applications which process vast amounts of data (multi-terabyte data-sets) parallelly on large clusters (thousands of nodes) built of commodity hardware in a reliable, fault-tolerant manner. |
org.apache.hadoop.mapred.join | Given a set of sorted datasets keyed with the same class and yielding equal partitions, it is possible to effect a join of those datasets prior to the map. |
org.apache.hadoop.util | Common utilities. |
Uses of Path in org.apache.hadoop.conf |
---|
Methods in org.apache.hadoop.conf that return Path | |
---|---|
Path |
Configuration.getLocalPath(String dirsProp,
String path)
Get a local file under a directory named by dirsProp with the given path. |
Methods in org.apache.hadoop.conf with parameters of type Path | |
---|---|
void |
Configuration.addResource(Path file)
Add a configuration resource. |
Uses of Path in org.apache.hadoop.dfs |
---|
Methods in org.apache.hadoop.dfs that return Path | |
---|---|
Path |
HftpFileSystem.getWorkingDirectory()
|
Path |
DistributedFileSystem.getWorkingDirectory()
|
Methods in org.apache.hadoop.dfs with parameters of type Path | |
---|---|
FSDataOutputStream |
HftpFileSystem.create(Path f,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
|
FSDataOutputStream |
DistributedFileSystem.create(Path f,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
|
boolean |
HftpFileSystem.delete(Path f)
|
boolean |
DistributedFileSystem.delete(Path f)
Get rid of Path f, whether a true file or dir. |
boolean |
HftpFileSystem.exists(Path f)
|
boolean |
DistributedFileSystem.exists(Path f)
|
long |
DistributedFileSystem.getContentLength(Path f)
|
long |
ChecksumDistributedFileSystem.getContentLength(Path f)
|
String[][] |
DistributedFileSystem.getFileCacheHints(Path f,
long start,
long len)
|
FileStatus |
HftpFileSystem.getFileStatus(Path f)
|
FileStatus |
DistributedFileSystem.getFileStatus(Path f)
Returns the stat information about the file. |
FileStatus |
ChecksumDistributedFileSystem.getFileStatus(Path f)
Returns the stat information about the file. |
FileStatus[] |
HftpFileSystem.listStatus(Path f)
|
FileStatus[] |
DistributedFileSystem.listStatus(Path p)
|
boolean |
HftpFileSystem.mkdirs(Path f,
FsPermission permission)
|
boolean |
DistributedFileSystem.mkdirs(Path f,
FsPermission permission)
|
FSDataInputStream |
HftpFileSystem.open(Path f,
int buffersize)
|
FSDataInputStream |
DistributedFileSystem.open(Path f,
int bufferSize)
|
boolean |
HftpFileSystem.rename(Path src,
Path dst)
|
boolean |
DistributedFileSystem.rename(Path src,
Path dst)
Rename files/dirs |
boolean |
DistributedFileSystem.reportChecksumFailure(Path f,
FSDataInputStream in,
long inPos,
FSDataInputStream sums,
long sumsPos)
We need to find the blocks that didn't match. |
boolean |
ChecksumDistributedFileSystem.reportChecksumFailure(Path f,
FSDataInputStream in,
long inPos,
FSDataInputStream sums,
long sumsPos)
We need to find the blocks that didn't match. |
void |
DistributedFileSystem.setOwner(Path p,
String username,
String groupname)
Set owner of a path (i.e. |
void |
DistributedFileSystem.setPermission(Path p,
FsPermission permission)
Set permission of a path. |
boolean |
DistributedFileSystem.setReplication(Path src,
short replication)
|
void |
HftpFileSystem.setWorkingDirectory(Path f)
|
void |
DistributedFileSystem.setWorkingDirectory(Path dir)
|
Uses of Path in org.apache.hadoop.filecache |
---|
Methods in org.apache.hadoop.filecache that return Path | |
---|---|
static Path[] |
DistributedCache.getArchiveClassPaths(Configuration conf)
Get the archive entries in classpath as an array of Path |
static Path[] |
DistributedCache.getFileClassPaths(Configuration conf)
Get the file entries in classpath as an array of Path |
static Path |
DistributedCache.getLocalCache(URI cache,
Configuration conf,
Path baseDir,
boolean isArchive,
long confFileStamp,
Path currentWorkDir)
Get the locally cached file or archive; it could either be previously cached (and valid) or copy it from the FileSystem now. |
static Path |
DistributedCache.getLocalCache(URI cache,
Configuration conf,
Path baseDir,
FileStatus fileStatus,
boolean isArchive,
long confFileStamp,
Path currentWorkDir)
Get the locally cached file or archive; it could either be previously cached (and valid) or copy it from the FileSystem now. |
static Path[] |
DistributedCache.getLocalCacheArchives(Configuration conf)
Return the path array of the localized caches |
static Path[] |
DistributedCache.getLocalCacheFiles(Configuration conf)
Return the path array of the localized files |
Methods in org.apache.hadoop.filecache with parameters of type Path | |
---|---|
static void |
DistributedCache.addArchiveToClassPath(Path archive,
Configuration conf)
Add an archive path to the current set of classpath entries. |
static void |
DistributedCache.addFileToClassPath(Path file,
Configuration conf)
Add an file path to the current set of classpath entries It adds the file to cache as well. |
static Path |
DistributedCache.getLocalCache(URI cache,
Configuration conf,
Path baseDir,
boolean isArchive,
long confFileStamp,
Path currentWorkDir)
Get the locally cached file or archive; it could either be previously cached (and valid) or copy it from the FileSystem now. |
static Path |
DistributedCache.getLocalCache(URI cache,
Configuration conf,
Path baseDir,
FileStatus fileStatus,
boolean isArchive,
long confFileStamp,
Path currentWorkDir)
Get the locally cached file or archive; it could either be previously cached (and valid) or copy it from the FileSystem now. |
Uses of Path in org.apache.hadoop.fs |
---|
Fields in org.apache.hadoop.fs declared as Path | |
---|---|
protected Path |
FSInputChecker.file
The file name from which data is read from |
Methods in org.apache.hadoop.fs that return Path | |
---|---|
Path |
ChecksumFileSystem.getChecksumFile(Path file)
Return the name of the checksum file associated with a file. |
Path |
FsShell.getCurrentTrashDir()
Returns the Trash object associated with this shell. |
Path[] |
InMemoryFileSystem.getFiles(PathFilter filter)
|
Path |
RawLocalFileSystem.getHomeDirectory()
|
Path |
FilterFileSystem.getHomeDirectory()
|
Path |
FileSystem.getHomeDirectory()
Return the current user's home directory in this filesystem. |
Path |
LocalDirAllocator.getLocalPathForWrite(String pathStr,
Configuration conf)
Get a path from the local FS. |
Path |
LocalDirAllocator.getLocalPathForWrite(String pathStr,
long size,
Configuration conf)
Get a path from the local FS. |
Path |
LocalDirAllocator.getLocalPathToRead(String pathStr,
Configuration conf)
Get a path from the local FS for reading. |
Path |
Path.getParent()
Returns the parent of a path or null if at root. |
Path |
FileStatus.getPath()
|
Path |
RawLocalFileSystem.getWorkingDirectory()
|
Path |
FilterFileSystem.getWorkingDirectory()
Get the current working directory for the given file system |
abstract Path |
FileSystem.getWorkingDirectory()
Get the current working directory for the given file system |
Path[] |
FileSystem.globPaths(Path filePattern)
Deprecated. |
Path[] |
FileSystem.globPaths(Path filePattern,
PathFilter filter)
Deprecated. |
Path[] |
ChecksumFileSystem.listPaths(Path f)
Filter raw files in the given path using the default checksum filter. |
Path[] |
FileSystem.listPaths(Path f)
Deprecated. |
Path[] |
ChecksumFileSystem.listPaths(Path[] files)
Filter raw files in the given pathes using the default checksum filter. |
Path[] |
FileSystem.listPaths(Path[] files)
Deprecated. |
Path[] |
FileSystem.listPaths(Path[] files,
PathFilter filter)
Deprecated. |
Path[] |
FileSystem.listPaths(Path f,
PathFilter filter)
Deprecated. |
Path |
Path.makeQualified(FileSystem fs)
Returns a qualified path object. |
Path |
FilterFileSystem.makeQualified(Path path)
Make sure that a path specifies a FileSystem. |
Path |
FileSystem.makeQualified(Path path)
Make sure that a path specifies a FileSystem. |
Path |
RawLocalFileSystem.startLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
|
Path |
FilterFileSystem.startLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
Returns a local File that the user can write output to. |
Path |
ChecksumFileSystem.startLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
|
Path |
FileSystem.startLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
Returns a local File that the user can write output to. |
static Path[] |
FileUtil.stat2Paths(FileStatus[] stats)
convert an array of FileStatus to an array of Path |
Path |
Path.suffix(String suffix)
Adds a suffix to the final name in the path. |
Methods in org.apache.hadoop.fs with parameters of type Path | |
---|---|
boolean |
PathFilter.accept(Path path)
Tests whether or not the specified abstract pathname should be included in a pathname list. |
protected void |
FilterFileSystem.checkPath(Path path)
Check that a Path belongs to this FileSystem. |
protected void |
FileSystem.checkPath(Path path)
Check that a Path belongs to this FileSystem. |
void |
RawLocalFileSystem.completeLocalOutput(Path fsWorkingFile,
Path tmpLocalFile)
|
void |
FilterFileSystem.completeLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
Called when we're all done writing to the target. |
void |
ChecksumFileSystem.completeLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
|
void |
FileSystem.completeLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
Called when we're all done writing to the target. |
static boolean |
FileUtil.copy(File src,
FileSystem dstFS,
Path dst,
boolean deleteSource,
Configuration conf)
Copy local files to a FileSystem. |
static boolean |
FileUtil.copy(FileSystem srcFS,
Path src,
File dst,
boolean deleteSource,
Configuration conf)
Copy FileSystem files to local files. |
static boolean |
FileUtil.copy(FileSystem srcFS,
Path src,
FileSystem dstFS,
Path dst,
boolean deleteSource,
boolean overwrite,
Configuration conf)
Copy files between FileSystems. |
static boolean |
FileUtil.copy(FileSystem srcFS,
Path src,
FileSystem dstFS,
Path dst,
boolean deleteSource,
Configuration conf)
Copy files between FileSystems. |
void |
FileSystem.copyFromLocalFile(boolean delSrc,
boolean overwrite,
Path src,
Path dst)
The src file is on the local disk. |
void |
FilterFileSystem.copyFromLocalFile(boolean delSrc,
Path src,
Path dst)
The src file is on the local disk. |
void |
ChecksumFileSystem.copyFromLocalFile(boolean delSrc,
Path src,
Path dst)
|
void |
LocalFileSystem.copyFromLocalFile(boolean delSrc,
Path src,
Path dst)
|
void |
FileSystem.copyFromLocalFile(boolean delSrc,
Path src,
Path dst)
The src file is on the local disk. |
void |
FileSystem.copyFromLocalFile(Path src,
Path dst)
The src file is on the local disk. |
static boolean |
FileUtil.copyMerge(FileSystem srcFS,
Path srcDir,
FileSystem dstFS,
Path dstFile,
boolean deleteSource,
Configuration conf,
String addString)
Copy all files in a directory to one output file (merge). |
void |
FilterFileSystem.copyToLocalFile(boolean delSrc,
Path src,
Path dst)
The src file is under FS, and the dst is on the local disk. |
void |
ChecksumFileSystem.copyToLocalFile(boolean delSrc,
Path src,
Path dst)
The src file is under FS, and the dst is on the local disk. |
void |
LocalFileSystem.copyToLocalFile(boolean delSrc,
Path src,
Path dst)
|
void |
FileSystem.copyToLocalFile(boolean delSrc,
Path src,
Path dst)
The src file is under FS, and the dst is on the local disk. |
void |
FileSystem.copyToLocalFile(Path src,
Path dst)
The src file is under FS, and the dst is on the local disk. |
void |
ChecksumFileSystem.copyToLocalFile(Path src,
Path dst,
boolean copyCrc)
The src file is under FS, and the dst is on the local disk. |
static FSDataOutputStream |
FileSystem.create(FileSystem fs,
Path file,
FsPermission permission)
create a file with the provided permission The permission of the file is set to be the provided permission as in setPermission, not permission&~umask It is implemented using two RPCs. |
FSDataOutputStream |
FileSystem.create(Path f)
Opens an FSDataOutputStream at the indicated Path. |
FSDataOutputStream |
FileSystem.create(Path f,
boolean overwrite)
Opens an FSDataOutputStream at the indicated Path. |
FSDataOutputStream |
FileSystem.create(Path f,
boolean overwrite,
int bufferSize)
Opens an FSDataOutputStream at the indicated Path. |
FSDataOutputStream |
FileSystem.create(Path f,
boolean overwrite,
int bufferSize,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress reporting. |
FSDataOutputStream |
FileSystem.create(Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize)
Opens an FSDataOutputStream at the indicated Path. |
FSDataOutputStream |
RawLocalFileSystem.create(Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
|
FSDataOutputStream |
ChecksumFileSystem.create(Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress reporting. |
FSDataOutputStream |
FileSystem.create(Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress reporting. |
FSDataOutputStream |
RawLocalFileSystem.create(Path f,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress reporting. |
FSDataOutputStream |
FilterFileSystem.create(Path f,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress reporting. |
abstract FSDataOutputStream |
FileSystem.create(Path f,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress reporting. |
FSDataOutputStream |
FileSystem.create(Path f,
Progressable progress)
Create an FSDataOutputStream at the indicated Path with write-progress reporting. |
FSDataOutputStream |
FileSystem.create(Path f,
short replication)
Opens an FSDataOutputStream at the indicated Path. |
FSDataOutputStream |
FileSystem.create(Path f,
short replication,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress reporting. |
boolean |
FileSystem.createNewFile(Path f)
Creates the given Path as a brand-new zero-length file. |
boolean |
RawLocalFileSystem.delete(Path p)
|
boolean |
FilterFileSystem.delete(Path f)
Delete a file |
boolean |
ChecksumFileSystem.delete(Path f)
Get rid of Path f, whether a true file or dir. |
abstract boolean |
FileSystem.delete(Path f)
Delete a file |
boolean |
RawLocalFileSystem.exists(Path f)
|
boolean |
FilterFileSystem.exists(Path f)
Check if exists. |
abstract boolean |
FileSystem.exists(Path f)
Check if exists. |
static void |
FileUtil.fullyDelete(FileSystem fs,
Path dir)
Recursively delete a directory. |
long |
FileSystem.getBlockSize(Path f)
Deprecated. Use getFileStatus() instead |
Path |
ChecksumFileSystem.getChecksumFile(Path file)
Return the name of the checksum file associated with a file. |
long |
ChecksumFileSystem.getChecksumFileLength(Path file,
long fileSize)
Return the length of the checksum file given the size of the actual file. |
long |
FileSystem.getContentLength(Path f)
Return the number of bytes of the given path If f is a file, return the size of the file; If f is a directory, return the size of the directory tree |
String[][] |
FilterFileSystem.getFileCacheHints(Path f,
long start,
long len)
Return a 2D array of size 1x1 or greater, containing hostnames where portions of the given file can be found. |
String[][] |
FileSystem.getFileCacheHints(Path f,
long start,
long len)
Return a 2D array of size 1x1 or greater, containing hostnames where portions of the given file can be found. |
FileStatus |
RawLocalFileSystem.getFileStatus(Path f)
|
FileStatus |
FilterFileSystem.getFileStatus(Path f)
Get file status. |
abstract FileStatus |
FileSystem.getFileStatus(Path f)
Return a file status object that represents the path. |
long |
FileSystem.getLength(Path f)
Deprecated. Use getFileStatus() instead |
short |
FileSystem.getReplication(Path src)
Deprecated. Use getFileStatus() instead |
Path[] |
FileSystem.globPaths(Path filePattern)
Deprecated. |
Path[] |
FileSystem.globPaths(Path filePattern,
PathFilter filter)
Deprecated. |
FileStatus[] |
FileSystem.globStatus(Path pathPattern)
Return all the files that match filePattern and are not checksum files. |
FileStatus[] |
FileSystem.globStatus(Path pathPattern,
PathFilter filter)
Return an array of FileStatus objects whose path names match pathPattern and is accepted by the user-supplied path filter. |
static boolean |
ChecksumFileSystem.isChecksumFile(Path file)
Return true iff file is a checksum file name. |
boolean |
FileSystem.isDirectory(Path f)
Deprecated. Use getFileStatus() instead |
boolean |
FileSystem.isFile(Path f)
True iff the named path is a regular file. |
Path[] |
ChecksumFileSystem.listPaths(Path f)
Filter raw files in the given path using the default checksum filter. |
Path[] |
FileSystem.listPaths(Path f)
Deprecated. |
Path[] |
ChecksumFileSystem.listPaths(Path[] files)
Filter raw files in the given pathes using the default checksum filter. |
Path[] |
FileSystem.listPaths(Path[] files)
Deprecated. |
Path[] |
FileSystem.listPaths(Path[] files,
PathFilter filter)
Deprecated. |
Path[] |
FileSystem.listPaths(Path f,
PathFilter filter)
Deprecated. |
FileStatus[] |
RawLocalFileSystem.listStatus(Path f)
|
FileStatus[] |
FilterFileSystem.listStatus(Path f)
List files in a directory. |
abstract FileStatus[] |
FileSystem.listStatus(Path f)
List the statuses of the files/directories in the given path if the path is a directory. |
FileStatus[] |
FileSystem.listStatus(Path f,
PathFilter filter)
Filter files/directories in the given path using the user-supplied path filter. |
void |
RawLocalFileSystem.lock(Path p,
boolean shared)
Deprecated. |
Path |
FilterFileSystem.makeQualified(Path path)
Make sure that a path specifies a FileSystem. |
Path |
FileSystem.makeQualified(Path path)
Make sure that a path specifies a FileSystem. |
static boolean |
FileSystem.mkdirs(FileSystem fs,
Path dir,
FsPermission permission)
create a directory with the provided permission The permission of the directory is set to be the provided permission as in setPermission, not permission&~umask |
boolean |
RawLocalFileSystem.mkdirs(Path f)
Creates the specified directory hierarchy. |
boolean |
ChecksumFileSystem.mkdirs(Path f)
|
boolean |
FileSystem.mkdirs(Path f)
Call FileSystem.mkdirs(Path, FsPermission) with default permission. |
boolean |
RawLocalFileSystem.mkdirs(Path f,
FsPermission permission)
Make the given file and all non-existent parents into directories. |
boolean |
FilterFileSystem.mkdirs(Path f,
FsPermission permission)
Make the given file and all non-existent parents into directories. |
abstract boolean |
FileSystem.mkdirs(Path f,
FsPermission permission)
Make the given file and all non-existent parents into directories. |
void |
RawLocalFileSystem.moveFromLocalFile(Path src,
Path dst)
|
void |
FileSystem.moveFromLocalFile(Path src,
Path dst)
The src file is on the local disk. |
void |
FileSystem.moveToLocalFile(Path src,
Path dst)
The src file is under FS, and the dst is on the local disk. |
boolean |
Trash.moveToTrash(Path path)
Move a file or directory to the current trash directory. |
FSDataInputStream |
FileSystem.open(Path f)
Opens an FSDataInputStream at the indicated Path. |
FSDataInputStream |
RawLocalFileSystem.open(Path f,
int bufferSize)
|
FSDataInputStream |
FilterFileSystem.open(Path f,
int bufferSize)
Opens an FSDataInputStream at the indicated Path. |
FSDataInputStream |
ChecksumFileSystem.open(Path f,
int bufferSize)
Opens an FSDataInputStream at the indicated Path. |
abstract FSDataInputStream |
FileSystem.open(Path f,
int bufferSize)
Opens an FSDataInputStream at the indicated Path. |
File |
RawLocalFileSystem.pathToFile(Path path)
Convert a path to a File. |
File |
LocalFileSystem.pathToFile(Path path)
Convert a path to a File. |
void |
RawLocalFileSystem.release(Path p)
Deprecated. |
boolean |
RawLocalFileSystem.rename(Path src,
Path dst)
|
boolean |
FilterFileSystem.rename(Path src,
Path dst)
Renames Path src to Path dst. |
boolean |
ChecksumFileSystem.rename(Path src,
Path dst)
Rename files/dirs |
abstract boolean |
FileSystem.rename(Path src,
Path dst)
Renames Path src to Path dst. |
boolean |
ChecksumFileSystem.reportChecksumFailure(Path f,
FSDataInputStream in,
long inPos,
FSDataInputStream sums,
long sumsPos)
Report a checksum error to the file system. |
boolean |
LocalFileSystem.reportChecksumFailure(Path p,
FSDataInputStream in,
long inPos,
FSDataInputStream sums,
long sumsPos)
Moves files to a bad file directory on the same device, so that their storage will not be reused. |
boolean |
InMemoryFileSystem.reserveSpaceWithCheckSum(Path f,
long size)
Register a file with its size. |
void |
RawLocalFileSystem.setOwner(Path p,
String username,
String groupname)
Use the command chown to set owner. |
void |
FilterFileSystem.setOwner(Path p,
String username,
String groupname)
Set owner of a path (i.e. |
void |
FileSystem.setOwner(Path p,
String username,
String groupname)
Set owner of a path (i.e. |
void |
RawLocalFileSystem.setPermission(Path p,
FsPermission permission)
Use the command chmod to set permission. |
void |
FilterFileSystem.setPermission(Path p,
FsPermission permission)
Set permission of a path. |
void |
FileSystem.setPermission(Path p,
FsPermission permission)
Set permission of a path. |
boolean |
FilterFileSystem.setReplication(Path src,
short replication)
Set replication for an existing file. |
boolean |
ChecksumFileSystem.setReplication(Path src,
short replication)
Set replication for an existing file. |
boolean |
FileSystem.setReplication(Path src,
short replication)
Set replication for an existing file. |
void |
RawLocalFileSystem.setWorkingDirectory(Path newDir)
Set the working directory to the given directory. |
void |
FilterFileSystem.setWorkingDirectory(Path newDir)
Set the current working directory for the given file system. |
abstract void |
FileSystem.setWorkingDirectory(Path new_dir)
Set the current working directory for the given file system. |
Path |
RawLocalFileSystem.startLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
|
Path |
FilterFileSystem.startLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
Returns a local File that the user can write output to. |
Path |
ChecksumFileSystem.startLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
|
Path |
FileSystem.startLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
Returns a local File that the user can write output to. |
Constructors in org.apache.hadoop.fs with parameters of type Path | |
---|---|
FileStatus(long length,
boolean isdir,
int block_replication,
long blocksize,
long modification_time,
FsPermission permission,
String owner,
String group,
Path path)
|
|
FileStatus(long length,
boolean isdir,
int block_replication,
long blocksize,
long modification_time,
Path path)
|
|
FSInputChecker(Path file,
int numOfRetries)
Constructor |
|
FSInputChecker(Path file,
int numOfRetries,
Checksum sum,
int chunkSize,
int checksumSize)
Constructor |
|
Path(Path parent,
Path child)
Resolve a child path against a parent path. |
|
Path(Path parent,
String child)
Resolve a child path against a parent path. |
|
Path(String parent,
Path child)
Resolve a child path against a parent path. |
Uses of Path in org.apache.hadoop.fs.kfs |
---|
Methods in org.apache.hadoop.fs.kfs that return Path | |
---|---|
Path |
KosmosFileSystem.getWorkingDirectory()
|
Path[] |
KosmosFileSystem.listPaths(Path path)
|
Path |
KosmosFileSystem.startLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
|
Methods in org.apache.hadoop.fs.kfs with parameters of type Path | |
---|---|
void |
KosmosFileSystem.completeLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
|
void |
KosmosFileSystem.copyFromLocalFile(boolean delSrc,
Path src,
Path dst)
|
void |
KosmosFileSystem.copyToLocalFile(boolean delSrc,
Path src,
Path dst)
|
FSDataOutputStream |
KosmosFileSystem.create(Path file,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
|
boolean |
KosmosFileSystem.delete(Path path)
|
boolean |
KosmosFileSystem.exists(Path path)
|
long |
KosmosFileSystem.getContentLength(Path path)
|
String[][] |
KosmosFileSystem.getFileCacheHints(Path f,
long start,
long len)
Return null if the file doesn't exist; otherwise, get the locations of the various chunks of the file file from KFS. |
FileStatus |
KosmosFileSystem.getFileStatus(Path path)
|
long |
KosmosFileSystem.getLength(Path path)
Deprecated. |
short |
KosmosFileSystem.getReplication(Path path)
Deprecated. |
boolean |
KosmosFileSystem.isDirectory(Path path)
Deprecated. |
boolean |
KosmosFileSystem.isFile(Path path)
Deprecated. |
Path[] |
KosmosFileSystem.listPaths(Path path)
|
FileStatus[] |
KosmosFileSystem.listStatus(Path path)
|
void |
KosmosFileSystem.lock(Path path,
boolean shared)
Deprecated. |
boolean |
KosmosFileSystem.mkdirs(Path path,
FsPermission permission)
|
FSDataInputStream |
KosmosFileSystem.open(Path path,
int bufferSize)
|
void |
KosmosFileSystem.release(Path path)
Deprecated. |
boolean |
KosmosFileSystem.rename(Path src,
Path dst)
|
boolean |
KosmosFileSystem.setReplication(Path path,
short replication)
|
void |
KosmosFileSystem.setWorkingDirectory(Path dir)
|
Path |
KosmosFileSystem.startLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
|
Uses of Path in org.apache.hadoop.fs.s3 |
---|
Methods in org.apache.hadoop.fs.s3 that return Path | |
---|---|
Path |
S3FileSystem.getWorkingDirectory()
|
Methods in org.apache.hadoop.fs.s3 that return types with arguments of type Path | |
---|---|
Set<Path> |
FileSystemStore.listDeepSubPaths(Path path)
|
Set<Path> |
FileSystemStore.listSubPaths(Path path)
|
Methods in org.apache.hadoop.fs.s3 with parameters of type Path | |
---|---|
FSDataOutputStream |
S3FileSystem.create(Path file,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
|
boolean |
S3FileSystem.delete(Path path)
|
void |
FileSystemStore.deleteINode(Path path)
|
boolean |
S3FileSystem.exists(Path path)
|
FileStatus |
S3FileSystem.getFileStatus(Path f)
FileStatus for S3 file systems. |
boolean |
FileSystemStore.inodeExists(Path path)
|
boolean |
S3FileSystem.isFile(Path path)
|
Set<Path> |
FileSystemStore.listDeepSubPaths(Path path)
|
FileStatus[] |
S3FileSystem.listStatus(Path f)
|
Set<Path> |
FileSystemStore.listSubPaths(Path path)
|
boolean |
S3FileSystem.mkdirs(Path path,
FsPermission permission)
|
FSDataInputStream |
S3FileSystem.open(Path path,
int bufferSize)
|
boolean |
S3FileSystem.rename(Path src,
Path dst)
|
INode |
FileSystemStore.retrieveINode(Path path)
|
void |
S3FileSystem.setWorkingDirectory(Path dir)
|
void |
FileSystemStore.storeINode(Path path,
INode inode)
|
Uses of Path in org.apache.hadoop.hbase |
---|
Methods in org.apache.hadoop.hbase that return Path | |
---|---|
static Path |
HRegion.getRegionDir(Path rootdir,
HRegionInfo info)
Computes the Path of the HRegion |
Path |
HMaster.getRootDir()
|
static Path |
HTableDescriptor.getTableDir(Path rootdir,
Text tableName)
|
Methods in org.apache.hadoop.hbase with parameters of type Path | |
---|---|
static Path |
HRegion.getRegionDir(Path rootdir,
HRegionInfo info)
Computes the Path of the HRegion |
static Path |
HTableDescriptor.getTableDir(Path rootdir,
Text tableName)
|
static boolean |
HStore.isReference(Path p)
|
Constructors in org.apache.hadoop.hbase with parameters of type Path | |
---|---|
HLog(FileSystem fs,
Path dir,
Configuration conf,
LogRollListener listener)
Create an edit log at the given dir location. |
|
HMaster(Path rootdir,
HServerAddress address,
HBaseConfiguration conf)
Build the HMaster |
|
HRegion(Path basedir,
HLog log,
FileSystem fs,
HBaseConfiguration conf,
HRegionInfo regionInfo,
Path initialFiles,
CacheFlushListener listener)
HRegion constructor. |
Uses of Path in org.apache.hadoop.hbase.util |
---|
Methods in org.apache.hadoop.hbase.util with parameters of type Path | |
---|---|
static boolean |
FSUtils.checkVersion(FileSystem fs,
Path rootdir)
Verifies current version of file system |
static void |
FSUtils.setVersion(FileSystem fs,
Path rootdir)
Sets version of file system |
Uses of Path in org.apache.hadoop.io |
---|
Methods in org.apache.hadoop.io with parameters of type Path | |
---|---|
SequenceFile.Writer |
SequenceFile.Sorter.cloneFileAttributes(Path inputFile,
Path outputFile,
Progressable prog)
Clones the attributes (like compression of the input file and creates a corresponding Writer |
static SequenceFile.Writer |
SequenceFile.createWriter(FileSystem fs,
Configuration conf,
Path name,
Class keyClass,
Class valClass)
Construct the preferred type of SequenceFile Writer. |
static SequenceFile.Writer |
SequenceFile.createWriter(FileSystem fs,
Configuration conf,
Path name,
Class keyClass,
Class valClass,
int bufferSize,
short replication,
long blockSize,
SequenceFile.CompressionType compressionType,
CompressionCodec codec,
Progressable progress,
SequenceFile.Metadata metadata)
Construct the preferred type of SequenceFile Writer. |
static SequenceFile.Writer |
SequenceFile.createWriter(FileSystem fs,
Configuration conf,
Path name,
Class keyClass,
Class valClass,
SequenceFile.CompressionType compressionType)
Construct the preferred type of SequenceFile Writer. |
static SequenceFile.Writer |
SequenceFile.createWriter(FileSystem fs,
Configuration conf,
Path name,
Class keyClass,
Class valClass,
SequenceFile.CompressionType compressionType,
CompressionCodec codec)
Construct the preferred type of SequenceFile Writer. |
static SequenceFile.Writer |
SequenceFile.createWriter(FileSystem fs,
Configuration conf,
Path name,
Class keyClass,
Class valClass,
SequenceFile.CompressionType compressionType,
CompressionCodec codec,
Progressable progress)
Construct the preferred type of SequenceFile Writer. |
static SequenceFile.Writer |
SequenceFile.createWriter(FileSystem fs,
Configuration conf,
Path name,
Class keyClass,
Class valClass,
SequenceFile.CompressionType compressionType,
CompressionCodec codec,
Progressable progress,
SequenceFile.Metadata metadata)
Construct the preferred type of SequenceFile Writer. |
static SequenceFile.Writer |
SequenceFile.createWriter(FileSystem fs,
Configuration conf,
Path name,
Class keyClass,
Class valClass,
SequenceFile.CompressionType compressionType,
Progressable progress)
Construct the preferred type of SequenceFile Writer. |
static long |
MapFile.fix(FileSystem fs,
Path dir,
Class keyClass,
Class valueClass,
boolean dryrun,
Configuration conf)
This method attempts to fix a corrupt MapFile by re-creating its index. |
SequenceFile.Sorter.RawKeyValueIterator |
SequenceFile.Sorter.merge(List<SequenceFile.Sorter.SegmentDescriptor> segments,
Path tmpDir)
Merges the list of segments of type SegmentDescriptor |
SequenceFile.Sorter.RawKeyValueIterator |
SequenceFile.Sorter.merge(Path[] inNames,
boolean deleteInputs,
int factor,
Path tmpDir)
Merges the contents of files passed in Path[] |
SequenceFile.Sorter.RawKeyValueIterator |
SequenceFile.Sorter.merge(Path[] inNames,
boolean deleteInputs,
int factor,
Path tmpDir)
Merges the contents of files passed in Path[] |
SequenceFile.Sorter.RawKeyValueIterator |
SequenceFile.Sorter.merge(Path[] inNames,
boolean deleteInputs,
Path tmpDir)
Merges the contents of files passed in Path[] using a max factor value that is already set |
SequenceFile.Sorter.RawKeyValueIterator |
SequenceFile.Sorter.merge(Path[] inNames,
boolean deleteInputs,
Path tmpDir)
Merges the contents of files passed in Path[] using a max factor value that is already set |
void |
SequenceFile.Sorter.merge(Path[] inFiles,
Path outFile)
Merge the provided files. |
void |
SequenceFile.Sorter.merge(Path[] inFiles,
Path outFile)
Merge the provided files. |
SequenceFile.Sorter.RawKeyValueIterator |
SequenceFile.Sorter.merge(Path[] inNames,
Path tempDir,
boolean deleteInputs)
Merges the contents of files passed in Path[] |
SequenceFile.Sorter.RawKeyValueIterator |
SequenceFile.Sorter.merge(Path[] inNames,
Path tempDir,
boolean deleteInputs)
Merges the contents of files passed in Path[] |
void |
SequenceFile.Sorter.sort(Path[] inFiles,
Path outFile,
boolean deleteInput)
Perform a file sort from a set of input files into an output file. |
void |
SequenceFile.Sorter.sort(Path[] inFiles,
Path outFile,
boolean deleteInput)
Perform a file sort from a set of input files into an output file. |
void |
SequenceFile.Sorter.sort(Path inFile,
Path outFile)
The backwards compatible interface to sort. |
SequenceFile.Sorter.RawKeyValueIterator |
SequenceFile.Sorter.sortAndIterate(Path[] inFiles,
Path tempDir,
boolean deleteInput)
Perform a file sort from a set of input files and return an iterator. |
SequenceFile.Sorter.RawKeyValueIterator |
SequenceFile.Sorter.sortAndIterate(Path[] inFiles,
Path tempDir,
boolean deleteInput)
Perform a file sort from a set of input files and return an iterator. |
Constructors in org.apache.hadoop.io with parameters of type Path | |
---|---|
SequenceFile.Reader(FileSystem fs,
Path file,
Configuration conf)
Open the named file. |
|
SequenceFile.Sorter.SegmentDescriptor(long segmentOffset,
long segmentLength,
Path segmentPathName)
Constructs a segment |
|
SequenceFile.Writer(FileSystem fs,
Configuration conf,
Path name,
Class keyClass,
Class valClass)
Create the named file. |
|
SequenceFile.Writer(FileSystem fs,
Configuration conf,
Path name,
Class keyClass,
Class valClass,
int bufferSize,
short replication,
long blockSize,
Progressable progress,
SequenceFile.Metadata metadata)
Create the named file with write-progress reporter. |
|
SequenceFile.Writer(FileSystem fs,
Configuration conf,
Path name,
Class keyClass,
Class valClass,
Progressable progress,
SequenceFile.Metadata metadata)
Create the named file with write-progress reporter. |
Uses of Path in org.apache.hadoop.io.compress |
---|
Methods in org.apache.hadoop.io.compress with parameters of type Path | |
---|---|
CompressionCodec |
CompressionCodecFactory.getCodec(Path file)
Find the relevant compression codec for the given file based on its filename suffix. |
Uses of Path in org.apache.hadoop.mapred |
---|
Methods in org.apache.hadoop.mapred that return Path | |
---|---|
Path[] |
JobConf.getInputPaths()
Get the list of input Path s for the map-reduce job. |
Path |
JobConf.getLocalPath(String pathString)
Constructs a local file name. |
Path |
JobConf.getOutputPath()
Get the Path to the output directory for the map-reduce job. |
Path |
FileSplit.getPath()
The file containing this split's data. |
Path |
MultiFileSplit.getPath(int i)
Returns the ith Path |
Path[] |
MultiFileSplit.getPaths()
Returns all the Paths in the split |
Path |
JobConf.getSystemDir()
Get the system directory where job-specific files are to be placed. |
Path |
JobConf.getWorkingDirectory()
Get the current working directory for the default file system. |
protected Path[] |
SequenceFileInputFormat.listPaths(JobConf job)
|
protected Path[] |
FileInputFormat.listPaths(JobConf job)
List input directories. |
Path |
PhasedFileSystem.startLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
Deprecated. |
Methods in org.apache.hadoop.mapred with parameters of type Path | |
---|---|
void |
PhasedFileSystem.abort(Path p)
Deprecated. Aborts a single file. |
void |
JobConf.addInputPath(Path dir)
Add a Path to the list of inputs for the map-reduce job. |
void |
PhasedFileSystem.commit(Path fPath)
Deprecated. Commits a single file file to its final locations as passed in create* methods. |
void |
PhasedFileSystem.completeLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
Deprecated. |
void |
PhasedFileSystem.copyFromLocalFile(boolean delSrc,
Path src,
Path dst)
Deprecated. |
void |
PhasedFileSystem.copyToLocalFile(boolean delSrc,
Path src,
Path dst)
Deprecated. |
FSDataOutputStream |
PhasedFileSystem.create(Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
Deprecated. |
boolean |
PhasedFileSystem.delete(Path f)
Deprecated. |
String[][] |
PhasedFileSystem.getFileCacheHints(Path f,
long start,
long len)
Deprecated. |
static SequenceFile.Reader[] |
SequenceFileOutputFormat.getReaders(Configuration conf,
Path dir)
Open the output generated by this format. |
static MapFile.Reader[] |
MapFileOutputFormat.getReaders(FileSystem ignored,
Path dir,
Configuration conf)
Open the output generated by this format. |
protected boolean |
TextInputFormat.isSplitable(FileSystem fs,
Path file)
|
protected boolean |
KeyValueTextInputFormat.isSplitable(FileSystem fs,
Path file)
|
protected boolean |
FileInputFormat.isSplitable(FileSystem fs,
Path filename)
Is the given filename splitable? Usually, true, but if the file is stream compressed, it will not be. |
boolean |
PhasedFileSystem.rename(Path src,
Path dst)
Deprecated. |
void |
JobConf.setInputPath(Path dir)
Set the Path of the input directory for the map-reduce job. |
void |
JobConf.setOutputPath(Path dir)
Set the Path of the output directory for the map-reduce job. |
boolean |
PhasedFileSystem.setReplication(Path src,
short replication)
Deprecated. |
void |
JobConf.setWorkingDirectory(Path dir)
Set the current working directory for the default file system. |
Path |
PhasedFileSystem.startLocalOutput(Path fsOutputFile,
Path tmpLocalFile)
Deprecated. |
Constructors in org.apache.hadoop.mapred with parameters of type Path | |
---|---|
FileSplit(Path file,
long start,
long length,
JobConf conf)
Constructs a split. |
|
JobConf(Path config)
Construct a map/reduce configuration. |
|
MultiFileSplit(JobConf job,
Path[] files,
long[] lengths)
|
Uses of Path in org.apache.hadoop.mapred.join |
---|
Methods in org.apache.hadoop.mapred.join with parameters of type Path | |
---|---|
static String |
CompositeInputFormat.compose(String op,
Class<? extends InputFormat> inf,
Path... path)
Convenience method for constructing composite formats. |
Uses of Path in org.apache.hadoop.util |
---|
Methods in org.apache.hadoop.util that return Path | |
---|---|
static Path |
CopyFiles.makeRelative(Path root,
Path absPath)
Make a path relative with respect to a root path. |
static Path[] |
StringUtils.stringToPath(String[] str)
|
Methods in org.apache.hadoop.util with parameters of type Path | |
---|---|
static void |
CopyFiles.copy(Configuration conf,
List<Path> srcPaths,
Path destPath,
Path logPath,
EnumSet<org.apache.hadoop.util.CopyFiles.cpOpts> flags)
Driver to copy srcPath to destPath depending on required protocol. |
static void |
CopyFiles.copy(Configuration conf,
String srcPath,
String destPath,
Path logPath,
boolean srcAsList,
boolean ignoreReadFailures)
Deprecated. |
static Path |
CopyFiles.makeRelative(Path root,
Path absPath)
Make a path relative with respect to a root path. |
Method parameters in org.apache.hadoop.util with type arguments of type Path | |
---|---|
static void |
CopyFiles.copy(Configuration conf,
List<Path> srcPaths,
Path destPath,
Path logPath,
EnumSet<org.apache.hadoop.util.CopyFiles.cpOpts> flags)
Driver to copy srcPath to destPath depending on required protocol. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |