|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.fs.GlobFilter
@InterfaceAudience.Public @InterfaceStability.Evolving public class GlobFilter
A filter for POSIX glob pattern with brace expansions.
| Constructor Summary | |
|---|---|
GlobFilter(String filePattern)
Creates a glob filter with the specified file pattern. |
|
GlobFilter(String filePattern,
PathFilter filter)
Creates a glob filter with the specified file pattern and an user filter. |
|
| Method Summary | |
|---|---|
boolean |
accept(Path path)
Tests whether or not the specified abstract pathname should be included in a pathname list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobFilter(String filePattern)
throws IOException
filePattern - the file pattern.
IOException - thrown if the file pattern is incorrect.
public GlobFilter(String filePattern,
PathFilter filter)
throws IOException
filePattern - the file pattern.filter - user filter in addition to the glob pattern.
IOException - thrown if the file pattern is incorrect.| Method Detail |
|---|
public boolean accept(Path path)
PathFilter
accept in interface PathFilterpath - The abstract pathname to be tested
true if and only if pathname
should be included
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||