Uses of Class
org.apache.hadoop.fs.Path

Packages that use Path
org.apache.hadoop.conf Configuration of system parameters. 
org.apache.hadoop.dfs A distributed implementation of FileSystem
org.apache.hadoop.fs An abstract file system API. 
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.mapred A system for scalable, fault-tolerant, distributed computation over large data collections. 
 

Uses of Path in org.apache.hadoop.conf
 

Methods in org.apache.hadoop.conf that return Path
 Path Configuration.getLocalPath(String dirsProp, String path)
          Returns a local file under a directory named in dirsProp with the given path.
 

Methods in org.apache.hadoop.conf with parameters of type Path
 void Configuration.addDefaultResource(Path file)
          Add a default resource.
 void Configuration.addFinalResource(Path file)
          Add a final resource.
 

Uses of Path in org.apache.hadoop.dfs
 

Methods in org.apache.hadoop.dfs that return Path
 Path DistributedFileSystem.getWorkingDirectory()
           
 Path[] DistributedFileSystem.listPathsRaw(Path f)
           
 Path DistributedFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile)
           
 

Methods in org.apache.hadoop.dfs with parameters of type Path
 long DistributedFileSystem.getBlockSize(Path f)
           
 void DistributedFileSystem.setWorkingDirectory(Path dir)
           
 String[][] DistributedFileSystem.getFileCacheHints(Path f, long start, long len)
           
 FSInputStream DistributedFileSystem.openRaw(Path f)
           
 FSOutputStream DistributedFileSystem.createRaw(Path f, boolean overwrite, short replication, long blockSize)
           
 boolean DistributedFileSystem.setReplicationRaw(Path src, short replication)
           
 boolean DistributedFileSystem.renameRaw(Path src, Path dst)
          Rename files/dirs
 boolean DistributedFileSystem.deleteRaw(Path f)
          Get rid of Path f, whether a true file or dir.
 boolean DistributedFileSystem.exists(Path f)
           
 boolean DistributedFileSystem.isDirectory(Path f)
           
 long DistributedFileSystem.getLength(Path f)
           
 short DistributedFileSystem.getReplication(Path f)
           
 Path[] DistributedFileSystem.listPathsRaw(Path f)
           
 boolean DistributedFileSystem.mkdirs(Path f)
           
 void DistributedFileSystem.lock(Path f, boolean shared)
           
 void DistributedFileSystem.release(Path f)
           
 void DistributedFileSystem.moveFromLocalFile(Path src, Path dst)
           
 void DistributedFileSystem.copyFromLocalFile(Path src, Path dst)
           
 void DistributedFileSystem.copyToLocalFile(Path src, Path dst)
           
 Path DistributedFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile)
           
 void DistributedFileSystem.completeLocalOutput(Path fsOutputFile, Path tmpLocalFile)
          Move completed local data to DFS destination
 void DistributedFileSystem.reportChecksumFailure(Path f, FSInputStream in, long start, long length, int crc)
           
 void DFSShell.setReplication(short newRep, Path src, boolean recursive)
          Set the replication for the path argument if it's a directory and recursive is true, set replication for all the subdirs and those files too
 

Uses of Path in org.apache.hadoop.fs
 

Methods in org.apache.hadoop.fs that return Path
 Path[] LocalFileSystem.listPathsRaw(Path f)
           
 Path LocalFileSystem.getWorkingDirectory()
           
 Path LocalFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile)
           
static Path FileSystem.getChecksumFile(Path file)
          Return the name of the checksum file associated with a file.
 Path[] FileSystem.listPaths(Path f)
          List files in a directory.
abstract  Path[] FileSystem.listPathsRaw(Path f)
          List files in a directory.
 Path[] FileSystem.listPaths(Path f, PathFilter filter)
          Filter files in a directory.
abstract  Path FileSystem.getWorkingDirectory()
          Get the current working directory for the given file system
abstract  Path FileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile)
          Returns a local File that the user can write output to.
 Path Path.getParent()
          Returns the parent of a path.
 Path Path.suffix(String suffix)
          Adds a suffix to a the final name in the path.
 

Methods in org.apache.hadoop.fs with parameters of type Path
 String[][] LocalFileSystem.getFileCacheHints(Path f, long start, long len)
          Return 1x1 'localhost' cell if the file exists.
 File LocalFileSystem.pathToFile(Path path)
          Convert a path to a File.
 FSInputStream LocalFileSystem.openRaw(Path f)
           
 FSOutputStream LocalFileSystem.createRaw(Path f, boolean overwrite, short replication, long blockSize)
           
 short LocalFileSystem.getReplication(Path f)
          Replication is not supported for the local file system.
 boolean LocalFileSystem.setReplicationRaw(Path src, short replication)
           
 boolean LocalFileSystem.renameRaw(Path src, Path dst)
           
 boolean LocalFileSystem.deleteRaw(Path p)
           
 boolean LocalFileSystem.exists(Path f)
           
 boolean LocalFileSystem.isDirectory(Path f)
           
 long LocalFileSystem.getLength(Path f)
           
 Path[] LocalFileSystem.listPathsRaw(Path f)
           
 boolean LocalFileSystem.mkdirs(Path f)
          Creates the specified directory hierarchy.
 void LocalFileSystem.setWorkingDirectory(Path newDir)
          Set the working directory to the given directory.
 void LocalFileSystem.lock(Path p, boolean shared)
           
 void LocalFileSystem.release(Path p)
           
 void LocalFileSystem.moveFromLocalFile(Path src, Path dst)
           
 void LocalFileSystem.copyFromLocalFile(Path src, Path dst)
           
 void LocalFileSystem.copyToLocalFile(Path src, Path dst)
           
 Path LocalFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile)
           
 void LocalFileSystem.completeLocalOutput(Path fsWorkingFile, Path tmpLocalFile)
           
 void LocalFileSystem.reportChecksumFailure(Path p, FSInputStream in, long start, long length, int crc)
          Moves files to a bad file directory on the same device, so that their storage will not be reused.
 long LocalFileSystem.getBlockSize(Path filename)
           
static boolean FileUtil.copy(FileSystem srcFS, Path src, FileSystem dstFS, Path dst, boolean deleteSource, Configuration conf)
          Copy files between FileSystems.
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.
 boolean PathFilter.accept(Path path)
          Tests whether or not the specified abstract pathname should be included in a pathname list.
static Path FileSystem.getChecksumFile(Path file)
          Return the name of the checksum file associated with a file.
static boolean FileSystem.isChecksumFile(Path file)
          Return true iff file is a checksum file name.
abstract  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.
 FSDataInputStream FileSystem.open(Path f, int bufferSize)
          Opens an FSDataInputStream at the indicated Path.
 FSDataInputStream FileSystem.open(Path f)
          Opens an FSDataInputStream at the indicated Path.
abstract  FSInputStream FileSystem.openRaw(Path f)
          Opens an InputStream for the indicated Path, whether local or via DFS.
 FSDataOutputStream FileSystem.create(Path f)
          Opens an FSDataOutputStream at the indicated Path.
 FSDataOutputStream FileSystem.create(Path f, short replication)
          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, short replication, long blockSize)
          Opens an FSDataOutputStream at the indicated Path.
abstract  FSOutputStream FileSystem.createRaw(Path f, boolean overwrite, short replication, long blockSize)
          Opens an OutputStream at the indicated Path.
 boolean FileSystem.createNewFile(Path f)
          Creates the given Path as a brand-new zero-length file.
 boolean FileSystem.setReplication(Path src, short replication)
          Set replication for an existing file.
abstract  short FileSystem.getReplication(Path src)
          Get replication.
abstract  boolean FileSystem.setReplicationRaw(Path src, short replication)
          Set replication for an existing file.
 boolean FileSystem.rename(Path src, Path dst)
          Renames Path src to Path dst.
abstract  boolean FileSystem.renameRaw(Path src, Path dst)
          Renames Path src to Path dst.
 boolean FileSystem.delete(Path f)
          Delete a file.
abstract  boolean FileSystem.deleteRaw(Path f)
          Deletes Path
abstract  boolean FileSystem.exists(Path f)
          Check if exists.
abstract  boolean FileSystem.isDirectory(Path f)
          True iff the named path is a directory.
 boolean FileSystem.isFile(Path f)
          True iff the named path is a regular file.
abstract  long FileSystem.getLength(Path f)
          The number of bytes in a file.
 Path[] FileSystem.listPaths(Path f)
          List files in a directory.
abstract  Path[] FileSystem.listPathsRaw(Path f)
          List files in a directory.
 Path[] FileSystem.listPaths(Path f, PathFilter filter)
          Filter files in a directory.
abstract  void FileSystem.setWorkingDirectory(Path new_dir)
          Set the current working directory for the given file system.
abstract  boolean FileSystem.mkdirs(Path f)
          Make the given file and all non-existent parents into directories.
abstract  void FileSystem.lock(Path f, boolean shared)
          Obtain a lock on the given Path
abstract  void FileSystem.release(Path f)
          Release the lock
abstract  void FileSystem.copyFromLocalFile(Path src, Path dst)
          The src file is on the local disk.
abstract  void FileSystem.moveFromLocalFile(Path src, Path dst)
          The src file is on the local disk.
abstract  void FileSystem.copyToLocalFile(Path src, Path dst)
          The src file is under FS, and the dst is on the local disk.
abstract  Path FileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile)
          Returns a local File that the user can write output to.
abstract  void FileSystem.completeLocalOutput(Path fsOutputFile, Path tmpLocalFile)
          Called when we're all done writing to the target.
abstract  void FileSystem.reportChecksumFailure(Path f, FSInputStream in, long start, long length, int crc)
          Report a checksum error to the file system.
abstract  long FileSystem.getBlockSize(Path f)
          Get the size for a particular file.
 

Constructors in org.apache.hadoop.fs with parameters of type Path
FSDataOutputStream(FileSystem fs, Path file, boolean overwrite, Configuration conf, int bufferSize, short replication, long blockSize)
           
FSDataInputStream(FileSystem fs, Path file, int bufferSize, Configuration conf)
           
FSDataInputStream(FileSystem fs, Path file, Configuration conf)
           
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.
Path(Path parent, Path child)
          Resolve a child path against a parent path.
 

Uses of Path in org.apache.hadoop.io
 

Methods in org.apache.hadoop.io with parameters of type Path
 void SequenceFile.Sorter.sort(Path inFile, Path outFile)
          Perform a file sort.
 void SequenceFile.Sorter.merge(Path[] inFiles, Path outFile)
          Merge the provided files.
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.
 

Constructors in org.apache.hadoop.io with parameters of type Path
SequenceFile.Writer(FileSystem fs, Path name, Class keyClass, Class valClass)
          Create the named file.
SequenceFile.Writer(FileSystem fs, Path name, Class keyClass, Class valClass, boolean compress)
          Create the named file.
SequenceFile.Reader(FileSystem fs, Path file, Configuration conf)
          Open the named file.
 

Uses of Path in org.apache.hadoop.mapred
 

Methods in org.apache.hadoop.mapred that return Path
protected  Path[] SequenceFileInputFormat.listPaths(FileSystem fs, JobConf job)
           
protected  Path[] InputFormatBase.listPaths(FileSystem fs, JobConf job)
          List input directories.
 Path FileSplit.getPath()
          The file containing this split's data.
 Path JobConf.getSystemDir()
           
 Path JobConf.getLocalPath(String pathString)
          Constructs a local file name.
 Path[] JobConf.getInputPaths()
           
 Path JobConf.getWorkingDirectory()
          Get the current working directory for the default file system.
 Path JobConf.getOutputPath()
           
 

Methods in org.apache.hadoop.mapred with parameters of type Path
static SequenceFile.Reader[] SequenceFileOutputFormat.getReaders(Configuration conf, Path dir)
          Open the output generated by this format.
static MapFile.Reader[] MapFileOutputFormat.getReaders(FileSystem fs, Path dir, Configuration conf)
          Open the output generated by this format.
 void JobConf.setInputPath(Path dir)
           
 void JobConf.addInputPath(Path dir)
           
 void JobConf.setWorkingDirectory(Path dir)
          Set the current working directory for the default file system
 void JobConf.setOutputPath(Path dir)
           
 

Constructors in org.apache.hadoop.mapred with parameters of type Path
FileSplit(Path file, long start, long length)
          Constructs a split.
JobConf(Path config)
          Construct a map/reduce configuration.
 



Copyright © 2006 The Apache Software Foundation