Class ArrowProjectedGenerator


  • public class ArrowProjectedGenerator
    extends Object
    Class which add typespec to ffiGenBatch for arrowProjectedFragment. In annotation invoker, we already generated some classes, try to avoid regeneration. TODO(zhanglei): generate according to message strategy, if provided.
    • Constructor Detail

      • ArrowProjectedGenerator

        public ArrowProjectedGenerator​(com.squareup.javapoet.AnnotationSpec.Builder ffiGenBatchBuilder,
                                       String cppOid,
                                       String cppVid,
                                       String cppVdata,
                                       String cppEdata,
                                       String javaOid,
                                       String javaVid,
                                       String javaVdata,
                                       String javaEdata,
                                       String vertexDataType,
                                       String javaVertexDataType)
    • Method Detail

      • generate

        public void generate()
      • addFuncGenMethod

        public void addFuncGenMethod​(com.squareup.javapoet.AnnotationSpec.Builder parallelMessageBuilder,
                                     String methodName,
                                     String returnType,
                                     String[] parameterTypes,
                                     String[][] messageTypePairs)
      • addFuncGenMethodNoMsg

        public void addFuncGenMethodNoMsg​(com.squareup.javapoet.AnnotationSpec.Builder parallelMessageBuilder,
                                          String methodName,
                                          String returnType,
                                          String[] parameterTypes)
      • getUnusedTypeName

        public String getUnusedTypeName​(String msgType)
      • getUnusedTypeName

        public String getUnusedTypeName()