HDFS-13016. globStatus javadoc refers to glob pattern as "regular expression". Contributed by Mukul Kumar Singh.

This commit is contained in:
Arpit Agarwal 2018-01-13 07:19:30 -08:00
parent 9afb8025d6
commit 7016dd44e0
2 changed files with 4 additions and 4 deletions

View File

@ -2012,7 +2012,7 @@ public LocatedFileStatus next() throws IOException {
* </dd>
* </dl>
*
* @param pathPattern a regular expression specifying a pth pattern
* @param pathPattern a glob specifying a path pattern
*
* @return an array of paths that match the path pattern
*
@ -2040,7 +2040,7 @@ public FileStatus[] globStatus(Path pathPattern)
* Return null if pathPattern has no glob and the path does not exist.
* Return an empty array if pathPattern has a glob and no path matches it.
*
* @param pathPattern regular expression specifying the path pattern
* @param pathPattern glob specifying the path pattern
* @param filter user-supplied path filter
*
* @return an array of FileStatus objects

View File

@ -2058,7 +2058,7 @@ public FileStatus[] listStatus(Path[] files, PathFilter filter)
* </dd>
* </dl>
*
* @param pathPattern a regular expression specifying a pth pattern
* @param pathPattern a glob specifying a path pattern
* @return an array of paths that match the path pattern
* @throws IOException IO failure
@ -2072,7 +2072,7 @@ public FileStatus[] globStatus(Path pathPattern) throws IOException {
* {@code pathPattern} and is accepted by the user-supplied path filter.
* Results are sorted by their path names.
*
* @param pathPattern a regular expression specifying the path pattern
* @param pathPattern a glob specifying the path pattern
* @param filter a user-supplied path filter
* @return null if {@code pathPattern} has no glob and the path does not exist
* an empty array if {@code pathPattern} has a glob and no path