Class GraphScopeAppScanner
- java.lang.Object
-
- com.alibaba.graphscope.annotation.GraphScopeAppScanner
-
public class GraphScopeAppScanner extends Object
This class accept1) classpath 2) output directory 3) graph template string Then scan all class, for all class annotated with FFIGen, FFIMirror, do the code generation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectFFIMirror(Path classPath)
static String[]
parseGraphTemplateStr(String graphTemplateStr)
static String
scanAppAndGenerate(String classpath, String outputDirectory, String graphTemplateString, String vertexDataType, boolean javaFragName)
We define the same interface for the generation of graphScope of grape.
-
-
-
Method Detail
-
scanAppAndGenerate
public static String scanAppAndGenerate(String classpath, String outputDirectory, String graphTemplateString, String vertexDataType, boolean javaFragName)
We define the same interface for the generation of graphScope of grape. For graphScope, config path is not used, which means we don't need the configuration file, messageTypes are all from FFIMirror,(later we should scan the jar to find all usage of the message send function) For Grape, we still run the main method to generate the configuration file.- Parameters:
classpath
- java class pathoutputDirectory
- where to output- Returns:
- absolute output path
-
collectFFIMirror
public void collectFFIMirror(Path classPath)
-
-