Class BFSContext
-
- All Implemented Interfaces:
ContextBase,ParallelContextBase<Long,Long,Double,Long>
public class BFSContext extends VertexDataContext<IFragment<Long,Long,Double,Long>,Long> implements ParallelContextBase<Long,Long,Double,Long>
-
-
Field Summary
Fields Modifier and Type Field Description intcurrentDepthVertexSetcurrentInnerUpdatedExecutorServiceexecutorVertexSetnextInnerUpdatedIntArrayWrapperpartialResultslongsourceOidintthreadNum
-
Constructor Summary
Constructors Constructor Description BFSContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidInit(IFragment<Long,Long,Double,Long> frag, ParallelMessageManager messageManager, com.alibaba.fastjson.JSONObject jsonObject)Called by grape framework, before any PEval.voidOutput(IFragment<Long,Long,Double,Long> frag)Output will be executed when the computations finalizes.-
Methods inherited from class com.alibaba.graphscope.context.VertexDataContext
createFFIContext, data, getDataClass
-
-
-
-
Field Detail
-
sourceOid
public long sourceOid
-
partialResults
public IntArrayWrapper partialResults
-
currentInnerUpdated
public VertexSet currentInnerUpdated
-
nextInnerUpdated
public VertexSet nextInnerUpdated
-
currentDepth
public int currentDepth
-
threadNum
public int threadNum
-
executor
public ExecutorService executor
-
-
Method Detail
-
Init
public void Init(IFragment<Long,Long,Double,Long> frag, ParallelMessageManager messageManager, com.alibaba.fastjson.JSONObject jsonObject)
Description copied from interface:ParallelContextBaseCalled by grape framework, before any PEval. You can initiating data structures need during super steps here.- Specified by:
Initin interfaceParallelContextBase<Long,Long,Double,Long>- Parameters:
frag- The graph fragment providing accesses to graph data.messageManager- The message manager which manages messages between fragments.jsonObject- String args from cmdline.- See Also:
IFragment,ParallelMessageManager,JSONObject
-
-