Class SSSPContext
-
- All Implemented Interfaces:
ContextBase,ParallelContextBase<Long,Long,Long,Long>
public class SSSPContext extends VertexDataContext<IFragment<Long,Long,Long,Long>,Double> implements ParallelContextBase<Long,Long,Long,Long>
-
-
Field Summary
Fields Modifier and Type Field Description intchunkSizeVertexSetcurModifieddoubleexecTimeExecutorServiceexecutorVertexSetnextModifiedAtomicLongArrayWrapperpartialResultsdoublereceiveMessageTimedoublesendMessageTimeLongsourceOidintthreadNum
-
Constructor Summary
Constructors Constructor Description SSSPContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetSourceOid()voidInit(IFragment<Long,Long,Long,Long> frag, ParallelMessageManager mm, com.alibaba.fastjson.JSONObject jsonObject)Called by grape framework, before any PEval.voidOutput(IFragment<Long,Long,Long,Long> frag)Output will be executed when the computations finalizes.intthread_num()-
Methods inherited from class com.alibaba.graphscope.context.VertexDataContext
createFFIContext, data, getDataClass
-
-
-
-
Field Detail
-
executor
public ExecutorService executor
-
partialResults
public AtomicLongArrayWrapper partialResults
-
curModified
public VertexSet curModified
-
nextModified
public VertexSet nextModified
-
execTime
public double execTime
-
sendMessageTime
public double sendMessageTime
-
receiveMessageTime
public double receiveMessageTime
-
sourceOid
public Long sourceOid
-
threadNum
public int threadNum
-
chunkSize
public int chunkSize
-
-
Method Detail
-
getSourceOid
public Long getSourceOid()
-
Init
public void Init(IFragment<Long,Long,Long,Long> frag, ParallelMessageManager mm, 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,Long,Long>- Parameters:
frag- The graph fragment providing accesses to graph data.mm- The message manager which manages messages between fragments.jsonObject- String args from cmdline.- See Also:
IFragment,ParallelMessageManager,JSONObject
-
Output
public void Output(IFragment<Long,Long,Long,Long> frag)
Description copied from interface:ParallelContextBaseOutput will be executed when the computations finalizes. Data maintained in this context shall be outputted here.
-
thread_num
public int thread_num()
-
-