@InterfaceAudience.Private public static class FSOperations.FSListStatus extends Object implements FileSystemAccess.FileSystemExecutor<Map>, PathFilter
Constructor and Description |
---|
FSOperations.FSListStatus(String path,
String filter)
Creates a list-status executor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Path path)
Tests whether or not the specified abstract pathname should be
included in a pathname list.
|
Map |
execute(FileSystem fs)
Executes the filesystem operation.
|
public FSOperations.FSListStatus(String path, String filter) throws IOException
path
- the directory to retrieve the status of its contents.filter
- glob filter to use.IOException
- thrown if the filter expression is incorrect.public Map execute(FileSystem fs) throws IOException
execute
in interface FileSystemAccess.FileSystemExecutor<Map>
fs
- filesystem instance to use.IOException
- thrown if an IO error occured.public boolean accept(Path path)
PathFilter
accept
in interface PathFilter
path
- The abstract pathname to be testedtrue
if and only if pathname
should be includedCopyright © 2013 Apache Software Foundation. All rights reserved.