hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: FileStatus.getPath
Date Wed, 06 Mar 2013 05:39:23 GMT
The FileStatus is a container of metadata for a specific path, and
hence carries the Path object the rest of the details are for.

What do you exactly mean by "has no defined contract"? If you want a
qualified path (for a specific FS), then doing "path.makeQualified(…)"
is always the right way.

On Tue, Mar 5, 2013 at 11:31 PM, Jay Vyas <jayunit100@gmail.com> wrote:
> Hi it appears that:
>
> http://hadoop.apache.org/docs/current/api/org/apache/hadoop/fs/FileStatus.html
>
> getPath()
>
> has no defined contract.
>
> Why does FileStatus have a "getPAth" method?  Would it be the equivalent
> effect to
> simply make a path qualified using the FileSystem object?
>
> i.e. path.makeQualified(FileSystem.get()) ?
>
> --
> Jay Vyas
> http://jayunit100.blogspot.com



--
Harsh J

Mime
View raw message