Class StringAppContext
- java.lang.Object
-
- com.alibaba.graphscope.context.VertexDataContext<IFragment<Long,Long,StringView,StringView>,Integer>
-
- com.alibaba.graphscope.example.stringApp.StringAppContext
-
- All Implemented Interfaces:
ContextBase
,ParallelContextBase<Long,Long,StringView,StringView>
public class StringAppContext extends VertexDataContext<IFragment<Long,Long,StringView,StringView>,Integer> implements ParallelContextBase<Long,Long,StringView,StringView>
-
-
Constructor Summary
Constructors Constructor Description StringAppContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Init(IFragment<Long,Long,StringView,StringView> frag, ParallelMessageManager messageManager, com.alibaba.fastjson.JSONObject jsonObject)
Called by grape framework, before any PEval.void
Output(IFragment<Long,Long,StringView,StringView> frag)
Output will be executed when the computations finalizes.-
Methods inherited from class com.alibaba.graphscope.context.VertexDataContext
createFFIContext, data, getDataClass
-
-
-
-
Method Detail
-
Init
public void Init(IFragment<Long,Long,StringView,StringView> frag, ParallelMessageManager messageManager, com.alibaba.fastjson.JSONObject jsonObject)
Called by grape framework, before any PEval. You can initiating data structures need during super steps here.- Specified by:
Init
in interfaceParallelContextBase<Long,Long,StringView,StringView>
- Parameters:
frag
- The graph fragment providing accesses to graph data.messageManager
- The message manger which manages messages between fragments.jsonObject
- String args from cmdline.- See Also:
IFragment
,ParallelMessageManager
,JSONObject
-
Output
public void Output(IFragment<Long,Long,StringView,StringView> frag)
Output will be executed when the computations finalizes. Data maintained in this context shall be outputted here.- Specified by:
Output
in interfaceParallelContextBase<Long,Long,StringView,StringView>
- Parameters:
frag
- The graph fragment contains the graph info.- See Also:
IFragment
-
-