Class LoaderUtils


  • public class LoaderUtils
    extends Object
    • Constructor Detail

      • LoaderUtils

        public LoaderUtils()
    • Method Detail

      • checkFileExist

        public static boolean checkFileExist​(String path)
      • getNumLinesOfFile

        public static long getNumLinesOfFile​(String path)
      • generateTypeInt

        public static int generateTypeInt​(Class<? extends org.apache.hadoop.io.Writable>... clzs)
        Generate an int containing clz array info.
        Parameters:
        clzs - input classes.
        Returns:
        generated value, the order of encoded bits value is the same as input order.
      • writable2Int

        public static int writable2Int​(Class<? extends org.apache.hadoop.io.Writable> clz)
        return a 4 bit int containing type info.
        Parameters:
        clz - input clz
        Returns: