You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "wuchang (JIRA)" <ji...@apache.org> on 2018/07/22 12:24:00 UTC
[jira] [Created] (HDFS-13759) [HDFS Pagination]Does HDFS Java api
Support Pagination?
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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org