Class RegexFileFilter

java.lang.Object
org.apache.flink.connector.file.src.enumerate.RegexFileFilter
All Implemented Interfaces:
Predicate<org.apache.flink.core.fs.Path>

public class RegexFileFilter extends Object implements Predicate<org.apache.flink.core.fs.Path>
A file filter that filters out hidden files, see DefaultFileFilter and the files whose path doesn't match the given regex pattern.
  • Constructor Details

    • RegexFileFilter

      public RegexFileFilter(String pathPattern)
  • Method Details

    • test

      public boolean test(org.apache.flink.core.fs.Path path)
      Specified by:
      test in interface Predicate<org.apache.flink.core.fs.Path>