I could use FileSystem
like this to get files asynchronously.
But in fact what I want is a pagination support, where I could pass two parameters, the
, 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?