[ 
https://issues.apache.org/jira/browse/HADOOP-6198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744396#action_12744396
 ] 

Hong Tang commented on HADOOP-6198:
-----------------------------------

I am not sure why it would be a burden for FS implementors. listStatus would be 
implemented by FileSystem and FS implementors should only override them when 
the default implementation is less efficient (and the implementors have the 
incentive of making them fast).

> 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.

Reply via email to