org.apache.hadoop.fs.PathFilter, FileSystemAccess.FileSystemExecutor<java.util.Map>@Private public static class FSOperations.FSListStatus extends java.lang.Object implements FileSystemAccess.FileSystemExecutor<java.util.Map>, org.apache.hadoop.fs.PathFilter
| Constructor | Description |
|---|---|
FSListStatus(java.lang.String path,
java.lang.String filter) |
Creates a list-status executor.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
accept(org.apache.hadoop.fs.Path path) |
|
java.util.Map |
execute(org.apache.hadoop.fs.FileSystem fs) |
Returns data for a JSON Map containing the information for
the set of files in 'path' that match 'filter'.
|
public FSListStatus(java.lang.String path,
java.lang.String filter)
throws java.io.IOException
path - the directory/file to retrieve the status of its contents.filter - glob filter to use.java.io.IOException - thrown if the filter expression is incorrect.public java.util.Map execute(org.apache.hadoop.fs.FileSystem fs)
throws java.io.IOException
execute in interface FileSystemAccess.FileSystemExecutor<java.util.Map>fs - filesystem instance to use.java.io.IOException - thrown if an IO error occurred.public boolean accept(org.apache.hadoop.fs.Path path)
accept in interface org.apache.hadoop.fs.PathFilterCopyright © 2008–2025 Apache Software Foundation. All rights reserved.