Package com.alibaba.graphscope.loader
Class LoaderUtils
- java.lang.Object
-
- com.alibaba.graphscope.loader.LoaderUtils
-
public class LoaderUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description LoaderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
checkFileExist(String path)
static int
generateTypeInt(Class<? extends org.apache.hadoop.io.Writable>... clzs)
Generate an int containing clz array info.static long
getNumLinesOfFile(String path)
static int
writable2Int(Class<? extends org.apache.hadoop.io.Writable> clz)
return a 4 bit int containing type info.
-
-
-
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:
-
-