You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Jay Vyas <ja...@gmail.com> on 2013/03/05 19:01:04 UTC
FileStatus.getPath
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
Re: FileStatus.getPath
Posted by Harsh J <ha...@cloudera.com>.
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 <ja...@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
Re: FileStatus.getPath
Posted by Harsh J <ha...@cloudera.com>.
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 <ja...@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
Re: FileStatus.getPath
Posted by Harsh J <ha...@cloudera.com>.
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 <ja...@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
Re: FileStatus.getPath
Posted by Harsh J <ha...@cloudera.com>.
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 <ja...@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