Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS, mail # user - Re: FileSystem iterative or limited alternative to listStatus()


Copy link to this message
-
Re: FileSystem iterative or limited alternative to listStatus()
Ted Yu 2014-01-11, 23:57
Can you utilize the following API ?

  public FileStatus[] listStatus(Path f, PathFilter filter)

Cheers
On Sat, Jan 11, 2014 at 3:52 PM, John Lilley <[EMAIL PROTECTED]>wrote:

>  Is there an HDFS file system method for listing a directory contents
> iteratively, or at least stopping at some limit?  We have an application in
> which the user can type wildcards, which our app expands.  However, during
> interactive phases we only want the first matching file to check its
> format.  There may be folders with many 1000s of files…
>
> Thanks
>
> John
>
>
>