[
https://issues.apache.org/jira/browse/HADOOP-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hairong Kuang updated HADOOP-6692:
----------------------------------
Attachment: listStatusItor1.patch
Thank Suresh and Eli for review my patch. Those are good feedback. This patch
addresses most of the comments except for
> FileContext.listStatus() that returns iterator - add information about
> throwing UnsupportedOperationException and NoSuchElementException in the
> RuntimeExceptions section on attempt to delete an entry from iterator.
Those exceptions are not thrown in listStatus method. Those may be thrown when
iterating happens.
> AFS.listStatusItertor() - method javadoc should point @link to the right
> method in FileContext.
It points to the right method. It happens that in FileContext the method that
returns an iterator is named as listStatus.
> Add FileContext#listStatus that returns an iterator
> ---------------------------------------------------
>
> Key: HADOOP-6692
> URL: https://issues.apache.org/jira/browse/HADOOP-6692
> Project: Hadoop Common
> Issue Type: Sub-task
> Affects Versions: 0.22.0
> Reporter: Hairong Kuang
> Assignee: Hairong Kuang
> Fix For: 0.22.0
>
> Attachments: listStatusItor.patch, listStatusItor1.patch
>
>
> Add a method Iterator<FileStatus> listStatus(Path), which allows HDFS client
> not to have the whole listing in the memory, benefit more from the iterative
> listing added in HDFS-985. Move the current FileStatus[] listStatus(Path) to
> be a utility method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.