public static class FilePathFilter.DefaultFilter extends FilePathFilter
FilePathFilter.DefaultFilter
HADOOP_COPYING
Modifier and Type | Method and Description |
---|---|
boolean |
filterPath(Path filePath)
Returns
true if the filePath given is to be
ignored when processing a directory, e.g. |
createDefaultFilter
public boolean filterPath(Path filePath)
FilePathFilter
true
if the filePath
given is to be
ignored when processing a directory, e.g.
public boolean filterPaths(Path filePath) {
return filePath.getName().startsWith(".") || filePath.getName().contains("_COPYING_");
}
filterPath
in class FilePathFilter
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.