[
https://issues.apache.org/jira/browse/HADOOP-6198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744384#action_12744384
]
Hong Tang commented on HADOOP-6198:
-----------------------------------
I'd argue that we may want to support both interfaces. The fact that the
current path-based filtering retrieves a FileStatus object first is an
implementation detail and it is conceivable that a different FS implementation
may be more efficient to support path-based filtering than file-status based
filtering.
> FileSystem filtering should work on FileStatus rather than Path objects
> -----------------------------------------------------------------------
>
> Key: HADOOP-6198
> URL: https://issues.apache.org/jira/browse/HADOOP-6198
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Chris Douglas
>
> There's an avoidable overhead in listing/globbing items with some property
> (e.g. owned by user foo, only files, files larger than _n_ bytes, etc.).
> Internally, the Path is extracted from a FileStatus object and passed to the
> PathFilter; simply passing the FileStatus object would allow one to filter on
> the information in the status object.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.