Package com.alibaba.graphscope.utils
Class AppContextGetter
- java.lang.Object
-
- com.alibaba.graphscope.utils.AppContextGetter
-
public class AppContextGetter extends Object
-
-
Constructor Summary
Constructors Constructor Description AppContextGetter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetContextName(Object obj)static StringgetDefaultContextName(Class<? extends DefaultAppBase> appClass)For ProjectedDefaultApp, the context should be the index 4static StringgetLabeledVertexDataContextDataType(LabeledVertexDataContext ctxObj)static StringgetParallelContextName(Class<? extends ParallelAppBase> appClass)For ProjectedDefaultApp, the context should be the 2rd, i.e.static StringgetParallelPropertyContextName(Class<? extends ParallelPropertyAppBase> appClass)For parallel property app ,the index of context type in template is 1.static StringgetPropertyDefaultContextName(Class<? extends DefaultPropertyAppBase> appClass)For PropertyDefaultApp, the context should be the 2rd, i.e.static StringgetVertexDataContextDataType(VertexDataContext ctxObj)
-
-
-
Method Detail
-
getPropertyDefaultContextName
public static String getPropertyDefaultContextName(Class<? extends DefaultPropertyAppBase> appClass)
For PropertyDefaultApp, the context should be the 2rd, i.e. index of 1.- Parameters:
appClass- user-defined app class object.- Returns:
- the base class name.
-
getDefaultContextName
public static String getDefaultContextName(Class<? extends DefaultAppBase> appClass)
For ProjectedDefaultApp, the context should be the index 4- Parameters:
appClass- user-defined app class object.- Returns:
- the base class name.
-
getParallelContextName
public static String getParallelContextName(Class<? extends ParallelAppBase> appClass)
For ProjectedDefaultApp, the context should be the 2rd, i.e. index of 1.- Parameters:
appClass- user-defined app class object.- Returns:
- the base class name.
-
getParallelPropertyContextName
public static String getParallelPropertyContextName(Class<? extends ParallelPropertyAppBase> appClass)
For parallel property app ,the index of context type in template is 1.- Parameters:
appClass- user-defined app class object.- Returns:
- the corresponding class name.
-
getLabeledVertexDataContextDataType
public static String getLabeledVertexDataContextDataType(LabeledVertexDataContext ctxObj)
-
getVertexDataContextDataType
public static String getVertexDataContextDataType(VertexDataContext ctxObj)
-
-