/** Check that a Path belongs to this FileSystem. */ @Override protected void checkPath(Path path) { fs.checkPath(path); }
@Override protected void checkPath(Path path) { fs.checkPath(path); }
/** * Return the fully-qualified path of path, resolving the path * through any symlinks or mount point. * @param p path to be resolved * @return fully qualified path * @throws FileNotFoundException if the path is not present * @throws IOException for any other error */ public Path resolvePath(final Path p) throws IOException { checkPath(p); return getFileStatus(p).getPath(); }
/** * Qualify a path to one which uses this FileSystem and, if relative, * made absolute. * @param path to qualify. * @return this path if it contains a scheme and authority and is absolute, or * a new path that includes a path and authority and is fully qualified * @see Path#makeQualified(URI, Path) * @throws IllegalArgumentException if the path has a schema/URI different * from this FileSystem. */ public Path makeQualified(Path path) { checkPath(path); return path.makeQualified(this.getUri(), this.getWorkingDirectory()); }
/** Check that a Path belongs to this FileSystem. */ @Override protected void checkPath(Path path) { fs.checkPath(path); }
/** Check that a Path belongs to this FileSystem. */ @Override protected void checkPath(Path path) { fs.checkPath(path); }
@Override protected void checkPath(Path path) { fs.checkPath(path); }
/** Check that a Path belongs to this FileSystem. */ protected void checkPath(Path path) { fs.checkPath(path); }
/** Check that a Path belongs to this FileSystem. */ @Override protected void checkPath(Path path) { fs.checkPath(path); }
/** * Return the fully-qualified path of path f resolving the path * through any symlinks or mount point * @param p path to be resolved * @return fully qualified path * @throws FileNotFoundException */ public Path resolvePath(final Path p) throws IOException { checkPath(p); return getFileStatus(p).getPath(); }
/** * Return the fully-qualified path of path f resolving the path * through any symlinks or mount point * @param p path to be resolved * @return fully qualified path * @throws FileNotFoundException */ public Path resolvePath(final Path p) throws IOException { checkPath(p); return getFileStatus(p).getPath(); }
/** * Return the fully-qualified path of path f resolving the path * through any symlinks or mount point * @param p path to be resolved * @return fully qualified path * @throws FileNotFoundException */ public Path resolvePath(final Path p) throws IOException { checkPath(p); return getFileStatus(p).getPath(); }
/** * Return the fully-qualified path of path f resolving the path * through any symlinks or mount point * @param p path to be resolved * @return fully qualified path * @throws FileNotFoundException */ public Path resolvePath(final Path p) throws IOException { checkPath(p); return getFileStatus(p).getPath(); }
/** * Make sure that a path specifies a FileSystem. * @param path to use */ public Path makeQualified(Path path) { checkPath(path); return path.makeQualified(this.getUri(), this.getWorkingDirectory()); }
/** * Make sure that a path specifies a FileSystem. * @param path to use */ public Path makeQualified(Path path) { checkPath(path); return path.makeQualified(this.getUri(), this.getWorkingDirectory()); }
/** * Make sure that a path specifies a FileSystem. * @param path to use */ public Path makeQualified(Path path) { checkPath(path); return path.makeQualified(this.getUri(), this.getWorkingDirectory()); }
/** * Make sure that a path specifies a FileSystem. * @param path to use */ public Path makeQualified(Path path) { checkPath(path); return path.makeQualified(this.getUri(), this.getWorkingDirectory()); }
@Override protected void checkPath(Path path) { // Make sure to reconstruct the path's authority if needed super.checkPath(new Path(reconstructAuthorityIfNeeded(path.toUri(), getConf()))); }
@Override protected void checkPath(Path path) { // Make sure to reconstruct the path's authority if needed super.checkPath(new Path(reconstructAuthorityIfNeeded(path.toUri(), getConf()))); }
static void checkPath(MiniDFSCluster cluster, FileSystem fileSys) throws IOException { InetSocketAddress add = cluster.getNameNode().getNameNodeAddress(); // Test upper/lower case fileSys.checkPath(new Path("hdfs://" + StringUtils.toUpperCase(add.getHostName()) + ":" + add.getPort())); }