Package org.apache.flink.api.common.io
Class FilePathFilter.DefaultFilter
- java.lang.Object
-
- org.apache.flink.api.common.io.FilePathFilter
-
- org.apache.flink.api.common.io.FilePathFilter.DefaultFilter
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FilePathFilter
public static class FilePathFilter.DefaultFilter extends FilePathFilter
The default file path filtering method and is used if no other such function is provided. This filter leaves out files starting with ".", "_", and "_COPYING_".- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.api.common.io.FilePathFilter
FilePathFilter.DefaultFilter
-
-
Field Summary
-
Fields inherited from class org.apache.flink.api.common.io.FilePathFilter
HADOOP_COPYING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfilterPath(Path filePath)Returnstrueif thefilePathgiven is to be ignored when processing a directory, e.g.-
Methods inherited from class org.apache.flink.api.common.io.FilePathFilter
createDefaultFilter
-
-
-
-
Method Detail
-
filterPath
public boolean filterPath(Path filePath)
Description copied from class:FilePathFilterReturnstrueif thefilePathgiven is to be ignored when processing a directory, e.g.public boolean filterPaths(Path filePath) { return filePath.getName().startsWith(".") || filePath.getName().contains("_COPYING_"); }- Specified by:
filterPathin classFilePathFilter
-
-