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

Doug Cutting commented on HADOOP-6198:
--------------------------------------

> We'll have to keep PathFilter around for at least another release for 
> backwards-compatibility, but I'd like to deprecate it.

+1 We've generally tried to switch FileSystem APIs from using Path to 
FileStatus whereever possible, deprecating and eventually removing Path-based 
methods, and this just seems like a case we've missed.

> 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