Class LocalFSUtils

  • All Implemented Interfaces:

    
    public class LocalFSUtils
    
                        

    Utility methods for common filesystem operations.

    Author:

    vincent

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Logger LOG
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalFSUtils()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static List<String> readAllLines(String path) Read all lines in file, if it's under HDFS, read from HDFS, or read from local file system
      static List<String> readAllLinesSilent(Path path) readAllLinesSilent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait