Class WCCContext
-
- All Implemented Interfaces:
ContextBase
,ParallelContextBase<Long,Long,Long,Double>
public class WCCContext extends VertexDataContext<IFragment<Long,Long,Long,Double>,Double> implements ParallelContextBase<Long,Long,Long,Double>
-
-
Field Summary
Fields Modifier and Type Field Description AtomicLongArrayWrapper
comp_id
VertexSet
currModified
ExecutorService
executor
int
innerVerticesNum
VertexSet
nextModified
int
threadNum
-
Constructor Summary
Constructors Constructor Description WCCContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Init(IFragment<Long,Long,Long,Double> frag, ParallelMessageManager messageManager, com.alibaba.fastjson.JSONObject jsonObject)
Called by grape framework, before any PEval.void
Output(IFragment<Long,Long,Long,Double> frag)
Output will be executed when the computations finalizes.-
Methods inherited from class com.alibaba.graphscope.context.VertexDataContext
createFFIContext, data, getDataClass
-
-
-
-
Field Detail
-
currModified
public VertexSet currModified
-
nextModified
public VertexSet nextModified
-
comp_id
public AtomicLongArrayWrapper comp_id
-
threadNum
public int threadNum
-
executor
public ExecutorService executor
-
innerVerticesNum
public int innerVerticesNum
-
-
Method Detail
-
Init
public void Init(IFragment<Long,Long,Long,Double> frag, ParallelMessageManager messageManager, com.alibaba.fastjson.JSONObject jsonObject)
Description copied from interface:ParallelContextBase
Called by grape framework, before any PEval. You can initiating data structures need during super steps here.- Specified by:
Init
in interfaceParallelContextBase<Long,Long,Long,Double>
- 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
-
-