Class HadoopFSUtil


  • public class HadoopFSUtil
    extends Object
    • Constructor Detail

      • HadoopFSUtil

        public HadoopFSUtil()
    • Method Detail

      • getPassAllFilter

        public static PathFilter getPassAllFilter()
        Get a path filter which allows all paths.
        Returns:
        PathFilter
      • getPassDirectoriesFilter

        public static PathFilter getPassDirectoriesFilter​(FileSystem fs)
        Get a path filter which allows all directories.
        Parameters:
        fs - A FileSystem used to determine directories.
        Returns:
        PathFilter
      • getPaths

        public static Path[] getPaths​(FileStatus[] stats)
        Turns an array of FileStatus into an array of Paths. May return null if input is null.
        Parameters:
        stats - A FileStatus array
        Returns:
        Path array