wuchang created HDFS-13759:
------------------------------

             Summary: [HDFS Pagination]Does HDFS Java api Support Pagination?
                 Key: HDFS-13759
                 URL: https://issues.apache.org/jira/browse/HDFS-13759
             Project: Hadoop HDFS
          Issue Type: Wish
          Components: fs, fs async
    Affects Versions: 2.6.0
            Reporter: wuchang


I could use *FileSystem*
{code:java}
RemoteIterator<FileStatus> listed = fs.listStatusIterator(new 
Path("hdfs://warehousestore/user/chang.wu/flat_level_1"));{code}
like this to get files *asynchronously*.

But in fact what I want is a pagination support, where I could pass two 
parameters, theĀ 
{code:java}
offset{code}
and
{code:java}
limit{code}
, like MySQL does to get part of files under some directory;.

I know I could just implement the pagination by wrapping theĀ 
*listStatusIterator*, but I think it is inefficient by wrapping this iterator.

I wonder why cannot HDFS java Api support that?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to