@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface ListingSupport
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path path,
String startFrom) |
String |
listStatus(org.apache.hadoop.fs.Path path,
String startFrom,
List<org.apache.hadoop.fs.FileStatus> fileStatuses,
boolean fetchAll,
String continuation) |
org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path path)
throws IOException
path - The list path.IOException - in case of errororg.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path path,
String startFrom)
throws IOException
path - Path the list path.startFrom - The entry name that list results should start with.
For example, if folder "/folder" contains four
files: "afile", "bfile", "hfile", "ifile". Then
listStatus(Path("/folder"), "hfile") will return
"/folder/hfile" and "folder/ifile" Notice that if
startFrom is a non-existent entry name, then the
list response contains all entries after this
non-existent entry in lexical order: listStatus
(Path("/folder"), "cfile") will return
"/folder/hfile" and "/folder/ifile".IOException - in case of errorString listStatus(org.apache.hadoop.fs.Path path, String startFrom, List<org.apache.hadoop.fs.FileStatus> fileStatuses, boolean fetchAll, String continuation) throws IOException
path - The list pathstartFrom - The entry name that list results should start with.
For example, if folder "/folder" contains four
files: "afile", "bfile", "hfile", "ifile". Then
listStatus(Path("/folder"), "hfile") will return
"/folder/hfile" and "folder/ifile" Notice that if
startFrom is a non-existent entry name, then the
list response contains all entries after this
non-existent entry in lexical order: listStatus
(Path("/folder"), "cfile") will return
"/folder/hfile" and "/folder/ifile".fileStatuses - This list has to be filled with the FileStatus objectsfetchAll - flag to indicate if the above list needs to be
filled with just one page os results or the entire
result.continuation - Contiuation token. null means start rom the begining.IOException - in case of errorCopyright © 2008–2021 Apache Software Foundation. All rights reserved.