/** * Creates an object to wrap the given parameters as fields. The string * used to create the path will be recorded since the Path object does not * return exactly the same string used to initialize it * @param pathString a string for a path * @param conf the configuration file * @throws IOException if anything goes wrong... */ public PathData(String pathString, Configuration conf) throws IOException { this(FileSystem.get(stringToUri(pathString), conf), pathString); }
/** * Creates an object to wrap the given parameters as fields. The string * used to create the path will be recorded since the Path object does not * return exactly the same string used to initialize it. * @param fs the FileSystem * @param pathString a String of the path * @param stat the FileStatus (may be null if the path doesn't exist) */ private PathData(FileSystem fs, String pathString, FileStatus stat) throws IOException { this.fs = fs; this.uri = stringToUri(pathString); this.path = fs.makeQualified(new Path(uri)); setStat(stat); if (Path.WINDOWS) { inferredSchemeFromPath = checkIfSchemeInferredFromPath(pathString); } }
/** * Creates an object to wrap the given parameters as fields. The string * used to create the path will be recorded since the Path object does not * return exactly the same string used to initialize it * @param pathString a string for a path * @param conf the configuration file * @throws IOException if anything goes wrong... */ public PathData(String pathString, Configuration conf) throws IOException { this(FileSystem.get(stringToUri(pathString), conf), pathString); }
/** * Creates an object to wrap the given parameters as fields. The string * used to create the path will be recorded since the Path object does not * return exactly the same string used to initialize it * @param pathString a string for a path * @param conf the configuration file * @throws IOException if anything goes wrong... */ public PathData(String pathString, Configuration conf) throws IOException { this(FileSystem.get(stringToUri(pathString), conf), pathString); }
/** * Creates an object to wrap the given parameters as fields. The string * used to create the path will be recorded since the Path object does not * return exactly the same string used to initialize it * @param pathString a string for a path * @param conf the configuration file * @throws IOException if anything goes wrong... */ public PathData(String pathString, Configuration conf) throws IOException { this(FileSystem.get(stringToUri(pathString), conf), pathString); }
/** * Creates an object to wrap the given parameters as fields. The string * used to create the path will be recorded since the Path object does not * return exactly the same string used to initialize it * @param pathString a string for a path * @param conf the configuration file * @throws IOException if anything goes wrong... */ public PathData(String pathString, Configuration conf) throws IOException { this(FileSystem.get(stringToUri(pathString), conf), pathString); }
/** * Creates an object to wrap the given parameters as fields. The string * used to create the path will be recorded since the Path object does not * return exactly the same string used to initialize it. * @param fs the FileSystem * @param pathString a String of the path * @param stat the FileStatus (may be null if the path doesn't exist) */ private PathData(FileSystem fs, String pathString, FileStatus stat) throws IOException { this.fs = fs; this.uri = stringToUri(pathString); this.path = fs.makeQualified(new Path(uri)); setStat(stat); if (Path.WINDOWS) { inferredSchemeFromPath = checkIfSchemeInferredFromPath(pathString); } }
/** * Creates an object to wrap the given parameters as fields. The string * used to create the path will be recorded since the Path object does not * return exactly the same string used to initialize it. * @param fs the FileSystem * @param pathString a String of the path * @param stat the FileStatus (may be null if the path doesn't exist) */ private PathData(FileSystem fs, String pathString, FileStatus stat) throws IOException { this.fs = fs; this.uri = stringToUri(pathString); this.path = fs.makeQualified(new Path(uri)); setStat(stat); if (Path.WINDOWS) { inferredSchemeFromPath = checkIfSchemeInferredFromPath(pathString); } }
/** * Creates an object to wrap the given parameters as fields. The string * used to create the path will be recorded since the Path object does not * return exactly the same string used to initialize it. * @param fs the FileSystem * @param pathString a String of the path * @param stat the FileStatus (may be null if the path doesn't exist) */ private PathData(FileSystem fs, String pathString, FileStatus stat) throws IOException { this.fs = fs; this.uri = stringToUri(pathString); this.path = fs.makeQualified(new Path(uri)); setStat(stat); if (Path.WINDOWS) { inferredSchemeFromPath = checkIfSchemeInferredFromPath(pathString); } }
/** * Creates an object to wrap the given parameters as fields. The string * used to create the path will be recorded since the Path object does not * return exactly the same string used to initialize it. * @param fs the FileSystem * @param pathString a String of the path * @param stat the FileStatus (may be null if the path doesn't exist) */ private PathData(FileSystem fs, String pathString, FileStatus stat) throws IOException { this.fs = fs; this.uri = stringToUri(pathString); this.path = fs.makeQualified(new Path(uri)); setStat(stat); if (Path.WINDOWS) { inferredSchemeFromPath = checkIfSchemeInferredFromPath(pathString); } }