Details
-
Wish
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.6.0, 2.7.0, 2.8.0
-
None
Description
I could use FileSystem
RemoteIterator<FileStatus> listed = fs.listStatusIterator(new Path("hdfs://warehousestore/user/chang.wu/flat_level_1"));
like this to get files asynchronously.
But in fact what I want is a pagination support, where I could pass two parameters, the
offset
and
limit
, 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 looks weird.
So, why can't HDFS support pagination for user directly?